Help...Distance Meter


Closed Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Aug 2007
    Posts
    14

    Default Help...Distance Meter

    hello
    how i can make distance meter with pic16f628a and 7segment ??

    thank you

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    You may want something like this.
    http://www.parallax.com/detail.asp?product_id=28015
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tohu thomson View Post
    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?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Aug 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default Distance Meter

    hello

    I am measuring distance from here to there.

    thank you

  5. #5
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tohu thomson View Post
    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.
    Regards,
    Sarma

  6. #6
    Join Date
    Aug 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default distance meter

    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

  7. #7
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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/s...angers1999.htm

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

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  8. #8
    Join Date
    Aug 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    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.

  9. #9
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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/infr..._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.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  10. #10
    Join Date
    Aug 2007
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    Hello

    Thank you very much Bruce ...

  11. #11
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tohu thomson View Post
    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.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Hall Effect flow meter with 16F876
    By revelator in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 10th March 2010, 20:42
  2. Long distance Communicating between PICs
    By koossa in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 4th January 2008, 06:47
  3. Help measuring distance....
    By sirvo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th July 2007, 16:11
  4. Distance Measurement Chips
    By sayzer in forum Off Topic
    Replies: 6
    Last Post: - 2nd February 2007, 20:57
  5. GPS waypoint distance in Km
    By Art in forum Code Examples
    Replies: 1
    Last Post: - 28th August 2005, 01:59

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts