
BeagleBone By Example
By :

Switches are one of the the elementary components in electronic circuits:
All they do is make or break a circuit, meaning it either opens a connection or closes it between two terminals. The two states of a switch are as shown in the following figure:
There are a lot of different types of switches. But there are two most commonly used ones in our circuits that we will discuss in this section, which are the momentary switch and the toggle switch. Before we discuss the different types of switches, as mentioned during the introduction of this chapter, let's see what LEDs are and how to create a basic circuit using them, as during the explanation of the switch operations, it will be useful for better understanding.
To create your first simple circuit, take a battery, resistor, and LED with wires to connect them as shown in the following figure. By doing this, you can understand what an LED is. LED stands for light emitting diode, which is nothing but an electronic component...