Introduction
Pulse rate monitors and digital displays are essential components found in modern fitness trackers, wearable medical devices, and smart health-monitoring systems, allowing us to keep track of vital signs in real time! Learn how optical heart rate sensing works, how OLED screens render crisp live data, how to interface the HW827 pulse sensor and SSD1306 OLED display with Quarky, and program them with ease in PictoBlox – our blocks-based graphical programming platform with advanced hardware interaction abilities. Once you’re equipped with the basic knowledge of the Advance Sensors extension, I2C communication, and live biometric signal processing, we’ll show you how to detect finger presence, display real-time pulse counts, and build exciting DIY smart health and wearable tech projects using Quarky.
To work in PictoBlox, you’ll first need to download it from HERE.
Ready? Set. Go!
Prerequisites
- HW827 Pulse Sensor to detect the finger and read the pulse count.
- OLED Display SSD1306 to display the pulse reading.
- Quarky as the main controller.
- PictoBlox to create and run the program.
- Jumper Wires
How to connect with Quarky
- First, open PictoBlox.
- Click on the Board tab on the toolbar and select Quarky.

- Next, click on the Connect button and select the appropriate serial port.
- In the top right corner, there is a toggle button named Mode. This button is used to switch between the two working modes of PictoBlox, namely the stage mode and the upload mode.
- Switch to Upload mode by toggling this button. You’ll observe some changes in the UI.

Connection Diagram
OLED Display Connection
Connect the OLED Display pins to Quarky as follows:
- Connect GND of the OLED Display to GND on Quarky.
- Connect VDD/VCC of the OLED Display to V on Quarky.
- Connect SCK/SCL of the OLED Display to D1 on Quarky.
- Connect SDA of the OLED Display to D2 on Quarky.
Pulse Sensor Connection
Connect the HW827 Pulse Sensor pins to Quarky as follows:
- Connect GND of the Pulse Sensor to GND on Quarky.
- Connect VCC of the Pulse Sensor to V on Quarky.
- Connect Signal/S of the Pulse Sensor to A1 on Quarky.
Note: Refer to the connection diagram for the exact wire placement, pin position, and orientation.
Step-by-Step Block Coding Guide
- Go to the Quarky palette and drag the ‘when Quarky starts up’ block into the scripting area.
- Click on Add Extension.

- Add the ‘initialize OLED display on scl () and sda ()‘ block from the Advance Sensors palette. For the scl, use the Digital pin ‘D1‘ and for sda use Digital Pin ‘D2‘.
- Add the ‘initialize pulse sensor on pin ()’ block from the Advance Sensors palette. For the pin use Analog Pin ‘A1‘.

- Underneath the ‘initialize pulse sensor on pin ()‘ block, add the ‘forever’ block from the Control palette.
- Inside the ‘forever‘ block, add the ‘if () then‘ block from the Control palette.
- Inside the if condition, add the ‘Is finger present on pulse sensor?‘ block from the Advance Sensor palette.
- Inside the if block, add the ‘display ()’ block from Advance Sensor palette.
- Inside the ‘display ()’ block, add the ‘get pulse count’ block from Advance Sensor palette.

- To upload the code, click on the Upload Code button.

Output

Conclusion
In this lesson, we learned how to build a digital pulse monitoring system by interfacing an HW827 pulse sensor and an SSD1306 OLED display with Quarky. Using PictoBlox’s Upload mode alongside the Advance Sensors extension, we explored how to configure I2C communication on digital pins D1 and D2 to initialize the OLED screen and read biometric analog signals through pin A1. We programmed real-time conditional logic to detect finger presence and continuously fetch and output the pulse count directly onto the display. With these fundamentals of biometric sensing and external display interfacing mastered, you can now apply this knowledge to design smart health trackers, interactive fitness monitors, and other advanced wearable robotics projects!


