Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

mlx90614 3V and ESP32-S2 Feather S2 won't work reliabily
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

mlx90614 3V and ESP32-S2 Feather S2 won't work reliabily

by jfranklyn on Tue Apr 20, 2021 7:30 pm

Hello,
I'm trying to get the mlx90614 3v working with circuitpython and an ESP32-S2 FeatherS2. I was able to get this to work once and not again.
I'm running this:
Adafruit CircuitPython 6.2.0-beta.1 on 2021-01-27; FeatherS2 with ESP32S2

I've attached this wiring that I'm using. I'm using the code from mlx90614_simpletest.py.
I'm entering these lines of code in the console:
import board
import busio as io
import adafruit_mlx90614
i2c = io.I2C(board.SCL, board.SDA, frequency=100000)
mlx = adafruit_mlx90614.MLX90614(i2c)

The last line give me this error:
No I2C device at address: 5a

I've tried the following:
new ESP32-S2
new mlx90614 3v
new wiring
new breakout board

If I un-plug the USB power and re-connect, it will display the the temperatures only once. If I run the code again I get the no i2c device at address 5a error.

Any help would be greatly appreciated. Thanks

jfranklyn
 
Posts: 34
Joined: Fri Mar 13, 2020 6:50 pm

Re: mlx90614 3V and ESP32-S2 Feather S2 won't work reliabily

by tannewt on Wed Apr 21, 2021 4:55 pm

Update to CircuitPython 6.2.0 stable first. It has fixes in it for I2C on the S2.

tannewt
 
Posts: 2390
Joined: Thu Oct 06, 2016 8:48 pm

Re: mlx90614 3V and ESP32-S2 Feather S2 won't work reliabily

by jfranklyn on Thu Apr 22, 2021 12:45 pm

thanks for all your help. I've upgraded my featherS2's to circuitpython 6.2 and now the i2c connections are working well. This was driving my to the crazy as I couldn't figure out what I was doing wrong.

jfranklyn
 
Posts: 34
Joined: Fri Mar 13, 2020 6:50 pm

Re: mlx90614 3V and ESP32-S2 Feather S2 won't work reliabily

by tannewt on Fri Apr 23, 2021 12:58 pm

Glad it's working now! It wasn't you. There were weird I2C gremlins.

tannewt
 
Posts: 2390
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.


cron