SunFounder ESP32 Starter Kit
2.5 Video 5: LED Fade - Controlling LED Brightness
This tutorial covers controlling LED brightness by fading in or out using the SunFounder ESP32 module:
• LED Brightness Control: Explains controlling LED brightness using PWM (Pulse Width Modulation). Dis-
cusses digital signals, duty cycles, and how varying duty cycles control LED brightness.
• Wiring Diagram and Setup: Provides a detailed wiring diagram for connecting an LED with a 220 Ohm resistor
to the ESP32. Demonstrates the physical setup on a breadboard.
• Code Explanation: Describes the Arduino code for fading an LED. Covers functions like ledcSetup,
ledcAttachPin, and ledcWrite, explaining parameters and usage.
• Practical Demonstration: Shows how to upload the code to ESP32, check the wiring, and observe the LED
fading effect. Tips for adjusting fade speed and brightness levels.
This comprehensive guide is ideal for beginners to learn about LED control with ESP32, offering step-by-step instruc-
tions, code details, and practical demonstrations.
Video
Related On-line Tutorials
• 2.2 Fading
2.6 Video 6: Controlling RGB LEDs
This comprehensive tutorial provides a step-by-step guide to understanding and implementing RGB LED control using
the ESP32, from basic concepts to practical applications.
• RGB LED Overview: Describes the structure and functionality of RGB LEDs, including common anode and
cathode setups.
• Wiring Guide: Provides details on connecting the RGB LED to the ESP32 module.
• Code Explanation: Discusses the Arduino code necessary for manipulating RGB LED colors through PWM
channels.
• Color Control Demo: Demonstrates how to create different colors by adjusting the red, green, and blue values
on the ESP32.
Aimed at beginners, the tutorial offers a comprehensive introduction to using RGB LEDs with the ESP32 module.
Video
Related On-line Tutorials
• 2.3 Colorful Light
2.5. Video 5: LED Fade - Controlling LED Brightness 255