November 21, 2024, 03:54:52 PM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


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