Sep 022012
 

I was curious to see if the new switches were prone to switch bounces. This is why I wrote a quite simple Teensy program that can count switch bounces. The debounce example code that come with the Arduinio IDE was used as a template.

This is quite simple, and just here to make it simple to redo this kind of test when I get new types of switches.

S1 in the schematic is the switch you want to test. The resistor is used as a pull down resistor, to make sure that the input pin is properly grounded when the button is released.

The result for my switches is somewhat unstable. I get just one count most of the times, but sometimes up to 9 bounces. The end result is that I need to debounce them properly to eliminate weird results in my builds.

Schematic