Resistor value

Thread Starter

FroceMaster

Joined Jan 28, 2012
702
Hi,
Have problems with a debounce switch,
need a pull up resistor. but dont know the value,
i know it should go from 5v+ --> resistor --> out to PIC. --> to NO switch --> to ground. and parallel with the switch i have a capasitor 100nf,
this have Work for long time, but i can remember the value of the resistor
should it be 10k or 100k or ?
right now i have A 10K, but it do not Work right,, get many Counts when pressed.

rgds
ForceMaster.
 

MrChips

Joined Oct 2, 2009
30,806
You have what is commonly referred to as switch bounce.
It cannot be eliminated with just a capacitor or resistor.
If this is being interpreted by a microcontroller, you can use software techniques to eliminated the problem.
 

WBahn

Joined Mar 31, 2012
30,058
Here's what you're looking for:
http://www.ganssle.com/debouncing.htm
I suggest reading through the entire article. If you're in a big hurry, you could go to the 2nd page and scroll about halfway down the page, but it's well worth your time to read the entire article.

If you'd rather have a .PDF version, here 'tiz:
http://www.eng.utah.edu/~cs5780/debouncing.pdf
I've only skimmed the article, but it seems very good. If I ever get the chance to create labs for a circuits course, one of them would be on investigating swtich bounce both in terms of measuring it and in mitigating it.
 
Top