Help with I2C

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
User avatar
Minyiky
Posts: 32
Joined: Sat Oct 24, 2020 5:53 pm

Help with I2C

Post by Minyiky » Thu Dec 09, 2021 7:29 pm

Hi everyone,

I am having some strange errors trying to use I2C and couold use some advice.

I am trying use an esp32 to read from a pressure sensor: https://www.te.com/commerce/DocumentDel ... 0is%20a,TE)%20with%20I2C%20bus%20interface.&text=It%20provides%20a%20precise%20digital,conversion%20speed%20and%20current%20consumption.

I have the address as 0x76, and running i2c.scan() lists an item with value 118 so I am finding the sensor correctly.

I am also able to read the calibration data using i2c.readfrom_mem().

The difficulty I am having is with is sending requests to the device, for example both resetting and requesting ADC reads results. I am trying to use i2c.writeto(adress, reset) but i get OSError: [Errno 19] ENODEV

If anyone has any ideas about this it would be greatly appreciated

Post Reply