EzloPi Dimmable LED Example
Requirements
- Hardware Requirements
- 1 ESP32 or ESP32S3 flashed with EzloPi firmware
- 1 LED light
- 2 Jumper wires
- Software Requirements
- EzloPi desktop application
- Vera mobile application
Circuit connection in ESP32
![](https://www.ezlopi.com/wp-content/uploads/2022/12/LED-Example-img-1024x670.png)
Adding dimmable LED from EzloPi desktop application
- Connect the ESP32 to the computer and open the EzloPi desktop application.
- Scan, select and open the serial port, connecting to the ESP32.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/Adding-dimmable-LED.png)
3. Click on the ‘Add Device’ button as shown below.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/Add-device-LED.png)
4. Select ‘PWM’ option from the dropdown menu.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/LED-Select-PWM.png)
5. Configure the LED:
- Give it a name.(“Dimmable LED” for example)
- Select the GPIO number; almost all of the GPIO pins support PWM output.
- Select the resolution; 12 bits recommended.
- Set device subtype to “Generic PWM Load”
- Select the frequency in Hertz to desired value.
- Set the duty cycle.
- Then click “OK”
![](https://www.ezlopi.com/wp-content/uploads/2022/12/Configure-the-LED-1.png)
6. Device name, type, subtype and GPIOs are displayed in the screen; click on “set config” to burn the configurations to the ESP devices.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/set-config-LED.png)
7. Finally, reset the device by clicking on “Reset”.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/Reset-LED.png)
Dimmable LED in Vera Mobile Application
Login to the Vera app using username and password.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/HCSR04-mobile-application-1.png)
1. Identify the device with dimmable LED and click to connect to the device; wait while loading.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/ESP32-Configure-WiFi-1.png)
2. The dimmable LED connected will be shown in the ‘Devices’ panel.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/dimmable-LED.png)
3. Click on the device to open a slider that can change the duty cycle of the
dimmable LED.
![](https://www.ezlopi.com/wp-content/uploads/2022/12/LED-dimmable.png)