Skip to the content
2 layers125 × 85 mmSPO2 sensor, the printed circuit board in 3D

A custom heart rate and SpO2 monitor built on an Elegoo Uno R3 with a MAX30105 sensor and SSD1306 OLED display. Features a custom PCB, mode-switching buttons, and an alarm LED. Uses lightweight R-ratio SpO2 calculation and peak-detection heart rate — all tuned to run within the Arduino Uno's RAM limits.

Size
125 × 85 mm
Copper layers
2
Thickness
1.6 mm
Parts
14
Nets
32
Pads
69
Tracks, vias
110, 7
Pours
1
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
7 May 2026
Updated
7 May 2026

Overview

SPO2 sensor is an open-source printed circuit board by maxstanish1, from the maxstanish1/SPO2-PulseBoard repository on GitHub. It is a 2-layer board of 125 × 85 mm with 14 parts on 32 nets, routed with 110 tracks and 7 vias.

It is built around the ARDUINO UNO R3. Its parts include 4 resistors, 3 capacitors and 2 ICs. It belongs with the sensors and measurement and lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

SPO2-PulseBoard

A custom heart rate and SpO2 monitor built on an Arduino Uno R3 with a MAX30105 sensor and SSD1306 OLED display. Features a custom PCB, mode-switching buttons, and an alarm LED. Uses lightweight R-ratio SpO2 calculation and peak-detection heart rate — all tuned to run within the Arduino Uno's RAM limits.

IMG_5669

PulseBoard

A custom heart rate and SpO2 monitor built on an Arduino Uno R3 with a MAX30105 sensor and SSD1306 OLED display. Features a custom PCB, mode-switching buttons, and an alarm LED. Uses lightweight R-ratio SpO2 calculation and peak-detection heart rate — all tuned to run within the Arduino Uno's RAM limits.


Hardware

ComponentDetails
MicrocontrollerArduino Uno R3
SensorMAX30105 optical heart rate / SpO2
DisplaySSD1306 128×32 OLED (I2C)
PCBCustom — see /hardware for Gerber files

Pin Map

PinFunction
D2Menu button — cycles between Heart Rate and SpO2 mode
D3Up button — reserved for future use
D4Down button — reserved for future use
D12Alarm LED — flashes when no finger is on the sensor
SDA / SCLShared I2C bus → MAX30105 + SSD1306

Button Circuit

All three buttons are active-low, held HIGH by 1kΩ pull-up resistors (R1, R2, R3) with 100nF decoupling capacitors for hardware debounce. The alarm LED is driven through a 1kΩ current-limiting resistor (R4).


Features

  • Heart Rate (BPM) — peak detection on a rolling IR signal window with a 4-beat rolling average
  • SpO2 (%) — R-ratio method with a quadratic calibration formula for accurate readings in the healthy range
  • Mode switching — press D2 to toggle between Heart Rate and SpO2 mode; a splash screen confirms the switch
  • Alarm LED — flashes at 1Hz on D12 when no finger is detected, turns off immediately when a finger is placed
  • Stable display — 500ms refresh throttle prevents flicker; readings are held back for the first few seconds until the signal stabilizes

How It Works

Finger Detection

The sketch polls the MAX30105 every loop. An IR value above 50,000 indicates a finger is present (tissue absorbs the light). Below that threshold, the sensor is reading open air. All HR and SpO2 state resets on each new finger placement.

Heart Rate Detection

A 10-sample rolling window tracks the IR signal's min, max, and range. Beat detection fires when the signal crosses 50% of the range, subject to these parameters:

ParameterValue
Threshold50% of signal range
Minimum signal range400
Minimum time between beats400ms
First beatAlways skipped (timing invalid)
Valid BPM range50 – 120
Rolling average4 beats
Avg display delay8 seconds

SpO2 Calculation

AC (peak-to-peak) and DC (midpoint) values are computed for both the Red and IR channels from the same 10-sample window. The R-ratio is calculated as:

text
R = (redAC / redDC) / (irAC / irDC)

R is then passed through a quadratic calibration formula fitted to empirical blood oxygen absorption data:

text
SpO2 = -45.060 × R² + 30.354 × R + 94.845

The result is clamped between 70–100% and smoothed with a 9-reading rolling average. Readings are displayed after 5 seconds.

Note: This formula is accurate in the healthy range (95–100%). Readings below ~90% should be treated as approximate — the sensor is not designed for clinical low-SpO2 accuracy.


Libraries Required

Install these through the Arduino IDE Library Manager before compiling:

