Multiple servos (5!)

Hi im currently doing a project where i need 5 servos connected to the arduino, all running simultaniously.

I guess i will be needing an external powersupply for this. (Either a battery pack or preferably a 5v adapter?)

what would be the best way to do this? Can i harm the arduino by running all servos through the 5v rail ?

I need to read the servo's potentiometer through analogread, would there be any trouble doing so with an external supply for the servos?

Each servo has three wires. The + wire supplies current; the data wire sends positional data to the servo, and allows you to detect its position. The ground wire goes to ground. Driving 5 servos simultaneously will likely require more current than the Arduino can provide. So, yes, you will need to power them (+ and ground) separately. You need to connect the Arduino's ground to the servo power supply ground.

You will still be able to read/write to the servos even though they are powered externally.

What are you doing with 5 servos?

I need to read the servo's potentiometer through analogread

Normally you don't get a connection to the servo's pot as the servo's electronics is using it to control the motor position. Unless you disconnect it from this then you won't be able to read it. Then the position won't be controlled by the servo.

Pauls: The datawire will not allow you to read a servos position, you can read it with the servo libary, but that is just the last write you get really..

Grumpy_mike: I have soldered a wire to the potentiometer in the servo.. reading this is trivial and works okay (The resolution is good enough for my usage)

When i read the potentiometer i simply detach the servo with the servo libary, this works fine! (Theres no need to read it while the servo is attached anyways as you wouldnt be able to move it..)

The project im doing is a robotic arm, programmable by moving it.

I have soldered a wire to the potentiometer in the servo.

Yes but this will not work with all servos. They need to be 5V, so you will not get excessive voltage into the Arduino. Also they need to have a design that uses DC on the servo pot.

It works with the servos im using so thats not really an issue for me..

But back to the topic. You guys believe that i will need an external powersource for the servos, right?

The ground of the powersupply should be connected to the ground of the arduino, right?

You guys believe that i will need an external powersource for the servos, right?

Yes

The ground of the powersupply should be connected to the ground of the arduino

Yes.
see:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Supplies.html

Also some decoupling on the external supply:-
http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

Okay, thanks mike!

Great tutorials be the way : )