user29266: I'm testing a servo using varspeedservo.h and it rotates to 180 degree on start and then rotates back to programmed position. 
Here is the code:
#include <AFMotor.h>
#include <VarSpeedServo.h>
VarSpeedServo myServo;

void setup()
{
  myServo.attach(10);
}
void loop()
{
  myServo.slowmove(0, 30);
  delay(5000);
}


user20245: You will need to open up the VarSpeedServo library source code and read through it to understand how the library actually works with your sketch. 
Consider that you have not setup an initial position before issuing your first "slow moving" command.  It may be by setting an initial position before assigning a pin to the servo, you may prevent any unexpected movement.
Try something (for your code) like "myServo.wirte(0,0)" where the first argument is the position and second is the speed.

29266: <p>I'm testing a servo using varspeedservo.h and it rotates to 180 degree on start and then rotates back to programmed position. 
Here is the code:</p>

<pre><code>#include &lt;AFMotor.h&gt;
#include &lt;VarSpeedServo.h&gt;
VarSpeedServo myServo;

void setup()
{
  myServo.attach(10);
}
void loop()
{
  myServo.slowmove(0, 30);
  delay(5000);
}
</code></pre>
 20245: <p>You will need to open up the <a href="https://github.com/netlabtoolkit/VarSpeedServo" rel="nofollow noreferrer">VarSpeedServo library source code</a> and read through it to understand how the library actually works with your sketch. </p>

<p>Consider that you have not setup an initial position before issuing your first "slow moving" command.  It may be by setting an initial position before assigning a pin to the servo, you may prevent any unexpected movement.</p>

<p>Try something (for your code) like "myServo.wirte(0,0)" where the first argument is the position and second is the speed.</p>
