i need to rotate servo motor ( continuous ) to 45 degree only an then stop rotating ( to close something )
need the Sketch
thank you
You can't if it's a continuous rotation servo.
Mark
What you have is not a servo, hence it does not have a feedback mechanism so cannot be stopped at a particular angle without external hardware. Why not use a real servo ?
So, how can i do this function , I need something to rotate only 45 degrees and stop rotating ( High torque motor and be small )
Second Question : i have 8 servos on arduino kit , some of this is always rotate slowly when i need them stop rotating by using this code
servoMain.write(90);
So, how can i do this function , I need something to rotate only 45 degrees and stop rotating ( High torque motor and be small )
The answer is in my first reply. Use a normal servo, not one that has been bastardised to rotate continuously.
adelattyah:
So, how can i do this function , I need something to rotate only 45 degrees and stop rotating ( High torque motor and be small )Second Question : i have 8 servos on arduino kit , some of this is always rotate slowly when i need them stop rotating by using this code
servoMain.write(90);
You are not providing enough information to enable us to give useful answers. Read several of the other Threads to see how the system works.
You need to post your full code - PLEASE read the How to use the forum and put your code into code tags. Also you need to draw a diagram of how you have everything wired up and post a photo of your drawing.
...R
Second Question : i have 8 servos on arduino kit , some of this is always rotate slowly when i need them stop rotating by using this code
They are NOT servos, they are continuous rotation servos, STOP using the term servo to describe them!. And no they won't stop rotating in many cases - it's one of the reasons for binning them.
Mark
You probably need to experiment to find the exact number that makes the continuous rotation servo stop moving. Using servo.writeMicroseconds() gives you finer control. servo.writeMicroseconds(1500) is approximately the same as servo.write(90). Try increasing or decreasing the value a little at a time until the servo stops - or starts rotating the other way.
...R