User Tools

Site Tools


tutorials:learn:sensors:tilt.html

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
tutorials:learn:sensors:tilt.html [2010/10/06 18:17]
daigo created
tutorials:learn:sensors:tilt.html [2016/01/28 18:05] (current)
Line 1: Line 1:
  
-====  ====+[[ http://​www.ladyada.net/​images/​sensors/​tiltcutaway.jpg |{{  http://​www.ladyada.net/​images/​sensors/​tiltcutaway_t.jpg?​nolink&​500x376 ​ |}}]] 
 +//Cutaway of rolling-ball type tilt sensor//
  
- +[[http://​www.ladyada.net/​images/​sensors/​merc.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​merc_t.jpg?​nolink&500x376 ​ |}}]] 
-{{  ​http://​www.ladyada.net/​images/​sensors/​tiltcutaway_t.jpg?​500x376  ​|}} \\  +//Mercury type tilt sensor//
-Cutaway of rolling-ball type tilt sensor +
- +
-{{  http://​www.ladyada.net/​images/​sensors/​merc_t.jpg?​500x376 ​ |}} \\  +
-Mercury type tilt sensor+
  
  
 ==== What is a tilt sensor? ​ ==== ==== What is a tilt sensor? ​ ====
- 
- 
  
  
Line 31: Line 26:
  
 ==== Basic Stats  ==== ==== Basic Stats  ====
- 
- 
  
  
 These stats are for the tilt sensor in the Adafruit shop which is very much like the [[http://​www.ladyada.net/​media/​sensors/​MS-100906.pdf|107-2006-EV]]. 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 These stats are for the tilt sensor in the Adafruit shop which is very much like the [[http://​www.ladyada.net/​media/​sensors/​MS-100906.pdf|107-2006-EV]]. 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
- 
  
  
Line 43: Line 35:
   ***Sensitivity range:** > +-15 degrees   ***Sensitivity range:** > +-15 degrees
   ***Lifetime**:​ 50,000+ cycles (switches) \\    ***Lifetime**:​ 50,000+ cycles (switches) \\ 
- 
   ***Power supply:** Up to 24V, switching less than 5mA   ***Power supply:** Up to 24V, switching less than 5mA
-  *[[http://​www.ladyada.net/​media/​sensors/​MS-100906.pdf|**Datasheet**]] +  ​***[[http://​www.ladyada.net/​media/​sensors/​MS-100906.pdf|Datasheet]]** 
 ==== Testing your tilt  ==== ==== Testing your tilt  ====
- 
- 
  
  
 Testing your sensor is simple. Put your multimeter into continuity-test mode and touch the probes to the two leads. Then tilt to determine the angle at which the switch opens and closes Testing your sensor is simple. Put your multimeter into continuity-test mode and touch the probes to the two leads. Then tilt to determine the angle at which the switch opens and closes
  
-[[http://​www.ladyada.net/​images/​sensors/​tiltcont1.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltcont1_t.jpg?​500x375 ​ |}}]] \\  +[[http://​www.ladyada.net/​images/​sensors/​tiltcont1.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltcont1_t.jpg?​nolink&500x375 ​ |}}]] \\ //When pointing down, the switch is Open Loop (no continuity)//
-When pointing down, the switch is Open Loop (no continuity)+
  
-[[http://​www.ladyada.net/​images/​sensors/​tiltcont2.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltcont2_t.jpg?​500x375 ​ |}}]] \\  +[[http://​www.ladyada.net/​images/​sensors/​tiltcont2.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltcont2_t.jpg?​nolink&500x375 ​ |}}]] \\ //When pointing up, the switch is closed (low resistance / continuous)//
-When pointing up, the switch is closed (low resistance / continuous)+
  
  
 ==== Connecting to your sensor ​ ==== ==== Connecting to your sensor ​ ====
- 
- 
  
  
 Tilt switches are pretty hardy, you can easily solder to them, clip the leads, plug them into breadboards,​ use alligator clips, etc. The only care you should take is to avoid bending the leads too much as they may break off. Tilt switches are pretty hardy, you can easily solder to them, clip the leads, plug them into breadboards,​ use alligator clips, etc. The only care you should take is to avoid bending the leads too much as they may break off.
  
-[[http://​www.ladyada.net/​images/​sensors/​tiltbb.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltbb_t.jpg?​500x376 ​ |}}]]+[[http://​www.ladyada.net/​images/​sensors/​tiltbb.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltbb_t.jpg?​nolink&500x376 ​ |}}]]
  
-[[http://​www.ladyada.net/​images/​sensors/​tiltwire.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltwire_t.jpg?​500x262 ​ |}}]]+[[http://​www.ladyada.net/​images/​sensors/​tiltwire.jpg|{{ ​ http://​www.ladyada.net/​images/​sensors/​tiltwire_t.jpg?​nolink&500x262 ​ |}}]]
  
  
 ==== Project examples ​ ==== ==== Project examples ​ ====
 +{{ youtube>​MVOzUXgNSzM }}
 +\\ A simple video showing an LED being turned on by the tilt switch.
  
 +{{ youtube>​SRgHHu1TmWk }}
 +\\ Simple video showing a mercury type tilt sensor
  
 +{{ youtube>​OkWQN1H5j5c }}
 +\\ Another basic video, this one shows a tilt sensor connected to an Arduino which then controls a servo  ​
  
-<object width="​425"​ height="​344">​ +[[http://www.studiomama.com/onoff.html|{{ ​ http://​www.ladyada.net/​images/​sensors/​lexonclock.jpg?​nolink&532x400 ​ |}}]] \\ [[http://www.studiomama.com/onoff.html|This clock uses a tilt sensor to set the alarm. To snooze, tilt it over.]]
-<param name="​movie"​ value="​http://www.youtube.com/v/SRgHHu1TmWk&hl=en&​fs=1&">​ +
-</param> +
-<param name="​allowFullScreen"​ value="​true">​ +
-</param> +
-<param name="​allowscriptaccess"​ value="​always">​ +
-</param>+
  
-</object> ​\\  +{{  http://​www.ladyada.net/​images/​sensors/​jiggleometer.gif?​nolink&​500x400 ​ |}} \\ [[http://​anniespinster.wikidot.com/​jiggly-wobbly-thing|Jiggle-ometer, ​Arduino->​Pachube->​SecondLife conduit for motion]]
-Simple video showing ​mercury type tilt sensor+
  
-<object width="​425"​ height="​344"><​param name="​movie"​ value="​http://​www.youtube.com/​v/​OkWQN1H5j5c&​hl=en&​fs=1&"></​param><​param name="​allowFullScreen"​ value="​true"></​param><​param name="​allowscriptaccess"​ value="​always"></​param>></​object>​ \\  
-Another basic video, this one shows a tilt sensor connected to an Arduino which then controls a servo  ​ 
  
-[[http://​www.studiomama.com/​onoff.html|{{  ​http://​www.ladyada.net/​images/​sensors/​lexonclock.jpg?​532x400 ​ |}}]] \\  +{{ youtube>​kazHFsGK3tc ​}} 
-[[http://​www.studiomama.com/​onoff.html|This clock uses a tilt sensor to set the alarm. To snooze, tilt it over.]] +\\ This project uses an accelerometer,​ but a simple game controller could be made with tilt switches
- +
-{{  http://​www.ladyada.net/​images/​sensors/​jiggleometer.gif?​500x400 ​ |}} \\  +
-[[http://​anniespinster.wikidot.com/​jiggly-wobbly-thing|Jiggle-ometer,​ a Arduino->​Pachube->​SecondLife conduit for motion]] +
- +
-<object width="​425"​ height="​344"><​param name="​movie"​ value="​http://​www.youtube.com/​v/​kazHFsGK3tc&​color1=0xb1b1b1&​color2=0xcfcfcf&​hl=en&​feature=player_embedded&​fs=1"></​param><​param name="​allowFullScreen"​ value="​true"></​param><​param name="​allowScriptAccess"​ value="​always"></​param></​object>​ +
- \\  +
-This project uses an accelerometer,​ but a simple game controller could be made with tilt switches+
  
  
 ==== Simple tilt-activated LED  ==== ==== Simple tilt-activated LED  ====
- 
- 
  
  
 This is the most basic way of connecting to a tilt switch, but can be handy while one is learning about them. Simply connect it in series with an LED, resistor and battery. Tilt to turn on and off. This is the most basic way of connecting to a tilt switch, but can be handy while one is learning about them. Simply connect it in series with an LED, resistor and battery. Tilt to turn on and off.
  
-{{  http://​www.ladyada.net/​images/​sensors/​tiltLEDschem.gif?​490x246 ​ |}}+{{  http://​www.ladyada.net/​images/​sensors/​tiltLEDschem.gif?​nolink&490x246 ​ |}}
  
-{{  http://​www.ladyada.net/​images/​sensors/​tiltLEDlayout.gif?​453x263 ​ |}}+{{  http://​www.ladyada.net/​images/​sensors/​tiltLEDlayout.gif?​nolink&453x263 ​ |}}
  
  
 ==== Reading switch state with a microcontroller ​ ==== ==== Reading switch state with a microcontroller ​ ====
- +{{  http://​www.ladyada.net/​images/​sensors/​tiltarduinolay.gif?​nolink&500x281 ​ |}}
- +
-{{  http://​www.ladyada.net/​images/​sensors/​tiltarduinolay.gif?​500x281 ​ |}} +
  
  
/home/ladyada/public_html/wiki/data/attic/tutorials/learn/sensors/tilt.html.1286389035.txt.gz · Last modified: 2016/01/28 18:05 (external edit)