Build An Esp32 Web Server With A Slider Control For Led Brightness Part 2

Опубликовано: 01 Ноябрь 2024
на канале: LETS CODE FOR THE OLDER FOLKS
660
23

In this video we will complete the sketch and complete the build of an ESP32 web server with a slider to control the LED brightness.

The ESP32 hosts a web server that displays a web page with a slider;
When you move the slider, you make an HTTP request to the ESP32 with the new slider value;
The HTTP request comes in the following format: GET/slider?value=SLIDERVALUE, in which SLIDERVALUE is a number between 0 and 255. You can modify your slider to include any other range;
From the HTTP request, the ESP32 gets the current value of the slider;
The ESP32 adjusts the PWM duty cycle accordingly to the slider value;
This can be useful to control the brightness of an LED (as we’ll do in this example), a servo motor, setting up a threshold value or other applications.

Link: https://www.sunfounder.com/?ref=0t149dpc
Link: https://shareasale.com/r.cfm?b=945115...