Hmm. I haven't seen that servo behavior myself, but I thought it might be worth an experiment so I plugged a servo directly into a battery pack with no signal. One out of every ten or so times I plugged it in it would twitch just barely. Is that the issue you're having? If this is it I think you have to go with switched power but it is a very small movement and it might be related to the specific servo you're using.
If not you might want to look at where and what value is associated with thethe first pulseout is in your code. I have had issues where the servo is moved far from a default position and startup includes significant movement as it heads for default and I've also set the default position at the wrong value and had movement. Finally I've had the pic come up with outputs high or not set until late in the program which gave me some issues.
I've also on rare occasion had spurious signals from dirty power - might want to check that. I'm also assuming that you're posting about standard 1-2ms commanded hobby or robotics servos.
Bookmarks