Page 1 of 1

I2C Sniffer

Posted: Mon Feb 21, 2022 1:14 pm
by medelec35
Hi.
Attached is an I2C sniffer that displays details of one or more I2c connected devices.
Sniffer was created on the Uno but it works with 8bit pic as well.
Sniffer_I2C_backpack_address.png
Sniffer_I2C_backpack_address.png (15.02 KiB) Viewed 1954 times
The image shows 3 devices captured.
0x3F [63] is a backpack LCD.
0x56 [86] is a 24C32 EEPROM.
0x68 [104] is a DS3231 RTC .

Note: The I2c addresses scan will repeat every 5seconds.

Re: I2C Sniffer

Posted: Tue Mar 22, 2022 3:16 pm
by medelec35
Some nice improvements for v3

Re: I2C Sniffer

Posted: Thu Jul 28, 2022 1:32 pm
by canary_wharfe
Hi Martin
Just wondering whether your sniffer could test SHT31 humidity/temp sensors? Those sensors transmit both humidity and temp bytes so just wondering if your sniffer would be able to differentiate between the two or whether it would need modifying to interface to the SHT?

Re: I2C Sniffer

Posted: Thu Jul 28, 2022 2:34 pm
by medelec35
Hello.
The sniffer only captures the device's main address and not the individual registers e.g temperature, humidity, pressure, etc.
Its purpose is if you have a device with settable addresses e.g backpack LCD then the correct address will be displayed.

Re: I2C Sniffer

Posted: Thu Jul 28, 2022 3:42 pm
by canary_wharfe
Ah! thanks Martin. I had a quick look over your flowcode and that's what I thought but thought I'd check by asking.
BTW. That's a very nice bit of flowcoding there :-)