Crowbits-Tilt Switch is a digital input module, it turns on and off depending on the tilt direction, it can be used to detect the tilt orientation.
The tilt sensor detects the tilt of the module itself. (left or right) The tilt switch is a dual ball type tilt sensitive trigger switch, the ball makes contact with the pins when tilting left. The interface of the tilt switch module is a digital interface, which means it has two output states, logic low-level and logic high-level.
1. When the module is tilt left, it will output a logic high-level signal. Otherwise, it will output a logic low-level signal.
Using the tilt sensor you’ll be able to know tilt direction and take different actions, for example, a game controller! Tilt left do action A, tilt right or stable do action B!
The tilt sensor itself will not tell you the direction of the tilt (right, stable or left) but as we mentioned earlier, if you tilt it left it will output 1 (high) and if you tilt it right or stable it will output 0 (low) which means by the output signal of the tilt sensor we can assume which direction it tilts.