DIY Pulse Rate Monitor

by apoorvtr in Circuits > Sensors

1713 Views, 16 Favorites, 0 Comments

DIY Pulse Rate Monitor

DSC00561.JPG
DSC00564.JPG
DSC00567.JPG

The following instructable represents a pulse rate monitor with Linkit ONE. It can display your pulse rate on a serial monitor. The project is very easy to make and requires very less parts and time to assemble.

This is my first instructable. Please a positive feedback.

Components Required

DSC00526.JPG
DSC00528.JPG

For attempting this project, you will need the parts mentioned below. Very less parts are required to make it and you can complete the entire project in just 30 minutes or 1 hour if you are a beginner.

  1. Linkit ONE (1 pc.)
  2. Linkit ONE Accesories (Battery or USB Cable)
  3. Arduino Compatible Pulse Sensor (1 pc.)
  4. Male To Male Jumper Cables (3 pcs.)
  5. Wire
  6. Tape
  7. Scissors
  8. A PC, ofcourse
  9. Nothing else!

Start Making

DSC00531.JPG
DSC00535.JPG
DSC00537.JPG
DSC00539.JPG
DSC00542.JPG
DSC00544.JPG

  1. First step is to take jump cables and connect some long peices of wires on all the three cables.
  2. Secondly, connect the vcc pin of sensor to 5v of linkit one using these wires.
  3. Then connect gnd pin of sensor to gnd of linkit one.
  4. Connect the output pin of sensor to pin A0 of linkit one.
  5. Lastly add some tape at the loose ends of the sensor as well as the linkit one.

Connect Your Linkit ONE to PC and Install Drivers

DSC00556.JPG
DSC00569.JPG
DSC00558.JPG

  1. Using a standard USB cable connect your Linkit ONE to your PC.
  2. Download the Linkit ONE IDE from the Mediatek website.
  3. Install all the required drivers for linkit one
  4. You can refer the Mediatek developer's guide if you have any problems in running it.

Upload Code

DSC00558.JPG

Upload the code which I have included below by selecting correct COM port and Board in your IDE. The switches on the board should also be in the correct position.

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); }

Open Serial Monitor and Test It

DSC00572.JPG
DSC00568.JPG
DSC00567.JPG

As you upload the code, open the serial monitor. Now you will see your pulse rate values displayed on the monitor. Please remember that the sensor should be touched on your finger.

This is the end of this instructable. Hope your enjoyed!