Interfacing ESP32 with Max30102

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
makram
Posts: 13
Joined: Thu Aug 13, 2020 7:14 pm

Interfacing ESP32 with Max30102

Post by makram » Tue Sep 01, 2020 7:45 am

How to interface max30102 with esp32.
Is there any library or we can get the sensors value by the adc of max30102??

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Interfacing ESP32 with Max30102

Post by davef » Tue Sep 01, 2020 10:42 am

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/


User avatar
n-elia
Posts: 7
Joined: Wed May 19, 2021 10:57 pm

Re: Interfacing ESP32 with Max30102

Post by n-elia » Wed May 19, 2021 11:03 pm

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 :)

jcarugno
Posts: 1
Joined: Fri Jan 14, 2022 10:36 pm

Re: Interfacing ESP32 with Max30102

Post by jcarugno » Sat Jan 15, 2022 1:39 am

Hi n-elia!

Thanks a lot :D

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!

User avatar
n-elia
Posts: 7
Joined: Wed May 19, 2021 10:57 pm

Re: Interfacing ESP32 with Max30102

Post by n-elia » Tue Jun 07, 2022 5:15 pm

jcarugno wrote:
Sat Jan 15, 2022 1:39 am
Hi n-elia!

Thanks a lot :D

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!
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.

Post Reply