LEGO Engineering

| | | | | | | |
What are some possible uses for the NXT ultrasonic / proximity sensor? How do I program it with NXT-G?


20th of April, 2010

(1 )
100% thumbs up 0% thumbs down

The ultrasonic sensor is primarily used to determine the distance to the nearest object within range of the sensor. Some ideas for the integration of this sensor are:

1) Build a tilt sensor to determine when a platform is tilted toward or away from the floor.
2) Determine the distance away from an object and, if the object gets too close, move away from the object.  If the object is too far away, move towards it.

The attached program runs a motor in one direction if the distance between the sensor and the floor is greater than 50 cm, and in the opposite direction if the distance between the sensor and the floor is less than 50 cm. Ideally, this would be attached to some kind of platform being balanced by a motor.  Then, if the platform tilts, the motors would choose which way to run to even it out.





VH
   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.