max30100 notes

1 https://i.stack.imgur.com/qO5vw.jpg
2 https://datasheets.maximintegrated.com/en/ds/MAX30100.pdf
3 https://datasheets.maximintegrated.com/en/ds/MAX30102.pdf
4 https://github.com/whilemind/MAX30100u
5 https://github.com/whilemind/MAX30100u/blob/master/max30100.py
6 http://mfitzp/max30100
7 https://github.com/kontakt/MAX30100
8 https://www.amazon.com/dp/B073W999X2
9 https://fr.aliexpress.com/item/32749194911.html
10 https://detail.tmall.com/item.htm?spm=a312a.7700824.w4011-21581912015.57.59105535NUjzR3&id=617282739731&rn=63e7e1dafa955b7702fcf88d5f2345eb&abbucket=0
11 https://www.amazon.in/xcluma-MAX30102-Upgraded-Ultra-Low-Compatible/dp/B07TZCNG2G
12 https://www.instructables.com/id/Pulse-Oximeter-With-Much-Improved-Precision/
13 https://community.particle.io/t/best-pulse-sensor/43979/34
14 https://morf.lv/implementing-pulse-oximeter-using-max30100
15 https://www.youtube.com/watch?v=gliS8kdWNMM
16 https://raspberrypi.stackexchange.com/questions/96482/raspberry-pi-3b-interface-with-heart-monitor-ad8232-using-mcp3008-and-spi-pins
17 https://en.wikipedia.org/wiki/Oxygen_saturation_(medicine)
18 https://i.stack.imgur.com/vRRaR.jpg
19 https://i.stack.imgur.com/Al9aZ.jpg
20 https://i.stack.imgur.com/KoKbA.jpg

Active today
Viewed 66 times

I want to connect the sensor max30100 to the Raspberry Pi board.I think everything is accurate.When I run the code, the red light flashes.I activated I2C.max30100 device address 0x57 is detected. When I put my hand on the sensor, I get the following error.


max30100 got exception [errno 121] remote i/o error

I use the source code below.

import os
import sys
import time
import max30100

def main():
        mx30 = max30100.MAX30100()
        # mx30.reset()
        # time.sleep(1)
        # mx30.startup()
        # time.sleep(1)

        i = 0
        while i < 30:
            # # The latest values are now available via .ir and .red
            # print("HeartRate sensor .ir: {} and .red: {}".format(mx30.ir, mx30.red))

            # time.sleep(2)
            mx30 = max30100.MAX30100()
            # time.sleep(1)
            # The latest values are now available via .ir and .red
            print("HRate sensor .ir: {} and SpO2 .red: {}".format(mx30.ir, mx30.red))

            # temp = mx30.get_temperature()
            # print("Temperature {}\n".format(temp))

            i = i + 1
        # mx30.shutdown()

    except Exception as e:
        print("Max30100 got exception {}".format(e))

if __name__ == "__main__":


connection PINS GPIO and sensor max30100

(3.3V -VIN)
(I2C SDA1 - SDA)
(I2C SCL1 - SCL)
(PIN7 - INT )

Can anyone help me to fix this issue?

 New contributor


The OP has setup and successfully detected an I2C MAX30100 Pulse Oximeter and Heart-Rate Sensor module. But when trying to read the sensor, he encountered the following two problems:

(1) Gets the "Exception remote I/O error [error 121]",

(2) Gets only zero values for the red LED and IR Led outputs.

How to fix it?

max30100 module


Part A – Remote I/O Error [Error #121]


/ to continue, …

Part B – Always Reading Zero Values of Red LED and IR LED


/ to continue, …


(1) MAX30100 Pulse Oximeter and Heart-Rate Sensor IC for Wearable Health Datasheet – Maxim

(2) MAX30102 High-Sensitivity Pulse Oximeter and Heart-Rate Sensor for Wearable Health – Maxim

(3) whilemind/MAX30100u max30100 Library

(4) whilemind/MAX30100u max30100 Class (max30100.py)

(5) whilemind/MAX30100u max30100 Test (test_max30100.py)

(6) mfitzp/max30100 max30100 Library

(7) kontakt/max30100 Library

(8) Amazon MAX30100 Pulse Oximeter Heart Rate Sensor Module – Lysignal

(9) AliEXpress GY-MAX30100 Pulse Oximeter Heart Rate Sensor Module – US$7

(10) TaoBao Risym GY-MAX30100 MAX30102 Pulse Oximeter Heart Rate Sensor Module – ¥35

(11) Amazon MAX30102 Pulse Oximeter Heart Rate Sensor Module

(12) Pulse Oximeter Instructable – MolecularD 2019sep

(13) max30100/102 pulse sensor discussion – ParticleCommunity

(11) TaoBao GY-MAX30100 MAX30102 Pulse Oximeter and Heart-Rate Sensor – ¥35

(12) Pulse Oximeter Instructable – MolecularD 2019sep

(13) Amazon max30102 Pulse Oximeter and Heart-Rate Sensor

(14) Particle.Community max30100 Forum Discussion

(15) Implementing pulse oximeter using MAX30100 Blog – Raivis Strogonovs 2017

(16) Max30100 Heart Rate Monitor Youtube Video – Maxim

(17) AD8232 ECG / Haeart Rate Sensor Rpi.StackExchange Forum Discusson

(18) Oxygen Saturation – Wikipedia

/ to continue, …


Appendix A – MAX30100 Register Map Summary

/ to continue, …


Fig 1 – MAX3010x System Diagram

max30100 system

Fig 2 – MAX3010x Function Diagram

max30100 function diagram

Fig 3 – MAX3010x Register Map Summary

max3010x reg map summary

Categories: Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: