MAX30102 Pulse Oximeter & Heart-Rate Sensor

/media/uploads/alanbannon/maxrefdes117fig00.png

MAXREFDES117# reference design board

The MAX30102 is a low power, optical heart-rate module complete with integrated red and IR LEDs, and a power supply. The MAX30102 is available on a reference design board. This tiny board, perfect for wearable projects, may be placed on a finger or earlobe to accurately detect heart rate.

Wiring

The MAX30102 communicates via the I2C interface available on the mbed.

mbedMAX30102
3.3VVIN
GNDGND
p28 (SDA)SDA
p27 (SCL)SCL
p26INT

Library files and example code

Maxim Integrated provides some example code for accessing and calculating the heart-rate and blood oxidation data, however it requires modifications to work on general mbed hardware.

A modified program with updated library files is available:

Import programRD117_MBED_test_code

RD117_MBED_test_code

The code connects to the serial port of a PC to display the data form the sensor.

Output

Once the code is running the sensor will go through a calibration cycle and then start outputting data that will be displayed on the serial port.

Six values are output:

redRaw red light intensity
irRaw IR light intensity
HRProcessed heartrate
HRvalid1 if valid, 0 if invalid
SpO2Processed blood oxidation
SpO2valid1 if valid, 0 if invalid

HRvalid and SpO2valid tell us if the Maxim algothim think that the values it's generating for HR and SpO2 correct.

Caution!

The MAX30102 is very sensitive and can frequently give incorrect readings. It is important to keep a finger pressed to the sensor during startup and not to move it until calibration is complete

/media/uploads/alanbannon/putty_capture.png Output showing valid heartrate data, but still invalid blood-ox.


5 comments on MAX30102 Pulse Oximeter & Heart-Rate Sensor:

02 Oct 2018

How can I access your code?

07 Oct 2018

How can i access your code?

09 Jan 2020

code?

04 Jun 2020

code unavailable :-(

04 Jun 2020

Please log in to post comments.