EasyManua.ls Logo

Sparkfun Electronics Inventor's Kit - Introducing the SPDT Switch

Sparkfun Electronics Inventor's Kit
83 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Resistor 100 Ohm 1/4 Watt PTH - 20 pack (Thick Leads)
PRT-14493
Suggested Reading
Before continuing with this tutorial, we recommend you be somewhat familiar with the concepts in
these tutorials:
Switch Basics
Analog vs. Digital
Digital Logic
Introducing the Single-Pole, Double-Throw (SPDT) Switch
The Single-Pole, Double-Throw (SPDT) switch has a common pin in the middle and then two other
pins. A connection will be made between the middle pin and one of the other pins depending on the
position of the switch.
Reading a switch is similar to a button. You need to connect the common pin to a digital General
Purpose Input/Output (GPIO) pin to the micro:bit board from a breadboard. The other pins can be
connected to 3.3V and ground. It doesn’t matter which pin is which. When you move the switch, the
common pin will either be HIGH (connected to 3.3V) or LOW (connected to ground).