An I²C bus that remains low cannot carry an ordinary transaction because SDA and SCL normally return high between transfers. First identify which line is low and whether the bus is powered. A device holding SDA while it finishes a byte is different from a hard short or a device clamping SCL. Do not immediately pulse pins from a microcontroller sketch: the correct recovery depends on the line, the device state, and the controller design.

Understand the idle state and identify the low line
I²C uses open-drain or open-collector signaling with pull-ups. Devices pull SDA or SCL low and release it to allow the pull-up to raise it. When the bus is idle, both lines should normally be high. If SDA is stuck low, the controller may see a busy bus or receive no valid start condition. If SCL is stuck low, clock pulses cannot be delivered in the ordinary way.
Record the controller, sensor modules, supply voltage, pull-up rails, bus speed, and the moment the issue began. Did it follow a brownout, reset, hot-plug, long cable, motor start, or a previous interrupted read? A peripheral that lost power while the controller stayed on can create back-power paths through signal pins. Do not connect or remove modules live unless the hardware is specifically designed for hot-swap.
Make a safe first measurement
Use a high-impedance meter to compare SDA and SCL with the bus logic rail and ground, only when the voltage and ground reference are known. If one line sits near zero and the other rises, that narrows the problem but does not identify the device. A multimeter cannot show all clock pulses or short glitches; an oscilloscope or logic analyzer may help after probe grounding and voltage compatibility are confirmed.
Power down before resistance or continuity checks. Disconnect batteries and USB, and follow the board's discharge procedure. Measure for obvious shorts between each line and ground or supply, but remember that connected ICs and protection circuits affect resistance readings. A low resistance in circuit is not automatically a damaged trace or component. Avoid probing directly across fine-pitch pins with bare tips.
Isolate the bus without creating another fault
1. Check supply and ground first
Confirm each device's supply is within its datasheet range and that the bus pull-ups connect to a logic voltage tolerated by all devices. A sensor that is unpowered while its pins are pulled high may clamp or back-power the bus. Verify the shared ground unless an isolator intentionally separates it.
2. Remove nonessential branches with power off
Disconnect one peripheral or cable at a time, then restore power and observe the lines. If the bus returns high after one device is isolated, investigate that branch's wiring, reset state, power rail, and device documentation. Do not hot-unplug an ordinary breakout from a live bus.
3. Inspect pull-ups and shorts
Check for solder bridges, crushed wires, conductive debris, and multiple pull-ups that are too strong when placed in parallel. Pull-up resistance affects rise time and sink current; do not substitute random values. Use the bus specification and every device's electrical limits.
4. Reset the specific peripheral if available
If the device provides a hardware reset input, use its documented timing and polarity. A peripheral reset can release a line more predictably than cycling the entire board. Do not drive a reset pin above its logic rail or treat an undocumented pin as reset.

When bus-clear clock pulses are appropriate
The I²C specification describes a bus-clear approach for a data line stuck low: the controller can send up to nine clock pulses so a peripheral that stopped mid-byte can finish shifting its data. This is not a universal cure for every low line. If SCL itself is stuck low, the specification's preferred approach is hardware reset when available; otherwise reset or power-cycle the devices to clear the condition. A short, failed power rail, or a damaged pin will not be repaired by clock pulses.
Only use a bus-clear routine if the controller supports open-drain behavior, the voltage levels are correct, and no other controller is active. The routine must release the line rather than drive it high push-pull, monitor whether SCL can actually rise, and stop if the line stays low. It should follow the controller and peripheral manuals. A GPIO bit-bang sketch that blindly drives SDA/SCL can damage devices or fight another bus participant.
After a recovery attempt, restore the hardware peripheral to the correct pin mode, reinitialize the I²C controller, and confirm both lines return high before issuing a start. Read the sensor's status or identity register rather than assuming that a bus that recovered is fully correct. If the device has a reset input, use it as documented and verify the whole transaction.
| Line state | Possible cause | First recovery direction |
|---|---|---|
| SDA low; SCL can rise | Interrupted byte, device state, short, or unpowered peripheral loading SDA | Isolate branches; consider documented reset or up-to-nine-pulse bus clear |
| SCL low | Peripheral clock stretching, short, wiring fault, or device held in reset/low-power condition | Identify the device; prefer its hardware reset or controlled power cycle |
| Both low | Supply/ground problem, short, multiple devices holding lines, or wrong pull-up rail | Power down and inspect the electrical path before any recovery pulses |
| Lines rise when a branch is disconnected | Fault or state local to that branch | Review that device's supply, reset, wiring, and protection circuitry |
| Lines high but communication still fails | Address, timing, signal quality, controller configuration, or device command issue | Capture a transaction and check its ACK/NACK and timing against the datasheet |
Prevent repeated lockups
Enable a suitable I²C timeout when the microcontroller framework provides one, while understanding what the timeout does and does not reset. Use recovery logic that reports which line is low and avoids an endless retry loop. Consider a peripheral reset line, bus switch, or power control for a branch that can legitimately lock up. These design choices should be reviewed against the device's startup sequence and any safety constraints.
Reduce avoidable bus stress: keep wiring within the design's capacitance and speed limits, use a common signal reference, avoid parallel pull-ups that are too strong, and separate I²C wires from noisy switching nodes when practical. If a motor or relay shares the supply, inspect transient supply behavior and grounding. Changing the clock to a slower rate may help signal margin but cannot fix a hard short or a device that clamps a line.

Stop conditions and reporting
Stop if the bus connects to a high-voltage, safety-critical, or unknown system; if a device becomes hot; or if the logic supply is unclear. Record which signal is low, its measured idle voltage, devices disconnected, reset/power-cycle result, and any transaction capture. Those observations separate a recoverable mid-transfer state from a wiring or hardware fault.
If neither line is stuck but the scan reports no address, use our I²C scanner guide. The scanner workflow and bus recovery solve different symptoms.
Distinguish a peripheral wait from a short
Some I²C targets may hold SCL low temporarily while stretching the clock within their documented behavior. That is not automatically a hard bus fault. Compare the duration with the target datasheet and controller timeout. If SCL never releases, the stretch may have become a lockup, the device may have lost power, or the line may be physically shorted. A logic capture and branch isolation help distinguish these cases.
A device can also hold SDA low after a controller reset interrupted a transfer. The nine-pulse method is intended to let that device finish shifting the remaining bits; it should be followed by a valid STOP/reinitialization sequence where the controller supports it. Do not create extra clocks while another controller may own the bus or while a target is performing a timing-sensitive operation.
Build recovery into the design deliberately
For a product that must recover unattended, define how the controller detects a stuck bus, what timeout applies, whether the target has a reset pin, and whether a branch power switch is available. Log the line state and recovery attempt. After recovery, reinitialize the peripheral and verify a known identity or status read. If recovery repeatedly recurs, fix the cause—power sequencing, layout, pull-ups, firmware timeout, or the failing device—instead of hiding it with endless retries.
Primary references
- NXP/Nexperia UM10204: I²C-bus specification — bus-clear guidance and electrical behavior.
- Arduino Wire reference — I²C API and timeout caveats.
- Arduino Support: pull-up resistors — connection requirements and board-specific checks.
Sources consulted 6 November 2026. The nine-clock procedure applies to specified SDA-low conditions; it is not a substitute for isolation, hardware reset, or repair of a physical short.
Be the first to leave a comment.