Hello, I’m having an issue with I2C on the AMB82-Mini. I’m using Arduino IDE v 2.3.3, and so far, everything else functions properly. However, the board fails to connect to any I2C device (MPU6050, AHT10). It will however correctly identify the device address when using the provided I2C scanner example. I checked the clock and data pins with a scope while running the I2C scanner and found them to be floating instead of being pulled-up as they should be. I checked my setup on a correctly working esp32 and the clock/data lines were pulled up as expected, data/clock signals were also observed every 5 seconds. I did not see any clock/data signal with the AMB82. - Does anyone know what could be causing this? I’m running the latest boards package from Ameba, v 4.0.7. Thanks for any help!
hi Kevin, nice to meet you.
I got similar issue with i2c sht21 sensor.
I’ve added an HW pull up of 4.7K resistor on both SDA and SCL.
I tryed both direct vin and gdn connection and PIN low high to switch on and off sensors.
scanner works perfectly on both scenario but no way to get data.
packege is the 4.0.8
IDE is the 2.3.4
Scanner works correctlly and I get 0x40 address but no way to get data from sensor.
Any suggestion please.
Thanks in advance
JUST ANOTHER TRY:
aht20 same issue
both sensors works right on another MCU [esp32s3]
Hi @Rubens_Zambelli,
I think you will need to debug from the library you are using. Your SHT21 sensor is a slave device right? Need to check whether master device is not writing properly or the device is not reading properly.
Thank you.
Hi thanks for your answer.
yes, sht21 is a slave.
I’m using wire library, nothing specific for SHT21 and wire.endtrasmission show that the write is gone properly. the problem is that I receive back 0.
Any specific check should I’ve to do? I’m not an expert but I learn fast.
thanks
r
Hi @Rubens_Zambelli,
You can check using the logic analyzer on the SDA and SCL pins. Test it out specific APIs whether writing to the slave device is working or not.
Also, please do check common issues that users faced for the library. Amb82 iic wire problem - #13 by ren_yucheng. You will need to add a delay of 1ms after calling Wire.requestfrom() API.
Thank you.
Hi Kelvin,
currently I’ve not a logic analyzer but I will buy one. Sounds good have it anyway.
I moved to DHT22 sensor, similar result and less issues.
I’ve tried with the 1ms delay and many other try but no chance to have sht21 working.
if anyone has any suggestion or a piece of code working, it will be welcome.
ciao
r