header or the screw terminal header.
The basic orientation of the motors, wires and connections to build a robot.
In this configuration, the drive LEDs will make sense, and operations on the
control signals will generate similar movement from side to side.
If you’ve got the kit, install one motor’s red to output ‘1’, and black to output
‘2’. Install the other motor’s red to output ‘3’, and black to output ‘4’.
Upcycling the SparkFun Box
If you have the Ardumoto Shield Kit, you probably also have a robust,
resplendently red SparkFun box. These SparkFun boxes come in handy for
all sorts of projects — including robot chassis!
With some measured hobby knife incisions, you can cut out some mounts
for the motors and tie your Arduino/shield combo down as well:
This shape of robot relies mostly on balance, and slides across the floor. If
driving on carpet, slick clear tape can be added to the corners to prevent
catching.
Example Code
Controlling the Ardumoto Shield is super easy. If you can blink LEDs, you
can make the Ardumoto Shield spin its motors. Here, we’ll provide a simple,
expandable example sketch to show how to drive the pair of motors on the
Ardumoto.
Note:
This example assumes you are using the latest version of the
Arduino IDE on your desktop. If this is your first time using Arduino,
please read our tutorial on installing Arduino IDE.
If you have not previously installed an Arduino library, please check
out our installation guide.
The Example Sketch
Download the example sketch and upload it to your board.
ARDUMOTO SHIELD EXAMPLE DIRECT LI NK
Page 11 of 17
https://raw.githubusercontent.com/sparkfun/Ardumoto-Motor_Driver_Shield/revision/Firmware/hw20ExampleCode/hw20ExampleCode.ino