Debounce Trigger Switches in Extreme Conditions

  • Thread starter Thread starter TheAnalogKid83
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around methods for debouncing trigger switches in hardware, particularly in extreme conditions such as temperatures ranging from -40 to 85 degrees Celsius and strict electromagnetic interference (EMI) restrictions. Participants explore various hardware solutions, including passive and active components, while expressing preferences for simplicity and effectiveness in design.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests using a simple low pass filter (RC circuit) on the input from the switch to the microcontroller pin, indicating a need to research an appropriate time constant for the application.
  • Another participant expresses a desire to avoid software debouncing if a hardware solution is feasible and cost-effective.
  • A participant mentions a traditional hardware debounce method involving a SPDT switch and cross-coupled NAND gates, referencing a source for further information.
  • Clarification is provided on the term SPDT (Single Pole, Double Throw) and its classification in switch types.
  • Some participants propose that a Schmitt trigger might be necessary, with one suggesting it could complement an RC network.
  • Another participant emphasizes the need for both an RC filter and a Schmitt trigger to ensure proper rise and fall times for digital circuits.
  • A later reply notes that the CPU being used has an internal debouncing feature, but curiosity about hardware solutions remains.

Areas of Agreement / Disagreement

Participants express multiple competing views on the best approach to debounce switches, with no consensus reached on a single solution. Various methods are proposed, and preferences for hardware versus software solutions are discussed.

Contextual Notes

Some participants mention the importance of effective design under extreme conditions, but specific limitations or assumptions regarding the proposed methods are not fully explored.

Who May Find This Useful

Individuals interested in hardware design for trigger switches, particularly in extreme environments, as well as those exploring debounce solutions in electronic circuits.

TheAnalogKid83
Messages
174
Reaction score
0
Hi I am curious about the best way to debounce a trigger switch in hardware.

These switches will be used in extreme conditions(-40 to 85, very strict EMI restrictions, etc.)

My initial idea is to just put a simple low pass filter (RC circuit) on the input from the switch to the microcontroller pin. I'd do some research to figure out what is a good time constant for the application.

Is this acceptable, or do I need to do something more active like schmitt triggers? I'd like to throw in a resistor/cap and call it a day, but I must do a very effective design.

I've no experience, so anyone that can tell me some advice would be appreciated.
 
Engineering news on Phys.org
also, I should say that I'd like to avoid software debouncing code as much as possible if the hardware solution is cheap and easy enough.
 
The traditional switch debounce in hardware uses a SPDT switch and cross-coupled NAND gates. Have you seen this circuit? I have to run, but I can google it if you can't find it. (It's also shown in Horowitz and Hill's Art of Electronics in figure 8.42 [1st edition]).
 
Spdt??
 
TheAnalogKid83 said:
Spdt??

SPDT = Single Pole, Double Throw

Switches are often classified in terms of the number of "poles" and the number of "throws". Check out the table at the start of this wikipedia article about switches:

http://en.wikipedia.org/wiki/Switch

And here's a diagram of how to use a SPDT switch and cross-coupled NAND gates to debounce the switch (see Figure 3):

http://www.elexp.com/t_bounc.htm
 
Schmitt trigger might be what you need.
 
minorwork said:
Schmitt trigger might be what you need.

That would help with an RC network, but in general no.
 
I would use an RC filter + schmitt trigger.

RC alone will fall the rise/down time of the signals and digital circuits need a minimum rise/down time to work properly.
 
thank you very much for the help. it looks like the CPU I'm using has a KP module interface with debouncing internal, but I was still curious as to the best way to do it in hardware. Thanks.
 

Similar threads

Replies
37
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
7K
  • · Replies 21 ·
Replies
21
Views
13K
  • · Replies 9 ·
Replies
9
Views
18K
Replies
16
Views
3K
Replies
23
Views
3K
  • · Replies 1 ·
Replies
1
Views
6K
Replies
4
Views
8K