How to Add an External Library to Arduino

by MrSottong in Circuits > Arduino

7475 Views, 1 Favorites, 0 Comments

How to Add an External Library to Arduino

image823.png

The library provides additional functions for the sketch we made. These functions can help us make sketches easier.

There are many libraries that we can use. Arduino IDE's default library or external library created by someone or a community.

In this article I will show you how to add an external library.

Add Libraries Using Arduino IDE

tambah lib1.png
tambah lib 2.png
tambah lib 3.png
tambah lib 4.png

You can add libraries directly using the Arduino IDE.

1. Click Sketch > Include Library > Manage libraries ( You can use the shortcut Ctrl + Shift + l )

2. Write library in the search tab.

3. Click install and wait until the process is complete

4. When it's finished, it will say "INSTALLED" in the title

Add Library Using Zip File

zip 1.png
zip 2.png
zip 3.png

You can search for external libraries on the Internet. Many websites provide external libraries in the form of Zip. I suggest looking for Libray on Github, because there are many people or communities that share libraries that they create.

How to add a zip file:

1. Click Sketch > Include Library > Add .Zip Library.

2. Select the zip file that has been downloaded, Then Click Open.

3. After successfully adding, close the Arduino IDE then reopen it

Check Libraries That Have Been Added

periksa.png

1. Click Sketch > Include Library > scroll down

2. Look in the contributed library.

3. Successfully added libraries can be seen here.

thank you for reading, see you in the next article