<p dir="ltr">Dear gang,</p>
<p dir="ltr">Thanks for all the help. </p>
<p dir="ltr">Both the Mega & uno are now running fine.</p>
<p dir="ltr">I had changed my code and put an int  constant in and did some non-int arithmetic to it.</p>
<p dir="ltr">Took the int  out now it runs.</p>
<p dir="ltr">Since my design has a seed studio proto board I put 2 different programs. Short 100m race for the kids, pop out a board, 200m race for the pros.</p>
<p dir="ltr">Thanks again see ya at the next meeting.</p>
<p dir="ltr">R,<br>
Alan</p>
<div class="gmail_quote">On Sep 27, 2013 1:55 PM, "Alan Wiggs" <<a href="mailto:alanwiggs@gmail.com">alanwiggs@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">ahhhh that is where the jittery servo comes from...<div><br></div><div>I added capacitors thinking it was dirty voltage.</div><div><br></div><div>I will post my code later. </div><div><br></div><div>R,</div>

<div>Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 27, 2013 at 1:30 PM, Bill Farrow <span dir="ltr"><<a href="mailto:bill@arrowsreach.com" target="_blank">bill@arrowsreach.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Fri, Sep 27, 2013 at 12:11 PM, Alan Wiggs <<a href="mailto:alanwiggs@gmail.com" target="_blank">alanwiggs@gmail.com</a>> wrote:<br>


</div><div>> I have a project where I am running 4 servos and calling to (simple) falling<br>
> interrupts on Pins 2 & 3.<br>
<br>
</div>I believe the Arduino servo library uses the 16 bit timer (TMR0 ?) to<br>
interrupt the CPU in order to update the pins connected to each servo.<br>
 It should be able to support more than 4 servos, but please check the<br>
source code for the library and let us know.<br>
<br>
Do the external interrupt pins conflict with the timer interrupt ?<br>
<br>
Could your external interrupt code be taking too long and holding off<br>
the interrupt from the timer, resulting in jittery PWM signals to the<br>
servos ?<br>
<span><font color="#888888"><br>
Bill<br>
</font></span></blockquote></div><br></div>
</blockquote></div>