Chapter 8. using the infrared sensor

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

Get The LEGO MINDSTORMS EV3 Discovery Book (Full Color) 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.