← Back

Pulse oximeter

Built on XDAHow I made a pulse oximeter with a Raspberry Pi Pico to keep tabs on my heart rateBy Daniel Allen
Raspberry Pi Pico

MAX30102 heart rate and SpO2 sensor

GNDGNDVIN3V3SDAGP8SCLGP9

SSD1306 0.96in 128x64 OLED (I2C, 4-pin)

VCC3V3GNDGNDSDAGP8SCLGP9

Compatibility checks

No issues found

  • Use a breadboard: parts share 3V3, GP8 and GP9.

  • SSD1306 0.96in 128x64 OLED can suffer from burn-in if the screen is left static for long periods of time.

Wiring steps

  1. 1

    Optional: Solder headers onto MAX30102 heart rate and SpO2 sensor.

  2. 2

    Push the board into the breadboard.

  3. 3

    Run a jumper from its 3V3 row to a rail.

  4. 4

    MAX30102 heart rate and SpO2 sensor

    • GNDtoGND
    • VINtothe 3V3 rail
    • SDAtothe GP8 row
    • SCLtothe GP9 row
  5. 5

    SSD1306 0.96in 128x64 OLED

    • GNDtoGND
    • VCCtothe 3V3 rail
    • SDAtothe GP8 row
    • SCLtothe GP9 row
  6. 6

    Plug in the USB cable last.

Code

Runs MicroPython. Setup instructions

Some board drawings are from Wokwi and Seeed Studio.