LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ultrasonic sniffer

Let me start off by saying that I know VERY little on coding and have only been messing with labview for about two weeks. 

 

For class project we are to build a vehicle with a LEGO Mindstorm kit that can escape a maze from three locations.  We are using the ultrasonic sensor on a pivoting motor to detect walls and would like for it to decide a best route.  We are having a difficult time limiting the angle of movement of the pivoting motor the ultrasonic sensor is mounted on.  Also, we would like for it to pause and think about which direction it should go instead of acting so wild.

0 Kudos
Message 1 of 3
(2,956 Views)

First off I'd recommend posting in this forum: http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460 as it's specific to Mindstorms and you'll probably get some great help there.

 

For the pivot motor, are you able to limit the angle of movement at all, or are you havig trouble getting it to stop at a certain point?

 

As for the pausing while it's thinking, you can increase the amount of time it takes after a wall is sensed using the ultrasonice sensor by adding a wait function. Or maybe you require it to take two sets of measurements to verify it's readings, compare the two, then move on. Making it move slower as well could help. 

Daniel Parrott
Software Product Marketing - Data Management & LabVIEW
National Instruments
0 Kudos
Message 2 of 3
(2,897 Views)

ok, I will post to the other section.  Thank you for your input.

0 Kudos
Message 3 of 3
(2,846 Views)