viewof i2cWireLength = Inputs.range([5, 300], {value: 30, step: 5, label: "Total wire length (cm)"})
viewof i2cNumSensors = Inputs.range([1, 15], {value: 3, step: 1, label: "Number of sensor breakouts"})
viewof i2cHasOled = Inputs.toggle({label: "OLED display on bus", value: false})
viewof i2cSensorCap = Inputs.range([5, 30], {value: 10, step: 1, label: "Per-sensor capacitance (pF)"})I2C Bus Capacitance Estimator
I2C Bus Capacitance Estimator
animation
sensors
protocols
Try Start with Total wire length (cm) at 30 and Number of sensor breakouts at 3. Turn on OLED display on bus to see its effect on the total.
Observe With Per-sensor capacitance (pF) at 10 and OLED off, the total is 60 pF with 340 pF margin. Adding the OLED changes the status to exceeds limit.
Explain Total wire length (cm) contributes wire capacitance, and Number of sensor breakouts multiplies Per-sensor capacitance (pF). The OLED toggle adds a fixed capacitance before comparison with the limit.
Technical boundaries. The estimator assumes 100 pF per metre of wire and adds 400 pF for the OLED as its worst-case allowance. It uses a 400 pF pass threshold without calculating pull-up resistance, rise time or device-specific timing.
TipI2C Bus Capacitance Estimator
Estimate total bus capacitance to determine if your I2C bus will work reliably. The I2C specification limits bus capacitance to 400 pF for standard mode and fast mode.