It worked great but the servo was moving awfully slow. When I attempted to run the servo off a higher voltage it didn't work :~. What am I doing wrong? The potentiometer was still running on the 5V terminal on the Arduino...
The potentiometer was still running on the 5V terminal on the Arduino...
This seems to indicate that you were probably trying to power the servo from the arduino, which usually doesn't work well. If you are using an external power supply for the servo, that power supply ground and the arduino ground need to be connected.
jackrae:
Is your "delay" value in the code correct, and what do you mean by "awfully slow" (1 or 2 seconds or 10 to 20 seconds )
The goal is to have the servo control a throttle body on a car so I need it to move kind of fast. I was using a hobby servo to test so that may have something to do with it.
I did connect all (servo, power supply, etc.) the grounds together. It worked great until I tried increasing the voltage powering the servo.
I power my servos via a 12v DC power supply regulated to 5.7v via a 7805 regulator chip and they work fine. Below is a basic servo arduino power setup.