O'Reilly logo

The LEGO MINDSTORMS EV3 Discovery Book (Full Color) by Laurens Valk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required