Saturday, November 18, 2006

Using NXT Ultrasonic Sesnor for Obstacle Race IROC

IROC using NXT Ultrasonic Sensor
Wait for Ultrasonic Sensor

What the “Wait For Ultrasonic And Touch Sensor” brick does
The sensor will wait until either the Ultrasonic sensor has detected the selected range.
It will return the value 1 if the Ultrasonic sensor has detected the selected range, it will return the value 2.

Configuring the brick

Example on the use of Ultrasonic Sensor for IRO competition
Robot will travel forward until it sensors an obstacle less than 5 inches distance, it reverses and turn left and forward again. It
keeps on a loop until it paases through the obstacle.
The Program to do is as follows:

Ultrasonic Sensor is configured to perform as follows



0 comments: