Site icon Circuit Ideas for You

Simple Heartbeat Monitor Circuit using Arduino

In this post we will show how to make Simple Heartbeat Monitor Circuit using Arduino.

First, when we put finger on sensor it count heartbeats per minute and this is important because heartbeat tells doctor about our health.

Here, we use Arduino UNO, LCD screen, two buttons, one resistor and heartbeat sensor to build it; furthermore, sensor catches heartbeat signal and Arduino read it and show heartbeat on screen.

Finally, two buttons control screen and heartbeat check.

Arduino Code:

#include <LiquidCrystal.h>

// Define pins for components
const int heartRatePin = A0;
const int startButtonPin = 2;
const int stopButtonPin = 3;
const int lcdContrastPin = 4;

// Create LCD object
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup() {
  // Set pins as input or output
  pinMode(heartRatePin, INPUT);
  pinMode(startButtonPin, INPUT_PULLUP);
  pinMode(stopButtonPin, INPUT_PULLUP);
  pinMode(lcdContrastPin, OUTPUT);

  // Initialize LCD display
  lcd.begin(16, 2);
  lcd.setCursor(0, 0);
  lcd.print("Heartbeat Monitor");
}

void loop() {
  // Read heart rate sensor value
  int sensorValue = analogRead(heartRatePin);

  // Calculate heart rate (adjust factors as needed)
  int heartRate = (sensorValue * 60) / 1023;

  // Display heart rate on LCD
  lcd.setCursor(0, 1);
  lcd.print("HR: ");
  lcd.print(heartRate);
  lcd.print(" BPM");

  // Check for button presses
  if (digitalRead(startButtonPin) == LOW) {
    // Start heart rate measurement
    // ... (your code here)
  }

  if (digitalRead(stopButtonPin) == LOW) {
    // Stop heart rate measurement
    // ... (your code here)
  }
}

Code Explanation:

Circuit Working:

Simple Heartbeat Monitor Circuit Diagram using Arduino

Parts List:

ComponentsQuantity
Resistors
100k 1/4 watt2
Potentiometer 10k1
Semiconductors
Arduino UNO1
Heart Beat sensor module1
16×2 LCD1
Push button tactile switches2
IC 78091

Arduino UNO get steady 9V power using 7809 voltage regulator and this is good because Arduino need 5V to work.

The heartbeat sensor module detects the heartbeat by using infrared light to monitor changes in blood flow when the heart pumps, then the sensor converts these changes into small electrical signals (pulses).

Then sensor send analog signal to Arduino UNO and Arduino read this signal, calculate heart rate and show it on LCD.

After that, press start button pin 2 to begin and it will turn on sensor, clear old data and set LCD for display; then press stop button to pause or stop which then turns OFF sensor, save data and show stop message on screen.

Also, the potentiometer changes the LCD contrast.

How to Build:

To build a Simple Heartbeat Monitor Circuit using Arduino following are the steps to follow:

Below table shows connections of an LCD Display to Arduino board:

Arduino PinLCD PinDescription
5VVCCPower supply
GNDGNDGround
D2RSRegister select
D3EEnable
D4, D5, D6, D7D4, D5, D6, D7Data pins

Conclusion:

Overall, this project for Simple Heartbeat Monitor Circuit using Arduino show simple heartbeat monitor; also code give basic way to find and show heart rate.

Moreover, it also tell how to connect parts and make circuit and we can also make it better by adding features like to save heart rate data, show average heart rate and give light or screen alerts.

Exit mobile version