Understanding electrical noise from push buttons
Electrical noise can be generated in many push buttons. This can negatively affect the functionality of an electronic circuit where the push button is connected, and it can have unpredictable results in a microcontroller board.
A common problem with push buttons is that they are not perfect. They don't close their switch instantly, and in many cases, electrical noise can be produced. This may happen because not all the push buttons are free of manufacturing errors. If we try to connect a push button directly to a microcontroller's I/O port, every time we press the button, it seems that we do it right. To us, it seems like we pressed it only once. However, to the microcontroller board, it looks like the button was pressed many times for extremely short periods of time, and this is because of electrical noise that is generated in the push button. Electrical noise can be defined as random electrical levels or signals coupling...