Heart Pulse Rate Sensor

Z2M Part: EMS-00009-A

Reads pulse signal from Pulse Sensor connected to A0. Lights up onboard LED when a beat is detected. Reference: pulsesensor.com

Circuit Diagram
Circuit diagram for Heart Pulse Rate Sensor
Wire Connections & Pin Configuration

Wire Color Connections:

Yellow → Analog Pin A0 to Pulse sensor signal
Red → 5V to Pulse sensor VCC
Black → GND to Pulse sensor GND

Pin Configuration:

Arduino Analog Pin A0 → Heart pulse sensor signal
Arduino 5V → Heart pulse sensor VCC
Arduino GND → Heart pulse sensor GND
Arduino Code
Edit
int PulseSensorPurplePin = 0;
int LED13 = 13;
int Signal;
int Threshold = 510;

void setup() {
  pinMode(LED13, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  Signal = analogRead(PulseSensorPurplePin);
  Serial.println(Signal);
  if (Signal > Threshold) {
    digitalWrite(LED13, HIGH);
  } else {
    digitalWrite(LED13, LOW);
  }
  delay(10);
}

Instruction Details

Wiring: Connect pulse sensor VCC to 5V, GND to GND, signal to Analog Pin A0.
Library: Not required (built-in).
Upload Code: Tools → Board → Arduino Uno. Tools → Port → select your COM port. Click Upload button.
View Output: Open Serial Monitor (Tools → Serial Monitor) at 9600 baud. Place finger on sensor (light pressure). Onboard LED (Pin 13) blinks with heartbeat. Works best in ambient light.

How to Use

  1. Connect the required components as per the Pin Configuration above
  2. Open Arduino IDE and create a new sketch
  3. Copy and paste the code above
  4. Select your Arduino board and COM port from Tools menu
  5. Click the Upload button to upload the code to your Arduino
  6. Open Serial Monitor (if applicable) to see the output

Components Required

  • Arduino Uno
  • Pulse Sensor
  • Breadboard
  • Jumper Wires

Category: Sensors