Hi everyone!
Whenever an I²C sensor, OLED, or breakout board didn't show up or behaved weirdly on a breadboard or longer cable, I used to waste way too much time checking pull-ups, wiring, or analyzing oscilloscope signals just to figure out what was actually going on. At some point, I just wished for someone or something that would tell me exactly what the problem is and how to fix it.
So I decided to build one myself :)
The I²C Doctor is a pocket-sized I²C diagnostic tool powered by an ESP32 with a 1.3" TFT color display.
It finds wiring issues, checks the bus quality, provides a health score, and gives recommendations in plain English (instead of just showing raw numbers or waveforms) on what to fix, such as:
- "Fix SCL-GND short"
- "Reduce pullups - Try <= 4.7k (or add parallel)"
- "Increase SCL pullup - Try >= 1.8k (or remove parallel)"
Along the way (and since I overengineered it "a little") I also packed in a few extra tools that may come in handy while tinkering, such as an Address Scanner (with device look-up), Live Monitor, Stress Test, Fault Injection (to test noisy/long lines), Register Dumps, USB/I²C Bridge (to control sensors/actors e.g. with Web Serial), and even a couple of mini-games (because why not xD).
The firmware is now completely open source (BSD 3-Clause) and can be updated via USB or OTA:
https://github.com/Haldemann-Engineering/i2c_doctor_firmware
More details, docs, and links can be found on the project site:
https://i2c-doctor.com
The schematic, some Arduino test scripts, and additional files can be downloaded via:
https://i2c-doctor.com/docs.html#downloads
I would love to hear your honest thoughts about the project and how to further improve it.
What was the most annoying I²C issue you've recently run into and wasted too much time on (and you're willing to admit :p)?