Fun Projects for your LEGO® MINDSTORMS® NXT!
Use a medium-length wire to connect the motor to port A on the NXT.
Use the shortest wire for this step.
Connect the touch sensor's wire to port 1 on the NXT.
|This step builds the ammunition clip and loading pin. Please see the Loading and Firing Instructions to see how to use them. The pile of 3-hole beams are the bullets. The ammunition clip will hold up to 10 bullets, although the magazine on the gun will hold up to 15 bullets.|
|The ammunition clip and loading pin can be stored on the gun as shown below. The gun will not fire with the clip in place as shown. See the Loading and Firing Instructions to learn how to load and fire the gun.|
Machine Gun Programming
Use the program Machine Gun for the Machine Gun. This program handles the firing by spinning the motor as long as the trigger button (touch sensor) is held down. The program also uses the orange button on the NXT brick as a "safety" mode button, so that you can toggle the gun in and out of safety mode, to keep it from going off by accident while you are loading or carrying it.
|Loading and Firing the
The machine gun must be carefully loaded to get the bullets into the proper position and to prevent them from spilling out. See the Loading and Firing Instructions.
2007-2011 by Dave Parker. All rights reserved.