conclusion

The NXT sensors allow you to build a robot that interacts with the world around it. The different sensors (Light, Color, Touch, Sound, Ultrasonic, and Rotation) let your robot perceive its environment in a several different ways, allowing you to create robots that exhibit a wide variety of interesting behaviors. The programs presented in this chapter show how to use of each of the sensors in combination with Wait, Loop, and Switch blocks to create some interesting NXT-G programs, from a simple door chime to the more complex BumperBot program.

Get The Art of LEGO MINDSTORMS NXT-G 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.