Introduction: Arduino - Mercury Switch TILT ALARM With the KY-027 Set

Picture of Arduino - Mercury Switch TILT ALARM With the KY-027 Set

Hello world! Today i made a example on what you could to with the Mercury Switch. Also known as the Magic Light cup in the arduino world (still not sure why they call it that) Anyways it is a mercury switch with Leds attached to it, nothing more. This example shows you how to make a tilt alarm. When you tilt left or right the Lamps will flash.

Follow the next step for the Schematic Code & Parts list.

Step 1: Schematic Code and Parts List.

Picture of Schematic Code and Parts List.

Parts List. (Note: The KY-027 sensors come in pairs, you need 2.)

  1. Arduino uno.
  2. KY-027 Mercury switch Module SET(Sold & Known as the Magic Light Cup)
  3. KY-019 2 x 1 channel relay (You can use a 2 channels relay to.)
  4. Jumper wires MM/FF/MF.
  5. Lamp socket + lamp and power cable. (Optional)

Good luck!


About This Instructable




Bio: Hello world! I make simple & Advanced projects for people who want to learn programming and electronics. Most of my Instructables are about arduino and the ... More »
More by vandenbrande:ARDUINO - SOLID STATE RELAY FAN/ventilator Control Using the W1209 Thermistor and SSR-25 DA Arduino - SSR-25 DA Solid State Relay and DS3231 RTC Automatic Timer Lamp Arduino & C# - RGB LED / LED STRIP CONTROL C# Application
Add instructable to: