Go Down

Topic: beginners help..servos (Read 958 times) previous topic - next topic

Conor_Black

hi,

I am an architecture student and a beginner to arduinos, was wondering how to have two servos and two potentiometers at the same time? if so what would the code look like? (sorry for problably very simple question!)

Thank you.


Korman

Look at the samples for the Servo library.

For the two potentiometers, take your normal AnalogIn example and read first one potentiometer then the other.

Korman

Conor_Black

Thankyou very much,

think I have the code down, but don't understand how to wire the two potentiometers as the 5v and gnd input is taken up for one, no idea where to put the second potentiometer..

weirdo557

attach them both to the same place. just splice the wires together.

Go Up