Components Required

Image Component Quantity Available in Kit
evive 1
USB A-B Cable 1


To learn more about switches, you should know about two concepts:

  • Pole: The number of poles on a switch defines how many separate circuits the switch can control. So a switch with one pole, can only influence one single circuit.
  • Throw: A switch’s throw-count defines how many positions each of the switch’s poles can be connected to. For example, if a switch has two throws, each circuit (pole) in the switch can be connected to one of two terminals.

Hence, commonly switched are defined as “single-pole, single-throw” like tactile switch and “single-pole, double-throw” like slide switch of evive.

Single-Pole, Single-Throw (SPST)

This is the simplest switch. It’s got one output and one input. The switch will either be closed or completely disconnected. SPSTs are perfect for on-off switching. They’re also a very common form of momentary switches. SPST switches should only require two terminals.

Single-Pole, Double-Throw (SPDT)

SPDTs have three terminals: one common pin and two pins which vie for connection to the common. evive has two slide switch which are SPDT type. Their common is high and the other two terminals are connected to digital pin 40 and 41 for slide switch 1, and 42 and 43 for slide switch 2. This means that when the switch slide up, pin 40 is high and when it slide sown, pin 41 is high, while both are low when the switch is in the middle.

evive Slide Switch


In this example we will read the state of the slide switch and display it on the TFT Screen. Given below is the flow chart of the script.


Arduino Script