Has anyone ever had any similar problem?
Yes, when I didn't have things wired properly. How DID you wire the power supply and the servo to the Arduino?
5V is connected to the 5V of my Arduino
The Arduino is not intended to power a servo. They suck way too much current.That's why you got the 10V power supply. It is THAT wiring that matters.
It works like a charm when I connect it on USB to my computer... So I guess the Arduino is able to provide enough current for one single servo
When I unplug the USB, the functioning is completely erratic....
so I should use my battery instead?
The battery is 10V, should I pick the 10V and lower it with some voltage divider? ( Only have resistors right here...)
Paul, How many times do we have to tell them! NOT to power servos and motors from the (Any) Arduino 5v pin!! Mel.
The code works perfectly when using a USB cable. The problem is that I want to use an external power supply (a 10V battery)
as i have a similar problem.