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

0 comments:
Post a Comment