Change the Wait block to wait for the touch sensor to be bumped (pressed and released once).Īdd a second Wait block just after the first Wait block and before the Move block.Run the program, and observe the behavior of the NXT car when you press the touch sensor.The Wait block should be set to wait for the touch sensor to be pressed. Set the Duration of the Move block to 2 seconds. Make sure to change the Move block to Ports A and C. Write a program exactly like the one above.Attach one motor to Port A and the other motor to Port C. You will need an NXT car with two motors and a touch sensor. Did the differences in the NXT car’s behavior the second time reflect your changes?ĭraw an NXT brick and label the following parts: Run the changed program and again, note the behavior of the NXT car.Change the amount of time that your car moves forward and backward.Run the program, and observe the behavior of the NXT car.The second Move block should have the Direction set to Reverse. Set the Duration of each Move block to 2 seconds. Make sure to change both Move blocks to Ports A and C. You will need an NXT car with two motors. The following are examples of programming challenges for LEGO MINDSTORMS NXT Software (NXT-G).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |