Introduction: 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!
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Schematic Code & Parts List.
Just wire it up like the schematic and upload the code.
- Arduino Uno, I used the Robotdyn Uno as i always do. Until it breaks:) then i use a new one! lol
- 1 Channel relay KY-019
- Mercury Switch Module KY-017
- 1 Led of any color you want.
- Jumper wires MM/FF/FM
- Lamp socket + Lamp and power cable (optional to add to the relay)
Follow me for more! I will write codes and make schematics for all sensors i got.
About 40 sensors!