I was wondering how can I make a Servo rotate continuously by using an Arduino code. I looked through several forums and websites already, but all of them just show how to make it run by changing the servo physically, I wanted to be able to do it with just the code.
Thanks for your help already!
2 Answers 2
The objective you seek will require a servo that has been manufactured to be continuously rotatable. The locations you've found are for those with extra servos who might not want to purchase a slightly more expensive servo and might want to use what they have on hand.
Once you have such a servo, self-modified or purchased as such, your code will work as you suggest. You should be able to easily locate the necessary code to operate a 360 degree servo using current libraries.
Normally, a servo is rotating 180 degrees because it has a drag inside on gears who stop rotating continuously (360 degrees). To make a servo to rotate 360 degrees, you need to buy a new servo or modify this one.
0
will stop the servo,90
will make it go full speed forward,-90
will make it go full speed backward.