Zumo Motors

The Zumo Shield libraries provide basic motor operation consisting of PWM speed control and direction.  

Packages and installation instructions can be downloaded from GitHub but once installed the motors library can be included from Sketch > Include Library. Lastly you must create an instance of the ZumoMotors class with:

ZumoMotors motors;

Each the following available methods must be preceded with motors.

Available Methods

Flip the motor if they have been connected in reverse – accepts true or false;

static void flipLeftMotor(boolean flip);
static void flipRightMotor(boolean flip);

Set speed for left, right, or both motors – accepts values from 0 to 400

static void setLeftSpeed(int speed);
static void setRightSpeed(int speed);
static void setSpeeds(int leftSpeed, int rightSpeed);


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.