PDA

View Full Version : Help...Distance Meter



tohu thomson
- 11th September 2007, 20:39
hello
how i can make distance meter with pic16f628a and 7segment ??

thank you

mackrackit
- 12th September 2007, 02:00
You may want something like this.
http://www.parallax.com/detail.asp?product_id=28015

Archangel
- 12th September 2007, 06:31
hello
how i can make distance meter with pic16f628a and 7segment ??

thank you
Please DEFINE distance meter.
Are you measuring distance from here to there, or are you measuring distance traveled?

tohu thomson
- 12th September 2007, 15:32
hello

I am measuring distance from here to there.

thank you

mvs_sarma
- 12th September 2007, 17:39
hello

I am measuring distance from here to there.

thank you
you may use ultrasonic transducrs as TX and Rx- send a pluse of Ultrasonic signal as TX while at the same time sarting a timer
when this signal travels forward and gets reflected from the place (by an arranged reflector) and as it is received by the tranducer (which is now configured as Rx) stop the timer by the int created by the received signal. you know the velocity of sound in normal air. use a formula to convert the uS of time accumulated into distance.

tohu thomson
- 13th September 2007, 11:34
hello
thank you mvs_sarma

I found many codes for this project and they use the same thing you say, but all of them written in C language , and I can't program with this language.
And I found another written in asm with AT89C2051.
I understand that how it works but I can't write it in picbasic.

thank you

Bruce
- 13th September 2007, 13:50
I have an example of using the Devantech SRF04 sonar range-finder with PBP in our
Micro-Bot projects section here http://www.rentron.com/Micro-Bot/Sonar.htm

Devantech makes the SRF04 schematic & source code available for folks that prefer to build
one themselves: http://www.robot-electronics.co.uk/htm/srf1.shtml

They have several more here: http://www.robot-electronics.co.uk/shop/Ultrasonic_Rangers1999.htm

The Parallax PING module linked to by mackrackit should also be pretty simple to use.

tohu thomson
- 14th September 2007, 00:30
Hello
Thank you very much for your help.
sorry but how can I make distance meter without using ultrasound generator, e.g. infrared or laser or other methods.
because the tools of ultrasound doesn't offer in my country.

Thank you.

Bruce
- 14th September 2007, 01:24
With standard off-the-shelf type IR components, this isn't incredibly precise, but here's
one way to do it: http://www.rentron.com/PicBasic/infrared_object_detection.htm

If you want something pre-manufactured, and a bit more accurate, then do a Google search
for Sharp GP2D12. I've never used on myself, but I hear they're fairly accurate.

Laser range-finders are a great deal more complex + expensive, but still an option if you have
the budget. Here's an intro http://www.repairfaq.org/sam/lr/

You can find a LOT more with a quick search at Google.

tohu thomson
- 14th September 2007, 23:30
Hello

Thank you very much Bruce ...

Archangel
- 18th September 2007, 07:07
Hello
Thank you very much for your help.
sorry but how can I make distance meter without using ultrasound generator, e.g. infrared or laser or other methods.
because the tools of ultrasound doesn't offer in my country.

Thank you.
You could use a wheel and an encoder.