oxullo / Arduino-MAX30100

Arduino library for MAX30100, integrated oximeter and heart rate sensor
GNU General Public License v3.0
192 stars 135 forks source link

Stuck at "MAX30100 Initializing.." #27

Closed nazmibojan closed 7 years ago

nazmibojan commented 7 years ago

Troubleshooting checklist

Description of the issue

Hello, I just run MAX30100_Tester and get stuck in serial monitor at "Initializing MAX30100.." Why was that happened? My MAX30100 - Arduino Wiring: VIN -> 3.3V GND -> GND SDA -> SDA SCL -> SCL INT -> D2

Regards, Nazmi max30100 stuck

Output from MAX30100_Tester example

Initializing MAX30100..

Details of my setup

oxullo commented 7 years ago

This is most likely to be an I2C communication issue.. As far as I can see from the photo, the module you're using equips already the pullups resistors for the I2C bus, but check if you have 3V3 on SDA and SCL lines with no running firmware.

oxullo commented 7 years ago

Check also #22 In theory, using 3.3V for the I2C communication instead of a 5V on a 5V device, might introduce such issues. MAX30100 datasheet indicates 5V as maximum VIN for the two LEDs, so you could try to switch VIN of the module to the Arduino's 5V. But make sure the voltage regulator unit of your breakout board is rated for it.

nazmibojan commented 7 years ago

Thanks @oxullo ! You're right that this is an issue of voltage at SDA and SCL. I used Logic Level Converter to solve this problem. This is an example of wiring Arduino and my MAX30100 Module:

llc_s0gyzxkk4m

Regards, Nazmi

oxullo commented 7 years ago

Thanks for posting your solution! I'll add a note to the troubleshooting

fawadrashid commented 4 years ago

Thanks @oxullo ! You're right that this is an issue of voltage at SDA and SCL. I used Logic Level Converter to solve this problem. This is an example of wiring Arduino and my MAX30100 Module:

llc_s0gyzxkk4m

Regards, Nazmi

Can you provide code of your sketch as well ?

fawadrashid commented 4 years ago

Thanks @oxullo ! You're right that this is an issue of voltage at SDA and SCL. I used Logic Level Converter to solve this problem. This is an example of wiring Arduino and my MAX30100 Module: llc_s0gyzxkk4m Regards, Nazmi

Can you provide code of your sketch as well ?

Never mind I found the code. Thanks for the tip on using a logic converter

mayur-003 commented 9 months ago

Can you provide code for it

mayur-003 commented 9 months ago

Thanks @oxullo ! You're right that this is an issue of voltage at SDA and SCL. I used Logic Level Converter to solve this problem. This is an example of wiring Arduino and my MAX30100 Module: llc_s0gyzxkk4m Regards, Nazmi

Can you provide code of your sketch as well ?

Never mind I found the code. Thanks for the tip on using a logic converter Give the code please