These instructions describe an installation of the Arduino Software and drivers for an Arduino Uno on Mac OS X Lion, but will work the same for Leopard, Snow Leopard and Mountain Lion. Previous operating systems may require you to search the web for your specific situation.
- How To Install Arduino Library On Mac
- How To Install Arduino Library Machine
- How To Install Arduino Library Mac Torrent
Step by Step Tutorial how to install Arduino in Mac OS. Important Cookie Information: We use cookie to provide you the best possible experience, this site uses cookies and by continuing to use the site you agree that we can save them on your device. Manually Installing a Library - Mac. This section covers manually installing a library under the Mac OS X environment. If you’re more of a text learner then check out the Arduino tutorial on installing libraries. We are going to use the Capacitive Sense library for this example. Navigate to the library’s page and download the zip file. Python library gevent, version 0.13.6 (the current version on PyPI) will not pip install on OS X Lion, Python 2.7 (and probably others.) It works fine on Snow Leopard. How can I get this library installed? Bonus points if it can be done using pip install, rather than a manual or custom process, because then it will play nicely with automated builds.
Follow these steps to install the Arduino software on your Mac:
1Go to the Arduino downloads page and click the Mac OS X link to download a .zip file containing a copy of the Arduino application for Mac OS X.
Currently, the file is 71.1MB. That’s quite a large file, so it may take a while to download. After you’ve finished downloading, double-click the file to the Arduino application and place it in your Applications folder.
2Plug the square end of the USB cable into the Arduino and the flat end into an available port on your Mac to connect the Arduino to your computer.
As soon as the board is connected, a dialog box appears, showing the message A new network interface has been detected.
3Click Network Preferences, and in the window that appears, click Apply.
Note that your Arduino is displayed in the list on the left side of this window as Not Configured, but don’t worry, the software is installed and your Arduino board will work.
4Close the Network Preferences window.
To launch the Arduino application, go to your Applications folder, locate the Arduino application, drag it to the Dock, and then click the Arduino icon to open the Arduino application. If you prefer, you can also drag the application to the desktop to create an alias there instead.
There are three general types of Arduino Libraries:
Standard Libraries
The Arduino IDE comes with a set of standard libraries for commonly used functionality. These libraries support all the examples included with the IDE. Standard library functionality includes basic communication functions and support for some of the most common types of hardware like servo motors and character LCD displays.
Standard Libraries are pre-installed in the 'Libraries' folder of the Arduino install. If you have multiple versions of the IDE installed, each version will have its own set of libraries. For the most part, it is not a good idea to change the Standard Libraries or install your libraries in the same folder.
Library Manager Libraries
The newer Arduino IDE has a Library Manager which facilitates installing third-party libraries submitted to Arduino for use. Adafruit has most of its libraries and drivers in the Library Manager for easy use.
User Installed Libraries
There are many other libraries with useful functionality and device drivers for all sorts of hardware. These drivers are available from places like Arduino Playground, Github and Google Code.
User installed libraries should be installed in your sketchbook libraries folder so they can be used with all versions of the IDE. This way, if a new version of the IDE is released, you don't have to re-install all your favorite libraries!
The Library Manager is a newer feature of the Arduino IDE. Many of the popular libraries, including most of Adafruit's, are in the Library Manager. If you are looking to work with other people's libraries, first check the Library Manager to see if the library is there first rather than downloading a copy into your local libraries folder.
To start, load the Arduino IDE. Then use the menus at the top to select Sketch -> Include Library -> Manage Libraries...
You will then get a list of all the great libraries you can install!
Most often you may use the Search features at the top to find a specific library.
Above, the user typed adafruit into the search bar. All modern Adafruit libraries begin with the word Adafruit.
You can scroll down the list to find the library you are looking for. Say we wanted the Circuit Playground library like shown below. You can click the Install button to have it available or is it is already installed, you can select the version you want (often the latest but sometimes an earlier library for compatibility).
Often (but not always), loading a library will bring the availability of additional examples. In the menu, go to Files -> Examples then select your library name (if present) and browse the additional examples. Loading the Adafruit CircuitPlayground library above also loaded 12 examples and 4 directories with additional examples.
The latest versions of the Arduino IDE will alert you on startup that newer versions of your installed libraries (and boards) are available, if you would like to upgrade. You can safely ignore these in a pinch but you'll want to get the latest libraries when you start a new project.
The Library Manager is the simplest and safest way to install libraries. If possible, that is the method you should use.
If the library you want to use is not available via the library manager, you can get the source code and place it into your machine's local library folder. The location of the folder is rather specific.
See the file hierarchy below:
It is important to install your libraries in the correct location. Otherwise the compiler will not be able to locate them when you try to compile and upload your sketches.
Locate your Sketchbook Folder and the Libraries Folder Inside
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.
On Linux machines, the folder is named 'Sketchbook' and it is typically located in /home/
On Windows and Macintosh machines, the default name of the folder is 'Arduino' and is located in your Documents folder.
User installed libraries should go in a folder named Libraries, located inside your sketchbook folder. This is where the IDE will look for user installed libraries.
Open the Preferences DialogClick File -> Preferences in the IDE. |
Find the Sketchbook LocationUsually a folder named Arduino in your Documents folder. |
Create a Libraries FolderIf there is no Libraries folder there, create one. |
Rename to LibrariesRight click on the New Folder and select Rename. Then type in Libraries. |
Close the Arduino IDE
First make sure that all instances of the Arduino IDE are closed. The IDE only scans for libraries at startup. It will not see your new library as long as any instance of the IDE is open!How To Install Arduino Library On Mac
Download the Zip FileMake sure to select a released version of the library. Some library repositories are still in development, and may contain unreleased or untested code. The 'Releases' button takes you to the tested and released versions.
|
Open the Zip FileOpen the Zip File and copy the library master folder. |
Paste into your Libraries FolderOpen your sketchbook Libraries folder and paste the master folder you copied from the .Zip. |
Give it a Legal NameThe IDE will not recognize folders with dashes in the name. So you must rename the Github Master Folder. Underscores are OK! |
Re-start the IDERestart the Arduino IDE and verify that the library appears in the File->Examples menu.Load one of the library examples to test. |
Verify that it CompilesClick the check-mark icon in the upper left and verify that the example sketch compiles without errors. |
Close the Arduino IDE
First make sure that all instances of the Arduino IDE are closed. The IDE only scans for libraries at startup. It will not see your new library as long as any instance of the IDE is open!Download the Zip FileMake sure to select a released version of the library. Some library repositories are still in development, and may contain unreleased or untested code. The 'Releases' button takes you to the tested and released versions.
|
Find it in the Downloads FolderOSX will automatically open the zip file there. |
Drag it to your Libraries FolderOpen your sketchbook Libraries folder and drag the master folder from Downloads into it. |
Give it a Legal NameThe IDE will not recognize folders with dashes in the name. So you must rename the Github Master Folder. Underscores are OK! |
Re-start the IDERestart the Arduino IDE and verify that the library appears in the File->Examples menu.Load one of the library examples to test. |
Verify that it CompilesClick the check-mark icon in the upper left and verify that the example sketch compiles without errors. |
Close the Arduino IDE
First make sure that all instances of the Arduino IDE are closed. The IDE only scans for libraries at startup. It will not see your new library as long as any instance of the IDE is open!Download the Zip FileMake sure to select a released version of the library. Some library repositories are still in development, and may contain unreleased or untested code. The 'Releases' button takes you to the tested and released versions.
|
Save the Zip FileSave the zip file to a convenient location. |
Open the Zip FileOpen the Zip File and copy the library master folder. |
Start the ExtractionSelect 'Extract' from the menu and navigate to your Sketchbook/Libraries folder |
Extract into your Libraries FolderAfter navigating to the sketchbook/libraries folder, complete the extraction. |
Give it a Legal NameThe IDE will not recognize folders with dashes in the name. So you must rename the Github Master Folder. Underscores are OK! |
Re-start the IDERestart the Arduino IDE and verify that the library appears in the File->Examples menu.Load one of the library examples to test. |
Verify that it CompilesClick the check-mark icon in the upper left and verify that the example sketch compiles without errors. |
'xxxx' does not name a type
How To Install Arduino Library Machine
This is the most common library related error message and it means that the compiler could not find the library. This can be due to:- Library is not Installed (see previous pages in this guide)
- Wrong Folder Location
- Wrong Folder Name
- Wrong Library Name
- Library Dependencies
- Forgot to Shutdown the IDE
Wrong Folder Location
The IDE will only find standard libraries and librariesinstalled in the sketchbook Libraries folder.It will not be able to find libraries installed elsewhere.
The Library folder must be at the top level of the Librariesfolder. If you put it in a sub-folder,the IDE will not find it.
Note: Some third-party library repositories have different folder structures. You may need to re-arrange things to make sure that the library files are at the top level of the folder. WaveHC is one example of this. The actual library folder is a folder within the top-level repository folder.
Don't have a 'Sketchbook' folder
It is there. But on a Windows or Mac/OSX machine it may not be named 'Sketchbook'. See the page titled 'Where to Install your Libraries'.Incomplete Library
You must download and install the entire library. Do not omit or alter the names of any filesinside the library folder.
Wrong Folder Name
The IDE will not load files with certain characters in thename. Unfortunately, it doesn’t like thedashes in the zip files names generated by Github. When you unzip the file, rename the folder sothat it does not contain any ‘illegal’ characters. Simply replacing each dash (‘-‘) with andunderscore (‘_’) usually works.
Wrong Library Name
The name specified in the #include of your sketch must matchexactly (including capitalization!) the class name in the library. If it does not match exactly, the IDE willnot be able to find it. The example sketches included with the library will have the correct spelling. Just cut and paste from there to avoid typos.
How To Install Arduino Library Mac Torrent
Multiple Versions
If you have multiple versions of a library, the IDE will tryto load all of them. This will result incompiler errors. It is not enough tosimply rename the library folder. It mustbe moved outside of the sketchbookLibraries folder so the IDE won’t try to load it.
Library Dependencies
Some Libraries are dependent on other libraries. For example, most of the Adafruit GraphicDisplay libraries are dependent on the Adafruit GFX Library. You must have the GFX library installed touse the dependent libraries.
“Core” Libraries
Some libraries cannot be used directly. The GFX library is a good example ofthis. It provides core graphics functionalityfor many Adafruit displays, but cannot be used without the specific driverlibrary for that display.
Forget to shutdown the IDE
The IDE only searches for libraries at startup. You must shut down ALL instances of the IDEand restart before it will recognize a newly installed library.
This guide was first published on Feb 16, 2013. It was lastupdated on Feb 16, 2013.