Getting Started with Blynk

 

In order to use Blynk app you would need:

  • Hardware that works with Blynk. Check the full list of supported hardware here
  • If your hardware doesn't have connectivity on board, you can use shields like Ethernet, WiFi, GPRS and many others. Blynk also works over Bluetooth and USB (☝️ USB is not for newbies!)

 

1. Download Blynk App for Android or iOS

 

2. Get the Auth Token

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

  1. Create a new account in Blynk App.
  2. Create a New Project. Then choose the board and connection you will use.
  3. After the project was created, we will send you Auth Token over email.
  4. Check your email inbox and find the Auth Token.

 

3. Install Blynk Library

☝️ Blynk library should be installed manually. Follow the instructions:

  1. Download the latest release .zip file.
  2. Unzip it. You will notice that archive contains several folders and several libraries.
  3. 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):

your_sketchbook_folder/libraries/Blynk
your_sketchbook_folder/libraries/BlynkESP8266_Lib
...
your_sketchbook_folder/tools/BlynkUpdater
your_sketchbook_folder/tools/BlynkUsbScript
...

☝️ Note that libraries should go to libraries and tools to tools

 

3. Create your first example sketch code

Blynk works with hundreds of hardware models and connection types. We prepared Blynk Examples Sketch Builder that allows you to create example code for your hardware.

 

  1. Choose Your board (for example: Arduino UNO)
  2. Choose your connection (WiFi, Ethernet, Bluetooth, USB...)

 

The first example you need is:

GettingStarted/BlynkBlink

 

4. Paste the Auth Token

• In the example sketch, find this line:

char auth[] = "YourAuthToken";

 

• Change it with your Auth Token (it should be in your email inbox after you created the Project in the Blynk app. Now it should exactly like this (☝️ don't forget the " "):

char auth[] = "53e4da8793764b6197fc44a673ce4e21";


• 🔥 Flash the code to your hardware

• Open serial monitor in Arduino IDE. You should see something like this

     ___  __          __
    / _ )/ /_ _____  / /__
   / _  / / // / _ \/  '_/
  /____/_/\_, /_//_/_/\_\
         /___/    v0.4.4

    [1240] Connecting to YourWiFi
    [1240] Connected to YourWiFi
    [1240] My IP: 192.168.10.172
    [1240] Blynk v0.4.4
    [5001] Connecting to blynk-cloud.com:8442
    [5329] Ready (ping: 1ms)

 

Congrats! You are connected! 🎉 

 

What's next? Check Other examples in the sketch builder

  1. How to read sensors?
  2. How to turn something ON and OFF? 
  3. How to control servo motor?
  4. How to send notifications?
  5. How to....?

Check other examples to learn how Blynk Works:


 

If you have questions or something is not working, join our amazing community, where people are helping each other, sharing ideas and discussing projects. 

Also, full 📗 documentation is here