Shop by category
Shop all componentsAnalog circuits
R min = (Vdd − 0.4 V) ÷ I OL (3 mA, or 20 mA in Fm+)R max = t r ÷ (0.8473 × C b)3.3 V bus at 400 kHz with 200 pF: R min = 2.9 ÷ 0.003 = 967 Ω, R max = 300 ns ÷ (0.8473 × 200 pF) = 1.77 kΩ. A 1.2 kΩ or 1.5 kΩ pull-up works.
I²C lines are open-drain: devices only pull SDA and SCL low, and pull-up resistors bring them back high. Too large a resistor and the lines rise too slowly for the clock speed; too small and devices cannot pull them low enough.
Many breakout boards already include 4.7 kΩ or 10 kΩ pull-ups, and several boards on one bus put them in parallel. If you have long wires or many modules and see random errors, calculate the range here and check the effective value with a multimeter.
4.7 kΩ suits most 100 kHz buses at 3.3 V or 5 V. Faster buses or long wires need lower values, such as 2.2 kΩ.
Many modules include 4.7 kΩ or 10 kΩ pull-ups. With several modules on one bus they add in parallel, so remove some if the total drops below about 1 kΩ.
The lines rise too slowly, edges round off and you get read errors, especially at 400 kHz.
R min = (Vdd − 0.4 V) ÷ I OL (3 mA, or 20 mA in Fm+); R max = t r ÷ (0.8473 × C b).
3.3 V bus at 400 kHz with 200 pF: R min = 2.9 ÷ 0.003 = 967 Ω, R max = 300 ns ÷ (0.8473 × 200 pF) = 1.77 kΩ. A 1.2 kΩ or 1.5 kΩ pull-up works.
Geekobot builds that use it include Laser distance meter, Non-contact IR thermometer, Handheld soil moisture meter and Sound level meter. Each has the full parts list, wiring and code.
Results are estimates for design and learning. Check critical designs against the component datasheet. Made by the Geekobot Learning Team. How we write our calculators