Adafruit Motor Shield
Created by lady ada
Last updated on 2014-05-12 04:07:05 PM EDT
Guide Contents
Guide Contents
Overview
FAQ
Make It!
Lets go!
2
4
6
10
10
Preparation
Tutorials
Tools
11
11
11
Parts List
Solder It
Use It!
Library Install
First Install the Arduino Library
15
18
35
36
36
Power Usage
Powering your DC motors, voltage and current requirements
How to set up the Arduino + Shield for powering motors
Using RC Servos
Using Stepper Motors
Using DC Motors
DC motors are used for all sort of robotic projects.
37
37
37
40
42
45
45
AF_DCMotor Class
AF_DCMotor motorname(portnum, freq)
setSpeed(speed)
run(cmd)
AF_Stepper Class
AF_Stepper steppername(steps, portnumber)
step(steps, direction, style)
© Adafruit Industries
https://learn.adafruit.com/adafruit-motor-shield
47
47
49
49
50
50
51
Page 2 of 56
setSpeed(RPMspeed)
onestep(direction, stepstyle)
release()
Resources
Motor ideas and tutorials
52
52
53
54
54
Downloads
Schematics & Layout
Firmware
55
55
55
Forums
56
© Adafruit Industries
https://learn.adafruit.com/adafruit-motor-shield
Page 3 of 56
Overview
Arduino is a great starting point for electronics, and with a motor shield it can also be a nice
tidy platform for robotics and mechatronics. Here is a design for a full-featured motor shield
that will be able to power many simple to medium-complexity projects.
2 co nnectio ns fo r 5V 'ho bby' servo s
connected to the Arduino's high-resolution
dedicated timer - no jitter!
Up to 4 bi-directio nal DC
motors with individual 8-bit speed selection (so, about
0.5% resolution)
Up to 2 stepper mo to rs
(unipolar or bipolar) with single coil, double coil,
interleaved or micro-stepping.
4 H-Bridges: L293D chipset provides 0.6A per bridge (1.2A peak) with thermal
shutdown protection, 4.5V to 25V
Pull down resistors keep motors disabled during power-up
Big terminal block connectors to easily hook up wires (10-22AWG) and power
Arduino reset button brought up top
2-pin terminal block to connect external power, for seperate logic/motor supplies
Tested compatible with Mega, Diecimila, & Duemilanove
Full kit available for purchase from the Adafruit shop.
(http://adafru.it/81)
© Adafruit Industries
https://learn.adafruit.com/adafruit-motor-shield
Page 4 of 56
Download the easy-to-use Arduino software libraries and you're ready to
go!
(http://adafru.it/aON)
© Adafruit Industries
https://learn.adafruit.com/adafruit-motor-shield
Page 5 of 56
评论