CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

OT: laser/ultrasonic rangefinder module

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

OT: laser/ultrasonic rangefinder module
PostPosted: Sat Sep 17, 2005 2:49 pm     Reply with quote

Sorry for the off topic post, but this forum is not only a wealth of information relating to CCS/PICs, but also embedded h/w in general.

I'm trying to find a rangefinder module that can measure distance to a target with a usable range of around 30 cm up to 3 m. Power supply of 12V, at least 100 measurements per second, outdoor environment, -40C to 50C, 0 to 100% humidity, possibility of rain hitting the unit. The targets will not necessarily have surfaces which are perpendicular to the sensor, nor will they necessarily be good light reflectors. A rarther demanding situation, I know.

Output can be analog or digital (rs-232 or similar). What I have in mind is something like the handheld electronic tape measures in home improvement/hardware stores.

I'm strongly leaning toward an ultrasonic sensor (Senix looks like it has the best), but the only thing that I'm leery of is their susceptibility to turbulence. The environment where this will be used will not be free of turbulence.

I'd like to check out the laser distance measurement modules, but I can't find any information regarding price at all.

Has anyone used one of these beasties (laser unit)? What sort of price (ballpark) should I expect, and what manufacturer(s) should I check out?
Felix Althaus



Joined: 09 Sep 2003
Posts: 67
Location: Winterthur, Switzerland

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 3:20 am     Reply with quote

Hello

Quote:
...at least 100 measurements per second...


Could be a bit difficult:

c = 340m/s
round-trip distance: s = 2*3m = 6m

round-trip time: s/v = ~17ms

=> maximum measurement frequ: ~59Hz << 100Hz


Felix
Ttelmah
Guest







PostPosted: Sun Sep 18, 2005 4:31 am     Reply with quote

c, is the letter used to indicate the velocity of light, not the velocity of sound. It is just fractionally under 300000km/sec. the round trip time using light, is about 2 nano seconds.
The problem though is that to get resolution of perhaps a few cm, requires taking timings to an accuracy of a few pico seconds. This is why light based systems are relatively expensive. Typical starting prices in the $200 area for fairly basic units.
The velocity of sound in dry air at 0C, is 331.4m/sec. This limits the maximum sample rate to 55Hz using sound.

Best Wishes
Felix Althaus



Joined: 09 Sep 2003
Posts: 67
Location: Winterthur, Switzerland

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 5:06 am     Reply with quote

Yeah, my calculation is for US, I'm sorry, I should' ve mention that...
I'm studying etech and we use c for any propagation speed. We get it from the context, if it means sound, light or whatever.
What's the correct symbol for the speed of sound?

Felix
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 7:39 am     Reply with quote

In industrial sonar work we also use c for the speed of a wave through a media, whether it be air, water, steel, etc..
Robert J Urick, an esteemed author in oceanographic acoustics, uses c for the speed of sound in water in his textbook Principles of Underwater Sound published by McGraw-Hill (1967).
_________________
The search for better is endless. Instead simply find very good and get the job done.
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Sun Sep 18, 2005 10:34 am     Reply with quote

Ttelmah wrote:
The problem though is that to get resolution of perhaps a few cm, requires taking timings to an accuracy of a few pico seconds. This is why light based systems are relatively expensive. Typical starting prices in the $200 area for fairly basic units.
The velocity of sound in dry air at 0C, is 331.4m/sec. This limits the maximum sample rate to 55Hz using sound.


Yes, you're right - 100 samples/second using ultrasound isn't possible. Sorry for that.

Do you know where I could find a light based system for $200? That's extremely attractive given that the ultrasonic system I'm looking at is in the range of $500 - $600.

Like I said earlier, the situation is very demanding and can be quite harsh. If I can get my hands on a laser/optical system that is meant for indoor use (for little $$), I can bodge a makeshift enclosure no problem.
Ttelmah
Guest







PostPosted: Sun Sep 18, 2005 10:34 am     Reply with quote

Interesting.
Quick look at three textbooks, and they all use 'v' for the velocity of sound, suffixed by the medium.
c is a defined constant, and just like 'g', you shouldn't really use it for anything else, unless this is clear from the context.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group