Introduction: Arduino - Tilt Switch, Switching on a RELAY With the KY-020
Hello world! I made another example. Today for the KY-020.
We are simply going to switch on a relay to turn the lamp on and off.
Follow the next step for the schematic code & Parts list.
Step 1: Schematic Code & Parts List.
- Arduino Uno, I used the RobotDyn Uno.
- KY-020 Tilt Switch.
- KY-019 1 Channel relay.
- Jumper wires MM/FF/MF
- Lamp Socket + lamp & power Cable. (Optional)