Control RGB Led Using Wled

by Next Builder DIY in Circuits > LEDs

442 Views, 11 Favorites, 0 Comments

Control RGB Led Using Wled

R_20250227_083104_0000.jpg

To decorate your lighting set-up, WS2812B RGB led is the one of the best option. To control the these addressable led, we need a Microcontroller like ESP32 and also have to upload the code. Writing code to control addressable LEDs isn’t difficult, but what if you just want to add some ambient lighting to your living room or office and manage it all from your smartphone? Currently the best option, hands down, is WLED.

If you're not familiar with WLED, the WLED Project is a web server that controls LEDs and SPI-based chipsets. It can control two types of LED strips: digital addressable and analog non-addressable. WLED also provides open protocols to communicate with platforms like Amazon Alexa, Google Assistant, and Phillips Hue, it is based on both ESP controllers, and it is completely open-source. And also allow You to control the whole lighting set-up with just a help of your smartphone.

Special Thanks to JLCMC, your premier destination for high-quality mechatronic parts, offering over 600,000 products across 130 categories, including mechanical components, linear motion systems, transmission parts, and more. With a commitment to genuine products, competitive pricing, and fast delivery—stock items ship within 24 hours—JLCMC streamlines your procurement process, reducing costs and enhancing efficiency. Plus, enjoy free downloads of 2D and 3D CAD files to empower your designs. Register now using this link & get $60 Monthly MC discount on your purchase!

Supplies

  1. ESP32 Microcontroller
  2. WS2812B RGB Led
  3. LED Connector

Firmware Upload

WLED-Installation-Page.png
WLED-Select-COM-Port.png
WLED-Install-Button.png
WLED-Final-Installation-Confirmation.png
WLED-Installing.png
WLED-Installation-Complete.png
WLED-Visit-Device.png
  1. First go to official website of Wled. Here you can see the option for installation. Also you can select the version of Wled, my recommendation is to use the latest version. Click on Install.
  2. Now Connect Your ESP32 Microcontroller with your laptop. At the right side you'll see the option for com port selection. Select your connected Port and click on connect. Also Make sure that CP2102 Driver is pre-installed in your laptop. If it's not, then download it from here.
  3. Now you'll see two options Install WLED/ Logs & Console. Simply Click on install Wled to upload the firmware into ESP32.
  4. If you're getting errors then press the BOOT Bouton for 2 Seconds, it will erase all your data from ESP32.
  5. Now re-click on install to upload the firmware once again.
  6. Now it'll just take only 2 minutes to upload the firmware.
  7. After 2 minutes you'll see congratulations Installation Complete message, simply Click on Next
  8. Now enter your SSID and Password of your wifi network, make sure your smartphone and Wled application is connected with same wifi network. After entering the details, click on Next.
  9. Now You have successfully completed the installation process, simply Click on Visit Device for LED Configuration.

WLED Application

Blue Plain Simple 3D Illustration Photo Screenshot Instagram Post_20250225_161425_0000.png
Blue Plain Simple 3D Illustration Photo Screenshot Instagram Post_20250225_161537_0000.png
Blue Plain Simple 3D Illustration Photo Screenshot Instagram Post_20250225_161454_0000.png
Yellow and Black Grunge Self-love Motivational Phone Wallpaper_20250225_175227_0000.png

First Install WLED Application from Play Store or App Store & open it.

  1. Click on plus icon at the right side
  2. Now click on discover lights
  3. You'll found your Connected ESP32 as {Found WLED}
  4. Click on found WLED. Now You will see a interface where it it will show you that your ESP32 is connected with WiFi network and also show you it's IP address.
  5. Now click on that, and get a interface where you can control the whole RGB led set-up with just one click.

Configuration

Untitled design_20250225_173736_0000.png
Blue Plain Simple 3D Illustration Photo Screenshot Instagram Post_20250225_161632_0000.png
Untitled design_20250225_173856_0000.png
Blue Plain Simple 3D Illustration Photo Screenshot Instagram Post_20250225_161721_0000.png

Now you have to do the configuration of LED. You can do this same process from your laptop or smartphone also. I prefer Smartphone, just follow the above steps and open the application, Click on Configure option at the right side.

LED preferences
  1. Now click on LED preferences.
  2. Scroll Down a little bit, you'll see a coloum of Hardware Setup, from here you can do some following changes;)
  3. LED Length
  4. LED Type
  5. GPIO Number
  6. Colour Order
  7. Change the data according to your set-up.
  8. Click on save to save the changes.
Wifi Setup
  1. Now click on wifi setup, from here you can change the SSID and Password of your wifi network.
  2. After Changing the data, click on Save to save the data.

Conection

IMG_20250219_150726.jpg

Now Connect your Ws2812b RGB led strip with your ESP32 Microcontroller. You may follow the above image for reference.

Testing

F6FOXK6M7J2JYG2.png
Yellow and Black Grunge Self-love Motivational Phone Wallpaper_20250225_175118_0000.png

Power up your ESP32 microcontroller with 5v adapter. Open the Wled application and click on connected LED, now from here you can change colour, effect, also can add a timer and much more. You can also get a music control option. Just explore the app.

Conclusion

Control RGB Led Using Wled - No Coding Required || Beginner Guide

In my opinion Wled is the best option for controlling RGB led, whether you are a beginner or professional in electronic. It allow to control the RGB led with a lot of effects at free of cost plus no coding required.

Watch the full tutorial on my YouTube channel & Stay Connected.