How, When, Damn it, Why do servos jitter?
November 27, 2008
I've had a lot of trouble with servo jitter lately, I seem so have solved the problem but I'm not sure why it has worked.
At first I thought it was the power supply being spiked, no amount of decoupling capacitors solved the problem.
I thought it was software and although my code was improved, the jitter continued.
Because I was using optic sensors, I thought fluctuations in the light is causing my inputs to give false readings. Still no luck and I stubbed my toe in the dark.
The oscilloscope showed clean power and signals to the servo but ocassionally the pulse width changed rapidly.
Still could be software. Debug was slowing the whole thing down too much so I got the picaxe to transmit just the 3 variables I was interested in via the sertxd command and serial cable to the terminal emulator built into the programming editor.
My software was behaving and all of a sudden my servo was behaving. I tried a different servo, same thing, jumps all over the place like a kangaroo in peakhour traffic the moment I removed the sertxd command. So now I'm baffled and wondering if anyone out there knows what is going on. For now I've left the sertxd command in.