Project 29 – Using a Motor Shield
You are now going to use a motor shield to control two motors separately. You'll learn how to control the speed and direction of each motor and apply that knowledge to control the wheels on a two-wheeled robot. When you move onto Project 30, these skills will be employed to make a line-following robot.
Parts Required
You can run this project just using two DC motors if that is all you have. However, that's not a lot of fun. So either obtain a two wheeled robot base or make one out of two geared motors with wheels. The rotation at half speed needs to be about 20cm or 6 inches of forward movement per second.
The battery pack will need to have enough voltage to run your Arduino, shield and motors. I used 6 × AA ...
Get Beginning Arduino now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.