0
\$\begingroup\$

I've a digital counter (Kubler Codix 908) with integrated 30Hz interference input filter integrated, but sometimes (when the contact that will increment the counter is closed) it counts two pieces... the mechanical counter work perfectly but the digital one is affected by signal interference. Is it possible to use a RC snubber (in parallel with the contatc) to solve the problem? Wich values of R and C I should use? Thanx in advance, Andrea from Italy.

Kubler counter

\$\endgroup\$
1
\$\begingroup\$

Your issue is called switch bounce -- where the mechanics of the switch can actually open or close multiple times during a cycle.

Short answer: yes, and RC low pass filter can fix this up, but you will be sacrificing the speed with which the counter can recognize a switch action.

Long answer: there are better solutions, using RC's, drivers, and sometimes diodes (to make the math work), depending on how picky your needs are. There are other approaches that replace SPST switches with SPDT switches, and use them to drive SR flip flops. There are also debounce IC's available.

If the simple solution isn't good enough, the complicated solutions are called for

As to what values, try RC on the order of 20-50 msec, to start, and adjust if the behavior isn't right. (i.e., \$0.01\ \mu F \$ and \$20 k\Omega\$)

\$\endgroup\$
  • \$\begingroup\$ Hi Scott, thank you for the reply... the speed is not so important (it count about 1 piece every 1-2 seconds, so a low pass filter should be good. My only problem is how to calculate the correct values \$\endgroup\$ – Andrea Aug 28 '18 at 12:54
  • \$\begingroup\$ @Andrea RC should be on the order of 20-50 msec, to start \$\endgroup\$ – Scott Seidman Aug 28 '18 at 13:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.