Arduino and the Tilt Switch
A tilt switch is an imput devide that can detect the tilting of an object.
It is like a push button but activated through a slightly different mechanism inside.
There is a small ball inside that when tilted, rolls to one side and completes the circuit.
This is how the tilt sitch appears from the outside:
Inside the tilt switch you can see how the circuit is completed when the switch is at a certain angle:
This step-by-step guide will help you use a tilt switch with your Arduino.