Tuesday, May 4, 2010

Adafruit motor shield

ladyada says....motor driver chips that come with the kit are designed to provide up to 600 mA per motor, with 1.2A peak current. Note that once you head towards 1A you'll probably want to put a heatsink on the motor driver, otherwise you will get thermal failure, possibly burning out the chip.

What pins are not used on the motor shield?
All 6 analog input pins are available. They can also be used as digital pins (pins #14 thru 19)

Digital pin 2, and 13 are not used.

The following pins are in use only if the DC/Stepper noted is in use:
Digital pin 11: DC Motor #1 / Stepper #1 (activation/speed control)
Digital pin 3: DC Motor #2 / Stepper #1 (activation/speed control)
Digital pin 5: DC Motor #3 / Stepper #2 (activation/speed control)
Digital pin 6: DC Motor #4 / Stepper #2 (activation/speed control)

The following pins are in use if any DC/steppers are used
Digital pin 4, 7, 8 and 12 are used to drive the DC/Stepper motors via the 74HC595 serial-to-parallel latch

The following pins are used only if that particular servo is in use:
Digitals pin 9: Servo #1 control
Digital pin 10: Servo #2 control

Motor control

Built the adafruit Motor shield, and now its time to control a motor.  I am using a Solarbotics GM2, and as Pololu says...This 224:1 gearmotor (gearbox with motor) is a great low-cost alternative to modified hobby servos or Tamiya gearboxes. The low-current motor is a perfect match for our qik 2s9v1 dual serial motor controller, and the compact size of 2.17" x 1.89" x 0.906" (55 x 48 x 23 mm) makes this unit an attractive choice for small robot designs.



At 5 V, the gearbox and motor provide 50 oz-in of torque and 38 RPM, which is slightly slower than a servo. The free-running current is 52 mA, and the stall current is 600 mA. A built-in safety clutch engages at approximately 60 oz-in.

This gearmotor comes pre-assembled, with the gears fully enclosed. There are built-in mounting holes, and the output shaft is 7mm in diameter with two sides flattened.