Heart Rate Monitor Using Arduino

This project demonstrates how to build a basic heart rate monitor using an Arduino and an analog sensor.

The setup involves reading analog values from a sensor, processing these values to detect heartbeats, and calculating the Beats Per Minute (BPM).

The BPM is then displayed on the Serial Monitor.

The project can be expanded to include more features like visual or audio feedback using LEDs or buzzers.

Components Needed

Hardware Wiring Explanation:

Input Sensor to Controller:

Insert the analog heart rate sensor into the breadboard.

Connect the sensor's VCC pin to the 5V pin on the Arduino.

Connect the sensor's GND pin to the GND pin on the Arduino.

Connect the sensor's output pin to the A0 pin on the Arduino.

Software (Arduino IDE):

Open the Arduino IDE on your computer.

Write or paste the provided program into the IDE.

Select the correct board and port in the Arduino IDE under the Tools menu.

Upload the program to the Arduino.

Power the Arduino

Plug the Arduino into a USB port or power it with an external adapter.

Monitor the Output:

Open the Serial Monitor in the Arduino IDE by selecting Tools

Set the baud rate to 9600 in the Serial Monitor.

Observe the BPM values being printed on the Serial Monitor.

Project Operation

The Arduino initializes serial communication at 9600 baud.

The sensor continuously reads analog values from pin A0.

The code checks if the sensor values exceed a certain threshold to detect a heartbeat.

When a heartbeat is detected, it calculates the time interval between beats and converts it to BPM.

The BPM value is printed on the Serial Monitor.

Applications