This AT407 basic tilt switch can easily be used to detect orientation. Inside the can is a ball that make contact with the pins when the case is upright. Tilt the case over and the balls donāt touch, thus not making a connection. There are numerous uses for these basic sensors, but keep in mind you might need to use some debouncing code, as the sensor isnāt immune to small vibrations and such. Documents:DatasheetGitHub (Firmware)
If you are interested in Internet of Things (IoT) or M2M projects check our open
source sensor platform Waspmote
which counts with more than 100 sensors available to use 'off the shelf', a complete API with hundreds of ready to use codes and a low consumption mode of just 0.7µA to ensure years of battery life.
Know more at:
Get the Starter Kits at: