This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

IR Sensors

Read data from infrared sensors connected to the EV3 brick


irSensorConnection to infrared sensor


readProximityRead distance from infrared sensor to object
readBeaconProximityRead distance and heading from infrared sensor to beacon
readBeaconButtonRead number of pressed button on infrared beacon

Examples and How To


IR Sensor and Remote Infrared Beacon

IR Sensor and Remote Infrared Beacon


Cannot Connect to a Sensor or Motor

Troubleshoot connections to LEGO®MINDSTORMS® Sensors or Motors