How to interface max30102 with esp32.
Is there any library or we can get the sensors value by the adc of max30102??
Interfacing ESP32 with Max30102
Re: Interfacing ESP32 with Max30102
Haven't downloaded the datasheet but I see I2C and the ESP32 I2C bus is here http://docs.micropython.org/en/latest/e ... ml#i2c-bus
Would have to dig-into the register descriptions to determine how to read the ADCs.
Have you seen this https://www.cnx-software.com/2020/08/31 ... hr-sensor/
Would have to dig-into the register descriptions to determine how to read the ADCs.
Have you seen this https://www.cnx-software.com/2020/08/31 ... hr-sensor/
- rcolistete
- Posts: 352
- Joined: Thu Dec 31, 2015 3:12 pm
- Location: Brazil
- Contact:
Re: Interfacing ESP32 with Max30102
See the topic "How to adapt a python library to micropython?", which cites A Python library for the Maxim MAX30100 pulse oximetry chip (Port for MicroPython).
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).
Re: Interfacing ESP32 with Max30102
Hi, I don't want to necropost, but just to inform that I wrote a driver ( https://github.com/n-elia/MAX30102-MicroPython-driver ) which basically is a port of the C++ Sparkfun library. Feel free to test and contribute
Re: Interfacing ESP32 with Max30102
Hi n-elia!
Thanks a lot
I have some issues with the driver, can you help me?
first, it never found the MAX, until I changed the SoftI2C to I2C. Now it connect correctly, but only sense "4 , 4"
Have some idea what i doing wrong?
Regards!
Thanks a lot
I have some issues with the driver, can you help me?
first, it never found the MAX, until I changed the SoftI2C to I2C. Now it connect correctly, but only sense "4 , 4"
Have some idea what i doing wrong?
Regards!
Re: Interfacing ESP32 with Max30102
Hi, sorry but I missed that message!
You should tune the sensor's settings. Very low values are common if there is nothing near the sensor's glass.