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

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

Screenshot_20180611-205356.png
Screenshot_20180611-213709.png

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

Screenshot_20180611-234858.png

Prepare Your Circuit

Screenshot_20180611-235232.png

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

Screenshot_20180612-001145.png

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

Screenshot_20180612-001545.png
Screenshot_20180612-001553.png
Screenshot_20180612-001611.png
Screenshot_20180612-001629.png

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

Screenshot_20180612-002032.png
ESP 8266 Nodemcu ws 2812 Neopixel based LED MOOD Lamp controlled using webserver
Screenshot_20180612-002727.png
Screenshot_20180612-002734.png
Screenshot_20180612-002740.png

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...