pololu / zumo-32u4-arduino-library

Library to help interface with the on-board hardware of the Pololu Zumo 32U4 robot.
https://www.pololu.com/category/170/zumo-32u4-robot
MIT License
66 stars 61 forks source link

Zumo32U4 library

www.pololu.com

Summary

This is a C++ library for the Arduino IDE that helps access the on-board hardware of the Zumo 32U4 robot (both the newer OLED version and the original LCD version).

The Zumo 32U4 robot consists of the Zumo chassis, the Zumo 32U4 Main Board, and the Zumo 32U4 Front Sensor Array. It has an integrated AVR ATmega32U4 microcontroller, motor drivers, encoders, proximity sensors, line sensors, inertial sensors, buzzer, four buttons, and display screen (graphical OLED or LCD). The user's guide for the Zumo 32U4 robot is here:

https://www.pololu.com/docs/0J63

Please note that this library does NOT work with the Zumo Shield for Arduino, which is a very different product. The Zumo Shield does not have an integrated microcontroller, so it must be connected to an Arduino-sized board to run. If you have the Zumo Shield, then you should not use this library and instead refer to the Zumo Shield documentation here.

Installing the library

Use the Library Manager in version 1.8.10 or later of the Arduino software (IDE) to install this library:

  1. In the Arduino IDE, open the "Tools" menu and select "Manage Libraries...".
  2. Search for "Zumo32U4".
  3. Click the Zumo32U4 entry in the list.
  4. Click "Install".
  5. If you see a prompt asking to install missing dependencies, click "Install all".

Usage

To access all features of this library, you just need these include statements:

#include <Wire.h>
#include <Zumo32U4.h>

Examples

Several example sketches are available that show how to use the library. You can access them from the Arduino IDE by opening the "File" menu, selecting "Examples", and then selecting "Zumo32U4". If you cannot find these examples, the library was probably installed incorrectly and you should retry the installation instructions above.

Classes and functions

The main classes and functions provided by the library are listed below:

Dependencies

This library also references several other Arduino libraries which are used to help implement the classes and functions above.

Documentation

For complete documentation, see https://pololu.github.io/zumo-32u4-arduino-library. If you are already on that page, then click on the links in the "Classes and functions" section above.

Version history