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?
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.
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?