Servos not serving


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: Servos not serving

    Quote Originally Posted by Tabsoft View Post
    Alain,

    I guess I'm missing something in your "Pause Refresh - Pulse - Pulse - Pulse" statement.
    you're right ! I missed time scaling

    should be
    Code:
    Pause Refresh - ((pulse + pulse + pulse)/100)
    note Refresh could simply be 15ms ( as precise 50 Hz repeating signal is not compulsory - only the 1.2 - 2.4 ms "1" level - )

    your travel time will simply be ...

    (240-120)* 20ms = 2.4 seconds ...
    Last edited by Acetronics2; - 5th May 2015 at 13:38.
    ************************************************** ***********************
    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
    Jun 2011
    Location
    Indian Harbour Nova Scotia
    Posts
    108


    Did you find this post helpful? Yes | No

    Default Re: Servos not serving

    Just wanted to say thanks to all for your insightful comments and programming hints. I printed off the stuff for later perusal and comparison to my program. I'm a "minimalist", I program with the least amount of code required (thus don't always initialize) and even build circuits with low parts counts. That's where I get into trouble...

    Thanks again.

  3. #3
    Join Date
    Jan 2013
    Location
    Texas USA
    Posts
    229


    Did you find this post helpful? Yes | No

    Default Re: Servos not serving

    If you want the duty cycle to be as close to 50Hz you can do this to account for the Pulsout statements, Low xx statements, For/next logic and the Pause statement.

    Change the Refresh constant value to 20000 'microseconds

    Then use this for the pause.

    Pauseus Refresh - (((pulse + pulse) + (pulse / 3)) * 10)

    This should keep the total duty cycle time to 20ms +/- (~100) microseconds.
    Regards,
    TABSoft

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Servos not serving

    Queenidog, Here is a program I wrote some time ago for a couple of kids to test some servos for there robot in the FIRST competition. It is a minimalist program I wrote during lunch one day. It might help. Oh I forgot, Also attached is a schematic I updated a couple of years ago. Enjoy...
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Dave; - 6th May 2015 at 12:03.
    Dave Purola,
    N8NTA
    EN82fn

Similar Threads

  1. Connecting PIC to servos
    By The Master in forum Off Topic
    Replies: 6
    Last Post: - 4th February 2015, 01:56
  2. Servos and Plusin math
    By Ramius in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st May 2012, 09:28
  3. Problem with servos
    By ncet20 in forum General
    Replies: 6
    Last Post: - 11th October 2011, 14:22
  4. Hot Servos
    By The Master in forum Off Topic
    Replies: 37
    Last Post: - 6th August 2010, 18:32

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