I am working on a rescue robot project. Here I need to change a servomotor's position according to an analog signal taken from a potentiometer connected to the motors shaft. I modified my servo to work on continuous rotation since a rotation of 90 degrees is not enough for me. I need to connect the servo to a potentiometer to get a signal for the servo's position, so that I can use it on my program written to control the robot. I am using Arduino Duemilanove to control the robot.
Basically I need help for getting the analog signal taken from the potentiometer into Arduino. Since I modified my servo to work on continous rotation you can consider it as a DC motor. I will be glad if you can help me on connections and arduino codes to get the signal and control the motor. An example code will be very nice so I can modify it to my project.
Sorry for my bad english and thanks for your help already.