ESP32 Arduino Tutorial | 05 PWM Output

ESP32 Arduino Tutorial | 05 PWM Output Smoothly control LED brightness with ESP32 β€” learn PWM, duty cycle, and frequency, then create a breathing LED with analogWrite() and the LEDC API. In this lesson, you'll learn how PWM works, understand duty cycle and frequency, build a breathing light two ways (analogWrite() and the ESP32 LEDC API), and combine analog input with PWM output to control LED brightness with a potentiometer. πŸ”— Resources ───────────────────── Written tutorial & code: https://docs.waveshare.com/ESP32-Ardu... arduino-esp32 API Reference: https://docs.espressif.com/projects/a... Arduino Reference: https://docs.arduino.cc/language-refe... Get the ESP32-S3-Zero: https://www.waveshare.com/esp32-s3-ze... Get the ESP32-S3-Zero-Basic-Kit: https://www.waveshare.com/esp32-xx-ba... ⏱️ Timestamps ───────────────────── 00:00 Opening 00:36 PWM 02:08 PWM on ESP32 03:15 Hands-On Practice 03:56 analogWrite() 06:16 LEDC API 07:48 Control LED Brightness with a Potentiometer 09:11 Recap πŸ“‹ What You'll Need ───────────────────── ESP32-S3-Zero development board Breadboard LED 330Ξ© resistor (220Ω–1kΞ© acceptable) Potentiometer (for the extension exercise) Jumper wires USB-C cable πŸ“Ί Full Series ───────────────────── Β Β Β β€’Β ESP32Β ArduinoΒ GettingΒ StartedΒ TutorialΒ Β  🏒 About Waveshare ───────────────────── Waveshare Electronics provides development boards, displays, sensors, and accessories for embedded systems and IoT development. 🌐 Website: https://www.waveshare.com?&aff_id=Wav... πŸ“– Wiki: https://docs.waveshare.com