Close Menu
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
Facebook X (Twitter) Instagram
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn
How To Electronics
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
How To Electronics
Home » Blynk Controlled WS2812B Neopixel LED Strip with NodeMCU
ESP8266 Projects IoT Projects

Blynk Controlled WS2812B Neopixel LED Strip with NodeMCU

Mamtaz AlamBy Mamtaz AlamUpdated:August 21, 20224 Comments4 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
WS2812B NodeMCU
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

In this tutorial, we will use the IoT Android app called Blynk to control WS2812B Neopixel addressable LED Strip with NodeMCU ESP8266. We will use WIfi to control RGB LED Strip wirelessly from any part of the world.


Overview

The most popular decorative item used during Festivals like Eid, Christmas & Diwali are LEDs. The LED light during the night makes everything looks beautiful. But most of the LED available only produce a single colour. So to create a multicolour beautiful light pattern we can use RGB LED. But here we will create such pattern ourselves using multiple colours LED strips.

We will use WS2812B Neopixel RGB LED Strip and interface it with NodeMCU ESP8266 Board. With the help of wifi network, we will control RGB LED Strip wirelessly from anywhere. We will download the Blynk Android app from play store and configure it for controlling LED Pattern, colour & brightness. We will learn about the working principle of WS2812B RGB LED Strip.

You can go through one of our previous project: Interfacing NeoPixel LED Strip WS2812B with Arduino for Rainbow Color



Bill of Materials

S.N.Components QuantityPurchase Links
1NodeMCU ESP82661Amazon | AliExpress
2WS2812B Neopixel LED Strip1 StripAmazon | AliExpress
35V, 2A Power Adapter1Amazon | AliExpress
4Resistor 200-0hm1Amazon | AliExpress
4Connecting Wires10Amazon | AliExpress
5Breadboard1Amazon | AliExpress

WS2812 NeoPixel LED Strip Construction & Working

WS2812 LED strips are addressable and programmable Flexible LED strips. These LED Strips are powered by a 5050 RGB LED with a WS2812 LED driver integrated within it.

WS2812B RGB LED Strip
Depending on the intensity of the three individual Red, Green, and Blue LEDs we can simulate any colour we want. What’s great about these LEDs is that we can control even the entire LED strip with just a single pin from our microcontroller board.

Each RGB LED consumes 60mA (20mA+20mA+20mA) current and can be powered from a 5V DC supply. Each LED has three connectors at each end, two for the powering and one for the data. The arrow indicates the data flow direction. The data output pad of the previous LED is connected to the Data Input pad of the next LED. We can cut the strip to any size we want, as well as the distance the LEDs using some wires.




Interfacing WS2812B Neopixel LED Strip with NodeMCU ESP8266

Now let us interface WS2812B Neopixel LED Strip with NodeMCU. The Circuit diagram & connection is given below.

WS2812B Neopixel LED ESP8266 ConnectionSupply 5V to VCC Pin and connect the GND to GND. Connect the digital output pin to any of the digital pins of NodeMCU. In my case, I used D2 Pin.

Neopixel LED Strip Nodemcu


Setting up the Blynk Android App

Blynk is an application that runs over Android and IOS devices to control any IoT based application using Smartphones. It allows you to create your Graphical user interface for IoT application. Here we will set up the Blynk application to control NeoPixel LED over Wi-Fi using NodeMCU ESP8266.


So download and install the Blynk Application from Google Play store. IOS users can download from the App Store. Once the installation is completed, open the app & sign-up using your Email id and Password.

Now click on “New Project”. In the pop up set the parameters like Project name, Board and connection type as shown in the photo above. For this NeoPixel ESP8266 project select the device as NodeMCU and connection type as Wi-Fi. Then click on Create.

Now click on the “+” sign to add the widgets. We need an RGB Color Picker which is listed as “zeRGBa” and a slider to control the brightness of the LED strip.

After dragging the widgets, set their parameters as shown in image above. Click on ZeRGBa set the Output option to “Merge” and set the pin to “V3”. Similarly, in Slider settings, set the output pin to “V2.”

After the successful creation of the Project, go back to setting and click on Send Email. You will get an Authenticate ID on registered mail. Save the Authenticate ID for future reference.


Source Code/Program

Once the hardware setup is done, now we need to upload the code to the NodeMCU ESP8266-12E Board. But before that you need to install 2 libraries.
1. FastLED.h Library: Download
2. BlynkSimpleEsp8266.h Library: Download

Also before uploading the code make sure to make the following changes in the code. Change the Authenticate ID, WiFi SSID & Password.



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#define BLYNK_PRINT Serial
#include <BlynkSimpleEsp8266.h>
#define FASTLED_ESP8266_RAW_PIN_ORDER
#include "FastLED.h"
#define NUM_LEDS1 60
#define LED_TYPE    WS2812
#define COLOR_ORDER GRB
CRGB leds1[NUM_LEDS1];
char auth[] = "8aZvLCBN36c90JivMOW2btEkBNjQvGOS";
char ssid[] = "Fimo";
char pass[] = "Fimo@!23";
#define PIN1 D1
int data=255;
int r,g,b;
void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  FastLED.addLeds<LED_TYPE, PIN1, COLOR_ORDER>(leds1, NUM_LEDS1).setCorrection( TypicalLEDStrip );
}
 
BLYNK_WRITE(V3)
{
  r = param[0].asInt();
  g = param[1].asInt();
  b = param[2].asInt();
 
  static1(r, g, b,data);
}
 
