Tilt-a-Whirl Hookup Guide
The RPI-1031 Tilt-a-Whirl is a tilt sensor on a breakout board that senses a change in orientation in four different directions. Internally, the sensor has optical sensors that are blocked when a small metal ball rolls in the direction of the orientation change. The sensor then outputs a signal indicating which side the ball is touching.
The board works at both 3.3V and 5V and breaks out the pins to the standard 0.1" headers.
These sensors are pretty easy to get started using, but you may want to check out some of the additional material below if you haven’t done much work previously on Arduino boards.