ESP32 Calcs

Electronics Calculators — Battery, LED, Divider, PCB Trace, LED Strip

The five calculations every microcontroller project runs into — battery runtime, LED resistors, voltage dividers, PCB trace widths and LED strip power — with the practical traps (Wi-Fi vs ADC2, GPIO current limits, power injection) baked into each answer.

Calculators that say what to do, not just what the number is

A resistor value by itself is useless if it's not a value you can buy, or if the resistor will cook at the power it dissipates. Each calculator here converts the raw formula into a procurement decision: the E24 resistor to order, the standard power rating to buy, the PSU wattage with headroom, the trace width to actually route. Every formula is a pure function with unit tests in the repo — battery runtime uses weighted duty-cycle current, LED resistors use the classic series formula with E24 rounding, PCB traces follow the IPC-2221 chart formula for external and internal layers.

Built for the 3.3 V world

Most online calculators assume 5 V Arduino logic; these are tuned for the ESP32 reality of 3.3 V GPIOs, 12-bit ADCs with attenuation quirks, and an input range that does not tolerate 5 V. Where a calculation has a microcontroller-specific trap — ADC2 dying under Wi-Fi, GPIO current limits when driving an indicator LED, why a 5 V LED strip needs a level shifter on the data line — the answer text calls it out next to the number.

Guides that use these tools