November 22, 2024, 03:29:21 PM

News:

You can now use Vixen to program your Prop-1 and Prop-2 controllers!  Get started quickly and easily, without having to learn PBASIC.  Details in the Library forum.


Adjusting servo position with a pot

Started by JackMan, October 12, 2013, 10:30:13 AM

Previous topic - Next topic

JackMan

Is there an easy way (or any way) to adjust a servo's position by connecting a pot to the Prop-1? For example, lets say you have the servo programmed for 150 but you need to tweak it without reprogramming the Prop-1.

JonnyMac

Sure, why not. What I would tend to do is use the pot to create a scaling factor for the relay position.
Jon McPhalen
EFX-TEK Hollywood Office

bsnut

Are you looking to keep the servos position after you manually changed it's position and after you've powered down and powered back up?
William Stefan
The Basic Stamp Nut

JackMan

October 12, 2013, 06:33:05 PM #3 Last Edit: October 12, 2013, 08:19:08 PM by JackMan
QuoteAre you looking to keep the servos position after you manually changed it's position and after you've powered down and powered back up?

Yep, once the servo position is adjusted with the pot, it would need to retain that setting unless the pot is changed.

Update: OK, that was easy, got it working. Thanks Jon!  8)

bsnut

QuoteUpdate: OK, that was easy, got it working. Thanks Jon]
Great too hear Jack that you got it working. I love it when someone can push the easy button so quickly. Do you have code to share with us?
William Stefan
The Basic Stamp Nut

JackMan

It was pretty much all in the BASIC STAMP EDITOR Help file for the POT command. Didn't think to look there first.  ::)