Servo going up to the limit as soon as attached I have a Futaba S148 servo (https://servodatabase.com/servo/futaba/s148)
connected to an Arduino Uno.

As soon as the script attaches the servo, it rotates to its limit and gets stuck.

I've tried several scripts, and narrowed to the simplest: 

#include &lt;Servo.h&gt;  // servo library
Servo servo1;  // servo control object
void setup()
{
  //  Attach the servo1 object to digital pin 4.
  servo1.attach(10);
}
void loop()
{
}


Also connected the servo to the board with this: 

#include &lt;Servo.h&gt;  // servo library
Servo servo1;  // servo control object
void setup()
{
  //  Attach the servo1 object to digital pin 4.
  //servo1.attach(10); &lt;--- notice this commented out
}
void loop()
{
}


and then the servo remains still. 

I'm using a battery pack of 4.8&nbsp;V which works fine with the servo and the RC radio, so the battery and the servo, works fine together with remote control.

I have another different SG90 servo running with its own power source and connected to the pin 9, and with a different sketch, it works perfectly.
https://www.arduino.cc/en/Reference/ServoAttach - This should answer it. The library you are using supports only 2 specific pins