# Source: https://learn.adafruit.com/tilt-sensor.md

# Tilt Sensor

## Overview

Tilt sensors allow you to detect orientation or inclination. They are small, inexpensive, low-power and easy-to-use. If used properly, they will not wear out. Their simplicitiy makes them popular for toys, gadgets and appliances. Sometimes they are referred to as "mercury switches", "tilt switches" or "rolling ball sensors" for obvious reasons.  
  
They are usually made by a cavity of some sort (cylindrical is popular, although not always) and a conductive free mass inside, such as a blob of mercury or rolling ball. One end of the cavity has two conductive elements (poles). When the sensor is oriented so that that end is downwards, the mass rolls onto the poles and shorts them, acting as a switch throw.

![](https://cdn-learn.adafruit.com/assets/assets/000/000/492/medium800/force___flex_tiltcutaway.jpg?1396763538)

Tilt switches used to be made exclusively of mercury, but are rarer now since they are recognized as being extremely toxic. The benefits of mercury is that the blob is dense enough that it doesnt bounce and so the switch isnt susceptible to vibrations. On the other hand, ball-type sensors are easy to make, wont shatter, and pose no risk of pollution.

![](https://cdn-learn.adafruit.com/assets/assets/000/000/493/medium800/force___flex_merc.jpg?1396763542)

While not as precise or flexible as a full accelerometer, tilt switches can detect motion or orientation simply. Another benefit to them is that the big ones can switch power on their own. Accelerometers, on the other hand, output digital or analog voltage that must then be analyzed with extra circuitry.## Basic Stats
These stats are for the tilt sensor in the Adafruit shop which is very much like the [107-2006-EV](http://learn.adafruit.com/system/assets/assets/000/010/132/original/MS-100906.pdf) . Nearly all will have slightly different sizes & specifications, although they all pretty much work the same. If there's a datasheet, you'll want to refer to it
- **Size:** Cylindrical, 4mm (0.16") diameter & 12mm (0.45") long.
- **Price:** [$2.00 at the Adafruit shop](http://www.adafruit.com/products/173)
- **Sensitivity range:** \> +-15 degrees
- **Lifetime** : 50,000+ cycles (switches)   
- **Power supply:** Up to 24V, switching less than 5mA
- **[Datasheet](http://learn.adafruit.com/system/assets/assets/000/010/132/original/MS-100906.pdf)**  

- [Next Page](https://learn.adafruit.com/tilt-sensor/testing-a-tilt-sensor.md)

## Featured Products

### Tilt ball switch

[Tilt ball switch](https://www.adafruit.com/product/173)
The "poor man's" accelerometer! Tilt sensors are switches that can detect basic motion/orientation. The metal tube has a little metal ball that rolls around in it, when its tilted upright, the ball rolls onto the contacts sticking out of end and shorts them together.

<a...></a...>

In Stock
[Buy Now](https://www.adafruit.com/product/173)
[Related Guides to the Product](https://learn.adafruit.com/products/173/guides)

## Related Guides

- [Force Sensitive Resistor (FSR)](https://learn.adafruit.com/force-sensitive-resistor-fsr.md)
- [Basic Resistor Sensor Reading on Raspberry Pi](https://learn.adafruit.com/basic-resistor-sensor-reading-on-raspberry-pi.md)
- [Calibrating Sensors](https://learn.adafruit.com/calibrating-sensors.md)
- [Wireless ESP32-S2 Touch Screen Controller for Pure Data](https://learn.adafruit.com/wireless-esp32-s2-controller-for-pure-data.md)
- [Hang out your washing reminder - Adafruit IO + Vibration switch](https://learn.adafruit.com/hang-out-your-washing-reminder-adafruit-io-vibration-switch.md)
- [Circuit Playground Bike Glove](https://learn.adafruit.com/circuit-playground-bike-glove.md)
- [ICEdot Teardown](https://learn.adafruit.com/icedot-teardown.md)
- [Adafruit VEML6070 UV Sensor Breakout](https://learn.adafruit.com/adafruit-veml6070-uv-light-sensor-breakout.md)
- [NAU7802 Pet Food Scale](https://learn.adafruit.com/nau7802-pet-food-scale.md)
- [Adafruit HX711 24-bit ADC](https://learn.adafruit.com/adafruit-hx711-24-bit-adc.md)
- [Power Glove Wireless MIDI Controller](https://learn.adafruit.com/power-glove-bluetooth-midi-controller.md)
- [Clue Coffee Scale](https://learn.adafruit.com/clue-coffee-scale.md)
- [Adafruit NAU7802 24-Bit ADC - STEMMA QT / Qwiic](https://learn.adafruit.com/adafruit-nau7802-24-bit-adc-stemma-qt-qwiic.md)
- [Flora MIDI Drum Glove](https://learn.adafruit.com/midi-drum-glove.md)
- [Arcade Stick Conversion](https://learn.adafruit.com/arcade-stick-conversion.md)