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

How to Use REED SWITCH MODULE: Examples, Pinouts, and Specs

Image of REED SWITCH MODULE
Cirkit Designer LogoDesign with REED SWITCH MODULE in Cirkit Designer

Introduction

  • A reed switch module consists of a reed switch encapsulated in a protective housing, often with additional circuitry. It operates by closing or opening an electrical circuit in response to a magnetic field.
  • This module is widely used in sensing applications, such as security systems (e.g., door/window sensors), position detection, proximity sensing, and robotics. Its ability to detect magnetic fields makes it a reliable and cost-effective solution for various automation and monitoring tasks.

Explore Projects Built with REED SWITCH MODULE

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Reed Switch-Activated Water Pump Circuit
Image of Water ATM: A project utilizing REED SWITCH MODULE in a practical application
This circuit is designed to control a water pump using a DC power source and a reed switch. The reed switch acts as a sensor that, when triggered, allows current to flow from the DC jack to the water pump, turning it on. There is no microcontroller or additional control logic, indicating that the pump operates directly in response to the state of the reed switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
Reed Switch Controlled Multi-Color LED Indicator
Image of patent: A project utilizing REED SWITCH MODULE in a practical application
This circuit consists of four reed switches, each controlling a different colored LED (green, blue, red, and orange). When a reed switch is activated, it completes the circuit, allowing current to flow from the Vcc to the corresponding LED, which then lights up. All LEDs share a common ground connection.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered Smart Light with Wemos D1 Mini and Reed Switches
Image of Crystal Puzzle: A project utilizing REED SWITCH MODULE in a practical application
This circuit uses a Wemos D1 Mini microcontroller to monitor the state of multiple reed switches and control a WS2812 RGB LED strip. The microcontroller is powered by a 3xAA battery pack, and the reed switches are used to trigger different actions or lighting patterns on the LED strip.
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 REED SWITCH MODULE 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

Explore Projects Built with REED SWITCH MODULE

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 Water ATM: A project utilizing REED SWITCH MODULE in a practical application
Reed Switch-Activated Water Pump Circuit
This circuit is designed to control a water pump using a DC power source and a reed switch. The reed switch acts as a sensor that, when triggered, allows current to flow from the DC jack to the water pump, turning it on. There is no microcontroller or additional control logic, indicating that the pump operates directly in response to the state of the reed switch.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of patent: A project utilizing REED SWITCH MODULE in a practical application
Reed Switch Controlled Multi-Color LED Indicator
This circuit consists of four reed switches, each controlling a different colored LED (green, blue, red, and orange). When a reed switch is activated, it completes the circuit, allowing current to flow from the Vcc to the corresponding LED, which then lights up. All LEDs share a common ground connection.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Crystal Puzzle: A project utilizing REED SWITCH MODULE in a practical application
Battery-Powered Smart Light with Wemos D1 Mini and Reed Switches
This circuit uses a Wemos D1 Mini microcontroller to monitor the state of multiple reed switches and control a WS2812 RGB LED strip. The microcontroller is powered by a 3xAA battery pack, and the reed switches are used to trigger different actions or lighting patterns on the LED strip.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Interfacing Reed Switch with Arduino UNO: A project utilizing REED SWITCH MODULE 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

Technical Specifications

  • Operating Voltage: 3.3V to 5V DC
  • Switch Type: Normally Open (NO) or Normally Closed (NC), depending on the module design
  • Maximum Switching Voltage: Typically 100V DC (reed switch only)
  • Maximum Switching Current: Typically 0.5A (reed switch only)
  • Response Time: ~0.5ms (varies by module)
  • Module Dimensions: Varies, typically ~30mm x 15mm x 10mm
  • Output Type: Digital (HIGH or LOW signal)

Pin Configuration and Descriptions

Pin Name Description
VCC Power supply pin. Connect to 3.3V or 5V DC.
GND Ground pin. Connect to the ground of the power supply.
OUT Digital output pin. Outputs HIGH (1) when the reed switch is open, and LOW (0) when closed.

Usage Instructions

How to Use the Reed Switch Module in a Circuit

  1. Power the Module:

    • Connect the VCC pin to a 3.3V or 5V DC power source.
    • Connect the GND pin to the ground of the power source.
  2. Connect the Output:

    • Connect the OUT pin to a digital input pin of a microcontroller (e.g., Arduino UNO).
    • Use a pull-up resistor if the module does not have one built-in.
  3. Place a Magnet:

    • Position a magnet near the reed switch to trigger it. The module will output a LOW signal when the reed switch closes (magnet nearby) and a HIGH signal when the reed switch is open (magnet far away).

Important Considerations and Best Practices

  • Magnet Placement: Ensure the magnet is aligned properly with the reed switch for reliable operation.
  • Debouncing: Reed switches may produce noise or "bouncing" when switching states. Use software debouncing in your code to filter out false triggers.
  • Current Limitation: Avoid exceeding the maximum current and voltage ratings of the reed switch to prevent damage.
  • Environmental Factors: Keep the module away from strong electromagnetic interference (EMI) sources, as they may affect its performance.

Example Code for Arduino UNO

// Reed Switch Module Example Code for Arduino UNO
// This code reads the state of the reed switch and prints it to the Serial Monitor.

const int reedSwitchPin = 2; // Connect the OUT pin of the module to digital pin 2
int reedState = 0;           // Variable to store the state of the reed switch

void setup() {
  pinMode(reedSwitchPin, INPUT); // Set the reed switch pin as input
  Serial.begin(9600);           // Initialize serial communication at 9600 baud
}

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

  if (reedState == LOW) {
    // Reed switch is closed (magnet nearby)
    Serial.println("Magnet Detected!");
  } else {
    // Reed switch is open (magnet far away)
    Serial.println("No Magnet Detected.");
  }

  delay(500); // Wait for 500ms before reading again
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The module does not detect the magnet:

    • Ensure the magnet is strong enough and properly aligned with the reed switch.
    • Check the power connections to the module (VCC and GND).
  2. False triggers or unstable output:

    • Add software debouncing in your code to filter out noise.
    • Verify that the module is not exposed to strong EMI sources.
  3. Output signal is always HIGH or LOW:

    • Inspect the reed switch for physical damage.
    • Confirm that the OUT pin is properly connected to the microcontroller.

FAQs

Q: Can I use the reed switch module with a 12V power supply?
A: No, the module is designed to operate at 3.3V to 5V DC. Using a higher voltage may damage the module.

Q: How far can the magnet be placed from the reed switch?
A: The distance depends on the strength of the magnet and the sensitivity of the reed switch. Typically, it ranges from a few millimeters to a few centimeters.

Q: Can the reed switch module detect non-magnetic objects?
A: No, the reed switch operates based on magnetic fields and cannot detect non-magnetic objects.

Q: Is the reed switch module polarity-sensitive?
A: No, the reed switch itself is not polarity-sensitive, but ensure proper connections for the module's circuitry.