y'know when you want to implement switch debouncing, and every single time you realise you haven't got a clue what the bouncing actually looks like and end up just fudging the numbers until stuff seems to mostly work as intended?

well here's some actual data! I took a bunch of different switches I had laying around and measured their bouncing behaviour, during both close and open.

graphs in the repo, CSV data available in releases.

github.com/gsuberland/switch_b

Graph showing voltage versus time for a switch being closed, with 32 closing operations overlaid on top of each other and synchronised to the trigger. The voltage jumps around a bunch.
0
0
0

If you have a fediverse account, you can quote this note from your own instance. Search https://chaos.social/users/gsuberland/statuses/114446612576365089 on your instance and quote it. (Note that quoting is not supported in Mastodon.)