The Terrific Tilt Switch, like the Amazing Pushbutton, requires a USB cable to send digital information from the switch to the computer screen. As shown in Figure 18-1, the device is quite simple to build: it requires just a 1KΩ fixed resistor and a tilt switch. The two components are connected in series like the Amazing Pushbutton device. Where the two components tie together, a jumper wire connects between them and pin D7 of the Arduino microcontroller.
The Terrific Tilt Switch can be built using the Fritzing wiring diagram shown in Figure 18-2. The placement of the parts is not critical, so have some fun placing the components in different places. Although the Fritzing diagram shows a mini breadboard, feel free to use the MakerShield protoboard if you want.

Figure 18-2. The Terrific Tilt Switch Fritzing wiring diagram
Leave a Reply