i am trying to figure out how to have a touch potentiometer control the position of a servo. But when i take my hand off of the potentiometer, the servo goes to 0 degrees. Is there a way i can have my hand leave the potentiometer, but the servo stay at the same place.
Perhaps the secret would be to ignore changes in the potentiometer that occur too quick.
eg. sample the position of the potentiometer every 50ms If it's analogRead changes by more than 20 between readings then don't use it, until you detect a changing value that's within your threshold. You'll obviously have to tweek the figures until you get it just right.