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
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 ...