Hello guys, today in this tutorial we have MAX30100 pulse oximeter sensor. We will pair this sensor with our Arduino and check the operation. This will be a simple project and you will get the circuit diagram and code here below.

In these types of sketches most of the work is done by libraries itself, we just have to initialize the code, libraries and functions. You can make your own PCB as a watch or something like commercially available in market. Through this we can measure BPM and SPO2 levels. Then we will design a PCB and order it from JLCPCB ( just $2 for 5 pcs).

Pulse oximeter:

A non-invasive medical device that utilizes spectrophotometry to measure the oxygen saturation of circulating arterial blood in an individual by determining the percentage of oxygenated haemoglobin pulsating through a network of blood capillaries by way of a sensor attached typically to a finger. This sensor used to measure BPM( Heart beat per minute) and Spo2(Oxygen level in blood).

A normal level of oxygen is usually 95% or higher. Some people with chronic lung disease or sleep apnoea can have normal levels around 90%. The “SpO2” reading on a pulse oximeter shows the percentage of oxygen in someone's blood. If your home SpO2 reading is lower than 95%, call your health care provider.

Difference Between BP and BPM:

The heart rate records the number of times that your heart beats per minute (BPM) , while your blood pressure quantifies how strong your blood moves through the blood vessels (BP).

Pulse Oximeter sensor:

MAX30100 is an integrated pulse oximeter and heart-rate monitor sensor solution. It’s an optical sensor that derives its readings from emitting two wavelengths of light from two LEDs – a red and an infrared one – then measuring the absorbance of pulsing blood through a photodetector.

This particular LED color combination is optimized for reading the data through the tip of one’s finger. It is fully configurable through software registers and the digital output data is stored in a 16-deep FIFO within the device. It has an I2C digital interface to communicate with a host microcontroller.


  • Measures absorbance of pulsing blood
  • I2C interface plus INT pin
  • Tiny 5.6mm x 2.8mm x 1.2mm 14-Pin Optically Enhanced System-in-Package
  • Ultra-Low-Power Operation Increases Battery Life for Wearable Devices
  • Programmable Sample Rate and LED Current for Power Savings
  • Ultra-Low Shutdown Current (0.7µA, typically)
  • Advanced Functionality Improves Measurement Performance
  • High SNR Provides Robust Motion Artifact Resilience
  • Integrated Ambient Light Cancellation
  • High Sample Rate Capability
  • Fast Data Output Capability

Components required:

1) Arduino UNO 

 2) 16X2 LCD (With I2C adapter)

3) MAX30100 sensor 

 4) Wires and breadboard 

 5) Custom PCB

Circuit diagram:

Both the LCD and sensor use I2C communications, so we can connect both of them to same A5 (SCL) and A4 (SDA) pin. Arduino uno i2c have 7 bit addresses so we can use 127 devices in parallel. To power up the sensor and lcd we can give +5v. And rest of the work is done by the microcontroller itself. Download Circuit diagram, code and Gerber files from here.

PCB designs:

I want to minimize this DIY design, so here in the PCB I am using Arduino Nano MCU, 16*2 LCD, MAX30100 with charging circuit.

This is tested schematics, but the LCD only work on I2C port. Pins are just for understanding purpose. If you want to use same design as mine then Download the Gerber files from here. JLCPCB offering a very good service (just $2 for 5 Pcs).

And if you Sign-up using my link, you will get reward coupons of worth $27 and some SMT assembly/ PCB prototype coupons on each successful order.


Download Libraries used in this code from here.

#include <LiquidCrystal_I2C.h>
#include <Wire.h>
#include "MAX30100_PulseOximeter.h"

#define REPORTING_PERIOD_MS     1000

LiquidCrystal_I2C lcd(0x27, 16, 2);

byte smile[] = {
Read more »