Blynk app Setup up Tutorial | Blynk app with Nodemcu ESP8266

 Blynk app setup Tutorial

            Hello guys, welcome back to another tutorial from the SriTu Hobby blog. This tutorial covers how to set up a Blynk app. Also, this project includes how to control an LED over the Internet using a Blynk application. Using this Blynk app and Nodemcu we can do various projects. We will learn about them in future tutorials. So, make this tutorial the basis for those projects. Click this link for more information about Nodemcu.

What is the Blynk app?

The Blynk app is simply an open-source platform designed for iOS / Android devices to remotely control and view hardware. It is also designed for the Internet of Things (IoT). The dashboard can be customized in a very useful way by using various Widgets such as Buttons, Displays, Sliders included in this Blynk app. Also, this widget allows you to turn devices on / off and view sensor values. Lastly, you can view, store and visualize data through this.

So, this Blynk app is made up of 3 main parts. They are as follows.

  1. Blynk app — Here we can customize the interface to suit our design. The Blynk app includes a number of different widgets for this.
  2. Blynk server — The Blink server is used to communicate project hardware with the Blink application installed on the smartphone. You can use Blynk cloud for that. This is Blynk cloud open-source and can control thousands of devices through it.
  3. Blynk library — The Blynk library is used to communicate with the hardware platform Blynk server used with the Blynk app and to process incoming and outgoing commands.
Click this link to learn more about the Blink app. You can download this Blynk app using the links below.
Below are the different development board types that can be controlled by the Blynk app.
  • Nodemcu ESP8266
Blynk app Setup up Tutorial
  • Arduino
  • Raspberry Pi
Today we will learn how to turn an LED bulb remotely ON and OFF over the Internet using the Nodemcu board. Also, this is a simple example of how to use the Blink app, so understanding this will help you create many more for future tutorials. The required components are as follows.
So, Let’s do this project step by step.

Step 1

Firstly, identify these components.

Nodemcu Board.

LED bulb.

180ohm Resistor.


Jumper wires.


Blynk app Setup up Tutorial

Step 2

Secondly, connect these components using the circuit diagram below.
Blynk app Setup up Tutorial

Step 3

So, now set up the Blynk application. For that, follow the steps below.
Firstly, download and install this Blynk app on your Smartphone. For that, use the links below. Afterward, run this Blynk app.
Secondly, we need to create a new account, then click on the “Create New Account” button and enter the Gmail address and password of your choice. Afterward, click the “Sign Up” button. Then a mail will go to the email you entered. There is a code called “Auth Token” in that mail and that code is what we need for our future work.
Blynk app Setup up Tutorial
Blynk app Setup up Tutorial
Blynk app Setup up Tutorial
Thirdly, click the “New Project” button and enter your project name here. Then select Nodemcu instead of “CHOOSE DEVICE”. Because we are using a Nodemcu here. Afterward, select the wifi in the “Connection Type” field. Lastly, click the “Confirm” button. Ok, now let’s look at the project interface.
Blynk app Setup up Tutorial
Now, we can add widgets to our LED ON and OFF project. For that, click the “+” sign in the upper right corner and add a “Button” widget.
Afterward, we have to make this button as we want. First, give it a name you like. I have put it as LED. Then click on Pin and select Digital and select D0. Next, pull the button under the mode to the switch side. If you want to change the color you can change it. When you have done all this, click the Back button.
Lastly, our project interface can be customized.

Step 4

So, now let’s create a program. For this, we first need two libraries. That is the library required for WIFI and the library required for the Blynk application. Download these two from the link below and add them to the Arduino IDE.
Blynk app Library — Download
WIFI Library — Download
The complete program of this project – Download
Ok, now we can see the required program below.
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "auth token";//Enter your Auth token
char ssid[] = "SSID";//Enter your WIFI name
char pass[] = "Password";//Enter your WIFI password
void setup() {
  pinMode(D0, OUTPUT);
  Blynk.begin(auth, ssid, pass);
void loop() {;

Code Explanation

It is a simple code. Firstly, WIFI and Blynk libraries are included in this code.
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
Secondly, we need to change the information below.
char auth[] = “auth token”;//Enter your Auth token
char ssid[] = “SSID”;//Enter your WIFI name
char pass[] = “Password”;//Enter your WIFI password
01. char auth [] = “auth token”; Replace the “auth token” in the section with the Author Token you received from Blynk. For that, check your Blynk app sign-up Gmail.
02. char ssid [] = “SSID”; In the section “SSID“; Enter the name of your Wi-Fi network instead.
03. char pass [] = “Password”; Enter the password for your Wi-Fi network instead of the “Password” in the section.
In the void setup, the Blynk library is started and the LED pin is converted to OUTPUT pin.
void setup() {
  pinMode(D0, OUTPUT);
  Blynk.begin(auth, ssid, pass);
Lastly, the Blink library is run in the void loop.
void loop() {;
Now we are all done. So, now all you have to do is connect your NodeMCU Board to your Laptop or Desktop computer, select NodeMCU 1.0 for the Arduino IDE Board, select the relevant port, and upload the code. Once the code is uploaded, all you have to do is run the project we created in the Blynk app. You can do that by clicking on the triangle on the right side of the Blynk app.
Then with the button, we created you can turn the LED bulb on / off. Also, remember to activate your internet connection at this time. You can watch this in the video below. In this tutorial, we have created a simple project using Nodemcu. If you understand this well, it will be very useful for the projects of our future articles. So, we’ll see in the next Tutorial.

Blynk app Setup up Tutorial | Blynk app with Nodemcu ESP8266

Leave a Comment

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

Shopping Cart
Select your currency
USD United States (US) dollar
EUR Euro
Scroll to Top