How to Install a Library Onto the Arduino IDE

Most of the basic Arduino projects do not require an external library but it is very important to know how to add a library to the Arduino IDE.

What is an Arduino library?

It is just a file with pre-programmed functions that will help you manipulate the hardware with much ease. It used to be a little confusing to add libraries to the Arduino IDE with old versions of the IDE, they have just made it way simpler than what it was.

The following lines will show you a couple of ways you can take to add a library to the Arduino IDE.

How to install an Arduino library – 1

This method requires you to download the zip file corresponding to the library you want to install here:

Let’s say we want to add the library of the LCD display over I2C.

Go to sketch >> include Library >> add .ZIP library…

Navigate to where you have saved the zip file we have just downloaded, select it and click on Open.

And there you have it. It is installed.

To make sure it has been well installed, check File >> Examples, you must be able to see it on the list.

How to install an Arduino library – 2

You do not need the internet for this method. All you need is your Arduino IDE.

install arduino library

As we previously did, go to Sketch >> Include Library >> Manage Libraries…

install arduino library

You will see a small window with lots of libraries. If you want to find certain one you can use

You can use the search bar to search for a specific library.

install arduino library

Once it is found, Simply click install and that’s all you need to do to install the library.

install arduino library

This method is, in my opinion, simpler than the first one and the good thing about it is, it does not need the internet.

Hope you are now able to install Arduino libraries on the fly. Go enjoy!

You might also like:

Leave a Comment