Fun Projects for your LEGO® MINDSTORMS® NXT! |
Hammer Car |
|
1-15
Start by building the 2-Button Remote Control with the 3-Motor Chassis. Click the picture for building instructions. |
16
17
18
19
20
Hammer
Car Programming Use the HammerCar program to control the Hammer Car with the 2-button remote control. The controls operate as follows:
The HammerCar program is a complex extension of the 2TouchDrive program (which is itself an extension of the simpler 2TouchRemote program), which adds the a way to control the hammer and make the sound. Before trying to understand the HammerCar program program, study these two simpler programs first. In order to tell the difference between a button being briefly pressed and the same button being held down, the HammerCar program uses timers to keep track of how long the two buttons are held down. Then three parallel block sequences are used to carefully track the state of the two buttons and perform the desired actions. |
Challenges
|
|