Skip to main content

Menu

Heartbeat Sensor Arduino Compatible

ARD2-2239
Arduino Compatible ARD2 Heartbeat Sensor

$3.95

QTYPrice
1 $3.95

Description

This sensor uses a bright infrared (IR) LED and a phototransistor to detect the pulse of a fingertip. A red LED flashes with each pulse. The IR LED lights up the top of the finger, and phototransistor on the bottom of the finger measures the light emitted. When the heartbeat pulses the resistance of the photo transistor will be slightly changed. The sensor uses a very high resistance resistor, because most of the light is absorbed by the finger and the phototransistor must be sensitive enough to detect these small changes in light. The resistance can be adjusted to get the best results.

It is important to keep stray light from entering the phototransistor. For home lighting that is particularly important because the lights at home are generally 50HZ or 60HZ and thus fluctuate, so a faint heartbeat will add considerable noise When running the program the measured values are printed. It could be challenging to measure an actual heart rate value using this sensor.

Test Code

int sensorPin = 0;
double alpha = 0.75;
int period = 100;
double change = 0.0;
double minval = 0.0;

void setup () {
Serial.begin (9600);
}

void loop () {
static double oldValue = 0;
static double oldChange = 0;
int rawValue = analogRead (sensorPin);
double value = alpha * oldValue + (1 - alpha) * rawValue;
Serial.print (rawValue);
Serial.print (",");
Serial.println (value);
oldValue = value;
delay (period);
}

Features

  • Detect the pulse of a fingertip
  • Light up an LED each time a pulse is detected

Specifications

Colour

Black

Material

PCB

Resources

You Might Also Like

All prices are in Australian Dollars and include GST. GST will be removed from your order if you are ordering from outside Australia.
Products may differ from pictured.
All trademarks and trade names are the properties of their respective owners. Wiltronics disclaims any proprietary interest in trademarks and trade names other than its own.

Heartbeat Sensor Arduino Compatible

ARD2-2239

$3.95

We use cookies to ensure you have the best experience on our site. If you continue to use this site you consent to the use of these cookies. OK

Find out more in our Privacy Policy