
6. Zumo 32U4 Arduino library
The Zumo 32U4 can be programmed from the Arduino IDE as described in
Section 5
.
To help interface with all the Zumo 32U4’s on-board hardware, we provide the
Zumo32U4 library
. The
Zumo32U4 library documentation
[https://pololu.github.io/zumo-32u4]
provides detailed information about the
library, and the library comes with several example sketches.
The instructions below explain how to install the Zumo32U4 library and start using it:
1. If you have not done so already, download the
A-Star Software and Drivers
[https://www.pololu.com/file/
download/a-star-1.4.0.zip?file_id=0J743]
(281k zip). These files are also available from the
A-Star repository on
GitHub
[https://github.com/pololu/a-star]
. Extract the downloaded ZIP file and find the “Zumo32U4” folder,
which is inside the “libraries” folder. Copy the downloaded “Zumo32U4” folder into the “libraries”
subdirectory inside your Arduino sketchbook directory. The Arduino sketchbook location is typically in
your Documents folder in a subfolder named “Arduino”. You can see the sketchbook location in the
Arduino IDE Preferences dialog, which is available from the File menu.
For example, if you are using Windows and you have not changed the sketchbook location, the
“Zumo32U4” folder would be copied to:
C:\Users\<username>\Documents\Arduino\libraries\Zumo32U4
If the “Arduino” or “libraries” directories do not exist yet, you will need to create them.
2. Close the Arduino IDE if it is open, and then restart it.
3. In the
Files > Examples
menu, locate the entry for the Zumo32U4 library. This is where you can
find several example sketches that show how to use the library. If you do not see Zumo32U4 in your
Examples menu, then the library was probably not installed correctly. Try doing step 1 again and restarting
the Arduino IDE.
After you install the Zumo32U4 library, you can learn more about it by trying the included example sketches and
by reading the
Zumo32U4 library documentation
[https://pololu.github.io/zumo-32u4]
.
Pololu Zumo 32U4 Robot User’s Guide
© 2001–2015 Pololu Corporation
6. Zumo 32U4 Arduino library
Page 67 of 76