0

Are there any chips similar to a Schmitt trigger but with a wider high low input threshold that trigger high with 3-3.3V and low 0.1-0.2V?

I need it to alleviate switch bounce.

A comment from the Teensy forum:

You want to get it below 1.15 to be sure it reads as low, and above 2.31 to be sure it reads as high. The actual threshold is somewhere between those two, with approx 60 mA hysteresis.

I looked and I saw a circuit that can be made with an op amp. I want to know if there is a chip similar to a Schmitt trigger. Simple input-output and many inputs/outputs.

enter image description here

JRE
  • 71,321
  • 10
  • 107
  • 188
Radu
  • 51
  • 1
  • 1
    You should maybe explain why you can't use any stadard Schmitt trigger input device for simple switch debouncing, why do think you need a special chip with custom thresholds for that? – Justme Oct 30 '21 at 10:48
  • <<<The actual threshold is somewhere between those two, with approx 60 mA ??? hysteresis >>> .Use a CD40106 (inverter) with power supply 3.3V. You will have trigger points at ~ 0.150 V and ~ 3.1 V. Or CD4584 ? – Antonio51 Oct 30 '21 at 11:39
  • 1
    A schmitt trigger is a circuit configuration, not a specific chip! For debouncing you just sample the input at a given rate and if the input has not changed for n samples, then it is considered stable. Of course you’re not using external interrupts for a switch input as that would be bad juju. – Kartman Oct 30 '21 at 11:41
  • If you insist on hardware debouncing, simply slow down the signal with an RC network and use any chip with a ST input such as 74HC14. – Spehro Pefhany Oct 30 '21 at 13:14
  • Radu, two BJTs and a few resistors and you are done if you really want those thresholds. Of course, we've no idea if that's the appropriate direction. – jonk Oct 30 '21 at 19:20
  • You need to describe your actual requirement You have almost certainly been mislead by someone who has less technical knowledge than they think they have. ,||. Please tell us what core hardware you are using (switch type, teeny, ...) and WHAT you are trying to achieve (not how). – Russell McMahon Oct 31 '21 at 02:35
  • @jonk give me an example – Radu May 23 '22 at 14:44

2 Answers2

1

No, there is no Schmitt trigger device that evaluates >3V to high and <0,2V to low. A Schmitt trigger is nothing else than an amplifier with positive feedback loop so you can build your circuit like that:

schematic

simulate this circuit – Schematic created using CircuitLab

The problem can also be solved with an operational amplifier, but it makes more sense to use the 4069 hex inverter.

The Hysteresis is calculated as follows: $$ Hysteresis_{} = \frac{R_1}{R_2} $$ R2 must be larger than R1. with almost equal resistors you can achieve almost 100% Hysteresis and with a R2>>R1 basically 0

e.g.: 3,3V logic R1=100k; R2=120k the Hysteresis is 0,83, the lower Voltage is ~0,11V and the upper Voltage is ~1,93.

Debouncing requires a low pass filter before Schmitt trigger input. I made good experiences with 10nF and 51kOhms. My mechanical switches bounce back and forth for about 1ms, and I found 0,5τ to 1τ perfect for debouncing.

arnisz
  • 309
  • 1
  • 12
0

Rather than a custom trigger to eliminate switch bounce, use a normal trigger with an RC filter on the input.

Have a look at this answer with the following diagram for more details.

enter image description here

This works reliably and allows you to control the debounce period, whereas the level based circuit will still often let through the bounce.

colintd
  • 7,833
  • 1
  • 11
  • 34