Blynk Library establishes communication between your hardware, Blynk Cloud and Blynk Apps.
There are few ways to install Blynk Library for Arduino IDE:
Using built-in library manager in Arduino IDE
Installing Blynk library as ZIP file in Arduino IDE
Manually install Blynk Library
1. Install Blynk Library using built-in library manager in Arduino IDE
To install a new library into your Arduino IDE you can use the Library Manager (available from IDE version 1.6.2). Open the IDE and click to the "Sketch" menu and then Include Library > Manage Libraries.
Then the Library Manager will open and you will find a list of libraries that are already installed or ready for installation. Search for Blynk library and in the version selection choose the latest version to date
Finally click on Install and wait for the IDE to install the new library. Downloading may take time depending on your connection speed. Once it has finished, an Installed tag should appear next to the Bridge library. You can close the library manager.
You can now find the new library available in the Sketch > Include Library menu.
2. Install Blynk as ZIP file in Arduino IDE
Blynk library is available as a downloadable ZIP. Starting with Arduino IDE version 1.0.5, you can install 3rd party libraries in the IDE.
Download Blynk Library by clicking the button:
☝️Do not unzip the downloaded library, leave it as is.
In the Arduino IDE, navigate to Sketch > Include Library > Add .ZIP Library. At the top of the drop down list, select the option to "Add .ZIP Library''.
Return to the Sketch > Include Library menu. menu. You should now see the library at the bottom of the drop-down menu. It is ready to be used in your sketch. The zip file will have been expanded in the libraries folder in your Arduino sketches directory.
The Library will be available to use in sketches, but with older IDE versions examples for the library will not be exposed in the File > Examples until after the IDE has restarted.
3. Install Blynk library manually
Download the latest Blynk_Release_vXX.zip file from the GitHub page:
Unzip the Blynk_Release_vXX.zip archive. You will notice that archive contains several folders and several libraries.
Copy all of these libraries to your sketchbook folder of Arduino IDE.
To find the location of your sketchbook folder, go to top menu in Arduino IDE:
Windows: File → Preferences
Mac OS: 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
tools should go to tools
If you don't have libraries or tools folders, you can create them manually.
On minute 2:00 of this video you can see the process of installation for MacOS, but it's very similar to Windows
Arduino libraries are managed in three different places: inside the IDE installation folder, inside the core folder and in the libraries folder inside your sketchbook. The way libraries are chosen during compilation is designed to allow the update of libraries present in the distribution. This means that placing a library in the “libraries” folder in your sketchbook overrides the other libraries versions.
The same happens for the libraries present in additional cores installations. It is also important to note that the version of the library you put in your sketchbook may be lower than the one in the distribution or core folders, nevertheless it will be the one used during compilation. When you select a specific core for your board, the libraries present in the core’s folder are used instead of the same libraries present in the IDE distribution folder.
Last, but not least important is the way the Arduino Software (IDE) upgrades itself: all the files in Programs/Arduino (or the folder where you installed the IDE) are deleted and a new folder is created with fresh content.
This is why we recommend that you only install libraries to the sketchbook folder so they are not deleted during the Arduino IDE update process.
4. Troubleshooting 🚨
If you have troubles installing Blynk library, check Arduino guide for additional information.
Try deleting and re-installing Blynk Library - it helps in many cases
Make sure you don't have any duplicates of Blynk library
If you have issues - feel free to ask on our forum. There are many Blynkers who are eager to help.