MOULDLKnowledge BaseElectrical Knowledge Base3D Model DownloadsMembership
中文版Model Store »
Knowledge Base › Electrical Knowledge Base › Switch debounce: RC filter plus Schmitt trigger
HomeModels
Table of contents

On this page

Electrical & Electronic Basics (600 articles)

Quick Reference

  • PLC & Programming
  • Electrical & Electronic Basics (monthly)(每月更新中)
  • Electrical Control & Drawings (monthly)(每月更新中)
  • Drives & Actuators (monthly)(每月更新中)
  • Sensors & Detection (monthly)(每月更新中)
  • Industrial Communication & Networks (monthly)(每月更新中)
  • HMI & Host Systems (monthly)(每月更新中)
  • Industrial Robots & Motion Control (monthly)(每月更新中)
  • Mechatronic System Integration (monthly)(每月更新中)
  • Fault Diagnosis & Standards (monthly)(每月更新中)

Switch debounce: RC filter plus Schmitt trigger

Mechanical contacts bounce for 5~20ms; RC (τ=1~10ms) smooths it and a Schmitt (74HC14) squares it up.

1. How it works

Typical values: R=10k, C=0.1~1μF; keep a cheap software consistency check as a second layer.

2. Practice and pitfalls

RC alone without the Schmitt hysteresis makes things worse - they are a matched pair.

3. Debounce options

SchemeDelayCostUse
Software only10~20msZeroGeneral MCU
RC+SchmittτLowQuality designs
Dedicated chipFixedMediumKey matrices
Flip-flop latchInstantLowEdge capture
RC onlyτLowestAvoid alone
Filter+IRQτLowCombined

4. Notes

Apply the points above to Switch debounce; the figures are typical engineering values, so confirm them against the device datasheet and the actual design before release.

5. References

The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Per GB/T 17574 and the corresponding IEC documents. Ratings and derating follow the device datasheet and the product design file. Always check the device datasheet and the product design file for ratings and derating.

6. Cautions

⚠️ Three common pitfalls:
① Omitting the Schmitt stage
② Under-sizing τ
③ Long key lines without pull resistors

Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.

Related reading

Related 3D models: Ready to build it? Download free 3D models & CAD drawings at MOULDL »
MOULDL · Electrical Knowledge Base · free self-study reference for electrical & automation engineers, 3D CAD models at MOULDL