Chapter 12. Motors and Movement

In this chapter you will

  • Use a servo to create an analog thermometer

  • Learn how to control the speed and direction of electric motors

  • Use an Arduino motor shield

  • Begin work on a motorized tank robot

  • Use simple microswitches for collision avoidance

  • Use infrared and ultrasonic distance sensors for collision avoidance

Making Small Motions with Servos

A servo (short for servomechanism) contains an electric motor that can be commanded to rotate to a specific angular position. For example, you might use a servo to control the steering of a remote control car by connecting the servo to a horn, a small arm or bar that the servo rotates. An example of a horn is one of the hands on an analog clock. Figure 12-1 shows a servo and three ...

Get Arduino Workshop 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.