Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Heart Rate Monitor with Heartbeat Sensor

View and Edit Project In Cirkit DesignerImage of Arduino UNO Heart Rate Monitor with Heartbeat Sensor

Circuit Documentation

Summary

This document provides a detailed overview of a circuit designed to read heart rate using a heartbeat sensor connected to an Arduino UNO. The circuit includes the following components:

The heartbeat sensor is powered by the Arduino UNO and sends its signal to one of the analog input pins on the Arduino. The Arduino reads this signal and outputs the heart rate data via serial communication.

Component List

Arduino UNO

Heartbeat Sensor

Wiring Details

Arduino UNO

Heartbeat Sensor

Code Documentation

/*
 * Arduino Sketch for reading heart rate using a heartbeat sensor
 * Components:
 * - Arduino UNO
 * - Heartbeat sensor
 * Connections:
 * - Heartbeat sensor GND to Arduino GND
 * - Heartbeat sensor VCC to Arduino 5V
 * - Heartbeat sensor S to Arduino A0
 */

const int sensorPin = A0; // Pin connected to the sensor's signal output
int sensorValue = 0; // Variable to store the sensor value

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  sensorValue = analogRead(sensorPin); // Read the analog value from the sensor
  Serial.print("Heart Rate Sensor Value: ");
  Serial.println(sensorValue); // Print the sensor value to the Serial Monitor
  delay(1000); // Wait for 1 second before taking another reading
}

This code initializes the Arduino's serial communication and reads the analog value from the heartbeat sensor connected to pin A0. The sensor value is printed to the Serial Monitor every second.