Go to Post "I need the adjustable hammer" "You mean that wren-" "No, it's a hammer" - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-02-2013, 00:16
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
programming with MaxBotics ultrasonic sensor

I am trying to get some help for one of our programmers to get the MaxBotix ultrasonic sensor working. Unfortunately, I normally work on the hardware and I am not familiar with LabView and there is no one else available who is. A search of CD has not turned up any threads where someone had similar symptoms.

http://www.andymark.com/product-p/am-2435.htm

What we are seeing is that the value returned is very different from the actual distance. As the distance is increased, the distance measured goes up and down (i.e. 39 inches at 3ft, 32 inches at 4ft). He has been using the software with the following settings: Bit Average of 3 and 10, Sample Rate of 100 samples/second, Scaling of 0.0098 V/in. He was aiming the sensor at a large piece of cardboard (2.5 ft x 5 ft). He did notice that how he held the sensor in his hand had some influence on the distance measured.

I noticed on the AndyMark website that the sensor has a "reading rate" of 10Hz. Am I correct in thinking that we should sample the output of the ultrasonic sensor at something closer to it's reading rate, say 5 to 20 samples/second?

Is there a recommended value for the bit averaging? Am I correct in thinking that this value determines the number of sample values that are used to compute a running average?

Are there any recommendations for how to mount the sensor other than what is discussed on the MaxBotix website?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-02-2013, 10:53
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: programming with MaxBotics ultrasonic sensor

I don't have one of the sensors to experiment with, but the data sheet implies your read rate is high and you may be averaging good and bogus values. I searched and people don't seem to give detailed instructions. That implies it should be pretty easy and something like the sample rate may be the primary issue.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 10-02-2013, 12:12
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 938
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
Re: programming with MaxBotics ultrasonic sensor

Thanks for your input. We only only had enough time to try 100 samples/sec. It was originally up at 1000 samples/second. I will get him to try different sample rates next time.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:51.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi