Pulse Sensor (HW-827)

The HW-827 Pulse Sensor is a low-cost, plug-and-play optical heart-rate sensor. It features a green LED emitter and a photodetector sensor.

Sensors5 blocksMicroPythonC++
Pulse Sensor (HW-827)

At a glance

Pins and properties exactly as the circuit editor and simulator define this part. The text below explains how to use them.

Pinout

Pinout of the Pulse Sensor (HW-827), drawn as in the circuit editor. Select a label to see that pin in the table below.

Pins

Pins of this part
PinLabelType
SSAnalog out
VCC+Power in
GND-Ground

Properties

What you can change in the Property Inspector.

Properties of this part
PropertyRange or choicesDefault
Heart Rate40 to 180 BPM72 BPM

The HW-827 Pulse Sensor is a low-cost, plug-and-play optical heart-rate sensor. It features a green LED emitter and a photodetector sensor. When clipped onto a finger or earlobe, it reads the changing light reflection changes caused by arterial pulse waves.


1. Hardware Specifications & Pinout

  • Operating Voltage: 3.3V to 5.0V.
  • Output Signal: Raw analog voltage wave.
  • Pin Configuration:
    • + / VCC: Connect to 3.3V or 5V.
    • - / GND: Connect to Ground.
    • S (Signal): Connect to any ADC pin.

2. How it Works (Analog PPG Wave)

As the heart pumps blood through the finger, the capillaries expand and contract, modulating the absorption of the green light. The sensor outputs a fluctuating analog wave representing this volumetric change.

  • Pulse Threshold: To detect a beat, the code checks when the signal rises above a threshold percentage (e.g. 60% of max).
  • Refractory Period: A 300ms lock-out timer is applied after detecting a beat to avoid counting the dicrotic notch (secondary wave peak) as a double beat.

3. Component Properties

The HW-827 now has a real simulated component (hw827_pulse_sensor) — drag it onto the Circuit Canvas from the Components palette. It exposes exactly one prop:

  • Heart Rate (bpm) — range 40–180 BPM, default 72.

All three pins are wired: VCC/GND power the module (the sensor is considered powered once VCC exceeds 2.5V, with a LOW VCC fault between 2.5V and 3.0V), and S is a real analog output pin — see Section 5's important note on what it actually outputs electrically.


4. Simulator Behavior

With the component placed and the circuit running:

  • Click-drag the vertical slider on the right side of the component (visible only during simulation) to set bpm anywhere from 40 (🧘 resting) to 180 (🏃 exertion) BPM.
  • The silkscreen heart icon pulses with a real CSS animation timed to 60 / bpm seconds per beat — faster at a high BPM, slower at a low one — genuinely synced to the current bpm value, not just a fixed-rate decoration.
  • The green optical emitter LED glows while powered.
  • A live text readout shows ❤️ <bpm> BPM | PPG: Active continuously while powered — always visible, not a hover-only tooltip.

5. Supported Blockly Blocks

Drawing the blocks…

Pulse Sensor (HW-827) — OMS Parts