DocumentsDate added

This program runs Motor A until the light reading is less than 50. Once the light reading is less than 50, Motor A stops and Motor C runs for 0.25 seconds. This processed is infinitely looped.
This program is works like the Line Follower: Wait for Dark program but it uses a Switch. The program runs a Switch--in a infinite Loop--that runs Motor A and makes sounds when reading light. The program stops Motor A then runs Motor C for 0.25 seconds when reading dark.
This program says "Hello."
View Program
In this code, sound frequencies are played corresponding to changing
light values. Light sensor readings, which fall between 0-100, are
placed in a variable and multiplied by the constant 8. The value
of that variable, which now falls between 0-800, becomes the frequency
in Hz of the sound played. The frequency is also displayed on the NXT.
View Program
There are many ways to stop a car at a black line. Using a light
sensor attached to Port 1, the program takes the initial light reading, drives forward (one motor car) and waits for a difference greater than or equal to 5. Once this difference is reached, the Switch stops the NXT and exits the program.

This code turns on Motor A for two seconds, and then turns it off.
Similiar codes can be made by adding motors or changing times.
View Program
This program uses two touch sensors combined with two Switches--all in an infinite loop--to display a number on the screen. Port 1 adds 1 and Port 2 adds 100. The "adder" variable is set to zero at the beginning of this program.
View Program
The advanced proportional control program works the same way as
the basic version; however, this code allows the user to vary the
proportionality constant. When run, the NXT first displays the current
proportionality constant that the later "power" variable will be divided
by. Thus, if 4 is shown on the NXT, the proportionality constant will
be ? or .25. The constant can be changed by turning the rotation
sensor. Only positive values will work. After the constant is set,
a press of the touch sensor will "Switch" into the proportional control loop from the basic program.
Experiment with different constants. Note the difference between very
small constants and very large constants.
View Program
Like its smaller cousin, the three-button remote control is a
great way to define unique behaviors for your robot. The advantage
to the three-button control is that there are now 8 possible behavior
combinations, compared to just 4 on the 2-button remote. In addition
to forward, left and right motion on our two motor car, it is now
possible to move in reverse, and even control a third motor. With
so many combinations, it is possible that you don?t need them
all. In that case just leave one branch of the Switch empty.
This is another version of the two-button remote.