This basic tilt switch can easily be used to detect orientation. Inside the can are a pair of balls 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.
Detalhes do produtos
Clientes que compraram este produto também compraram:
Sharp GP2Y0A41SK0F Analog Distance Sensor 4-30cm
Sharp GP2Y0A41SK0F Analog Distance Sensor 4-30cm The GP2Y0A41SK0F is short range Sharp analog distance sensor, featuring a detection range of 4cm to 30cm. The shorter range gives you higher resolution measurements, and the lower minimum detection distance makes this sensor great for detecting very close objects.