Pages: [1]   Go Down
Author Topic: beginners help..servos  (Read 945 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.

Logged

Central Europe
Offline Offline
Edison Member
*
Karma: 7
Posts: 1220
Use the Source, Luke.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

United States (Texas)
Offline Offline
God Member
*****
Karma: 3
Posts: 525
Arduino socks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: