Internet has opened many possibilities for us and for electronic hobbyist like us, Internet of Thing has evolved as a milestone in making things more connected and responsive as ever before.

Now, we can control and monitor things in real time and the technology have provided them with their own sets of adjustment and way of communication to interact among these networked devices.

Here, you will learn to automate your home appliances by using Smartphone with an Internet connectivity and can actuate any device across the globe. The knowledge gained in this project will benefit you in making other Wi-Fi based or IOT based projects. We will be using an ESP based development board i.e. NodeMCU ESP8266 12E, which is the cheapest and the most useful dev board for Internet of Things Projects and Blynk app IOT Platform.

Project Level: Intermediate

Prerequisite Required: Basics of NodeMcu and Relay

Warning: This project involve interfacing HIGH VOLTAGE supply, so check connection twice and seek the help from elder or someone, who have better knowledge of handling High Voltage supply.

So, let’s get started!

Components Required:

  • NodeMCU ESP 12E (Amazon/Ebay/Flipkart/AliExpress)
  • Relay Module (Amazon/Ebay/Flipkart/AliExpress)
  • Jumper Wires (Amazon/Ebay/Flipkart/AliExpress)
  • 5v Power Module(optional) (Amazon/Ebay/Flipkart/AliExpress)
  • Connecting wire/Switch Board
*Please note: These are affiliate links. I may make a commission if you buy the components through these links.
I would appreciate your support in this way to help this website!

 

Connection:

Code Section:

#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[] = "54c4a3b1acbf46628f0fe5be622a6f04";

// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "CPH1613";
char pass[] = "12345678";

void setup()
{
  // Debug console
  Serial.begin(9600);
  pinMode(D1,OUTPUT);
  pinMode(D2,OUTPUT);
  pinMode(D3,OUTPUT);
  pinMode(D4,OUTPUT);

  digitalWrite(D1,HIGH);
  digitalWrite(D2,HIGH);
  digitalWrite(D3,HIGH);
  digitalWrite(D4,HIGH);
  
  

  Blynk.begin(auth, ssid, pass);
  // You can also specify server:
  //Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 8442);
  //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
}

void loop()
{
  Blynk.run();
}

 

 

SHARE
Next articleObstacle Avoiding Bot

LEAVE A REPLY

Please enter your comment!
Please enter your name here