Electrical Energy Calculator
Calculate electricity use from power and duration, or constant DC voltage and current. Compare energy use over different operating times in watt-hours, kilowatt-hours and joules.
Open toolInteractive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.
Find the I2C pull-up resistor range from supply voltage, bus capacitance and the Standard-mode, Fast-mode or Fast-mode Plus limits, and the rise time of a chosen resistor.
Choose the bus mode: Standard-mode (100 kHz), Fast-mode (400 kHz), Fast-mode Plus (1 MHz) or Custom limits.
Enter the pull-up supply voltage and the bus capacitance of one line.
For Custom limits, enter the rise-time limit, the LOW-level voltage and the sink current from your devices' data sheets.
Read the pull-up range. Optionally enter the resistor you plan to fit to see its rise time and LOW-level current.
Copy result copies labelled values; Reset restores the starting fields.
I2C lines are open-drain: devices only pull SDA and SCL low, and a pull-up resistor brings them back high. The line charges through the resistor into the bus capacitance, so a larger resistor or more capacitance makes a slower rising edge.
The specification measures rise time between 30 % and 70 % of the supply. For an RC charge that interval is 0.8473 × R × C, which sets the largest resistor: Rp(max) = tr / (0.8473 × Cb). A 10 % to 90 % rise time (2.2 × R × C) is a different measurement and gives a different answer.
When a device pulls the line low it must sink the current through the pull-up and still stay below the LOW-level voltage. Standard and Fast-mode devices guarantee 3 mA at 0.4 V and Fast-mode Plus devices 20 mA, which sets the smallest resistor: Rp(min) = (VDD − VOL) / IOL. Below 2 V the specification uses 0.2 × VDD at 2 mA.
Limitations: the tool treats each line as one resistor charging one lumped capacitance. It ignores input leakage, series protection resistors, current-source or switched pull-ups, bus buffers, High-speed and Ultra Fast modes, and clock-timing limits other than rise time. Bus capacitance must be estimated or measured; data-sheet pin capacitance alone underestimates it. When no resistor fits, reduce the capacitance, use a slower mode, or use a buffer or switched pull-up (UM10204 section 7.2).
Rise time: tr = 0.8473 × Rp × Cb, measured from 0.3 × VDD to 0.7 × VDD.
Largest pull-up: Rp(max) = tr / (0.8473 × Cb).
Smallest pull-up: Rp(min) = (VDD − VOL(max)) / IOL.
Limits: Standard-mode tr 1000 ns, Cb 400 pF, 3 mA at 0.4 V; Fast-mode 300 ns, 400 pF, 3 mA at 0.4 V; Fast-mode Plus 120 ns, 550 pF, 20 mA at 0.4 V; at VDD of 2 V or less, Fast-mode and Fast-mode Plus use 0.2 × VDD at 2 mA.
LOW-level current: I = (VDD − VOL(max)) / Rp.
Fast-mode, 3.3 V, 200 pF: 966.667 Ω to 1.77033 kΩ. Rp(min) = (3.3 − 0.4) / 0.003; Rp(max) = 300 ns / (0.8473 × 200 pF). This is TI's worked example.
Fast-mode, 5.5 V, 3 mA: Rp(min) 1.7 kΩ; at 300 ns it allows at most 208.3 pF. UM10204 section 7.2.4 quotes about 200 pF.
Fast-mode Plus, 3.3 V, 550 pF: 145 Ω to 257.502 Ω. 20 mA sink current and 120 ns rise time.
Fast-mode, 5 V, 400 pF: No resistor fits: Rp(min) 1.53333 kΩ is above Rp(max) 885.165 Ω. Boundary case. With devices that sink 6 mA at 0.6 V (Custom limits) the range is 733.333 Ω to 885.165 Ω.
Chosen 4.7 kΩ on a 100 pF Fast-mode bus: rise time 398.231 ns, too slow for 300 ns. Common mistake: 4.7 kΩ is a Standard-mode habit; it meets 1000 ns but not Fast-mode.
Fast-mode, 1.8 V: Rp(min) 720 Ω. Below 2 V: VOL = 0.2 × 1.8 = 0.36 V at 2 mA.
NXP UM10204 I2C-bus specification and user manual, Rev. 7.0 (section 7.1, Tables 10 and 11)
Available now
Calculate electricity use from power and duration, or constant DC voltage and current. Compare energy use over different operating times in watt-hours, kilowatt-hours and joules.
Open tool →Available now
Add up to 20 resistors in series using Ω, kΩ or MΩ for circuit analysis and electricity calculations, with a diagram and running total.
Open tool →Available now
Convert absolute temperatures between Celsius, Fahrenheit and kelvin.
Open tool →Given the fact that this was my first purchase and I made it thinking I was buying genuine Yihua products, this has been a setback. I received a lesser known OEM brand called MYTO and while both the products seem to be similar from appearance, my real contention is the quality and quantity of the brass wool. On top of that not informing the customer about the unavailability of the Yihua product and instead sending a product from a different brand is also antagonising. Henceforth, I might just have to think twice before ordering from ThinkRobotics.
TOF MINIF Range Sensor - UART TOF Time-of-Flight Laser Range Sensor
We are disappointed with our recent order experience. We clearly communicated our requirement for 433 MHz antennas on WhatsApp, but the issue remains unresolved. We have been following up for more than 10 days and are still waiting for a proper refund resolution.
As a regular B2B customer, we expected better support. This experience has affected our trust in ThinkRobotics, and we may have to consider other suppliers for future purchases. We request a fair and prompt refund.
Anodised Aluminium Cup Head Washers (Pack of 10)