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. The reed switch is a small, sealed glass tube containing two ferromagnetic metal contacts that close or open in response to a magnetic field. This module is widely used for sensing applications due to its simplicity, reliability, and low power consumption.

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!
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
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
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
Arduino UNO Bluetooth-Controlled Security System with Reed Switch and LED Indicators
Image of fc AAA: A project utilizing Reed Switch Module in a practical application
This circuit is designed as a security system that uses an Arduino UNO microcontroller to interface with a reed switch, two LEDs (red and green), and a Bluetooth module (MKE-M15). The reed switch is monitored by the Arduino to detect an open/close state, which, along with a passcode received via Bluetooth, controls the state of the LEDs: green for access granted and red for access denied. Additionally, the circuit can send an intruder alert message if the reed switch is not activated and no Bluetooth connection is present.
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 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
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 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 fc AAA: A project utilizing Reed Switch Module in a practical application
Arduino UNO Bluetooth-Controlled Security System with Reed Switch and LED Indicators
This circuit is designed as a security system that uses an Arduino UNO microcontroller to interface with a reed switch, two LEDs (red and green), and a Bluetooth module (MKE-M15). The reed switch is monitored by the Arduino to detect an open/close state, which, along with a passcode received via Bluetooth, controls the state of the LEDs: green for access granted and red for access denied. Additionally, the circuit can send an intruder alert message if the reed switch is not activated and no Bluetooth connection is present.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Security systems (e.g., door/window sensors)
  • Position or proximity detection
  • Robotics (e.g., detecting magnetic objects)
  • Industrial automation
  • Home automation (e.g., smart doors or cabinets)

Technical Specifications

Below are the key technical details of a typical Reed Switch Module:

Parameter Value
Operating Voltage 3.3V to 5V
Operating Current < 10mA
Output Type Digital (High/Low)
Trigger Mechanism Magnetic field
Dimensions Varies by manufacturer (e.g., 32mm x 14mm)
Response Time Typically < 1ms
Contact Rating 10W (max), 200V (max), 0.5A (max)

Pin Configuration and Descriptions

The Reed Switch Module typically has three pins:

Pin Name Description
1 VCC Power supply pin (3.3V to 5V)
2 GND Ground pin
3 OUT Digital output pin (HIGH when no magnet, LOW when magnet is near)

Usage Instructions

How to Use the Reed Switch Module in a Circuit

  1. Connect the Module to Power:

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

    • Connect the OUT pin to a digital input pin of your microcontroller (e.g., Arduino UNO).
    • Use a pull-up resistor if required (some modules may already include one).
  3. Place a Magnet Near the Reed Switch:

    • When a magnet is brought close to the reed switch, the contacts inside the switch close, and the OUT pin goes LOW.
    • When the magnet is removed, the contacts open, and the OUT pin goes HIGH.

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 if necessary.
  • Avoid Overloading: Do not exceed the contact rating of the reed switch to prevent damage.
  • Environmental Factors: Protect the module from excessive vibration, as it may cause false triggering.

Example Code for Arduino UNO

Below is an example of how to use the Reed Switch Module with an 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
const int ledPin = 13;       // Built-in LED on Arduino UNO

void setup() {
  pinMode(reedSwitchPin, INPUT); // Set reed switch pin as input
  pinMode(ledPin, OUTPUT);       // Set LED pin as output
  Serial.begin(9600);            // Initialize serial communication
}

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

  if (reedState == LOW) {
    // Magnet is near the reed switch
    digitalWrite(ledPin, HIGH); // Turn on the LED
    Serial.println("Magnet detected!");
  } else {
    // Magnet is not near the reed switch
    digitalWrite(ledPin, LOW);  // Turn off the LED
    Serial.println("No magnet detected.");
  }

  delay(100); // Small delay to stabilize readings
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The module is not detecting the magnet:

    • Ensure the magnet is strong enough to activate the reed switch.
    • Check the alignment of the magnet with the reed switch.
    • Verify the connections to the VCC, GND, and OUT pins.
  2. False triggering or unstable readings:

    • Use software debouncing in your code to filter out noise.
    • Ensure the module is not exposed to excessive vibration or electromagnetic interference.
  3. Output pin always HIGH or LOW:

    • Check the power supply voltage (ensure it is within the operating range).
    • Inspect the module for physical damage or loose connections.

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. Using a higher voltage may damage the module.

Q: How far can the magnet be from the reed switch for detection?
A: The detection range 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 module detect non-magnetic objects?
A: No, the reed switch operates based on magnetic fields and cannot detect non-magnetic objects.

Q: Is the module suitable for outdoor use?
A: The module is not weatherproof. If used outdoors, ensure it is enclosed in a protective, waterproof housing.

By following this documentation, you can effectively integrate the Reed Switch Module into your projects for reliable magnetic field detection.