Skip to Content

Reed Switch (Magnetic Switch)

🧲 Reed Switch (Magnetic Switch) – Normally Open (NO)

The Reed Switch is a small, sealed magnetic switch that opens or closes its contacts in the presence of a magnetic field. It's widely used in door/window security systems, proximity detection, robotics, and automation projects. The switch is normally open (NO) and closes when exposed to a nearby magnet.

βš™οΈ Technical Specifications

ParameterSpecification
TypeNormally Open (NO)
Operating Voltage3V – 60V DC / AC
Current Rating~0.5A max
Switching Distance~10 mm (depends on magnet strength)
Body MaterialGlass capsule
Length~14mm (glass), ~35mm total with leads
Contact Resistance≀ 100 mΞ©
Response Time~0.2 ms

βœ… Features

  • 🧲 Closes when near a magnet

  • πŸ”’ Used in security systems for detecting door or window open/close

  • πŸ“Ÿ Detects magnet movement or presence in robotics and automation

  • πŸ› οΈ Easily used with Arduino, ESP32, or Raspberry Pi

  • πŸ’‘ No power required to operate β€” purely magnetic switching

  • πŸ“¦ Compact and reliable with long lifespan

πŸ› οΈ Arduino Example Wiring

Reed Switch PinArduino Pin
1D2
2GND

Use a 10K pull-up resistor between D2 and 5V if needed.

πŸ§ͺ Example Arduino Code

const int reedPin = 2; const int ledPin = 13; void setup() { pinMode(reedPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); } void loop() { if (digitalRead(reedPin) == LOW) { digitalWrite(ledPin, HIGH); Serial.println("Magnet detected!"); } else { digitalWrite(ledPin, LOW); Serial.println("No magnet."); } delay(500); }

πŸŽ₯ YouTube Tutorial

30.00Β LE 30.00Β LE

This combination does not exist.

Sensor