Introduction: Arduino - Switching Light On/off With Mercury Switch Module KY-017

Picture of Arduino - Switching Light On/off With Mercury Switch Module KY-017

Hello World! I made another example for one of the Sensors from my arsenal :)

This time the Mercury Switch Module KY-017.

We are going to turn on and off a lamp with it, the code is very basic and easy to understand.

Follow the next step for the Schematic Code and Parts list!

Step 1: Schematic Code & Parts List.

Picture of Schematic Code & Parts List.

Just wire it up like the schematic and upload the code.

Parts List.

  1. Arduino Uno, I used the Robotdyn Uno as i always do. Until it breaks:) then i use a new one! lol
  2. 1 Channel relay KY-019
  3. Mercury Switch Module KY-017
  4. 1 Led of any color you want.
  5. Jumper wires MM/FF/FM
  6. Lamp socket + Lamp and power cable (optional to add to the relay)

Good luck!

Follow me for more! I will write codes and make schematics for all sensors i got.

About 40 sensors!

Comments

About This Instructable

656views

4favorites

License:

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: