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.
Estimate distance from an ultrasonic echo time, or the echo time for a distance, using the speed of sound in air at a set temperature.
Choose Echo time to distance or Distance to echo time.
Choose Air temperature and enter it, or choose Enter speed for another medium.
Enter the round-trip echo time or the distance, with its unit, or drag the echo time slider.
Read the distance or echo time, the speed of sound used and the temperature sensitivity.
Copy result copies labeled values; Reset restores the starting example.
An ultrasonic ranger sends a short burst of sound and times the echo. The sound travels to the target and back, so the distance is the speed of sound times half the echo time.
In air the speed of sound depends mainly on temperature. For an ideal gas it is the square root of γRT/M: about 331 m/s at 0 °C and 343 m/s at 20 °C, rising by about 0.6 m/s per degree. Pressure does not change it.
Fixed rules such as dividing microseconds by 58 for centimetres assume about 344.8 m/s, which is air at roughly 23 °C. On a cold morning the same rule overstates distance by a few percent.
Limitations: the formula is for dry air with constant γ. Humidity adds up to about 0.5 % near room temperature, and wind, temperature gradients, soft or angled targets, the sensor's blind zone, beam width and timing resolution all add error. The tool does not model any particular sensor.
Speed of sound: c = sqrt(γ × R × T / M). γ = 1.4, R = 8.314462618 J/(mol K), M = 0.0289644 kg/mol, T in kelvin.
Kelvin: T = θ + 273.15 for θ in °C; θ = (θ_F - 32) × 5 / 9.
Distance: d = c × t / 2. t is the round-trip echo time.
Echo time: t = 2 × d / c.
Sensitivity: Δd / d ≈ ΔT / (2 × T).
Echo 5.831 ms, air at 20 °C: 1.00071 m. c = 343.24 m/s; 343.24 × 0.005831 / 2.
Distance 1 m, air at 20 °C: 5.82688 ms. 2 × 1 / 343.24 s.
Echo 5.831 ms, air at 0 °C: 0.965967 m. c = 331.32 m/s; the 20 °C answer would be 3.6% too long.
Echo 580 μs, air at 20 °C: 9.95387 cm (58 μs/cm rule: 10 cm). Common mistake: the rule assumes about 344.8 m/s.
Echo 10 ms, entered speed 1481 m/s: 7.405 m. Fresh water near 20 °C; half of 1481 × 0.01.
NIST CODATA: molar gas constant
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)