Go Down

Topic: Continuous rotation servo potentiometer control (Read 425 times) previous topic - next topic

windu34

I want to use a potentiometer to control a continuous rotation servo, but heres the catch: I want it to only turn at the ends of my potentiometer (o and 1023)
Basically, when its at 0, I want the servo to trun one way, when its at 1023, I want it to turn a different way. Everything else should be the same as neutral - where the servo doesn't move.
Ive been trying to modify the servo knob example, but cant figure it out. Help?

CrossRoads

So you don't need a potentiometer then - you just need a knob that closes a switch when twisted one way, and closes a 2nd switch when turned the other way.
I guess using analogRead() and looking for <=5 and >=1018 for a little leeway at each end would work too.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up