I2C Pull-Up Calculator

I2C Pull-Up Calculator

animation
sensors
Try Begin at I2C Speed (kHz): 100, Bus Capacitance (pF): 500 and Supply Voltage (V): 3.3. Reduce capacitance and compare the resistor result with the load warning.
Observe The starting limits are 0.97 to 2.36 kilohms, and the selected resistor is 1.0 kilohm. At 500 pF the bus-load warning remains, while the current readout shows 3.3 mA.
Explain At the opening 100 kHz setting, the rise-time limit divided by capacitance and the RC factor gives maximum resistance; the first listed resistor within both resistance limits is selected.

Technical boundaries. The resistance calculation assumes a 0.4 V low level and a 3 mA sink limit, using 0.8473 for the rise-time factor. The separate current readout uses supply voltage divided by resistance, and the load warning uses a fixed 400 pF threshold.

I2C Pull-Up Calculator

Choose a pull-up that meets both rise-time and current limits for the bus.

Tip

Estimate the maximum pull-up resistance from bus capacitance and rise time. Also check the minimum from each device’s sink-current limit before choosing a resistor.

Diagnosing Pull-Up Issues: Use the endTransmission() return code to identify whether communication failures stem from missing pull-ups, wrong addresses, or bus faults:

Return Code Meaning First Thing to Check
0 Success Device responded at that address
2 Address NACK Wrong address, missing pull-ups, or device not powered
3 Data NACK Register or command byte rejected
4 Other bus error SDA/SCL short, stuck line, or bus conflict

Symptom of missing pull-ups: I2C scanner finds no devices, or communication works intermittently. If you see error code 2 on all addresses, check your pull-up resistors first.

Back to the chapter