2 Pin Push ButtonThe push button has prongs. They only connect when the button is pushed down.
These pictures use a 100 Ohm resistor from the + rail to one of the button's pins, then a red LED's - end from the - rail and its + end connected to the other side of the button. |
The switch is off. The LED not connected to the resistor. Circuit is "open".
|
The switch pressed is on. The LED is connected to the resistor. Circuit is "closed".
|
Slide SwitchThe slide switch has three prongs. The middle one is the common, which is the 5V. Then you can use either the left or right side connected to either something to the power's - side.
These pictures use 1) A 100 Ohm resistor from the + rail to the middle toggle pin 2) A red LED's - end from the switch's right side to the - rail. |
The switch left is off. Nothing is connected to the left side.
|
The switch right is on.
|
Tilt Switch
The tilt switch closes the switch when you tilt it one direction and it opens the switch when it tilts the other direction. When you shake it, that means it will turn on and off.