Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Magnetic Reed Door Switch: Examples, Pinouts, and Specs

Image of Magnetic Reed Door Switch
Cirkit Designer LogoDesign with Magnetic Reed Door Switch in Cirkit Designer

Introduction

The Magnetic Reed Door Switch is a sensor designed to detect the opening and closing of doors or windows by utilizing a magnetic field. It consists of two main components: a reed switch and a magnet. When the door or window is closed, the magnet aligns with the reed switch, keeping the circuit closed. When the door or window opens, the magnet moves away, causing the circuit to open. This simple yet effective mechanism makes the Magnetic Reed Door Switch a popular choice for security systems, home automation, and industrial monitoring.

Explore Projects Built with Magnetic Reed Door Switch

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Wi-Fi Controlled Door Monitoring System with NodeMCU and Relay
Image of relay on off low level triger: A project utilizing Magnetic Reed Door Switch in a practical application
This circuit is a door monitoring system using a NodeMCU ESP8266 microcontroller, a magnetic door switch, and a 1-channel relay. When the door is closed, the magnetic switch triggers the relay to turn on, and when the door is opened, the relay turns off, allowing for control of an external device based on the door's state.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Reed Switch Sensor with LED Indicator
Image of Interfacing Reed Switch with Arduino UNO: A project utilizing Magnetic Reed Door Switch in a practical application
This circuit uses an Arduino UNO to monitor the state of a reed switch. When the reed switch is activated by a magnetic field, the Arduino turns on an onboard LED and outputs a message to the serial monitor. The reed switch is connected to the Arduino with an internal pull-up resistor on digital pin D2, and the LED is controlled via pin D13.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Reed Switch Alarm with Buzzer
Image of Magnetic_Door_Alarm: A project utilizing Magnetic Reed Door Switch in a practical application
This circuit is a simple alarm system powered by a 18650 Li-Ion battery, regulated to 5V by a 7805 voltage regulator. It uses a reed switch to detect magnetic fields, which triggers a BC547 transistor to activate a buzzer when the switch is closed.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO RFID Door Lock System with Relay and Buzzer Notification
Image of Door Lock System: A project utilizing Magnetic Reed Door Switch in a practical application
This circuit is designed as an RFID-based access control system that operates a magnetic door lock. The Arduino UNO reads RFID tags using the RFID-RC522 module and controls a magnetic lock via a 12V relay, indicating access status with red and green LEDs and a buzzer. The system grants or denies access based on the RFID tag presented, unlocking the door for authorized tags and sounding an alert for unauthorized attempts.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Magnetic Reed Door Switch

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of relay on off low level triger: A project utilizing Magnetic Reed Door Switch in a practical application
Wi-Fi Controlled Door Monitoring System with NodeMCU and Relay
This circuit is a door monitoring system using a NodeMCU ESP8266 microcontroller, a magnetic door switch, and a 1-channel relay. When the door is closed, the magnetic switch triggers the relay to turn on, and when the door is opened, the relay turns off, allowing for control of an external device based on the door's state.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Interfacing Reed Switch with Arduino UNO: A project utilizing Magnetic Reed Door Switch in a practical application
Arduino UNO Reed Switch Sensor with LED Indicator
This circuit uses an Arduino UNO to monitor the state of a reed switch. When the reed switch is activated by a magnetic field, the Arduino turns on an onboard LED and outputs a message to the serial monitor. The reed switch is connected to the Arduino with an internal pull-up resistor on digital pin D2, and the LED is controlled via pin D13.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Magnetic_Door_Alarm: A project utilizing Magnetic Reed Door Switch in a practical application
Battery-Powered Reed Switch Alarm with Buzzer
This circuit is a simple alarm system powered by a 18650 Li-Ion battery, regulated to 5V by a 7805 voltage regulator. It uses a reed switch to detect magnetic fields, which triggers a BC547 transistor to activate a buzzer when the switch is closed.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Door Lock System: A project utilizing Magnetic Reed Door Switch in a practical application
Arduino UNO RFID Door Lock System with Relay and Buzzer Notification
This circuit is designed as an RFID-based access control system that operates a magnetic door lock. The Arduino UNO reads RFID tags using the RFID-RC522 module and controls a magnetic lock via a 12V relay, indicating access status with red and green LEDs and a buzzer. The system grants or denies access based on the RFID tag presented, unlocking the door for authorized tags and sounding an alert for unauthorized attempts.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Home Security Systems: Detect unauthorized entry by monitoring door or window status.
  • Smart Home Automation: Trigger actions such as turning on lights or sending notifications when a door is opened.
  • Industrial Monitoring: Track the status of access points in warehouses or factories.
  • Appliance Safety: Ensure doors on appliances like refrigerators or ovens are properly closed.

