Lesson 12 Controlling an LED by Limit Switch
Introduction
Limit Switch, or travel switch, can be installed on relatively stationary objects such as
mounting bracket and door frame, or moving objects like car and door. When the moving
object approaches the stationary one, the switch is closed; when the moving one moves
away from the static one, the switch is open.
Components
- 1 * Raspberry Pi
- 1 * GPIO Extension Board
- 1 * 40-Pin GPIO Cable
- 1 * Breadboard
- 1 * Limit Switch Module
- 1 * LED Module
- 2 * 3-Pin Wires
Experimental Principle
The Fritzing image:
The Physical picture:
Pin definition: