Home Automation Using Blynk and ESP8266

HOME AUTOMATION USING ESP-8266 AND BLYNK









Hello everyone today use Blynk application & esp8266 to take our first step to Home automation.
Let's gets start! 

Components Required:

1.  Node ESP8266  --  https://amzn.to/3mSrqqc

2.  4-channel Relay Board (with wires)  --   https://amzn.to/3r3WFRK

3.  Jumper Wires  --  https://amzn.to/3bDYfU4

4.  Bread Board  (optional)  --  https://amzn.to/3kxpmnJ



1. Setting Up Blynk App

 Install Blink app from play store  or ios store 

Create your Account 

After that choose New project then, enter the project name which you like

Choose Device as NodeMCU and connection type as Wi-Fi

Then click create 

After that a authentication code is sent to your registered E-mail ID 

2. Creating Buttons 

Click on Add button and choose Button

Then click on the button you created and provide name for button

In output session choose Digital PIN and D1 PWM

In MODE swap to SWITCH that's it

You can configure other 3 buttons like this by changing D2, D3, D4 PWM or whatever you want.

You all done for Blynk app 

3.  Coding part


Connect NODE ESP8266 to PC

Open Arduino In top Sketch > Include Library > Manage library

Search For Blynk Then install The latest Version

Go To File > Examples > Blynk > Boards_WiFi > ESP8266_standalone

In the Code Modify --

After that Provide Your Auth Code That you get from registering in Blynk

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).

char auth[] = "YourAuthToken";

IFTTT config -- Click This

Eg:

char auth[] = "7816d601drd348876af72848024ec1e0";

Change This also:

// Your WiFi credentials.
// Set password to "" for open networks.

char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";

Provide Your Wi-Fi ssid and password

Eg:

char ssid[] = "My-Wi-Fi";
char pass[] = "HelloWorld123";

Hit The Upload Button.
In the case of any error during uploading you can refer my previous videos.

4. Connection






Setup the connection like this DOWNLOAD    





 


0/Post a Comment/Comments

أحدث أقدم