Technical Specifications

The Magnetic Reed Door Switch is a passive, normally open (NO) or normally closed (NC) device, depending on the configuration. Below are its key technical details:

Key Specifications

Parameter Value
Operating Voltage 3V to 24V DC
Maximum Switching Current 500 mA
Contact Resistance ≤ 200 mΩ
Insulation Resistance ≥ 10⁹ Ω
Operating Temperature -40°C to +70°C
Housing Material ABS Plastic
Magnet Type Neodymium or Ferrite

Pin Configuration and Descriptions

The Magnetic Reed Door Switch typically has two wires or terminals for connection. Below is the description:

Pin/Terminal Description
Wire 1 Connects to the positive side of the circuit (input voltage).
Wire 2 Connects to the load or ground, depending on the circuit design.

Usage Instructions

How to Use the Magnetic Reed Door Switch in a Circuit

  1. Placement: Mount the reed switch on the stationary part of the door or window frame, and attach the magnet to the moving part (e.g., the door or window itself). Ensure the magnet aligns with the reed switch when the door is closed.
  2. Wiring:
    • Connect one terminal of the reed switch to the positive voltage supply.
    • Connect the other terminal to the input of your microcontroller, relay, or load.
    • If using a microcontroller, add a pull-up resistor (e.g., 10kΩ) to ensure a stable signal.
  3. Testing: Close the door to verify that the circuit is completed (switch closed). Open the door to confirm the circuit opens (switch open).

Important Considerations and Best Practices

  • Alignment: Ensure proper alignment between the reed switch and the magnet for reliable operation.
  • Debouncing: When using the switch with a microcontroller, implement software or hardware debouncing to avoid false triggers caused by mechanical vibrations.
  • Voltage and Current Ratings: Do not exceed the specified voltage and current ratings to prevent damage to the switch.
  • Environmental Factors: Avoid exposing the switch to extreme temperatures, moisture, or strong magnetic fields, as these can affect performance.

Example: Connecting to an Arduino UNO

Below is an example of how to connect and use the Magnetic Reed Door Switch with an Arduino UNO:

Circuit Diagram

  • Connect one terminal of the reed switch to Arduino digital pin 2.
  • Connect the other terminal to ground.
  • Add a 10kΩ pull-up resistor between digital pin 2 and the 5V pin.

Code Example

// Magnetic Reed Door Switch Example with Arduino UNO
// This code reads the state of the reed switch and prints the status to the Serial Monitor.

const int reedSwitchPin = 2; // Pin connected to the reed switch
int reedState = 0;          // Variable to store the reed switch state

void setup() {
  pinMode(reedSwitchPin, INPUT_PULLUP); // Set pin as input with internal pull-up resistor
  Serial.begin(9600);                  // Initialize serial communication
}

void loop() {
  reedState = digitalRead(reedSwitchPin); // Read the state of the reed switch

  if (reedState == LOW) {
    // LOW means the reed switch is closed (door/window is closed)
    Serial.println("Door/Window is CLOSED");
  } else {
    // HIGH means the reed switch is open (door/window is open)
    Serial.println("Door/Window is OPEN");
  }

  delay(500); // Delay for stability and to avoid spamming the Serial Monitor
}

Troubleshooting and FAQs

Common Issues and Solutions

Issue Possible Cause Solution
Switch does not detect door status Misalignment between switch and magnet Reposition the magnet and switch.
False triggers or unstable readings Electrical noise or lack of debouncing Add a pull-up resistor and debounce.
Switch is not working at all Exceeded voltage/current ratings Replace the damaged switch.
Magnet loses strength over time Poor-quality magnet Replace with a stronger magnet.

FAQs

  1. Can I use the Magnetic Reed Door Switch with AC circuits?
    No, this switch is designed for low-voltage DC circuits only. Using it with AC may damage the switch.

  2. What is the maximum distance between the reed switch and the magnet?
    The maximum distance depends on the strength of the magnet, but typically it is around 10-15 mm.

  3. Can I use multiple switches in a single circuit?
    Yes, you can connect multiple switches in series or parallel, depending on your application.

  4. How do I protect the switch from environmental damage?
    Use a weatherproof enclosure or seal the switch with epoxy to protect it from moisture and dust.