Pico as I2C sniffer ?


Author Message
58kk90
Regular Member

Joined: 14/06/2023
Location: United Kingdom
Posts: 82
Posted: 07:55am 29 Aug 2026      

I urgently need to capture some data between a piece of old test equipment and it's battery.
Looking on the scope I believe it to be either SMbus or I2C which are essentially very similar as far as I can tell for just two devices on the bus.
I am not at home currently so I don't have access here to logic analyser or bus pirate, but I do have a couple of Pi Pico's in my laptop bag, does anyone have any quick and dirty code to sniff I2C data and output it to raw bytes to the terminal?

Tony