Monday, December 31, 2007

NXT-G Program Basic- Lesson 3- Wait Block



Lesson 3 Wait Block
The Wait Block will stop when specific conditions are met.
NXT robot will keep moving forward until a special condition is met.
And with NXT-G that condition can occur using a sensor, timer, an NXT button,or a time limit. Consider a NXT-G program to spin motors A and C forward with an unlimited duration and a power setting of 50



Time Wait Block



Light Sensor Wait Block



The Nxt Button Wait Block



The Rotation Sensor Wait Block



The Sound Sensor Wait Block



The Timer Wait Block



The Touch Sensor Wait Block



The Ultrasonic Sensor Wait Block




Thursday, December 27, 2007

NXT-G Program Basic-Lesson 2 Sensors




NXT-G Program Basic- Sensors









































NXT-G Configuring the Sensors
Sensors include NXT Touch, NXT Sound, NXT Light, NXT Ultrasonic,
NXT Rotation.
Sensors detect a change in a condition. The condition could be a change in light level,a change in volume(sound) or maybe a change in position (movement).
The sensor is simply watching the changes in its condition.
Sensor Programming Blocks can only respond to one condition at a time. When one drop
a sensor block into an NXT-G program, it has to be configured to test one condition.
A single Light sensor, for example, cannot be configured to test whether the light in a room is below 80 and greater than 50. In order to test both conditions, one would need to use two Light sensor blocks in one's program.
Finally, sensors can provide only a Logic type response:True or False.



Data Block



Typical Touch Sensor Data connected with a wire



NXT Touch Sensor's configuration panel




NXT-G Program Basic-Lesson 1



NXT-G Program Basic-1