void loop()
{
  Blynk.run();
}
BLYNK_WRITE(V2)
{
data = param.asInt();
static1(r, g, b,data);
}
void static1(int r, int g, int b,int brightness)
{
  FastLED.setBrightness(brightness);
  for (int i = 0; i < NUM_LEDS1; i++ )
  {
    leds1[i] = CRGB(r, g, b);
  }
  FastLED.show();
}


 

Controlling Color & brightness of NeoPixels LED strips with Blynk

After uploading the code to the NodeMCU Board using Arduino IDE, you can control the colour and brightness of NeoPixels LED strips from the Blynk mobile app. Some samples images are shown below.

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6


Video Tutorial & Guide

WS2812B Neopixel RGB LED Strip control via Blynk & NodeMCU ESP8266
Watch this video on YouTube.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleInterfacing LoRa SX1278 with STM32 – Sender & Receiver
Next Article Interfacing NRF24L01 Transceiver Module with STM32 Tx/Rx

Related Posts

ESP32 Fingerprint Attendance System with Live Web Dashboard

ESP32 Fingerprint Attendance System with Live Web Dashboard

Updated:June 21, 2026
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

Updated:June 14, 2026
DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

Updated:May 10, 20262K
IoT Activity Tracker with ESP32 & Accelerometer Gyroscope

IoT Activity Tracker with ESP32 & Accelerometer/Gyroscope

Updated:May 2, 2026

ESP32 IoT Vehicle Motion Analyzer with MPU6050 & LIS3MDL

Updated:April 27, 20261K
High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

Updated:April 27, 20262K
View 4 Comments

4 Comments

  1. paul Denham on August 19, 2020 11:21 PM

    what does it cost? not enough energy?

    Reply
  2. ayberk on December 20, 2020 3:18 AM

    Hi Mr. Alam. Is it possible to control these RGBs individually with slider on blynk app. For example select the LED-23 with slider, set its color and hold it then select another LED and set. This might be interesting.

    Reply
  3. Target on December 16, 2021 5:34 AM

    Or use wled .. which is free

    Reply
  4. Luz on November 26, 2022 12:12 PM

    Does not work with that specific library – some code has changed – #define PIN1 D1 does not work

    Reply

CommentsCancel reply

Latest Posts
ESP32 Fingerprint Attendance System with Live Web Dashboard

ESP32 Fingerprint Attendance System with Live Web Dashboard

June 21, 2026
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

June 14, 2026
DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

May 10, 2026
IoT Activity Tracker with ESP32 & Accelerometer Gyroscope

IoT Activity Tracker with ESP32 & Accelerometer/Gyroscope

May 2, 2026
A Guide to Sourcing Obsolete ICs for Vintage Projects

Beyond AliExpress: A Guide to Sourcing Obsolete ICs for Vintage Projects

April 21, 2026

ESP32 IoT Vehicle Motion Analyzer with MPU6050 & LIS3MDL

April 27, 2026
Building a Smart Sensor Node with a BLE Microcontroller

Building a Smart Sensor Node with a BLE Microcontroller

February 26, 2026
High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

April 27, 2026
Top Posts & Pages
  • ESP32 Fingerprint Attendance System with Live Web Dashboard
    ESP32 Fingerprint Attendance System with Live Web Dashboard
  • IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
    IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
  • 12V DC to 220V AC Inverter Circuit & PCB
    12V DC to 220V AC Inverter Circuit & PCB
  • ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
    ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
  • IoT Based ECG Monitoring with AD8232 ECG Sensor & ESP32
    IoT Based ECG Monitoring with AD8232 ECG Sensor & ESP32
  • How to use Modbus RTU with ESP32 to read Sensor Data
    How to use Modbus RTU with ESP32 to read Sensor Data
  • Half Wave Rectifier Basics, Circuit, Working & Applications
    Half Wave Rectifier Basics, Circuit, Working & Applications
  • How to use INA226 DC Current Sensor with Arduino
    How to use INA226 DC Current Sensor with Arduino
Categories
  • Arduino Projects (197)
  • Articles (60)
    • Learn Electronics (19)
    • Product Review (15)
    • Tech Articles (28)
  • Electronics Circuits (46)
    • 555 Timer Projects (21)
    • Op-Amp Circuits (7)
    • Power Electronics (13)
  • IoT Projects (205)
    • ESP32 MicroPython (7)
    • ESP32 Projects (82)
    • ESP32-CAM Projects (15)
    • ESP8266 Projects (76)
    • LoRa/LoRaWAN Projects (22)
  • Microcontrollers (38)
    • AMB82-Mini IoT AI Camera (4)
    • BLE Projects (18)
    • STM32 Projects (19)
  • Raspberry Pi (93)
    • Raspberry Pi Pico Projects (57)
    • Raspberry Pi Pico W Projects (12)
    • Raspberry Pi Projects (24)
Follow Us
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
About Us

“‘How to Electronics’ is a vibrant community for electronics enthusiasts and professionals. We deliver latest insights in areas such as Embedded Systems, Power Electronics, AI, IoT, and Robotics. Our goal is to stimulate innovation and provide practical solutions for students, organizations, and industries. Join us to transform learning into a joyful journey of discovery and innovation.

Copyright © How To Electronics. All rights reserved.
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Looks like you're using an ad blocker. Please allow ads on our site. We rely on advertising to help fund our site.