Being a pure software guy, hardware seems to be mystic realm for me. I had been reading the section “3.5 Working with Buttons” which deals with basic connections of a push-button. I thought push-button would be a simple device. i.e. two opposing pins are connected when the button is pushed.
However, I have not been able to understand its working. In figure “3.10: A Simple Pushbutton Circuit”, one pin of pushbutton is connected to 5V. However, its opposing pin is not connected to anything at all. However, things don’t work if I don’t connect this pin to 5V. Also, it seems that the opposing pin of the 5V pin is always having some voltage. (I apparently connected a led to the pin opposite to 5V pin and it keeps on glowing whether the button is pressed or not) Is there any relation between the adjacent pins on the push-button as well.
This seems to be puzzling me. Is there any place on the Internet where more info about the internal workings of push-buttons ?