Go Down

Topic: Servo Question (Read 260 times) previous topic - next topic

peter_zkr

When I attach my servo to a pwm pin. Does the arduino automatically tell the servo to go into the neutral position? or do we have to tell the servo to move there by coding it?

marco_c

Servo will have 3 wires - +V, Gnd and a signal. The signal needs to be pulsed to move the servo, with specific timing. There is a Servo library that does this work for you as part of the Arduino IDE install, and there is information in the Playground on how servos work.

http://arduino.cc/playground/Learning/SingleServoExample
Arduino libraries http://arduinocode.codeplex.com
Parola for Arduino http://parola.codeplex.com

DuaneB

Short answer, yes, it sends the servo to the centered position.

You might want to check the two links in my signature for more information on using servos with Arduino in practical situations.

Duane B
Read this
http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-part-1.html
then watch this
http://rcarduino.blogspot.com/2012/04/servo-problems-part-2-demonstration.html

Rcarduino.blogspot.com

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy