Push button circuit setup
For this exercise, we will need:
4-pin push button: A push button is an electronic component that is attached to two points in a circuit. It is also called a tact switch. When it is pressed, it joins these two points and the circuit is completed. The circuit is disconnected when the button is not pressed.
Male-to-male jumper wires: We need jumper wires to connect BeagleBone and components through a breadboard.
Half-size breadboard: A breadboard is needed to create a solderless circuit.
Power off the board and attach the components to BeagleBone as shown in the preceding diagram.
Circuit analysis
Let's see the analysis step by step:
The 4-pin push button is divided into two sides. Within the first side, pole
1
and pole2
are already connected. Another side has pole3
and pole4
connected. But these both sides are not connected to each other. When the button is pressed, the pole1
and pole2
side gets connected to the pole 3 and pole4
side.Pin
P9_3
andP9_4
are not regular...