Practical Example. ESP32 Web Server with Slider: Control LED Brightness (PWM)
Objectives
The goal in the context of the project is to gain knowledge and skills about the how to add a slider to your web server projects, get its value and save it in a variable that the ESP32 can use. We will use that value to control the duty cycle of a PWM signal and change the brightness of an LED. Instead of an LED you can control traction motor or servo motor, for example. You can also modify the code in this tutorial to add slider to your projects to set a threshold value or any other value that you need to use in your code.
How to do it?
The instructor introduces the students to the material using a multimedia projector or an interactive whiteboard. For this purpose, it uses pre-prepared local and online resources.
The training is carried out to create a software program for remote control a LED Brightness (PWM) using Asynchrony Web Server with Arduino IDE and ESP32.
For examples and training, the following online resourcescould be used: https://randomnerdtutorials.com/esp32-web-server-slider-pwm/