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 » IoT Home Automation using Blynk & NodeMCU ESP8266
ESP8266 Projects IoT Projects

IoT Home Automation using Blynk & NodeMCU ESP8266

Mamtaz AlamBy Mamtaz AlamUpdated:August 3, 20234 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
Home Automation Blynk
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

Overview: Home Automation using Blynk & ESP8266

In this project we learn how to make IoT Based Home Automation Project using Blynk & NodeMCU ESP8266. One of the most common & popular hobby projects you will come across the internet is Smart Home Automation Project. By Home Automation we mean controlling lighting, climate, entertainment systems, and appliances without a manual switch. It may also include home security such as access control and alarm systems. When connected with the Internet, home devices are an important constituent of the Internet of Things (“IoT”).

In this Home Automation System, we will control 4 home appliances as Tv, Fan, Bulb, Motor, Refrigerator connected to Relay using Blynk Application. The Wifi Module NodeMCU ESP8266 will Receive commands from the smartphone wirelessly through the internet. To encode the ON/OFF signal and send it to Server and to ESP8266 Board we need the best IoT Platform. So we chose Blynk as no other application can be better than this one. This project requires internet connectivity & can’t work without Internet connection.

Before moving forward to this project, you can check our previous project:
1. Home Automation using NodeMCU & Alexa
2. Wifi & Voice Controlled Home Automation Using NodeMCU & Android
3. IoT Home Automation using ESP8266 Web Server
4. Home Automation using Google Firebase & NodeMCU ESP8266
5. Home Automation with Arduino IoT Cloud & ESP32
6. Home Automation using ESP32 & Blynk 2.0 Feedback
7. Industrial Automation using ESP8266 & AWS IoT Core




Bill of Materials

Following are the components required for making this project. All the components can be easily purchased from Amazon. The component purchase link is given below.

S.N.Components NameQuantityPurchase Links
1NodeMCU ESP82661Amazon | AliExpress
2Relay 5V4Amazon | AliExpress
37805 Voltage Regulator IC1Amazon | AliExpress
4Female DC Power Jack DCJ02021Amazon | AliExpress
5Diode 1N40074Amazon | AliExpress
6Resistor 330-ohm5Amazon | AliExpress
7NPN Transistor BC5474Amazon | AliExpress
8Terminal Block4Amazon | AliExpress
9LED 5mm Any Color1Amazon | AliExpress
10Female Header2 SetAmazon | AliExpress

Circuit Diagram & Connection

The circuit diagram for Blynk Controlled Home Automation using ESP8266 is given below. Using this circuit diagram you can assemble the circuit on Breadboard using 4 channel Relay and NodeMCU Board.

Home Automation using Blynk Circuit


Home Automation PCB & Gerber File

If you don’t want to assemble the circuit on breadboard and you want PCB for the project, then here is the PCB for you. The PCB Board for the Home Automation Project is designed using EasyEDA online Circuit Schematics & PCB designing tool. The front side and back side of the PCB is given below.

Home Automation PCB Front View
Home Automation PCB Front View
Home Automation PCB Back View
Home Automation PCB Back View

The Gerber File for the PCB Board is given below. You can simply download the Gerber File for the project.

Download Gerber File: Home Automation PCB



Setting up Blynk Application

Now let’s learn about the Blynk Application. In this project, all the control is done by the Blynk Application. Blynk is a Platform with IOS and Android apps to control Arduino, Raspberry Pi, and the likes over the Internet. It’s a digital dashboard where you can build a graphic interface for your project by simply dragging and dropping widgets.

Blynk Installation

You can download the Blynk Application from Playstore if you an Android User. You can also install the Blynk Application on IOS from App Store.

Now lets setup the Blynk App for IoT Home Automation Project. First, open the application and create a new account using your Email ID. Then click on “New Project“.

Now you can follow the images below for the complete setup guide.

From above when you click on “Email All”, an authentication token will be sent to your mail address. This token is very important as it is required in the program/code. So open your email ID & check for the token.



Source Code/Program

Here is a Blynk Based Home Automation Code, you can copy the code and paste it in your Arduino IDE. But before that, you need to add Blynk Library to Arduino IDE.

Download Blynk Library

From the below code change the WiFi SSID, Password & Blynk Authentication Code.

1
2
3
char auth[] = "pGE7Rb1n3v2SOd9CZvY6RlkeKItyalUR";
char ssid[] = "*****************";
char pass[] = "*****************";

Now you can upload the code to the NodeMCU Board.

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
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
 
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "pGE7Rb1n3v2SOd9CZvY6RlkeKItyalUR";
 
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "*****************";
char pass[] = "*****************";
 
  int relay1 = 12;  // D6 pin
  int relay2 = 14;  // D2 pin
  int relay3 = 4;   // D1 pin
  int relay4 = 5;   // D5 pin
 
void setup()
{
  // Debug console
  Serial.begin(115200);
 
  pinMode(relay1,OUTPUT);
  pinMode(relay2,OUTPUT);
  pinMode(relay3,OUTPUT);
  pinMode(relay4,OUTPUT);
 
  digitalWrite(relay1, HIGH);
  digitalWrite(relay2, HIGH);
  digitalWrite(relay3, HIGH);
  digitalWrite(relay4, HIGH);
 
  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}
 
void loop()
{
  Blynk.run();
}




IoT Home Automation using Blynk & NodeMCU ESP8266

After uploading the code successfully to the NodeMCU Board, you can start controlling the Home Appliances using the Blynk App. All you need is to click on ON/OFF Button on Android App.

IoT Home Automation using Blynk

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleIoT LoRa Based Smart Agriculture & Remote Monitoring System
Next Article Getting Started with A9G Low Power GSM/GPRS+GPS Module with Arduino

Related Posts

IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

Updated:May 10, 20261K
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
DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

Updated:February 1, 20261K
Add A Comment

CommentsCancel reply

Latest Posts
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

May 31, 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
DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

February 1, 2026
Top Posts & Pages
  • How to use INA219 DC Current Sensor Module with Arduino
    How to use INA219 DC Current Sensor Module with Arduino
  • 12V DC to 220V AC Inverter Circuit & PCB
    12V DC to 220V AC Inverter Circuit & PCB
  • Designing of MPPT Solar Charge Controller using Arduino
    Designing of MPPT Solar Charge Controller using Arduino
  • ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
    ECG Graph Monitoring with AD8232 ECG Sensor & Arduino
  • How to use INA226 DC Current Sensor with Arduino
    How to use INA226 DC Current Sensor with Arduino
  • Buck Converter: Basics, Working, Design & Application
    Buck Converter: Basics, Working, Design & Application
  • How to use Modbus RTU with ESP32 to read Sensor Data
    How to use Modbus RTU with ESP32 to read Sensor Data
  • IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
    IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
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 (204)
    • ESP32 MicroPython (7)
    • ESP32 Projects (81)
    • 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.