Install Arduino IDE library

Back to Arduino Overview

The Arduino environment can be extended through the use of libraries, just like most programming platforms. Libraries provide extra functionality for use in sketches, e.g. working with hardware or manipulating data. There are two common way to install Arduino library:

Install library via library manager

On Arduino IDE, open Tools->Manage Libraries

Search library name in top search bar and install it. Here, the example shows installation of a library called “ESP32”.

Import library from zip file

Download zip file of a package from GitHub. Here we use TB6612FNG library as example. This is the library to use H-bridge chip TB6612FNG from the kit. Download the zip file from TB6612FNG Sparkfun website. Make sure you download it as a zip file.

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”.

How to Install a Library in Arduino IDE - STEMpedia

You will be prompted to select the library you would like to add. Navigate to the .zip file’s location and open it.

Return to the Sketch -> Include Library. 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.