Introduction: DIY Tilt Switch.

Picture of DIY Tilt Switch.

In this instructable I'll show you how to make a simple tilt switch, this tilt switch works best with microcontrollers that can debounce the signal and overcome interferences produced by vibrations.

There are many ways to make a tilt switch, this one is a cheap and easy way to do one.

Pros:

-Tiny.

-Easy to make.

-Extremely cheap.

-Perfect for small projects with microcontrollers.

Cons:

-Vulnerable to vibrations.

-Not really suitable for 3d motion (might activate at different angles depending on how it's placed).

-Quite exposed to the elements, might not have a very long life under rough conditions.

Materials:

  • Shrink tube (5mm - 3/16inches Ø).
  • Bearing ball ( 3mm Ø) (or many of a smaller size).
  • Male pin strip.

Step 1:

Picture of

Bend the pins until the ball fits nicely between them, this will prevent unstable connections, don't bend them too much, just the right angle so the pins fit inside the shrink tube.

You can also use 2 pairs or pins and make a bi directional tilt switch.

Step 2:

Picture of

Cut about 2cm (0,8 inches) of shrink tube and place the pins inside it, leave about 1mm of separation between the end of the shrink tube and the black plastic that holds the pins, then proceed to heat that part until the tube contracts and can hold the piece by itself, be careful when you heat the part near the long pins, too much heat applied near the end of the pins and the gap won't be enough for the ball to touch them, try to heat only near the base.

Step 3:

Picture of

Add the ball, if you want more stable connections you can try to put many balls with a smaller diameter.

Close the end by heating the tube, if you want to close it completely you can heat it and melt the end pressing it with pliers.

If all has gone right you should have a functional tilt switch.

Comments

Bosun Rick (author)2014-09-07

Would a plastic soda straw of the proper size keep this from shrinking too much and trapping the ball? would a 'BB' (177 cal airgun) work?

Aryan 733 (author)Bosun Rick2017-03-27

bb is plastic it will not work it is insulater

Victor805 (author)Bosun Rick2015-03-11

Sorry for not replying to your comment after all this time, I guess a soda straw could help. A bb would work, but only if it's stainless steel, if it's made out of lead it will rust (turn black) and won't work anymore.

OkayD1 (author)Victor8052016-04-06

Lead can not rust.....

Victor805 (author)OkayD12016-04-12

That's strange, because I used to fish with lead weights, and after some use they were coated in some kind of dark oxide layer, when scraped with a knife you could see the shiny surface again.

Ploopy (author)2015-03-11

Cool!

About This Instructable

5,087views

56favorites

License:

Bio: I'm an electronic engineering student. I don't usually have much spare time but I like to work on random projects to keep myself ... More »
More by Victor805:Quick and Easy Office Chair FixMake Golden Coins (really Easy)The Joule Blinker
Add instructable to: