ESP32 LEDC PWM Calculator
Work out frequency, resolution and duty-cycle values for the ESP32 LEDC peripheral, then copy ready-to-paste Arduino code.
Open toolUtility tools for makers & developers
PulseForge is a growing set of free browser tools for programming, Arduino, ESP32 and general electronics work — plus everyday developer calculators. No installs, no accounts, just the calculator or converter you need, right now.
Work out frequency, resolution and duty-cycle values for the ESP32 LEDC peripheral, then copy ready-to-paste Arduino code.
Open tool
Type an interval like "500 ms" and get the prescaler, alarm value, and a
working timerBegin() / timerAlarm() sketch.
Select your board variant, click a pin, and instantly see if it's safe for output, PWM/ADC/touch capable, its I2C default, and any boot restrictions.
Open toolEnter your active and deep sleep current, wake interval, and battery capacity to get an estimated runtime in hours/days, plus a chart of where the energy goes.
Open toolEnter your CPU clock and desired baud rate to see the actual achievable rate, the error percentage, and whether it's safely within the ~2% tolerance UARTs need.
Open toolSelect your board variant, click a pin, and instantly see if it's safe for output, PWM/ADC capable, its I2C/SPI default, and any caution notes.
Open toolNo tools found
Try a different search term, like “PWM” or “ESP32”.