Toggle Switch

I wanted to figure out how to use a toggle switch with Arduino! I looked around online and compiled a few different things to get this.

Aug 8, 2019

61818 views

6 respects

Components and supplies

1

Gikfun MTS102 2 Position 3 Pins Mini Toggle Switch for Arduino (Pack of 10pcs) EK2021

1

5 mm LED: Green

1

Arduino UNO

1

Jumper wires (generic)

2

Resistor 1k ohm

Tools and machines

1

Solder Wire, Lead Free

1

Soldering iron (generic)

Project description

Code

Toggle Switch Code

arduino

The basic code. It uses the digital pins on the board.

Toggle Switch Code

arduino

The basic code. It uses the digital pins on the board.

Downloadable files

Switch Solder

A closer look at the soldered toggle switch.

Switch Solder

Toggle Switch Wiring

A Fritzing Diagram for the wiring.

Toggle Switch Wiring

Switch Solder

A closer look at the soldered toggle switch.

Switch Solder

Comments

Only logged in users can leave comments

GeneralSpud

0 Followers

0 Projects

6

0