Install and Use Arduino Libraries | Solved Error: No Such File or Directory

Arduino libraries are a convenient way to share code such as device drivers or commonly used utility functions. This guide details how to install libraries on your computer.

There are two general types of Arduino Libraries:

Standard Libraries
User Installed Libraries

Where to Install your Libraries?

Your sketchbook folder is the folder where the Arduino IDE stores your sketches.
This folder is automatically created by the IDE when you install it.

Using Libraries

One of the best features of the Arduino project is the ability to add on pre-crafted libraries that add hardware support.

There’s tons of them, and you can pick and choose which to install.

They’re only loaded in when the sketch you’re working on needs them, so for the most part you can download and stash them for future use.

Sketches will often depend on libraries, you can see what they are by looking at the top of the sketch. If you see something like:


That means that you’ll need a library called AFMotor. If you don’t have it installed you’ll get an error.



By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.