Why Blynk for IOT Projects ?

Blynk IOT App Platform is most popular among those who want to make an Android or IOS App based IOT system to monitor there sensor’s value or to turn On/OFF any device around the globe via internet. Not only that Blynk app provides you with the Bluetooth connectivity for your projects too and also a local server i.e a WiFi connectivity for your  projects to monitor and control them within a local network.

The features that make Blynk, an excellent choice for your project are:

  • It supports many boards like Webmos, ESP-8266 based boards, Arduino, Raspberry pi, and many more.
  • The App is free to use with limited Widgets access at a time. That is, it comes with some recharge value and each widgets you use need this recharge value when you add them to your project. So,once you recharge value is not sufficient then you cannot add widgets further. And, if you want them, you need to go for the paid version of it. But, the best thing is that when you delete the widgets you get the recharge value back and thus you can make many projects with the free version.
  • Its offers free cloud server for your sensor’s data.
  • Works in real time, so you can monitor your IOT system on the go.
  • Blynk community offers you the full support when need for an project ,once you make a community account with it. Don’t worry, it is free.

Getting Started with Blynk:

  1. For Blynk projects , you need to integrate the packages of Blynk to Arduino IDE. The Blynk packages can be found at


Blynk library should be installed manually. Follow the instructions:

  • Download the latest release .zip file.
  • Unzip it. You will notice that archive contains several folders and several libraries.
  • Copy all these libraries to your_sketchbook_folder of Arduino IDE. To find the location of your_sketchbook_folder, go to top menu in Arduino IDE: File -> Preferences (if you are using Mac OS – go to Arduino → Preferences)

The structure of your your_sketchbook_folder should now look like this, along with your other sketches (if you have them):


 Note that libraries should go to libraries and tools to tools.

2. Go to Play Store and search for Blynk. Similarly, if you are Apple go to AppStore and install Blynk.

3. In order to connect Blynk App and your hardware, you need an Auth Token.

  • Create a new account in Blynk App.
  • Create a New Project. Then choose the board and connection you will use.
  • After the project is created, we will send you Auth Token over email.
  • Make you project and drag the desiered widget for your project
  • Check your email inbox and find the Auth Token.
  • Copy the Auth Token and paste it in the code section, where Auth Token is asked.

Your first example project : LED Control over Internet

  1. Open Arduino IDE and navigate to Blynk Examples and select NodeMCU.
  2. Edit the code. Change the Auth token(Check your email inbox and find the Auth Token.), SSID name and password. 


    #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
      Blynk.begin(auth, ssid, pass);
      // You can also specify server:
      //Blynk.begin(auth, ssid, pass, "", 8442);
      //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8442);
    void loop()


  3. Upload the code to NodeMCU board. Connect a LED to pin D5 of NodeMCU.
  4. Building the App : In your project add a button. Click on the button and edit its properties. Select the desired pin i.e. D5.Now, Click on the Play icon on the top right corner and that all, control the led over internet.


Show More

Leave a Reply

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

Back to top button