Normal Open Switches
Normal – Open switches is the name given to the switches we are very much used to. The switches that turn on when we press and goes off when we release. These switches are called Normal-Open because in their normal state they behave like an open circuit. It is by pressing the switch that we actually close the circuit. This behavior is contrary to that of Normal-Close switches. To learn more about Normal- Close switches please see this lesson. See the circuit diagram and example source code’s link below.
Connecting a Normal Open switch to a microcontroller
- Enable the clock of the GPIO pin
- Set GPIO pin as input
- Enable internal Pull-down resistor for GPIO pin