HBridgeNanoSwitch_bb

Breadboard view of a switch attached to an Arduino Nano.

Breadboard view of a switch attached to an Arduino Nano. The Arduino is connected to a breadboard as described in the image above. A switch is mounted in three rows of the the right center section of the breadboard. A red wire connects from the right side voltage bus to the center pin of the switch. A blue wire connects either one of the side pins to digital pin 2 on the Arduino. a 10-kilohm resistor connects that same side pin to the ground bus on the right side of the board.