Many applications using the Raspberry Pi require that actions are activated without requiring a keyboard and screen to be attached to it. The GPIO pins provide an excellent way for the Raspberry Pi to be controlled by your own buttons and switches without a mouse/keyboard and screen.
You will need the following equipment:
The switches are as shown in the following diagram:
The push-button switch and other types of switch
Note
The switches used in the following examples are single-pole, single-throw (SPST), momentary close, push-button switches. Single pole (SP) means that there is one set of contacts that makes a connection. In the case of the push switch used here, the legs on each side are connected together with a single-pole switch in the middle...