Introduction: IOT : ESP 8266 Nodemcu Controlling Neopixel Ws2812 LED Strip Over the Internet Using BLYNK App
Hello guys, in this instructables i made a light using neopixel led strip which can be controlled over the internet from all around the world using the BLYNK APP and nodemcu is working as the brain of this project, so make your ambient light for your room using nodemcu with neopixels.
Step 1: Gather Your Components
you'll need following components for this project : -
Nodemcu ESP 8266
NEOPIXEL led strip / led ring
Affiliate Buying link :-
neopixel led strip :-
Ws2812 neopixel (12 bit) ring -
Ws2812 neopixel (7bit) ring-
Ws2812 neopixel (3 bit) ring -
Ws2812 neopixel led strip -
Step 2: Circuit
The circuit design is totally simple since we have only three wires in NEOPIXEL 5V ,Gnd & Din wire so we have to connect the 5V wire of NEOPIXEL to the Vin pin on nodemcu (since we are using Vin pin as 5V pin for NEOPIXEL so you cannot connect more than 5v as a input supply to nodemcu so make sure you are powering with usb cable otherwise you'll destroy your neopixel so be careful ,make sure input supply is 5v) then connect Gnd of neopixel to Gnd of nodemcu & then connect the Din pin of nodemcu to any digital pin of nodemcu as you can see in the picture i have connected it to pin "D2" and if you have issues with circuit go for video to avoid problems.
Step 3: Setup the BLYNK App
open the BLYNK app then create a new project and select Board as nodemcu then it'll sent a auth token to your email id then from widget list pic zebra widget and then click on it then in zebra app click on "merge" and select virtual pin "v2"
Step 4: Code
Download the code from the given link :-
Open the code and set the no of LEDs as i set 30 for mine set the Din pin of neopixel as mine is D2 and set the Virtual pin you used in blynk app as i set as V2 and in the Blynk.begin function set as
Blynk.begin(auth token, ssid , password);
In this function enter your auth token sent to your email id and put ssid & password of the network.then upload the code to nodemcu.
Step 5: Test the Project
so connect the power cable and run the app and click anywhere on zebra and you'll see that led strip will glow in the color you clicked on the app so you can change the color whatever you want over the internet so make your own , have fun.