Stuttering Servo


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Hello all,

    I have tried a minimalist aproach. With only one servo, holding at one position, and no interrupt on change ... just the timer1 interrupt keeping track of elapsed time. The one servo is still very twitchy to the point of not being useable.

    BTW, the accuracy of elapsed time is very good when checked with a stopwatch..

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


    Did you find this post helpful? Yes | No

    Default

    Ok
    Show us the current test code and tell us about the hardware ( power supply, servo models, how it is all connected, etc )
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    As mentioned above, the servo runs smooth and quiet when driven by the non-interrupt routine. So, I think the servo and circuit are OK.

    However, I now realize that timer1 interrupts are occuring every 10 ms, while the servo pulses are only 1 to 2 ms long. Just guessing, but it seems that timer interrupts that periodically occur during the pulse on-time can signifigantly disrupt the pulse period and cause jittering. Therefore, I think my interrupt-timed approach will not work.

    Experiment over.

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