It’s a fact of life that mechanical switches don’t open and close perfectly. The contacts can “bounce” on opening or closing resulting in a short period of intermittent contact before settling into their final state. This typically occurs over a timescale of milliseconds. Figure 1 shows a ‘scope trace of...