Schmitt trigger debounce circuit problem(s)

Thread Starter

chaoticbob

Joined Sep 17, 2026
3
I am trying to build a hardware debounce circuit after Elliot Williams published here. This is his schematic:
proper_debouncing-sch.jpg

Elliot shows this behaviour:
proper_debouncing_scope.jpg

The right hand trace shows the voltage at the output of the RC stage (yellow) and the trigger (green) when the switch closes, the left hand when it opens again.
What I get is this
Switch closing:
NewFile2.jpg


Yellow after RC, blue trigger output. So far so good, but zooming out to see the whole button press:
NewFile1.jpg

Can anyone suggest a reason for this behaviour? I don't understand (a) why the Schmitt trigger doesn't latch to +5V for the duration of the button press and (b) how it swings to -5V (ish) when the button is released.
I'm probably being thick (very new to playing with electronics), any education would be most welcome.
Bob.
 

Attachments

Thread Starter

chaoticbob

Joined Sep 17, 2026
3
Thank you so much MrChips. This was driving me nuts. I suspected it was some stupid newbie thing I was doing wrong. With DC coupling:

NewFile2.jpg

Don't yet understand exactly why AC coupling produced the effect it did, but I expect a bit of research will reveal all.
Thanks again, Bob
 

crutschow

Joined Mar 14, 2008
38,772
Don't yet understand exactly why AC coupling produced the effect it did, but I expect a bit of research will reveal all.
AC coupling places a capacitor in series with the input to block DC.
This means a pulse voltage will decay to zero with a time-constant of that capacitor value (typically in the neighborhood of 100nF) times the scope input resistance (typically 1MΩ).
 

Thread Starter

chaoticbob

Joined Sep 17, 2026
3
AC coupling places a capacitor in series with the input to block DC.
This means a pulse voltage will decay to zero with a time-constant of that capacitor value (typically in the neighborhood of 100nF) times the scope input resistance (typically 1MΩ).
Thanks. That explains the decay after the trigger goes high I guess. Maybe the negative spike I see when the switch opens and the trigger goes low is something to do with the 'scope differentiating the signal. Shall think on it!
Bob.
 

MrChips

Joined Oct 2, 2009
35,136
Here is something that you need to know.
Traditionally, DC and AC meant Direct Current and Alternating Current.

In signal processing, they take on some additional meanings.
DC refers to signals at 0 Hz.
AC refers to signals with frequency greater than 0 Hz.
All signals contain DC and AC components.

With regards to oscilloscope terminology,
DC means all frequencies, 0 Hz and > 0 Hz, DC + AC
AC means that DC is removed, i.e. the signal is filtered using a high-pass filter.

This is the circuit of a simple RC high-pass filter.

1789775877800.png
 
Top