the light and color sensors
The Light Sensor (shown in Figure 5-19) measures the brightness of light shining into the front of the sensor. This sensor is useful when you want your robot to react to different light levels in a room or to seek out a light source in a maze or obstacle course. The Light Sensor can distinguish between shades of gray when it’s pointed at an object or the floor, which makes it useful for identifying objects or following a line.
The Light Sensor is included in the original NXT retail kit and the education set. The NXT 2.0 retail kit includes a Color Sensor (shown in Figure 5-20) instead of a Light Sensor. The Color Sensor has all the functionality of the Light Sensor, with the added ability to more accurately (and easily) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access