Finished my pocket-sized I²C diagnostic tool

Dec 02, 2026 Last reply: 13 hours ago 4 Replies
Jump to replies (4)

Show and tell: after too many hours staring at a scope trying to figure out why a sensor wouldn't come up on the bus, I built myself a tool that just tells me what's wrong. It runs on an ESP32 with a 1.3" TFT color display, fits in a pocket, and hooks up to a breadboard or cable in seconds.



What it does is pretty simple in theory. It looks for wiring faults, grades the overall condition of the bus with a health score, and then prints fixes in plain words instead of raw hex. Things like 'Fix SCL-GND short' or pull-up advice such as going <= 4.7k or >= 1.8k depending on what it sees. No more guessing which resistor to swap. I went a bit overboard on extras, since that's half the fun. There's an address scanner with a chip database, a live traffic view, a stress test mode, fault injection for simulating noisy or long runs, register dumps, a USB to I²C bridge so I can poke devices from a laptop, and yes, a couple of tiny games because the screen was there anyway. The case has navigation buttons, status LEDs, and DIP switches to pick 10k, 4.7k, 2.2k, or 1k pull-ups on each line, plus pin headers and a Qwiic-style connector so it plays nice with most breakouts. Firmware is up on GitHub under the BSD 3-Clause license, and it updates over USB or OTA if I feel like adding features at 1am. Link in my profile for anyone curious. Curious what odd bus gremlins other folks here have chased down lately.


This one hits close to home because of a Grove versus Qwiic mix-up I had. The connectors look almost identical, but the pinouts are different, and plugging a Grove-pinout cable into a Qwiic port can send +5V down the wrong wire. That is worth saying up front for anyone buying leads to use with a tool like yours. If you ever do a second revision, having it detect and flag incorrect, correct and crossover cables would be a genuinely handy feature, because that mistake is easy to make at a cluttered bench and the results are not fun. My own version of a bus debugger was much cruder, just a scanner sketch and a pile of breakouts, and the plain-language fixes are the part I always lacked. Working out which resistor to pull off the board took up half my debugging sessions, so the pull-up suggestions in particular appeal to me. One question on the Qwiic port: does the firmware warn before bridge mode connects, or is that left to the user? The fault injection mode alone has me tempted to build one.

Where you built a dedicated gadget, my answer to the same problem is a drawer with a multimeter, a bag of assorted pull-up resistors and a lot of patience, and the plain-English fixes are the part I'm honestly a bit jealous of. Half an hour into poking at a bus I've usually talked myself into the wrong diagnosis, so something that just tells me what to fix would save me from my own second-guessing.

The DIP switches for swapping resistor values without digging through the parts bag is a smart bit of design. I keep my loose resistors in labelled bags, and picking the right one out under a desk lamp is its own little gamble every time. One question about the stress test and the live monitor. When a bus passes the health check but a device still drops out now and then, does the tool flag anything on its own, or is that the sort of marginal case where you end up staring at the live view hoping to catch it? That grey area is where my current method just shrugs and hands me a coffee.

The stress test mode is the bit that grabbed me. I've had a bus that looked fine on a quick scan, then fell over the second I actually ran the thing for a while, and I'd have no clue where to start. Being able to hammer it and watch what happens sounds like exactly the missing piece. How does the health score work, though? Is it weighted toward wiring faults, or does slow traffic count against it too? Also love that you snuck games on there, that's the kind of scope creep I respect.

The DIP switches for the pull-ups are the bit that takes me back. We used to solder a diffrent resistor in by hand every time a bus got cranky, and you could smell the flux before you found the fault. Being able to just flip a switch and try 10k against 1k without the iron coming out is the old way, done right. Question for you though: when it suggests going under 4.7k or over 1.8k, does it also tell you which of the four switch positions matches, or do you work that out from the silkscreen? And does the register dump work on devices that need a register set before they'll talk?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required