Fun Projects for your LEGO® MINDSTORMS® NXT! |
Machine Gun |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Use a medium-length wire to connect the motor to port A on the NXT.
19
Use the shortest wire for this step.
20
Connect the touch sensor's wire to port 1 on the NXT.
21
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
Machine Gun 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. |
Challenges
|
|
Copyright
©
2007-2011 by Dave Parker. All rights reserved. |