I tried to implement the changes you suggested, but i'm afraid it still doesn't work (only jiggles) :
motor:
void loop()
{
while( Serial.available() == 0);
int data = Serial.read();
//Turn the servo
Serial.println(data);
jeremysServo.write(data);
Serial.flush();
}
What i don't understand with this code is why the "val" input from the potentiometer isn't used. I'm quite new with all this, as you surely noticed, so i don't know if it is normal.