[TriEmbed] Arduino UNO/Mega, interrupts

Alan Wiggs alanwiggs at gmail.com
Fri Sep 27 12:55:06 CDT 2013


ahhhh that is where the jittery servo comes from...

I added capacitors thinking it was dirty voltage.

I will post my code later.

R,
Alan


On Fri, Sep 27, 2013 at 1:30 PM, Bill Farrow <bill at arrowsreach.com> wrote:

> On Fri, Sep 27, 2013 at 12:11 PM, Alan Wiggs <alanwiggs at gmail.com> wrote:
> > I have a project where I am running 4 servos and calling to (simple)
> falling
> > interrupts on Pins 2 & 3.
>
> I believe the Arduino servo library uses the 16 bit timer (TMR0 ?) to
> interrupt the CPU in order to update the pins connected to each servo.
>  It should be able to support more than 4 servos, but please check the
> source code for the library and let us know.
>
> Do the external interrupt pins conflict with the timer interrupt ?
>
> Could your external interrupt code be taking too long and holding off
> the interrupt from the timer, resulting in jittery PWM signals to the
> servos ?
>
> Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20130927/aaa9bad0/attachment.htm>


More information about the TriEmbed mailing list