Pushbutton Switch





Pushbutton switches will have a problem called "Bounce", whereby a few inputs will be registered when the pushbutton is pressed once due to the design of them which causes the logic to change rapidly for a split second. This problem can be overcomed by Software Debounce, Add a Delay, or use States.In the example below, States were used to deobunce the switch.