Simple Hardware switch debounce:

Post date: May 23, 2015 3:5:43 AM

This is a very easy method to debounce switch if you don't want to use Schmitt trigger circuit or software debounce.

It can be very handy when you want to attach a single switch to one of the arduino interrupt.

Components:

  • 2 resistor 1k Ohm

  • 1 micro switch

  • 1 capacitor 10 Micro F

  • 1 transistor BC547 or equivalent.

Schematic:

Source: http://www.ecs.umass.edu/ece/m5/tutorials/switch_debounce_tutorial.html

Simple Hardware switch debounce Version 2.

Thanks to Aleksandar Popovic to point out the default of the diagram above: discharge of the capacitor when the switch is pressed.

Adding 1 diode and 1 resistor solve the problem.

Components:

  • 3 resistor 1k Ohm

  • 1 micro switch

  • 1 capacitor 10 Micro F

  • 1 transistor BC547 or equivalent.

  • 1 diode type 1N4007

Schematic: