I2C Sniffer

Use this section to discuss your embedded Flowcode projects.
Post Reply
medelec35
Matrix Staff
Posts: 1432
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

I2C Sniffer

Post 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 1893 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.
Attachments
IC2 Address Sniffer v3.fcfx
(21.51 KiB) Downloaded 140 times
Martin

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: I2C Sniffer

Post by medelec35 »

Some nice improvements for v3
Martin

canary_wharfe
Posts: 78
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 11 times

Re: I2C Sniffer

Post 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?

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 468 times

Re: I2C Sniffer

Post 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.
Martin

canary_wharfe
Posts: 78
Joined: Thu Dec 10, 2020 3:54 pm
Has thanked: 6 times
Been thanked: 11 times

Re: I2C Sniffer

Post 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 :-)

Post Reply