June 2014
Beginner to intermediate
396 pages
11h 57m
English
The Infrared Sensor lets your robot “see” its surroundings by measuring the approximate distance to an object using infrared light. In addition, the sensor gathers information from the infrared remote (also called the beacon). The sensor can detect which buttons on the remote you press, approximately how far away the remote is, and the relative direction, or heading, from the robot to the remote.
You can implement each of these features in your programs using the Infrared Sensor in four different modes: Proximity, Remote, Beacon Proximity, and Beacon Heading (see Figure 8-1). You can actually see the infrared light from the beacon by viewing it with a digital camera, such as the one in a smartphone. You can ...
Read now
Unlock full access