This infrared sensor for Lego Mindstorms NXT, from Mindsensors, is like the ultrasonic sonar sensor, it can measure distances to obstacles. This infrared sensor detects and measures the distance to obstacles between 30cm and 140 cm. The calibration of the infrared sensor is embedded and enables effective and accurate measures.
This smart infrared sensor has also a function to turn it off when not in use to reduce the energy consumption of your robot Lego Mindstorms NXT.
Technical specifications of the infrared sensor
- High resolution : Provides reading directly in millimeters
- Detection range :from 30cm to 140cm
- Infrared sensor Sharp GP2Y0A02YK
- Energy consumption : 30mA at 4.7V
Programming the infrared sensor for Lego Mindstorms NXT
Programming the infrared sensor using NXT-G
This infrared sensor can be programmed using NXT-G, the graphical language of the Lego Mindstorms NXT robot. To download the code of the NXT-G block to program this infrared sensor, click on the following image:
Programming the infrared sensor using RobotC
This infrared sensor can be programmed using RobotC, a C programming language for the Lego Mindstorms NXT robots:
Example of use of the infrared sensor for the Lego Mindstorms NXT
A video of an example of the use of the infrared sensor: