I2C Open-Drain Bus & Pull-Up Resistor Rise-Time Scope Lab — Engineering Notes & Troubleshooting
I2C devices can ONLY pull SDA and SCL LOW (open-drain) — they never drive the bus HIGH! External pull-up resistors charge bus capacitance back up to 3.3V/5V: too weak (47 kΩ) turns square waves into slow shark fins; too strong (220 Ω) overloads MCU pins.
Watch out for stacked breakout boards: putting five I2C modules with built-in 10 kΩ pull-ups in parallel drops effective R_p to 2 kΩ!
- Open-drain prevents short circuits when multiple sensors share the exact same 2 wires (SDA + SCL) — nobody ever fights HIGH vs LOW!
- Bus capacitance C_bus + Pull-up R_p creates an RC rise time (t_r ≈ 0.847 × R_p × C_bus): Fast Mode (400 kHz) requires t_r ≤ 300 ns!
- Standard rule of thumb: 4.7 kΩ works great for 100 kHz Standard Mode; use 2.2 kΩ for 400 kHz Fast Mode or longer cables.
| Symbol | Component | Real-World Engineering Tip |
|---|---|---|
| R_p | Dual Pull-Up Resistors (R_SDA, R_SCL) | Internal microcontroller pull-ups (~45 kΩ) are far too weak for reliable 400 kHz I2C — always add real 2.2 kΩ–4.7 kΩ resistors! |
Real-World Bench Scenario: Debugging 'I2C device not found' on ESP32/Arduino: check SDA/SCL aren't swapped, verify 4.7 kΩ pull-ups exist, and run an I2C scanner sketch!
Bench Challenge: Waveform Lab: Switch to 400 kHz Fast Mode with 47 kΩ pull-ups to see shark-fin distortion fail communication, then drop to 2.2 kΩ to restore crisp logic!