MAX30102 Pulse Oximeter & Heart-Rate Sensor
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.
mbed | MAX30102 |
---|---|
3.3V | VIN |
GND | GND |
p28 (SDA) | SDA |
p27 (SCL) | SCL |
p26 | INT |
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:
red | Raw red light intensity |
ir | Raw IR light intensity |
HR | Processed heartrate |
HRvalid | 1 if valid, 0 if invalid |
SpO2 | Processed blood oxidation |
SpO2valid | 1 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
Output showing valid heartrate data, but still invalid blood-ox.
5 comments on MAX30102 Pulse Oximeter & Heart-Rate Sensor:
Please log in to post comments.
How can I access your code?