Note: This project does NOT use spo2_algorithm.h. That library was tested but exceeded the Uno's available RAM. SpO2 logic here is a custom lightweight implementation.


Usage

  1. Wire up the hardware according to the pin map above or use the custom PCB
  2. Install the required libraries
  3. Upload heart_monitor.ino to your Arduino Uno R3
  4. Place your finger lightly on the sensor — pressing too hard flattens the pulse waveform and stops beat detection
  5. Press D2 to switch between Heart Rate and SpO2 mode
  6. Wait 8 seconds for a stable heart rate average, or 5 seconds for an SpO2 reading

Known Limitations

  • Finger pressure is critical — too much pressure drops the signal range below 400 and halts detection
  • INT pin unused — the MAX30105 interrupt pin is wired on the PCB but unconnected in firmware. Currently the sketch polls the sensor every loop. Future enhancement: wire INT to D7 for event-driven reads
  • SpO2 accuracy — reliable in the 95–100% range; not suitable for clinical use
  • BPM range — capped at 50–120 BPM; athletes with resting HR below 50 will see no reading

Project Structure

text
PulseBoard/
├── firmware/
│   └── heart_monitor.ino
├── hardware/
│   └── (Gerber files, schematic)
└── README.md

License

MIT

Parts

14
QtyValueFootprintReferences
41kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3, R4
3100nCapacitor_THT:C_Disc_D4.7mm_W2.5mm_P5.00mmC1, C2, C3
3SW_PushButton_Switch_THT:SW_PUSH_6mmDown, Menu, Up
1Arduino_UNO_R3Module:Arduino_UNO_R3A2
1LEDLED_THT:LED_D5.0mmAlarm
1SSD1306Spo2 stuff:SSD1306U3
1max 30102Spo2 stuff:spo2 max30102U1

Similar boards

  • 2 layers68.8 × 53.6 mmRelatively Universal ROM Programmer, the printed circuit board in 3D

    Relatively Universal ROM Programmer

    AndersBNielsen/Relatively-Universal-ROM-Programmer

    Hardware to program W27C512 EEPROM or any 24/28/32 pin ROM requiring from 5V to 27V programming voltage.

    149 parts257GPL-3.0
  • 2 layers69.1 × 53.8 mmMotor controller, the printed circuit board in 3D

    Motor controller

    AlanFord/self-balancing-stick

    Dual Axis Reaction Wheel Inverted Pendulum

    25 parts79MIT
  • 2 layers68.6 × 53.3 mmProtogasm Board V2, the printed circuit board in 3D

    Protogasm Board V2

    Edging-Machines/Edging-Machines

    This repository is intended to contain as much information as possible about building, designing, prototyping, and using automated edging machines.

    14 parts67MIT
  • 2 layers53.8 × 69.6 mmEVSE V2 2, the printed circuit board in 3D

    EVSE V2 2

    PedroCNeves/AC_ChargingStation

    A learning project to create an EV AC Charging station based on an Arduino Uno

    32 parts50
  • 2 layers113.7 × 61 mmArduTester SMD, the printed circuit board in 3D

    ArduTester SMD

    jonsag/arduTester

    An arduino component tester based on https://create.arduino.cc/projecthub/plouc68000/ardutester-v1-13-the-arduino-uno-transistor-tester-dbafb4

    17 parts14
  • 4 layers65.9 × 52.9 mmMotor shield, the printed circuit board in 3D

    Motor shield

    DCC-EX/EX-MotorShield8874

    Design files for the open source 5A Motor Shield

    114 parts12
  • 4 layers68.6 × 53.3 mm101 PCB, the printed circuit board in 3D

    101 PCB

    ICRS/101

    The all-new open source Robotics 101 course from ICRS. It's specifically designed to be run in hackspaces, after school clubs and university societies.

    89 parts10CC-BY-4.0
  • 2 layers53.3 × 68.3 mmAnac 2040, the printed circuit board in 3D

    Anac 2040

    rallekralle11/Anna2040

    RP2040-based board in the shape of the Arduino uno

    63 parts9

Questions

How big is the SPO2 sensor PCB?

It measures 125 × 85 mm and has 2 copper layers, 1.6 mm thick.

What parts does the SPO2 sensor use?

14 parts, built around the ARDUINO UNO R3. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the SPO2 sensor KiCad files?

From the maxstanish1/SPO2-PulseBoard repository on GitHub, at the commit this page was made from: the board is SPO2 sensor.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the SPO2 sensor design in my own project?

Its repository states no licence, so its author keeps all rights: ask maxstanish1 before reusing the design.