walk away values

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.

Thanks in advance.

?Who you gonna call?
!!Ghostbusters!!

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.

Can you post a schema how you connected the potentiometer?
did you connect both 5V and GND? and the slider to A0?

HI, what is your touch potentiometer?

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png or pdf?

Can you please post a copy of your sketch, using code tags.

We will need his information to make any comments that will help you/
A picture of your project would also help.

Tom....... :slight_smile: