user82422: I use a 360° servo with a program I made on an Arduino Uno.
The program was meant to control two separate servos with two potentiometers on a breadboard.
When I used 180° and 90° servos, it worked fine, but when the 180° servo was swapped with a 360° servo, it kept spinning and spinning non-stop.
Could it be the knock-off board (not Arduino brand) I'm using?
Servo serX;    // create servo object to control a servo for x axis
Servo serY;    // create servo y axis

int pot1 = 0;  // potentiometer pin number on board
int pot2 = 1;  // potentiometer number 2
int val;       // variable to read the value from the analog pin
int val2;      // read value from other analog pin

void setup() {
  serX.attach(9);  // attaches the servo on pin 9 to the servo object
  serY.attach(10); // attach servo to number 10 pin
}

void loop() {
  val = analogRead(pot1);           // reads the value of the potentiometer
  val = map(val, 0, 1023, 0, 180);  // scale it to use it with the servo
  serX.write(val);                  // sets the servo position
  
  val2 = analogRead(pot2);          // reads the value of the potentiometer
  val2 = map(val2, 0, 1023, 0, 90); // scale it to use it with the servo
  serY.write(val2);                 // sets the servo position
  
  delay(15);                        // waits for the servo to get there
}


user61722: The "360°" you refer to is probably a continuous-rotation servo.
These servos behave more like motors than like the normal RC servos; the signal you send such a servo will determine its speed and direction, not its position, and a pulse width of 1.5 ms (the "90° setting") will make it stop.
There's an article on the Adafruit site where you can read more about this.

82422: <p>I use a 360° servo with a program I made on an Arduino Uno.</p>
<p>The program was meant to control two separate servos with two potentiometers on a breadboard.</p>
<p>When I used 180° and 90° servos, it worked fine, but when the 180° servo was swapped with a 360° servo, it kept spinning and spinning non-stop.</p>
<p>Could it be the knock-off board (not Arduino brand) I'm using?</p>
<pre class="lang-cpp prettyprint-override"><code>Servo serX;    // create servo object to control a servo for x axis
Servo serY;    // create servo y axis

int pot1 = 0;  // potentiometer pin number on board
int pot2 = 1;  // potentiometer number 2
int val;       // variable to read the value from the analog pin
int val2;      // read value from other analog pin

void setup() {
  serX.attach(9);  // attaches the servo on pin 9 to the servo object
  serY.attach(10); // attach servo to number 10 pin
}

void loop() {
  val = analogRead(pot1);           // reads the value of the potentiometer
  val = map(val, 0, 1023, 0, 180);  // scale it to use it with the servo
  serX.write(val);                  // sets the servo position
  
  val2 = analogRead(pot2);          // reads the value of the potentiometer
  val2 = map(val2, 0, 1023, 0, 90); // scale it to use it with the servo
  serY.write(val2);                 // sets the servo position
  
  delay(15);                        // waits for the servo to get there
}
</code></pre>
 61722: <p>The &quot;360°&quot; you refer to is probably a <a href="https://en.wikipedia.org/wiki/Servo_(radio_control)#Continuous-rotation_servos" rel="nofollow noreferrer">continuous-rotation servo</a>.</p>
<p>These servos behave more like motors than like the normal RC servos; the signal you send such a servo will determine its <em>speed</em> and <em>direction</em>, <strong>not</strong> its position, and a pulse width of 1.5 ms (the &quot;90° setting&quot;) will make it stop.</p>
<p>There's an <a href="https://learn.adafruit.com/adafruit-motor-selection-guide/continuous-rotation-servos" rel="nofollow noreferrer">article on the Adafruit site</a> where you can read more about this.</p>
