science tinker

Tilt sensor (SW-200D)

A switch that is closed when upright and opens when it is tipped over.

Sensors · Elements inside: CuZnNiAuFeC

Function: what the SW-200D does in a circuit

A switch that is closed when upright and opens when it is tipped over.

  • Detects whether it is upright or tipped over
  • Acts as a switch that opens when tilted
  • Triggers tip-over alarms and motion-activated toys

SW-200D key facts

TypeSW-200D ball tilt switch
Uprightclosed (conducts)
Tiltedopen
Ratingabout 20 mA at 12 V
Polaritynone

Connections

The legs from left to right, as the part is drawn in the simulator:

No.Name
1leg
2leg

How it works

Inside the green tube two tiny metal balls rest on two contacts. Upright, gravity holds the balls against the contacts and current flows. Tilt it past about 45° and the balls roll away, breaking the circuit. Wire it like a push button: one leg to a pin with INPUT_PULLUP, the other to GND.

What it is made of

  • Balls and contacts: Gold-plated or nickel-plated brass CuZnNiAu
  • Tube: Metal can in a green plastic sleeve FeC

Where the materials come from: Copper and zinc (brass) from their ores; nickel from laterite and sulfide ores; gold from gold mines.

The chemistry

Older tilt switches used a drop of mercury, a liquid metal, to join the contacts. Mercury is toxic, so modern ones use rolling metal balls instead.

Biology connection

Your inner ear has its own tilt sensors: tiny calcium carbonate crystals (otoconia) rest on hair cells and shift when you tip your head, telling your brain which way is down. How the ear senses balance →

Safety and the environment

The balls can bounce for a few milliseconds when it moves: read it twice, a short time apart, to be sure (debouncing). Never break open old mercury tilt switches.

Did you know? Some tilt switches in old thermostats and car boot lights contained mercury: that is why they must go to e-waste, not the bin.

Try it in the simulator

Add it in Free build, wire one leg to pin 2 and the other to GND, use pinMode(2, INPUT_PULLUP) and digitalRead(2), then tap the sensor while the simulation runs to tip it over.

Questions students ask

What does the SW-200D do?

A switch that is closed when upright and opens when it is tipped over. Main functions: detects whether it is upright or tipped over; acts as a switch that opens when tilted; triggers tip-over alarms and motion-activated toys.

How does a tilt sensor work?

A small metal ball inside the can rests on two contacts and joins them when the sensor is upright. Tilt it and the ball rolls away, opening the circuit. Read it like a button, with INPUT_PULLUP.

What are the connections of the SW-200D?

In order: leg, leg.

How does the SW-200D work?

Inside the green tube two tiny metal balls rest on two contacts. Upright, gravity holds the balls against the contacts and current flows. Tilt it past about 45° and the balls roll away, breaking the circuit. Wire it like a push button: one leg to a pin with INPUT_PULLUP, the other to GND.

What is the SW-200D made of?

Balls and contacts: Gold-plated or nickel-plated brass. Tube: Metal can in a green plastic sleeve.

Is the SW-200D safe? How should it be recycled?

The balls can bounce for a few milliseconds when it moves: read it twice, a short time apart, to be sure (debouncing). Never break open old mercury tilt switches.

More sensors

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.