PULSE SENSOR

Overview

Pulse Sensor [Product Link] is a plug-and-play heart-rate sensor for Arduino. It can be used by students, artists, athletes, makers, and game & mobile developers who want to easily incorporate live heart-rate data into their projects.

Features

Pulse Sensor
Pulse Sensor

Operating Current: 4mA
Operating Voltage: 5V
Diameter: 16mm
Thickness: 3mm

Description

Heart rate data is useful in designing an exercise routine, monitoring activity or anxiety levels or blinking shirt in sync with your heart beat. The pulse sensor [Product Link] will measure your heart rate easily!
It essentially combines a simple optical heart rate sensor with amplification and noise cancellation circuitry making it fast and easy to get reliable pulse readings from earlobe or finger tip. The 3 pin cable on the pulse sensor [Product Link] is terminated with standard male headers so there’s no soldering required.

Code

#define led 9
#define pulse 2
boolean beat=false;
void setup()
{
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(led,OUTPUT);
pinMode(pulse,INPUT);
}

void loop()
{
// put your main code here, to run repeatedly:
if(digitalRead(pulse)>0)
{
if(!beat)
{
beat=true;
digitalWrite(led,HIGH);
Serial.println("pulse high");
delay(100);
}
}
else
{
if(beat)
{
beat=false;
digitalWrite(led,LOW);
Serial.println("pulse low");
delay(100);
}
}
}

Possible Application Areas

1. Heart Rate Monitoring & Alert System
2. Controlling Wearable Circuits using Heart Pulse

Sidebar