In this video, the presenter will be Building Home Automation over Internet (Blynk, NodeMCU, Relay)
COMPONENTS NEEDED:
- NodeMCU ESP8266 WiFi Development Board Module IoT
- Relay
- LED
- Jumper Wires
- Breadboard
- Data Cable
- WiFi network with internet
Blynk Android App:(http://shrinkearn.com/M8O)
URL to be pasted in Preferences : (http://shrinkearn.com/lP8k)
Program for NodeMCU:
#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[] = “YourAuthToken”;
// Your WiFi credentials.
// Set password to “” for open networks.
char ssid[] = “YourNetworkName”;
char pass[] = “YourPassword”;
void setup()
{
// Debug console
Serial.begin(9600);
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();
}
Note: This program is not developed by me. It’s available as an example with blynk library
COURTESY: Jay Unewal
Download Techmezine Android app on google play store: Download Now