reading ultrasonic receve


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Re: reading ultrasonic receve

    ok I tried pause from 50 to 200 milliseconds but it will not respond until I comment the pause command out or remove, it I am wondering if the pic itself is bad internally if so that could explain some erroneous behavior, i have a couple of pic 16f877A coming in and may use them to see if it clears up and then try these later on new 12f683 pics

  2. #2
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: reading ultrasonic receve

    I have found when I suspect a bad PIC, it turns out that it is just doing what I programmed it to do.


    ok I tried pause from 50 to 200 milliseconds but it will not respond until I comment the pause command out or remove
    Anyways, 50 to 200ms PAUSE's are way to long to wait since:
    Max distance measured is 4M or 157.48 inches
    And if I'm thinking straight, that works out to 157*15= 2362 counts
    Then with PUSLIN at 10us per increment is 2362*10us = 23.62ms

    So 23.62ms will be the maximum time measured for 4 meters. Unless I took a rong tern somewhere in the calculation.

    Do you have a scope to see how long it actually takes to complete the pulse transmission?
    Louie

Similar Threads

  1. Ultrasonic range meter
    By Crista in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th June 2008, 18:01
  2. the ultrasonic SRF04 with pic16f88
    By tur_bot in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 20th March 2008, 17:24
  3. sensor ultrasonic 8051&PIC
    By hd_uni_pro in forum Schematics
    Replies: 1
    Last Post: - 13th September 2006, 12:58
  4. ultrasonic sensor
    By PoTeToJB in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 9th May 2006, 20:26
  5. SRF08 Ultrasonic Rangefinder
    By rad in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th July 2003, 21:01

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