Keybounce

nounStandard termElectronics

The rapid, unintended multiple electrical contacts made when a mechanical switch is pressed.

Keybounce is a mechanical artifact where the metal contacts inside a switch physically chatter against each other for a few milliseconds upon closing or opening. To a fast digital microcontroller, this mechanical ringing looks like multiple rapid button presses, requiring hardware filters or software delays to register a single, clean input.

Heard on the job

The interrupt is firing five times per press because you forgot to filter out the keybounce.

Insider tip

A simple RC circuit followed by a Schmitt trigger is the classic hardware solution to eliminate keybounce.

Also heard as

  • switch bounce
  • contact bounce