Advertisement

LED Blink program with esp8266 by using blynk application - controlling over internet

               LED Blink program with ESP8266


                      by using blynk Application




                                            In this article we are going to see about the LED blinking program by using the ESP8266 nodemcu module through the blynk application (blynk server). For this project you will need an ESP8266 nodemcu module, a smartphone with blynk application installed and an LED(or you can use the buildin LED of the esp). In your smartphone install this application Click here to install the blynk app
After installing the blynk application create an account with an email id. After creating an account with the blynk app an authenziation token has been sent to your registered email address. The authenziation token will be useful for the programming part of the esp.
Before connecting your ESP8266 to your computer you have to install the blynk library in the arduino IDE.


Simple circuit diagram:








                     After installing the blynk library, open the examples goto blynk then click Getting started and then click the NodeMcu program. In this program you have to give your wifi credencials for the esp to connect to the blynk server. And then you have to give your authentication token which has been sent to your registered email address while creating the account with the blynk application. Make sure to enter the correct authentication token  with proper uppercase and lowercase and the numbers.(copying and pasting the authentication token  in the code is recommended)

After uploading the code to the ESP8266. Open your smartphone and open the blynk app, click on new project then click on the plus button to add an button which consumes 200 energy totally 2000 energy is given per account you can buy more energy using money if you want. In this project we just going to make an LED ON and OFF using Blynk app which requires only a single button.



I attached an video tutorial below for your references: 






PROGRAM CODE:




#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "e9U9qNCcLtwIALZL9X6dT2evVWPU7pQf"; // give your token here

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

void setup()
{

  Serial.begin(9600);

  Blynk.begin(auth, ssid, pass);

}

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


After clicking the play button in the blynk app the device connected to each other ( the nodemcu and the smartphone with the blynk server). Now you can turn ON and turn OFF your LED with your blynk application. Hope you guys enjoyed this tutorial.
In the later blogs we can see about the quiet bigger things which handles with more buttons and sliders etc.

Please feel free to comment your doubts and suggestions if any !!!!!!!!




Post a Comment

0 Comments