Tag

#ledc

3 tutorials

esp32 beginner 20 min

ESP32: drive a hobby servo with LEDC

Wire a hobby servo to an ESP32 using the LEDC peripheral. The right way to control an SG90 or MG996R without the Servo.h library.

esp32 beginner 20 min

ESP32: drive a piezo buzzer with tone()

Use a piezo buzzer with an ESP32 to play tones, melodies, and alarm sounds. The LEDC peripheral does this in hardware, with no CPU overhead.