7. Know Your Sensors

In this chapter, we explore the sensors that come with your Mindstorms set (see Figure 7.1), as well as LEGO-compatible sensors other companies manufacture. Sensors are super important! They’re what inform a robot about its surroundings. Being able to detect colors, objects, and movement allows the robot to interact with the environment around it. Even better, those sensors let the robot adjust its program depending on what the robot encounters. How cool is that?

Image

Figure 7.1. How does your robot interact with its surroundings? With sensors.

Mindstorms Sensors

First, let’s look at the sensors you get in the Mindstorms set. LEGO ...

Get Basic Robot Building With LEGO Mindstorms NXT 2.0 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.