O'Reilly logo

The LEGO MINDSTORMS NXT 2.0 Discovery Book by Laurens Valk

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8

shot-roller: a robotic defense system

Now that you’ve learned how to control motors, use sensors, and program the NXT, you can begin making more complex machines. This chapter will show you how to build and program the Shot-Roller (Figure 8-1). This three-wheeled construction can shoot balls in any direction.

NOTE Enjoy the Shot-Roller, but remember to never shoot at people! As long as you respect the safety of others, this is not a dangerous robot.

The Shot-Roller can operate in either autonomous or remote-control mode. In autonomous mode, it does everything by itself. You can program it to look around and shoot at targets detected by the Ultrasonic Sensor or to respond to light signals using the Color Sensor. In remote-control mode, you use ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required