Using the Infrared Sensor



The Infrared Sensor can detect infrared light signals that are sent from the Remote Infrared Beacon (IR Beacon). The Infrared Sensor can also send its own infrared light signal, and detect the reflection of this light by other objects.

The Infrared Sensor can be used in three different modes: Proximity, Beacon, and Remote.
Proximity Mode
In Proximity mode, the Infrared Sensor sends its own infrared signal and can detect the reflection of this signal by an object in front of the sensor. The strength of the reflected signal can be used to estimate the proximity of (distance to) the object.

See Using the Infrared Sensor Proximity Mode.
Beacon Mode
In Beacon mode, the IR Beacon transmits a special beacon signal continuously, and the Infrared Sensor can detect the approximate position of the beacon in front of the sensor.

See Using the Infrared Sensor Beacon Mode.
Remote Mode
In Remote mode, the Infrared Sensor can detect button presses on the IR Beacon. You can use the Remote mode to make a remote control for your robot, for example.

See Using the Infrared Sensor Remote Mode.
Tips and Tricks
Infrared light is the same kind of signal used by most TV remote controls. You cannot see infrared light, but, like visible light, it is blocked if objects are in the way. The IR Beacon must have a “line of sight” to the Infrared Sensor to be seen. Sunlight can also interfere with the infrared signals, although normal room light should not affect it.
Infrared (IR)
Quick links