I2C SDA and SCL pins on Pi-Pico

When investigating a Micropython driver for the SparkFun Honeywell Micro-Pressure sensor with @James46717 Here

I did find an i2c bus sniffer using a Pi-Pico on GitHub Here that helped in getting working code.

As well as being an interesting project that dives into the Pico PIO state machines to run fast enough to capture the i2c bus traffic, one can also download a .uf2 file so it is easy to try if anyone is interested.

For testing another Pico…

With an example run…Thonny/Python(left) CoolTerm/Sniffer(right)

HMPR_i2c direct bus sniffer

Can also be used with an Arduino - with a 5V to 3V3 level shifter to the Sniffer Pico…

And an example of the data log…Thonny/Sniffer(left) Arduino/sensor.ino(right)

Enjoy!

6 Likes