High Precision Short Range Infrared distance sensor for NXT
This infrared sensor for Lego Mindstorms NXT, from Mindsensors, is like the ultrasonic sonar sensor, it can measure distances to obstacles. This sensor detects and measures the distance to obstacles between 4cm and 30 cm. The calibration of the infrared sensor is embedded and enables effective and accurate measures.
This smart sensor has also a function to turn it off when not in use to reduce the energy consumption of your robot Lego Mindstorms NXT.
- High resolution : Provides reading directly in millimeters
- Detection range :from 4cm to 30cm
- Infrared sensor Sharp GP2D120
- 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 :