Go Down

Topic: arduino+many servos+potentiometers (Read 2 times) previous topic - next topic

Grumpy_Mike

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.

johnkastoria

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

AWOL

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

liudr

#18
Sep 06, 2011, 04:59 pm Last Edit: Sep 06, 2011, 06:25 pm by liudr Reason: 1
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:

AWOL

Quote
make sure the digital pin is a PWM pin

?
"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.

Grumpy_Mike

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.

AWOL

When in doubt, there's always the reference.
http://arduino.cc/en/Reference/Servo
"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.

liudr

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.

AWOL

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

Go Up