Arduino - Magnetic Reed Switch KY-021

Introduction: Arduino - Magnetic Reed Switch KY-021

About: 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 wide range of sensors you can use with it. I ma...

Hello world! yep yep, i made another simple example project.

This time for the KY-021 Mini reed switch.

It will simply turn on and off a light with a relay by using a magnetic field.

Reed switches are used allot in burglar alarms.

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

Teacher Notes

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.

Parts List

  1. Arduino Uno, I used the robotdyn Uno.. one with 7 analog pins! Very good stuff! buy it!
  2. KY-021 Mini reed Switch
  3. KY-019 1 Channel Relay.
  4. A magnetic field, can be any magnet but best to use is a small one. Or even better a magnet from a alarm.
  5. Set of jumper wires. MM/FF/MF
  6. Lamp + power cable (optional) dont need this! The relay itself will show you if it works by turning on a led.

Good luck!

Be the First to Share


    • Trash to Treasure Contest

      Trash to Treasure Contest
    • Raspberry Pi Contest 2020

      Raspberry Pi Contest 2020
    • Wearables Contest

      Wearables Contest