PredatoRay31
New Member
Update.
The part of code below is a piece of the entire code above when you initialize the delay time for the loop to run. What I found is if I delay the time from about 25 to 35 ms, the servo jitter was so small it's barley noticable. The only side effect is it slows the response a little (in microseconds), but not so much it's really noticeable until you go beyond 35 ms. I found after 35 ms the servos start to react like stepper motors as the pause between each loop becomes obvious. I hope this helps. I'm still looking to hold the last position when firing the simulated laser and then I'll post my final code.
int dtime=10;
I have mine set at 25 ms and I'm happy with it now.
The part of code below is a piece of the entire code above when you initialize the delay time for the loop to run. What I found is if I delay the time from about 25 to 35 ms, the servo jitter was so small it's barley noticable. The only side effect is it slows the response a little (in microseconds), but not so much it's really noticeable until you go beyond 35 ms. I found after 35 ms the servos start to react like stepper motors as the pause between each loop becomes obvious. I hope this helps. I'm still looking to hold the last position when firing the simulated laser and then I'll post my final code.
int dtime=10;
I have mine set at 25 ms and I'm happy with it now.