Any alternative for switch debouncer?

Thread Starter

Tommy Tsang

Joined Apr 28, 2016
7
I know that "By using RC with NOT gate" can make a switch debouncer. (like circuit below)

However, I don't have a NOT gate on hand.

Can anyone suggest an alternative for building a hardware debouncer?

No need answer for:

1. Hardware Debouncing
2. R-C Debouncing
3. Software Debouncing
4. Using Debouncing IC’s

upload_2016-4-29_11-47-47.png
 

Attachments

Picbuster

Joined Dec 2, 2013
1,047
Always use a cap and de-bounce in software. Connect to an interrupt set flag when occurs.
The flag is set at first pulse regardless how many follow.
In main handle flag and reset flag after N msec disabling so unwanted bounce pulses to fool(f....up) the system.
 

jpanhalt

Joined Jan 18, 2008
11,087
I know that "By using RC with NOT gate" can make a switch debouncer. (like circuit below)

However, I don't have a NOT gate on hand.

Can anyone suggest an alternative for building a hardware debouncer?

No need answer for:

1. Hardware Debouncing
2. R-C Debouncing
3. Software Debouncing
4. Using Debouncing IC’s

View attachment 105142
Your question is unclear. That is, it is self-contradictory.

I do have a circuit for a hardware debouncer based on the LM555/NE555, if you are interested.

Please let us know what you really want/need.

John
 

eetech00

Joined Jun 8, 2013
3,858
I know that "By using RC with NOT gate" can make a switch debouncer. (like circuit below)

However, I don't have a NOT gate on hand.

Can anyone suggest an alternative for building a hardware debouncer?

No need answer for:

1. Hardware Debouncing
2. R-C Debouncing
3. Software Debouncing
4. Using Debouncing IC’s

View attachment 105142
Hi

You need to provide more info...
What is this the state of the input to the debouncer? Normally open? Normally closed?
What is the requirement for the output of the debouncer? A pulse? High? Low?
What is the input voltage and required output voltage levels?
 

hp1729

Joined Nov 23, 2015
2,304
I know that "By using RC with NOT gate" can make a switch debouncer. (like circuit below)

However, I don't have a NOT gate on hand.

Can anyone suggest an alternative for building a hardware debouncer?

No need answer for:

1. Hardware Debouncing
2. R-C Debouncing
3. Software Debouncing
4. Using Debouncing IC’s

View attachment 105142
Any gate will do. Transistor ... it only isolates the R-C circuit from the rest of the circuit.
Then there is the CD4490 a chip designed to be a contact bounce eliminator.
 

Attachments

Thread Starter

Tommy Tsang

Joined Apr 28, 2016
7
Always use a cap and de-bounce in software. Connect to an interrupt set flag when occurs.
The flag is set at first pulse regardless how many follow.
In main handle flag and reset flag after N msec disabling so unwanted bounce pulses to fool(f....up) the system.
What is the name of the software?
 

Thread Starter

Tommy Tsang

Joined Apr 28, 2016
7
You need to provide more info...
What is this the state of the input to the debouncer? Normally open? Normally closed?
What is the requirement for the output of the debouncer? A pulse? High? Low?
What is the input voltage and required output voltage levels?
More information on my application:
As now I am required to use a switch for triggering a digital multimeter (DMM) to capture reading once I close the switch. The switch is connected in between a 2V DC voltage and the primary side of the the opto-coupler. The opto-coupler is used to generate a trigger signal for DMM because the DMM requires a 0V in more then 23us for trigger 1 reading.

And now my facing problem is that
1. When I close the switch , 2V cannot be 2V for the opto-coupler. It is 2 pulses first and then 2V continously. As a result, the DMM received 2 0V pulse and triggered 2 times.
2. When I open the switch, it is a similar situation. The switch is still be triggered because it see 0V which means the switch cannot clearly open for providing 0V for the opto-coupler. It generated some pulses for the opto-coupler.

Based on above observation, that's why I need to build a switch debouncer. Unfortunately, I got limited electronic components for building the RC debouncing circuit.

Now I want to see whether it is feasible for building a debouncer by using limited electronic components and/or free resources.
 
I used an R-C de-bounce once when I was 16 and it failed miserably. I only use PIC's now, and software de-bouncing is infallable (and easy, if you want my typical routine, ask. It is about 10 lines long).
 

GopherT

Joined Nov 23, 2012
8,009
What is the meaning of :

Code (Microchip Assembler):

  1. DelayCy (10*msecs)
Is it a function provided in Microchip Assembler already? Please explain more.
You said above that you did not want a hardware solution. That means software was our only alternative. Now you say you don't want a Microcontroller (software based) solution by implying you don't have those. So, which is it? Will Hardware solutions work for you?
 
Top