Function: what a Reed switch does in a circuit
A switch in a sealed glass tube that closes when a magnet comes near and opens when it goes away.
- Closes when a magnet is near
- Works like a push button with no touch
- Senses open doors and windows
Reed switch key facts
| Type | normally open, closes near a magnet |
|---|---|
| Switching current | up to about 0.5 A |
| Operating distance | about 1 to 2 cm with a small magnet |
| Legs | 2, either way round |
Connections
The legs from left to right, as the part is drawn in the simulator:
| No. | Name |
|---|---|
| 1 | Terminal 1 |
| 2 | Terminal 2 |
How it works
Two thin springy strips of iron–nickel alloy overlap inside the tube with a small gap between them. A magnet magnetises the strips so that they attract each other and touch, completing the circuit. Take the magnet away and they spring apart. Wire it like a push button: one leg to a pin set to INPUT_PULLUP and the other to GND.
What it is made of
- Reeds: Iron–nickel alloy, plated with rhodium or ruthenium at the tips FeNi
- Tube: Glass filled with nitrogen SiON
Where the materials come from: Iron from iron ore (Australia, Brazil); nickel from laterite and sulfide ores; rhodium as a by-product of platinum mining (South Africa).
The chemistry
The tube is filled with unreactive nitrogen so that the contacts do not oxidise, which is why a reed switch can work for millions of operations.
Biology connection
A reflex also works like a simple switch: a stimulus closes a path and a response follows at once. Reflex arc →
Safety and the environment
The glass is fragile: bend the legs away from the tube, not at the glass. It carries only small currents, so switch motors and lamps through a transistor or relay.
Did you know? Door and window alarm sensors are a reed switch on the frame and a magnet on the door.
Ohm’s law calculatorNickel Elements inside: FeNiSiON
Try it in the simulator
Build and code a circuit with a Reed switch in these practice projects:
Questions students ask
What does a Reed switch do?
A switch in a sealed glass tube that closes when a magnet comes near and opens when it goes away. Main functions: closes when a magnet is near; works like a push button with no touch; senses open doors and windows.
How do I wire a reed switch?
Exactly like a push button: one leg to a digital pin set with pinMode(pin, INPUT_PULLUP) and the other to GND. The pin reads LOW when a magnet is near.
What are the connections of a Reed switch?
In order: Terminal 1, Terminal 2.
How does a Reed switch work?
Two thin springy strips of iron–nickel alloy overlap inside the tube with a small gap between them. A magnet magnetises the strips so that they attract each other and touch, completing the circuit. Take the magnet away and they spring apart. Wire it like a push button: one leg to a pin set to INPUT_PULLUP and the other to GND.
What is a Reed switch made of?
Reeds: Iron–nickel alloy, plated with rhodium or ruthenium at the tips. Tube: Glass filled with nitrogen.
Is a Reed switch safe? How should it be recycled?
The glass is fragile: bend the legs away from the tube, not at the glass. It carries only small currents, so switch motors and lamps through a transistor or relay.
More switches and controls
Connected tools
The same idea from another angle, across the site.