I2C Scanner - different behavior compared UNO to ESP
Posted: Thu Apr 09, 2015 3:18 pm
Hi,
very often I use the i2c scanner, which can be found on the Arduino Playground.
I only added
void setup()
{
Wire.pins(0, 2);
Wire.begin();
The response of the scanner is that i2c devices are found on each scanned adress, which is understandable not correct. I have connected light sensor with adresses 0x10 and 0x11. When I analyse the signals with a logic analyser I found correct ACK only for this adresses. I looked at the library code, but I couldn't find any differences between ESP and Arduino. Here is the picture I took with the logic analyser
You see that adress 0x10 sends ACK while the others don't (NAK).
Reading the sensor is also working as expected
Anybody here who can analyse the i2c library?
Regards
Reinhard
very often I use the i2c scanner, which can be found on the Arduino Playground.
I only added
void setup()
{
Wire.pins(0, 2);
Wire.begin();
The response of the scanner is that i2c devices are found on each scanned adress, which is understandable not correct. I have connected light sensor with adresses 0x10 and 0x11. When I analyse the signals with a logic analyser I found correct ACK only for this adresses. I looked at the library code, but I couldn't find any differences between ESP and Arduino. Here is the picture I took with the logic analyser
You see that adress 0x10 sends ACK while the others don't (NAK).
Reading the sensor is also working as expected
Anybody here who can analyse the i2c library?
Regards
Reinhard