November 21, 2024, 10:18:58 PM

News:

Got VSA?  Want to use your Prop-SX?  Now you can!  See the VSA section of the Library forum for Prop-SX code that works with VSA.


Servo change from 180 to 90

Started by FireDoc, April 10, 2007, 09:22:30 AM

Previous topic - Next topic

FireDoc

I'm still a newbie to the prop-1 world so be nice...please. Is there a way to change the turn radius of a servo from 180 degrees to 90 degrees. I don't need the full 180. I thought I had read a post a while back but I cannot locate it. Thanks for all your help.
Rick

JonnyMac

Hey, Doc, we're all nice here!   ;D

You can control the servo swing with the pulse values you send to it.  Let's say that 150 (using a Prop-1) is the center, and 200 swings 90 degrees left when you really only want it to go 45 left.  Just change your PULSOUT value to 175.  Easy, huh?  You may need to do a bit of experimenting with values to get things  just right, but as long as you want the servo to move within its mechanical limitations you can do it in code.
Jon McPhalen
EFX-TEK Hollywood Office