Heartbeat Detection with MAX30100

Introduction

This experiment demonstrates how to detect the heartbeat using the MAX30100 sensor with Arduino.

MAX30100 Sensor

Components Needed

Circuit Setup

  1. Connect the MAX30100 sensor to the Arduino using the I2C interface (SCL and SDA).
  2. Connect VCC and GND pins to the Arduino’s 5V and GND.

The MAX30100 sensor uses infrared light to detect blood flow and heartbeat.

Heartbeat Circuit Setup

Code for Heartbeat Detection

Upload the following code to your Arduino to measure heartbeat:


#include 
#include 

MAX30100_PulseOximeter pox;

void setup() {
  Serial.begin(9600);
  if (!pox.begin()) {
    Serial.println("Couldn't find the sensor");
    for(;;);
  }
}

void loop() {
  pox.update();
  if (pox.isHeartRateUpdated()) {
    Serial.print("Heart Rate: ");
    Serial.println(pox.getHeartRate());
  }
  delay(1000);
}
            

Explanation

The MAX30100 sensor uses optical sensing to detect the blood flow caused by heartbeats, which is then processed by the Arduino to measure the heart rate.

Troubleshooting