Using the Arduino Uno to control multiple Servos via potentiometers

Decent soldering iron! :+1:

You can avoid a lot of repeated code by using arrays and loops.

#include <Servo.h>

Servo myServos[6];
const byte ServoPins[6] = {3, 5, 6, 9, 10, 11};

const byte potPins[6] {A0, A1, A2, A3, A4, A5};

void setup()
{
  for (int i = 0; i < 6; i++)
  {
    myServos[i].attach(ServoPins[i]);
  }
}

void loop()
{
  for (int i = 0; i < 6; i++)
  {
    myServos[i].write(map(analogRead(potPins[i]), 0, 1023, 0, 180));
  }
  delay(15);
}