Copyright © Parallax Inc.
Page 2 of 5
The tilt sensor indicates rotational position in a single plane only. You can get rotational position
in two planes by adding a second tilt sensor. Orient this sensor so that it’s at a right angle to the
first.
Parts List
•
4-Directional Tilt Sensor
•
BASIC Stamp 2 HomeWork board, Propeller Board of Education, Propeller QuickStart, or Arduino
Uno microcontroller (solderless breadboard as needed)
•
22 gauge solid conductor hookup wire
Basic Wiring
•
Power requirements: 3 to 5.5 VDC
•
Communication: 2-pin high/low output for four sensor states
•
Dimensions: 0.42 x 0.32 x 0.49 in (1.07 x 0.81 x 1.24 cm)
Program KickStarts
The example programs display the current Out 1 and Out 2 values of the 4-Directional Tilt
Sensor in a terminal/debug window. The program is set to repeat indefinitely. Demonstrate the
operation of the module by slowly rotating it on its four sides.
For all microcontrollers the values displayed in the window represent whether each output is off
(0 is displayed) or on (1 is displayed).