Heart Rate Monitoring System using IoT
Monitoring the heart rate is an important factor in maintaining our heart health. Our heart rate helps in determining our fitness level. Monitoring our heart health can help in detecting early signs of heart attack.
In this project, we will make a heart rate monitoring system with the help of Arduino, and heart beat sensors.
This system counts the heartbeat, calculates the heart rate and displays it in the LCD in BPM (Beats per minutes).
The sensors will read the value of heart beat of a person. The heart beat sensor is controlled by the Arduino module.
It reads the pulses from the sensor and calculates the heart rate and then sends this information to the LCD display. There, this information is displayed to the user.
The connection of the Arduino, LCD and the heart beat sensor is done as follows:
- Pin 8 of Arduino is connected to the heart beat sensor module.
- Vcc and GND are connected to Vcc and GND.
- 16×2 LCD is connected with Arduino in 4-bit mode.
- Control pin RS, RW and En are directly connected to Arduino pin 12, GND and 11.
- Data pin D4-D7 is connected to pins 5, 4, 3 and 2 of Arduino.
- The start push button is connected to pin 7 and reset push button is connected to pin 6 of Arduino with respect to ground.
In this system,
only five pulses is read and the heart rate is calculated using the following formula:
Five_pusle_time = time2-time1;
Single_pulse_time = Five_pusle_time /5;
rate=60000 / Single_pulse_time;
Here, time1 = first pulse counter value
time2 = last pulse counter value
rate = final heart rate.
When the first pulse is read, the counter is started in the Arduino using the time counter function milis(). We store the first pulse counter value from milis() and store the value in time1 variable.
After receiving the next five pulses, the counter value is stored in the variable time2. The value of time1 is subtracted from time2 to get the original time taken by the five pulses.
This value is divided by 5 to get the time taken by one single pulse. The final rate is calculated by dividing 600000 milliseconds by single pulse time.
- Arduino UNO
- Pulse Sensor
- 1k resistors
- 10k potentiometer
- 220 ohm resistors
- Jumper wires
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int in = 8;
unsigned long time2,time1;
unsigned long time;
byte heart =
lcd.print(“Heart Beat “);
lcd.print(“Heart Beat Rate:”);
lcd.print(“Heart Beat Rate:”);
- For Arduino, the programming can very easily modifiable
- Cheaper than most smart watches and heart rate monitors
- Portable and easy to use
- It can be monitored from anywhere
- It might show incorrect results if we move our hand vigorously or flex the muscles near the wrist.
- Can be used as an alternate to expensive smart watches and heart rate monitors.
- Can be used in hospitals, clinics, labs, etc.
- Can be used at homes to monitor heart rate.
Let us know your comment on “IoT based Heart rate monitoring system” in the section below.
Start your IoT journey with IoT Basics from IoTDunia.
Image 1, 2 and 3 credit: circuitdigest