the ultrasonic SRF04 with pic16f88


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Default

    - Try External clock !!! ( internal Osc is "not so accurate" ...)

    - Place "Low trigger" just before "Pulsout"

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    Join Date
    Mar 2008
    Location
    london
    Posts
    15


    Did you find this post helpful? Yes | No

    Unhappy still not working

    i just tryied to use the external clock again.
    but it is still not working.

    any one with an idea, please ??????

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tur_bot View Post
    i just tryied to use the external clock again.
    but it is still not working.
    any one with an idea, please ??????
    Re-read post #2 and post #4...
    Look at your program...
    Take a good look at PortA.0
    Compare PortA.0's function from the datasheet to what you are trying to do with it...

    Get back to us with the results...

  4. #4
    Join Date
    Mar 2008
    Location
    london
    Posts
    15


    Did you find this post helpful? Yes | No

    Default what do you mean

    what do you mean by check porta.0 , read post2 and 4 ????? do you mean that the porta.0 is analog and I shouldn't use it for digital signals input????

    anyway , I moved the echo signal to differents port.b's and port.a's and nothing changed.

    I tested few portB input pins with infrared detectors ( which worked fine) but when the echo input signal, is connected to the same portb that i just tested , and the trigger signal output (connected to portb output pins that i tested with LEDs) of my srf04 are connected , nothing is working

    can you tell me clearly what do you have in mind please???

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


    Did you find this post helpful? Yes | No

    Default

    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Mar 2008
    Location
    london
    Posts
    15


    Did you find this post helpful? Yes | No

    Talking thank you so much

    thank you so much. you are a star
    finally everything is working with internal clock and measurements well displayed on the lcd.

    wasn't that easy to understand the data sheet but because of all of you guys, with all your examples and suggestions , i managed to find the right settings.

    again thank you guys
    God bless you all

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tur_bot View Post
    wasn't that easy to understand the data sheet but because of all of you guys, with all your examples and suggestions , i managed to find the right settings.
    Just curious...which bit fixed the problem?
    Invariably, it's usually that one little bit that fixes everything...

  8. #8
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by tur_bot View Post
    can you tell me clearly what do you have in mind please???
    Nope...I don't have your circuit running with your software running on your hardware programmed by your programmer.
    There are numerous differences between the 16F84 and the 'F88. I'm not going to spell them all out because they're already in the datasheets.

Similar Threads

  1. RX TX modules - intermitent communication
    By ruijc in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 11th June 2009, 00:13
  2. Replies: 8
    Last Post: - 7th December 2006, 15:42
  3. PIC16F88 problem with TOGGLE command?
    By russman613 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 17th September 2006, 23:31
  4. sensor ultrasonic 8051&PIC
    By hd_uni_pro in forum Schematics
    Replies: 1
    Last Post: - 13th September 2006, 12:58
  5. SRF04 Range Finder 16F628 R18iXL Board
    By Spindle in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th June 2005, 02:08

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