CONTROL NodeMCU FROM BLYNK ONLINE

blynk_arduino_nodemcu.png

Blynk is a Platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. To know more about Blynk visit http://www.blynk.cc/.

In this tutorial how to control NodeMcu using Blynk App Online is discussed.

To know how to program NodeMcu with Arduino sofware click here.

  • Download the Blynk Library here.
  • Extract the library and copy it to the library folder in C:\Program Files (x86)\Arduino\libraries .
  • Then restart the Arduino software.
  • Open File->Eamples->Blynk-Boards_Wifi->Esp8266Standalone.
  • Then download the Blynk App from the playstore and install it.
  • Create a account and login.
  • Then Create a project and select NodeMcu from bards.
  • After creating a project a Authentication token will be sent to your Mail Id.

Program:

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
#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);
}
 
void loop()
{
  Blynk.run();
}
  • Change your Authentication token in your program which was sent to your Mail-Id.
char auth[] = "YourAuthToken";
  •  Change your Wi-Fi Name and Password in the program
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
  • Then create a button with DigitalWrite to which pin you want to control.
  • Follow the Slideshow given below.
ThankYou
SHARE THIS!!!

Gowtham S

Gowtham is a programming enthusiast. His field of interest includes Arduino, NodeMCU, Raspberry Pi, and Python. To know more about him visit https://mybtechprojects.tech/about-us/.

6 Comments

  • I was recommended this web site by my cousin. I am not sure whether this post is written by him as no one else know such detailed about my trouble. You are amazing! Thanks!s

  • itunes gift card generator

    (February 24, 2018 - 2:09 pm)

    I’m impressed, I have to admit. Genuinely rarely should i encounter a weblog that’s both educative and entertaining, and let me tell you, you may have hit the nail about the head. Your idea is outstanding; the problem is an element that insufficient persons are speaking intelligently about. I am delighted we came across this during my look for something with this.

  • I am not rattling great with English but I get hold this really easygoing to read .

  • Excellent web site. Lots of useful info here. I’m sending it to some friends ans also sharing in delicious. And obviously, thanks for your effort!

  • Appreciate it for this howling post, I am glad I observed this internet site on yahoo.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.