Continuos rotation serv
bhav
Posts: 2
I need some quick help on a project that I have fallen behind on. The application is simple, but I'm new to the BASIC stamps. I have a Futaba S3003 servo that I have modified for full rotation and I need this to turn clockwise 90 degrees, pause for a few seconds and turn back to its starting point. I have tried some of the FOR NEXT loops, but have not been successful. Any help would be appreciated.
Thank you
Thank you
Comments
pos con 750
pulsout servo, pos
pause 5000
This gets the servo to the center position
pulsout servo, pos + 30
pause 5000
Pos + 30 is a guess.· Adjust the 30 until servo rotates 90 degrees.· After it is adjusted to 90 degrees, write:
pulsout servo, pos
end
This should get you back to the center position.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
New Combo LCD Backpack
http://hometown.aol.com/newzed/index.html
·
What were you thinking of, Mr. Bates, sir [noparse]:)[/noparse])
Sid
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
New Combo LCD Backpack
http://hometown.aol.com/newzed/index.html
·
It sounds like you either need an un-modified servo, or some encoder or limit-switch on the output shaft which will tell you when you've moved your 'modified' servo far enough.
In theory, doing:
HoldPos:
PULSOUT ServoPin, 750 ' Send a 1.5 mSec signal to the servo
Pause 20
GOTO HoldPos
Should 'center' an un-modified servo, or 'stop' a modified servo from rotating.