Controlling multiple servos , What pins to use

If the library "Servo.h" allows you to control 12 servos with a duemilanova what pins do you use for analog input, say from a potentiometer?
And what pins do you use as signal for the servos?
intending to use servos for switching the tracks on a model rail layout.
Sorry if this has already been asked. [smiley=embarassed.gif]

Update: What I really want is 12 independant inputs to independantly control 12 servos. Is the easiest way going to be to just add a second duemilanove?

Cheers
Vere

what pins do you use for analog input

The analogue input pins, on the opposite edge of the board from the digital I/O pins.

The digital pins labeled 2-13 are where you connect the servos. Any inputs from pot will go on Analog pins on the opposite side of the board.

Yes your are able to control up to 12 servos on the 2009 board but you will have to do it in software since your only going to be able to connect up to 6 pots. But if you want to use some other means to activate the switches, other then pots, you'll have to have a more complex arrangement.

I assume you'll probably want to use some switches to control the servos. There are a couple of options here. You can connect the switches so they all connect to a single analog pin. But this methods can have some issues. Variations in temperature and voltage input can cause the buttons not to be read properly. The other option would be to use some I2Cs to extend the number of available digital I/O pins. A couple of shift registers would be good. Using

Just 3 of the Digital pins you could give yourself 16 outputs. So thats 16 Servos you could control.

Not sure which I2C would be best to add for the buttons but i'm sure someone can chime in with that answer.

Just 3 of the Digital pins you could give yourself 16 outputs. So thats 16 Servos you could control

digimike: Can you post some code?

Just 3 of the Digital pins you could give yourself 16 outputs. So thats 16 Servos you could control. http://www.arduino.cc/en/Tutorial/ShiftOut

You can't use shiftOut to drive servos with the Servo library.

Update: What I really want is 12 independant inputs to independantly control 12 servos. Is the easiest way going to be to just add a second duemilanove, input 6 potentiometers to each?

Cheers
Vere

The easiest thing is probably to get a teensy board which would give you 12 analog inputs and 12 servo outputs. Teensy USB Development Board

You can not do this without some of a kinda pin extender.
i2c rotary encoders instead of pots.
Try for a Mega, 2 duemillanovas or teensy