So In order to set up a web server from which we can toggle Neopixel Strips or Ring, we need a NodeMCU connected with a Neopixel Strip according to this schematic.
I'm using my custom made WS2812B Breakout board which houses 6 LEDs, well you can use any Neopixel strip with this setup, you just need to change the pixel count according to your strip in code.
- ESP8266 NodeMCU or any ESP12F based Device
- WS2812B Based RGB LED STRIP or Neopixel Strip
- WIFI!
Also, I'm using a Custom WS2812B Strips which was designed in Orcad cadence and its samples were provided by JLCPCB, you can check them out if you want HIGH-Quality PCB service for Less price.
Wiring-wiring is pretty straight forward, just connect the following
- D4 of NodeMCU with Din of LED Strip
- VCC to 3V of NodeMCU
- GND to GND
The first thing we need to do is to upload the attached code to our nodeMCU setup and get the IP address from the serial monitor.
for that just copy the attached sketch, put in your WIFI credentials and upload the sketch to your board, then open the serial port at 115200 baud rate.
(if something isn't showing, just press reset button on your NodeMCU)
also, be sure to change these parameters according to your settings
SSID and Password
Pixel Count and Digital Pin
Now, copy the IP you receive in Google Chrome or any browser on your computer or whatever device you want. just remember this, the device on which you are putting that IP should be connected with the Router in the same network.
After putting the IP, you will be greeted with this web app.
now just click on the Color pellet and change whatever color you like.
and that is pretty much it.
check out my other post on a similar topic-
Comments
Please log in or sign up to comment.