Home Arduino Projects How to Install a Library Onto the Arduino IDE

How to Install a Library Onto the Arduino IDE

by Nikodem Bartnik

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: https://playground.arduino.cc/Code/LCDi2c

How to Install a Library Onto the Arduino IDE

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

How to Install a Library Onto the Arduino IDE

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

How to Install a Library Onto the Arduino IDE

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

How to Install a Library Onto the Arduino IDE

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 a Library Onto the Arduino IDE

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:

Related Posts

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More

Privacy & Cookies Policy