ESP 8266 Nodemcu Ws 2812 Neopixel Based LED MOOD Lamp Controlled Using Webserver
by electronicGURU in Circuits > Arduino
10821 Views, 10 Favorites, 0 Comments
ESP 8266 Nodemcu Ws 2812 Neopixel Based LED MOOD Lamp Controlled Using Webserver
In this Project we'll make a MOOD Lamp from nodemcu & neopixel and which can be controlled by any browser using local webserver.
Basic Idea
Hello guys in this instructables i made MOOD LAMP based on Neopixel LED Ring with Nodemcu ESP 8266 and the Lamp is controlled by webserver hosted by nodemcu on the device. So the basic idea to is create a web server by nodemcu and to access that local web server by phone/PC browser & then sending commands by that page to control Neopixels LED by that local web server & light up the Lamp in different colors with different brightness by sending commands from the interface hosted by local web server and there are different modes to see different pattern lights , so enjoy making your own neopixel based web server controlled MOOD LAMP
Gather Your Components
BUY PARTS:
BUY Nodemcu ESP8266:
https://www.utsource.net/itm/p/8673408.html
BUY WS2812 LED :
https://www.utsource.net/itm/p/8673712.html
BUY WS2812 LED Ring:
https://www.utsource.net/itm/p/8673715.html
////////////////////////////////////////////////////////////////////////////
To make this project we need three basic components
1- ws 2812 led ring or strip
2-Nodemcu esp8266
3- usb cable for power
Affiliate Buying link :-
Nodemcu (esp8266)-
https://www.banggood.com/NodeMcu-Lua-WIFI-Internet...
https://www.banggood.com/3Pcs-NodeMcu-Lua-WIFI-Int...
https://www.banggood.com/Wemos-NodeMCU-V3-CP2102-L...
Ws2812 neopixel (12 bit) ring -
https://www.banggood.com/3Pcs-CJMCU-12-Bit-WS2812-...
https://www.banggood.com/CJMCU-12-Bit-WS2812-5050-...
Ws2812 neopixel (7bit) ring-
https://www.banggood.com/5Pcs-CJMCU-7-Bit-WS2812-5...
https://www.banggood.com/3Pcs-CJMCU-7-Bit-WS2812-5...
Ws2812 neopixel (3 bit) ring -
https://www.banggood.com/5pcs-CJMCU-3bit-WS2812-RG...
https://www.banggood.com/CJMCU-3bit-WS2812-RGB-LED...
Ws2812 neopixel led strip -
https://www.banggood.com/AUDEW-1M4M5M-RGB-SMD5050-...
https://www.banggood.com/4-PCS-WS2812-5V-Taillight...
https://www.banggood.com/0_5M1M2M3M4M5M-DC5V-USB-R...
Prepare Your Circuit
The circuit is really simple all you need to do is connect the nodemcu Vin pin to Vcc of neopixel since we are using Vin pin of nodemcu for neopixel so don't use more than 5v as power for node mcu that's why i used usb cable supply then connect Gnd of nodemcu to Neopixel Gnd & Din pin of the neopixel to the D2 pin on nodemcu.
Upload the Code
Download the zipped code from the given link :-
https://drive.google.com/file/d/1QV6wmMxV9W_SGnshp...
then open it in ARDUINO ide & in the code set the neopixel pin to D2 ( whatever the pin of data of neopixel is connected to nodemcu) then number of pixels which mean the no of LEDs on your neopixel then imput your ssid of your router or mobile hotspot upload the code.
Prepare Enclosure
i made a box of cardboard to cover the electronics & the cap of LED bulb as a diffuser to make the light uniform in all direction, you can design whatever you like.
Final Step : Let's Test It
In the final step let's the cable then the nodemcu will look for the network of which it has ssid & pass in the code and if network is found it will connect , now get any device connected to the same network or use same mobile of which you are using hotspot and from the browser type the IP as 192.168.4.1 (mine is 192.168.43.72 because i have changed it if you haven't changed yours try the given outside this bracket) and if you wanna know your ip then connect nodemcu to the PC & then open serial monitor & you'll get the IP then access the web server using that ip from browser & change the color brightness & mode of neopixel fron the browser & enjoy your own light show from your own MOOD LAMP .For issues refer video for better understanding.
Thanks...