DocumentsDate added
This program turns the motor on for one second, then stops the motor.
This program turns the car for a set amount of time. The turning time, steering, power, and ports are all controls rather than constants, which means that they can be adjusted on the front panel of the program.
In this program, motors A and B rotate 720 degrees (two revolutions), the NXT brick plays the note C for 1 second, and then motor A rotates 90 degrees.
This program runs both motors forward for five seconds then stops them by braking.
This program runs all motors until the touch sensor is pressed, then all motors are stopped using brake.
This example demonstrates how a case structure can be used to control the movement of a motor. The state of the case structure is determined by the feedback from a touch sensor.
This example demonstrates how a case structure can be used to control the movement of a motor. The state of the case structure is determined by the feedback from a touch sensor. If the touch sensor is pressed the motor moves forward and if is not pressed the motor moves in reverse. Note: The touch sensor is only read once in this program, to have it continually update place the code in a loop.
This program makes the car turn until the touch sensor is pressed. To control the degree and direction of steering, input a number between 100 and -100.