Define the failure before changing code
Consider a low-voltage sensor that sometimes stops responding. This is a hypothetical diagnostic example, not a recorded six-hour repair. Write down which address should respond, what bytes should be sent, when the failure occurs and how the device recovers. A serial log tells you what the firmware thinks it requested; it does not show what reached the pins.
Capture the digital transaction
Connect a compatible analyzer to SDA, SCL and the safe circuit reference. Check voltage limits, select a suitable sample rate, and capture a known-good transaction first. Configure the decoder for the correct channels and address display convention. Compare start, address, acknowledgment, data and stop conditions with the sensor datasheet.
An address NACK can indicate the wrong address, a device not ready after reset or an electrical fault. Missing clocks and a stuck-low line need different investigations. Decoder labels narrow the search; they do not identify a unique root cause.
Check the analog edge before blaming the pull-ups
I2C lines rise through pull-up resistance and bus capacitance. More wiring or additional devices can slow the rising edge. A logic analyzer reduces that voltage to threshold crossings, so a plausible decoded transaction can hide poor voltage margin or slow edges. Use a suitable scope to inspect SDA and SCL levels and rise times at the device.
Compare the result with the applicable I2C mode and device specifications. Do not infer an exact resistance or capacitance from an unrecorded example. The [NXP I2C specification](https://www.nxp.com/docs/en/user-guide/UM10204.pdf) describes pull-up sizing, timing and electrical requirements.
Calculate and verify a change
Pull-up selection balances allowed rise time against the low-level sink-current capability of every participating device. Account for parallel pull-ups already fitted to breakout boards. A lower resistance can improve rise time but demand excessive sink current; a higher resistance can reduce current while slowing edges.
Change one thing at a time. Repeat the same transaction and check both digital response and analog levels under the intended operating conditions. Repeated success is useful evidence for that setup, not a guarantee that a resistor change cures every dropout.
Use the two instruments together
The analyzer is useful for transaction structure and long digital histories. The scope is useful for voltage, ringing, slow edges and supply behavior. A supported scope application may decode I2C too; the absence of a decoder on one setup is not a universal USB-scope limitation.
Save the actual capture, wiring diagram, component values and software versions when documenting a real repair. Without those artifacts, describe the procedure as an example rather than a measured result.
Evidence and limits
This is an instructional example, not a personal lab report. No captured waveform, measured repair result or product ownership is claimed. Exact logic-analyzer sample modes, thresholds, input limits and application support must be checked for the chosen hardware, operating system and software build. A successful protocol decode does not prove electrical compliance.
Software and hardware references
Use the [sigrok supported-hardware list](https://sigrok.org/wiki/Supported_hardware), [PulseView documentation](https://sigrok.org/wiki/PulseView), and the [Saleae Logic documentation](https://support.saleae.com/) for application-specific instructions. For a USB oscilloscope, consult the exact [Hantek 6022BE model and downloads](https://www.hantek.com/products/detail/31) or manufacturer manual. Generic USB connectivity is not a guarantee of operating-system or decoder compatibility.
Frequently Asked Questions
Is this a hands-on product test?
No. This is an instructional source-based discussion. No personal purchase, measured repair outcome or physical comparison is claimed.
Will any USB analyzer work with my computer?
No universal compatibility is established. Check the exact hardware model, operating system, architecture, application and driver requirements before choosing or installing software.
Does a correct decode prove the circuit is electrically sound?
No. A decoder interprets threshold crossings. Use an appropriate oscilloscope and the relevant device specifications to evaluate analog voltage, rise time, ringing and supply behavior.
Gear Mentioned in This Post
Products referenced in this article. Read our full reviews before buying.
Read ReviewPurchase link withheld pending exact product verification. Related Posts
Troubleshooting5 Logic Analyzer Setup Mistakes and How to Diagnose Them
A practical checklist for trigger settings, sample rate, grounding, pre-trigger capture and choosing the right digital tool.
TechniqueGetting Started with a Logic Analyzer: Wiring, Capture and Decoding
A beginner workflow for safe connections, raw captures, triggers, SPI and I2C decoding, and saving useful evidence.
Head-to-headUSB Oscilloscope vs Logic Analyzer for I2C Debugging
Choose analog waveform inspection, digital transaction decoding or both for I2C faults, with device and software limits made explicit.