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.
Convert a Hall-effect current sensor's output voltage to current, or current to output voltage, from its sensitivity in mV/A and zero-current output, with ratiometric supply scaling.
Choose Output voltage to current or Current to output voltage.
Choose Fixed for sensors whose zero output is set by a reference pin, or Ratiometric for sensors whose output scales with the supply.
Enter the supply voltage and the datasheet sensitivity and zero-current output (for ratiometric sensors, the datasheet supply and the zero output as a percentage of supply).
Enter the measured output voltage, or the current and its unit.
Read the current or output voltage, the values used and the ideal range. Copy result copies labeled values; Reset restores the starting fields.
A Hall-effect current sensor turns the magnetic field around its internal conductor into a voltage. Over its rated range the output is the zero-current output plus the sensitivity times the current, so one subtraction and one division give the current.
Bidirectional sensors sit at half the supply at 0 A so current in either direction can be measured. Unidirectional versions start near 10 % of the supply to give one direction more of the output range.
In a ratiometric sensor such as the ACS712 or ACS724, both the zero output and the sensitivity scale with the supply voltage. If the ADC uses the same supply as its reference, the supply change cancels. If the ADC has a fixed reference, the actual supply must be used, or a 4.8 V supply read with 5 V values gives a large error. Fixed-sensitivity sensors such as the TMCS1100 set the zero output with a reference pin instead.
Limitations: the tool uses the ideal linear transfer function and ideal ratiometry. It ignores offset and sensitivity errors and their temperature drift, nonlinearity (1.5 % typical for the ACS712), noise, bandwidth and real ratiometry coefficients (1.3 typical for ACS724 sensitivity). Outputs saturate before the supply rails, and accuracy is specified only over the rated current range. Converting the output to ADC counts is not included.
Output: Vout = V0 + S × I. S in V/A (mV/A ÷ 1000), I in A, V0 and Vout in V.
Current: I = (Vout - V0) / S.
Ratiometric scaling: S = S_nom × VCC / V_nom; V0 = k × VCC, with k = 0.5 (bidirectional) or 0.1 (unidirectional).
Fraction of supply: Vout / VCC = k + (S_nom / V_nom) × I.
Ideal range: I(0 V) = -V0 / S; I(VCC) = (VCC - V0) / S.
ACS712-05B at 5 V: 185 mV/A, zero output 2.5 V, output 2.87 V: 2 A. (2.87 - 2.5) / 0.185.
Same sensor, current -3 A: 1.945 V. 2.5 + 0.185 × (-3): current in the other direction lowers the output.
Ratiometric 185 mV/A at 5 V, 50 %, supply 4.8 V, output 2.75 V: 1.97072 A (with 5 V values: 1.35135 A). Common mistake: at 4.8 V the zero output is 2.4 V and the sensitivity 177.6 mV/A.
ACS724-10AU unidirectional: 400 mV/A, 10 % of 5 V, output 2.5 V: 5 A. (2.5 - 0.5) / 0.4.
TMCS1100A2 fixed: 100 mV/A, reference 2.5 V, output 1.9 V: -6 A. (1.9 - 2.5) / 0.1; the sign shows the direction.
ACS712-05B at 5 V: ideal range: -13.5135 A to 13.5135 A. Boundary: the rails, not the rated ±5 A, set this range; accuracy is specified only to ±5 A.
Allegro AN296181: error specifications for linear Hall-effect current sensors
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 →Nice audio board working as expected.
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)