Controlling 2 servos to run in the same direction with 1 potentiometer

My name is Graham Costello and I'm studying Engineering and I want to make 2 servos run in the same direction using 1 potentiometer for a project that i must complete

i am making a model of a robotic arm with two servos controlling movement for up and down and a further two servos for movement in and out

i have no experience with writing code and any help would be greatly appreciated

If you want 2 servos to perform the same movement you could just feed them with the same control signal

What you want to do is really pretty easy. Do you have an Arduino, pot and servos? Have you installed the IDE? If so, go to File, Examples, Servo and load the Knob example. That example shows how to control one servo with a potentiometer. It is easy to add another instance of the servo class to have two controlled by the pot.

thanks for your help guys. with regard to installing a second servo on the board do i just connect the second servo into the same pins or do i take another connection from the middle pin to another and write a new line of code ( which i havnt a clue how to do)

grahamcostello:
thanks for your help guys. with regard to installing a second servo on the board do i just connect the second servo into the same pins or do i take another connection from the middle pin to another and write a new line of code ( which i havnt a clue how to do)

if you want them to do the exact same movement you can put everything at the same pins, otherwise, you connect the "middle" (signal i suppose) pin to another pin of your microcontroller, and write some new code. :slight_smile:

You should have no trouble connecting 2 servos to the same controller pin, however the code modifications to have the servos on separate pins are pretty simple. If you want to give it a try we will be glad to help make it work.