PULSE RATE SENSOR

 PULSE RATE SENSOR

                                  Pulse Sensor is a plug-and-play heart-rate detection sensor .It can be used for who want live heart-rate data into their projects. This pulse sensor fits over a fingertip and uses the amount of infrared light reflected by the blood circulating inside to do just that. When the heart pumps, blood pressure rises sharply, and so does the amount of infrared light from the emitter that gets reflected back to the detector. We can interface pulse rate sensor with Arduino to identify the pulse rate automatically.
       

Application:

  • Heart rate data is difficult to read, however the Pulse Sensor Amped help us to read heart rate.
  • The Pulse Sensor 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.

Sample Project With Arduino:

                          In this we going to detect the pulse rate of us or any other by using the pulse rate sensor.

Materials required:

  • Arduino UNO
  • Pulse rate sensor
  • Jumper wires

Circuit:

Code:

#define USE_ARDUINO_INTERRUPTS true

#include <PulseSensorPlayground.h>

const int OUTPUT_TYPE = SERIAL_PLOTTER;

const int PIN_INPUT = A0;

const int PIN_BLINK = 13;  // Pin 13 is the on-board LED

const int PIN_FADE = 5;

const int THRESHOLD = 550;  // Adjust this number to avoid noise when idle

PulseSensorPlayground pulseSensor;

 

  Serial.begin(115200);

  pulseSensor.analogInput(PIN_INPUT);

  pulseSensor.blinkOnPulse(PIN_BLINK);

  pulseSensor.fadeOnPulse(PIN_FADE);

 

  pulseSensor.setSerial(Serial);

  pulseSensor.setOutputType(OUTPUT_TYPE);

  pulseSensor.setThreshold(THRESHOLD);

 

                                                            // Now that everything is ready, start reading the PulseSensor signal.

  if (!pulseSensor.begin()) {

for(;;) {

                                                             // Flash the led to show things didn't work.

      digitalWrite(PIN_BLINK, LOW);

      delay(50);

      digitalWrite(PIN_BLINK, HIGH);

      delay(50);

    }  }  }

void loop() {

                                                            /*Wait a bit. We don't output every sample, because our baud rate won't support that much I/O */

  delay(20);                                          

 pulseSensor.outputSample();   // write the latest sample to Serial

  if (pulseSensor.sawStartOfBeat()) {

   pulseSensor.outputBeat();

  }}

Serial Monitor Output:



                                        



                     

 

Comments

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS