Datasheet
Using DC Motors
DC motors are used for all sort of robotic projects.
The Motor HAT can drive up to 4 DC motors bi-directionally. That means they can be driven
forwards and backwards. The speed can also be varied at 0.5% increments using the high-
quality built in PWM. This means the speed is very smooth and won't vary!
Note that the H-bridge chip is not meant for driving continuous loads over 1.2A or motors
that peak over 3A, so this is for small motors. Check the datasheet for information about the
motor to verify its OK!
Connecting DC Motors
To connect a motor, simply solder two wires to the terminals and then connect them to
either the M1, M2, M3, or M4. If your motor is running 'backwards' from the way you like, just
swap the wires in the terminal block
For this demo, please connect it to M3
Now go into the Adafruit-Motor-HAT-Python/examples folder and run sudo python
DCTest.py to watch your motor spin back and forth.
© Adafruit Industries
https://learn.adafruit.com/adafruit-dc-and-stepper-motor-hat-for-
raspberry-pi
Page 22 of 38










