I have a small servo driving sketch using the servo library.
Its working fine but upon powerup the servo rotates a few degrees CCW.
Normally its not a big deal but I am using it to drive a fragile mech and its possible it could damage something if the servo jumps out of its assigned min/max limits.
Is there a way to eliminate this little jolt at powerup??? It happens before the sketch reaches the setup() function so I'm assuming its happening as part of the bootup routine and has nothing to do with my sketch...
#include <Servo.h>
Servo mouthservo;
const int mouthServoPin = 8;
const int mouthUpLimit = 1550;
const int mouthDownLimit = 1450;
int mouthServoPos = mouthUpLimit;
void setup()
{
mouthservo.attach(mouthServoPin,mouthDownLimit,mouthUpLimit);
mouthservo.writeMicroseconds(mouthUpLimit);
delay(15);
}
void loop
{
}