Chapter    8

Light Detection

A robot that can detect and interpret its surroundings and then make decisions based on those findings is a smart robot. A smart robot is the key to a winning robot. One way for your LEGO MINDSTORMS robot to acquire input from its environment is to use an NXT Light sensor. Many new teams are intimidated to use sensors other than the rotation sensors built into the NXT servos. This doesn’t need to be the case.

One of the great things about the NXT Light sensor is that it’s a passive sensor as far as hardware. You simply place it on your robot (facing the direction you wish to use for detection) and wire it up. It is ready for action. In order to get the most out of it, you will need to have a good understanding of ...

Get Winning LEGO MINDSTORMS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.