Pages: 1 [2]   Go Down
Author Topic: arduino+many servos+potentiometers  (Read 2171 times)
0 Members and 1 Guest are viewing this topic.
Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33432
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Most kids don't like schools and aren't motivated to lift a finger to explore anything.
Sadly that is true, there fate in life is to be bored. Then the big corporations can sell them things to attempt to entertain them but ultimately they will be bored, it's quite sad.
Logged

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

well, i wired up the potentiometers  and the servos as it is said in the servo knob examples..i guess i only need now the library to manipulate many servos..but wich library is that?thanks for the replies guys..
ps: i dont have problem to study and learn new things but i am newbie and thats the reason i asked for your help..
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25876
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
i guess i only need now the library to manipulate many servos.
The Servo library.
The one described in the examples.
The one you were using in post #3.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7175
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You just need to do attach to each servo and make sure the digital pin is a PWM pin. That limits it to a maximal of 6 servos.

The above was wrong  smiley-red
« Last Edit: September 06, 2011, 11:25:54 am by liudr » Logged


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25876
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
make sure the digital pin is a PWM pin
?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 604
Posts: 33432
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
That limits it to a maximal of 6 servos.
No. I have used 8 servos with this library and that is not the limit.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25876
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

When in doubt, there's always the reference.
http://arduino.cc/en/Reference/Servo
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Central MN, USA
Offline Offline
Tesla Member
***
Karma: 72
Posts: 7175
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I see. I only used a servo once in a workshop and thought you can only attach to PWM pins. BUT it actually works on any pins and DISABLES two PWM pins. I should have read more carefully. Sorry about misleading.
Logged


Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 291
Posts: 25876
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
thought you can only attach to PWM pins
You SHOULD NOT use the Arduino's bog-standard PWM (analogWrite) to drive servos.
It's OK to attach the servos to pins that would otherwise be PWM, but don't try to drive servos that expect 50Hz PPM with nearly 500Hz PWM, even if you keep the duty cycle low.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Pages: 1 [2]   Go Up
Jump to: