# ESP-IDF tutorial series: PWM

DevFeed: [ESP-IDF tutorial series: PWM](<https://devfeed.tech/articles/esp-idf-tutorial-series-pwm-13792.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/2026/08/pwm-ledc-light/>)

Author: John Lee

Published: 2026-08-03T00:00:00Z

Content type: tutorial

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [ESP-IDF](<https://devfeed.tech/topics/esp-idf.md>), [Tutorial](<https://devfeed.tech/topics/tutorial.md>), [Espressif](<https://devfeed.tech/topics/espressif.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [blog](<https://devfeed.tech/tags/blog.md>), [channel](<https://devfeed.tech/tags/channel.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [devkit](<https://devfeed.tech/tags/devkit.md>), [esp-idf](<https://devfeed.tech/tags/esp-idf.md>), [espressif](<https://devfeed.tech/tags/espressif.md>), [generate](<https://devfeed.tech/tags/generate.md>), [ledc](<https://devfeed.tech/tags/ledc.md>), [peripheral](<https://devfeed.tech/tags/peripheral.md>), [pwm](<https://devfeed.tech/tags/pwm.md>), [signal](<https://devfeed.tech/tags/signal.md>), [speed](<https://devfeed.tech/tags/speed.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

## AI overview

This ESP-IDF tutorial explains pulse-width modulation, including duty cycle, switching frequency, and average voltage. It demonstrates PWM generation with the LEDC peripheral on Espressif devices and describes converting PWM to DC with an RC filter, including ripple and response-speed tradeoffs.

## Source excerpt

This article explains what a PWM signal is, and how to generate PWM signal using the ledc peripheral on Espressif devices. It covers the LEDC timer and channel configuration, and shows how to convert a PWM signal into a clean DC value using an RC filter, including the tradeoffs between ripple and response speed.