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.
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.
I2C Sniffer
-
- Matrix Staff
- Posts: 1457
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
-
- Posts: 78
- Joined: Thu Dec 10, 2020 3:54 pm
- Has thanked: 6 times
- Been thanked: 11 times
Re: I2C Sniffer
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?
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?
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: I2C Sniffer
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.
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.
Martin
-
- Posts: 78
- Joined: Thu Dec 10, 2020 3:54 pm
- Has thanked: 6 times
- Been thanked: 11 times
Re: I2C Sniffer
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
BTW. That's a very nice bit of flowcoding there