I2C Sniffer

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.
Post Reply
chipfryer27
Valued Contributor
Posts: 1868
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 408 times
Been thanked: 632 times

I2C Sniffer

Post by chipfryer27 »

Hi

Ages ago Medelec35 created a very useful I2C address "sniffer" which has now made its way to the WiKi / Examples. A very useful little device it is too. Today, trying to get a lolin-lite talking to a new I2C LCD display that uses an I2C backback, I was getting nowhere fast. I had remapped SDA/SCL so of course being an ESP that too might have been causing issue.

Using the "sniffer" I had every address returned. Not good as this means no communications for whatever reason. However it didn't take too long to discover that if I used Software instead of Channel in the I2C Master, then the sniffer could detect my backpack at the correct address 0x27[39].

Setting my test chart, which only looped flashing the word "TEST" I had high hopes using the address. Nothing......... Changed to Software mode.... Nothing..... Still going nowhere fast (which according to Jim Steinman is how you should be going nowhere).

Investigation continued, and I'm not saying how long for, but it is sometimes helpful to turn the display contrast away from "minimum".........

Display works in Software mode and Channel.

Regards

Post Reply