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.

When we put finger on sensor it count heartbeats per minute.

This is important because heartbeat tells doctor about our health.

We use Arduino UNO, LCD screen, two buttons, one resistor and heartbeat sensor to build it.

Sensor catches heartbeat signal and Arduino read it and show heartbeat on screen.

Two buttons control screen and heartbeat check.

Coding:

#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:

ComponentQuantity
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.

This is good because Arduino need 5V to work.

Heartbeat is found using heartbeat sensor module.

Sensor uses infrared to see blood flow change when heart pump.

These changes become small electric signal (pulse).

Sensor send analog signal to Arduino UNO.

Arduino read this signal, calculate heart rate and show it on LCD.

Press start button pin 2 to begin.

It turn on sensor, clear old data and set LCD for display.

Press stop button to pause or stop.

It turns OFF sensor, save data and show stop message on screen.

Potentiometer is used to change 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:

This project for Simple Heartbeat Monitor Circuit using Arduino show simple heartbeat monitor.

Code give basic way to find and show heart rate.

It also tell how to connect parts and make circuit.

We can make it better by adding features like to save heart rate data, show average heart rate and give light or screen alerts.

References:

Heart Rate Monitor Project

Exit mobile version