sonar


Closed Thread
Results 1 to 8 of 8

Thread: sonar

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    i've been struggling with this for some time now and i'm fairly confused.. any pointers would be very helpfull
    jim, instead to take one sample at the time, from your sonar, take several samples and average them, to have a more reliable reading and as conseguence a more reliable behavior of your robot.

    Al.
    All progress began with an idea

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


    Did you find this post helpful? Yes | No

    Default

    We have several PBP code examples for the SRF04 (works the same as the SRF05), and
    using photocells in our Micro-Bot projects section you might find helpful.

    http://www.rentron.com/Micro-Bot/Sonar.htm

    Main page: http://www.rentron.com/Micro-Bot/index.htm
    Regards,

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

  3. #3
    Join Date
    Apr 2007
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    wow a blast from the past.

    Does it normally take 3years to get a response around here

    i cant remember the ins & outs of it now but it looks like there are some good suggestions posted

  4. #4
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default I think I found a solution, but...

    My problem was that the length of the PULSOUT pulse was way toooo long. This was true even if I did a PULSOUT trigfront, 1. I have no explanation for that behavior of a 16F887.

    So I changed PULSOUT to:


    HIGH trigfront
    PAUSE 1
    LOW trigfront.
    Followed by a PULSIN.

    Why? I am modifying a hobby level radio control car to toggle between RC and autonomous control. The project has been the theme of
    "PBP projects for R/C models" thread for a some months.

    With the above fix the car seems to respond correctly on its blocks with me moving a oak cutting board in front and on the right side to simulate the inside a room with no furniture.

    Thanks, gang. Whoever you are.

    Ken

  5. #5
    Join Date
    Nov 2009
    Location
    Fitchburg, Mass
    Posts
    483


    Did you find this post helpful? Yes | No

    Default It works! But there may be a problem

    I have the car running around on the floor being guided by its PIC. This is a hobby level car with electronic speed control and continuous servo steering.

    The steering seems to respond too slowly. Particularly when told to steer straight. That is the position of no current into the servo. I'm not sure there is a fix for this short of going to a toy level car with a bang bang servo and a mechanically controlled neutral.

    Ken

    Ken

Similar Threads

  1. Replies: 23
    Last Post: - 23rd September 2008, 18:20
  2. PIC based SONAR
    By PICtron in forum Off Topic
    Replies: 1
    Last Post: - 3rd February 2005, 21:44
  3. sonar transducers
    By cjsanders in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 24th November 2004, 11:37

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