Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: Rcstarttofinish on October 26, 2012, 09:32:16 PM

Title: Can I control the degree of a servo with an arduino?
Post by: Rcstarttofinish on October 26, 2012, 09:32:16 PM
Can I control the degree of a servo with an arduino? If I can how many servos could i control with one arduino mega. Additionally how would i set this up? Any ideas?
Title: Re: Can I control the degree of a servo with an arduino?
Post by: Batienzaxcore on October 26, 2012, 10:25:35 PM
I'm not really familiar with Arduinos, but I know for a fact that one of these babies could handle about 8 servos at a time. Maybe you should check out the arduino's specification sheets. Hmmm... You could connect a potentiometer to the ADC port of the arduino, then connect the PWM port of the arduino to the servo motor.
Title: Re: Can I control the degree of a servo with an arduino?
Post by: lrmall01 on October 27, 2012, 02:22:58 PM
There's a servo library for Arduino as well that make this pretty trivial.

http://www.arduino.cc/en/Reference/Servo (http://www.arduino.cc/en/Reference/Servo)

Also, there are plenty of shields that create the 3 pin "servo" connection you need for power, ground, and drive signal.