

A Reed switch is an electromagnetic switch that opens and closes in response to a magnetic field. It consists of two ferromagnetic contacts sealed in a small glass tube. When a magnetic field is applied, the contacts close, completing the circuit. When the magnetic field is removed, the contacts open, breaking the circuit.
Reed switches are widely used in various applications due to their simplicity, reliability, and low power consumption. Common use cases include:








Below are the key technical details of a typical Reed switch. Note that specifications may vary depending on the manufacturer and model.
| Parameter | Value |
|---|---|
| Contact Form | SPST (Single Pole Single Throw) |
| Switching Voltage | 3V to 250V DC/AC |
| Switching Current | 10mA to 3A |
| Contact Resistance | 50 mΩ to 200 mΩ |
| Insulation Resistance | >10⁹ Ω |
| Operate Time | 0.5 ms to 2 ms |
| Release Time | 0.1 ms to 1 ms |
| Operating Temperature | -40°C to +125°C |
| Glass Tube Dimensions | Typically 10mm to 50mm in length |
Reed switches are simple two-terminal devices. The terminals are connected to the ferromagnetic contacts inside the glass tube.
| Pin Number | Description |
|---|---|
| 1 | Contact terminal 1 (input/output) |
| 2 | Contact terminal 2 (input/output) |
Note: The Reed switch does not have polarity, so the terminals can be connected in either orientation.
Basic Circuit Connection:
Interfacing with a Microcontroller (e.g., Arduino UNO):
// Reed Switch Example with Arduino UNO
// This code reads the state of a Reed switch and turns an LED on or off
// based on the switch's state.
const int reedSwitchPin = 2; // Pin connected to the Reed switch
const int ledPin = 13; // Pin connected to the onboard LED
void setup() {
pinMode(reedSwitchPin, INPUT_PULLUP); // Set Reed switch pin as input with pull-up
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) { // If the Reed switch is closed (magnet near)
digitalWrite(ledPin, HIGH); // Turn on the LED
Serial.println("Magnet detected!"); // Print message to serial monitor
} else {
digitalWrite(ledPin, LOW); // Turn off the LED
Serial.println("No magnet detected."); // Print message to serial monitor
}
delay(100); // Small delay for stability
}
Reed Switch Not Activating:
Intermittent Operation:
Switch Fails to Open/Close:
False Triggering:
Q1: Can a Reed switch handle AC signals?
Yes, Reed switches can handle both AC and DC signals, provided the voltage and current are within the specified ratings.
Q2: How do I increase the activation distance?
Use a stronger magnet or a Reed switch with higher sensitivity.
Q3: Can I use a Reed switch in high-vibration environments?
Reed switches are sensitive to vibration, which may cause false triggering. Consider using a solid-state alternative, such as a Hall effect sensor, for such applications.
Q4: Is the Reed switch polarity-sensitive?
No, the Reed switch is not polarity-sensitive and can be connected in either orientation.