You are on page 1of 8

instructables

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi

by shababmf

strip connected to ESP8266 via web server.


ht t ps://www.yout ube.com/embed/85sbsVVXKZM

Credit for the original idea and the code goes to


Hey Guys.
Aircoookie.

This is my second instructable.


Link to Original Project: WLED

In this instructable we will control WS2812 RGB LED

Step 1: Materials Required

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 1


1. ESP8266 to be on safe side.

- I used NodeMCU LOLIN Board, but practically any 4. Enclosure


ESP8266 board will work
- I repurposed an old LED ceiling lamp
2. 5V WS2812 RGB LED strip
5. Dupont cables
3. 5V Power Supply
6. Soldering Iron
- Salvaged from old charger. The wattage depends on
the number of LEDs in the strip. Each LED draws 7. Hot Glue Gun
around max 50mA. For this project there are 30 LEDs,
so 50mA X 30 LED = 1500 mA (1.5A). I used a 2A supply

Step 2: Construction

For the enclosure i repurposed an old Ceiling LED lamp. Removed the back cover and took out the LED driver board
and the LEDs. Then xed the WS2812 RGB strip to the inside of the lamp. This was little bit di cult as the WS2812
was bigger and thicker than the old LEDs. I used generous amount of hot glue to keep the strip in place.

Once the WS2812 strip is xed the further steps are pretty straight forward.

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 2


Step 3: Circuit

The connections are pretty simple

1. Connect the +5V from the Power Supply to the "VIN" of the ESP8266 and the "+5V" of the WS2812.

2. Connect the GND from the Power Supply to the "GND" of the ESP8266 and the "GND" of the WS2812

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 3


3. Connect the D4 pin of the ESP8266 to the "DATA" of the WS2812

Once the connections were done all wires were secured to the back of the lamp using glue.

Step 4: Code

I am not an expert on the coding part, all I did was copy the code from the original project by Aircoookie.

Please refer this link for details.

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 4


Step 5: User Interface

Once powered up, the ESP8266 will look for I did also try to interface it with Blynk, but the
con gured WiFi networks. If not found it will go to connection was sluggish and it will use up all your
Access Point Mode (AP) and create a WiFi connection Blynk energy.
with name "WLED-AP" and password "wled1234". Once
connected to this AP, go to IP Adress 4.3.2.1 on your Read through the github for full information.
browser. This will connect you to the webserver. You
have a lot of options to con gure, but the most Once again all the credit goes to Aircoookie
important is the number of LEDs. You can also
con gure your home WiFi credentials if you like. Thats Thanks for reading through my instructable. Have
it!!! fun.

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 5


ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 6
Step 6: Watch the Video

Watch the patterns and styles video

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 7


ht t ps://www.yout ube.com/embed/yWM5u3O v2nE

ESP8266 Connected WS2812 RGB LED Controlled Through WiFi: Page 8

You might also like