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

How to Use Modulo Reed Switch : Examples, Pinouts, and Specs

Image of Modulo Reed Switch
Cirkit Designer LogoDesign with Modulo Reed Switch in Cirkit Designer

Introduction

The Modulo Reed Switch (KY-025), manufactured by Keys, is an electromechanical switch that operates in the presence of a magnetic field. It consists of two ferromagnetic contacts enclosed in a sealed glass tube. When a magnetic field is applied, the contacts close, allowing current to flow through the circuit. This component is widely used in applications requiring non-contact switching, such as proximity sensing, security systems, and magnetic field detection.

Explore Projects Built with Modulo Reed 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!
Arduino UNO Reed Switch Sensor with LED Indicator
Image of Interfacing Reed Switch with Arduino UNO: A project utilizing Modulo Reed 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
Reed Switch Controlled Multi-Color LED Indicator
Image of patent: A project utilizing Modulo Reed Switch   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
Arduino UNO Bluetooth-Controlled Security System with Reed Switch and LED Indicators
Image of fc AAA: A project utilizing Modulo Reed Switch   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
Reed Switch-Activated Water Pump Circuit
Image of Water ATM: A project utilizing Modulo Reed Switch   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

Explore Projects Built with Modulo Reed 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 Interfacing Reed Switch with Arduino UNO: A project utilizing Modulo Reed 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 patent: A project utilizing Modulo Reed Switch   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 fc AAA: A project utilizing Modulo Reed Switch   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
Image of Water ATM: A project utilizing Modulo Reed Switch   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

Common Applications

  • Proximity sensors in industrial and consumer devices
  • Door and window security systems
  • Magnetic field detection in robotics
  • Position sensing in automotive systems
  • Home automation projects

Technical Specifications

The following table outlines the key technical details of the KY-025 Modulo Reed Switch:

Parameter Value
Operating Voltage 3.3V to 5V
Operating Current 15mA (typical)
Output Type Digital (High/Low)
Sensitivity Range Adjustable via potentiometer
Dimensions 32mm x 14mm x 8mm
Operating Temperature -40°C to +85°C

Pin Configuration

The KY-025 Modulo Reed Switch has a 3-pin interface. The pinout is as follows:

Pin Name Description
1 Signal (S) Digital output signal (High when magnetic field detected)
2 VCC Power supply input (3.3V to 5V)
3 GND Ground connection

Usage Instructions

How to Use the KY-025 in a Circuit

  1. Connect the Pins:

    • Connect the VCC pin to a 3.3V or 5V power source.
    • Connect the GND pin to the ground of your circuit.
    • Connect the Signal (S) pin to a digital input pin on your microcontroller or other logic circuit.
  2. Adjust Sensitivity:

    • Use the onboard potentiometer to adjust the sensitivity of the reed switch. Turning the potentiometer clockwise increases sensitivity, while turning it counterclockwise decreases it.
  3. Place a Magnet:

    • Position a magnet near the reed switch. When the magnetic field is strong enough, the switch will close, and the Signal (S) pin will output a HIGH signal.

Important Considerations

  • Magnet Placement: Ensure the magnet is placed within the sensitivity range of the reed switch for reliable operation.
  • Debouncing: The reed switch may produce noise or bounce when switching states. Use a capacitor or software debouncing to stabilize the signal.
  • Power Supply: Use a stable power supply to avoid erratic behavior.

Example: Connecting KY-025 to Arduino UNO

Below is an example of how to use the KY-025 with an Arduino UNO to detect a magnetic field:

// KY-025 Reed Switch Example with Arduino UNO
// Connect KY-025 Signal pin to Arduino digital pin 2
// Connect KY-025 VCC to 5V and GND to GND

const int reedSwitchPin = 2; // Pin connected to KY-025 Signal pin
const int ledPin = 13;       // Built-in LED on Arduino

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 reed switch state

  if (reedState == HIGH) {
    // Magnetic field detected
    digitalWrite(ledPin, HIGH); // Turn on LED
    Serial.println("Magnetic field detected!");
  } else {
    // No magnetic field
    digitalWrite(ledPin, LOW);  // Turn off LED
    Serial.println("No magnetic field.");
  }

  delay(100); // Small delay for stability
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Reed Switch Not Responding:

    • Cause: Magnet is too far from the switch.
    • Solution: Move the magnet closer to the reed switch or adjust the potentiometer to increase sensitivity.
  2. Erratic Output:

    • Cause: Electrical noise or bouncing contacts.
    • Solution: Add a 0.1µF capacitor across the signal and ground pins or implement software debouncing.
  3. No Output Signal:

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the wiring and ensure the power supply voltage is within the specified range (3.3V to 5V).
  4. Potentiometer Not Adjusting Sensitivity:

    • Cause: Potentiometer damaged or improperly adjusted.
    • Solution: Replace the potentiometer or ensure it is not turned beyond its limits.

FAQs

Q1: Can the KY-025 detect all types of magnets?
A1: The KY-025 is sensitive to most common magnets, but the detection range and response depend on the strength of the magnetic field.

Q2: Can I use the KY-025 with a 3.3V microcontroller?
A2: Yes, the KY-025 operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V microcontrollers like the ESP32.

Q3: How do I know if the reed switch is working?
A3: When a magnetic field is detected, the Signal (S) pin outputs a HIGH signal, which can be verified using an LED or a multimeter.

Q4: Is the KY-025 suitable for outdoor use?
A4: The KY-025 is not weatherproof. For outdoor applications, ensure it is enclosed in a protective casing to prevent damage from moisture or dust.