# Reed Switch Hookup Guide

Pages
Contributors: Jimb0

## Reed Switch Overview

Reed switches come in a variety of shapes and sizes. Through-hole, surface-mount, insulated, pre-formed – there are a lot of factors to consider.

COM-13247
\$2.95

COM-10601
\$1.95

### Reed Switch

COM-08642
\$1.95
1

DEV-13343
\$2.95

The basic glass reed switches are relatively fragile. If you’re project will feature large magnets repeatedly slamming against the body of the switch, consider upgrading to an overmolded variant.

You may also need to consider the current and voltage capabilities of your reed switch – they’re usually not designed to carry a high amount of power. The glass switch we’re using in this tutorial is rated for a maximum of 1.2A and 10W. Higher-power-capable switches are hard to find and can be expensive.

### Normally Open, Normally Closed?

One thing all of these switches have in common is the two-terminal interface. But whether those terminals are normally open or closed is another question. The reed switch we’ll be using in this example is normally-open. That means “normally”, when the switch is unaffected by a magnetic field, the switch is open and does not conduct electricity. When a magnet comes close enough for the switch to activate, the contacts close and current can flow.

Looking for a normally-closed switch? You can make one by adding a second magnet. Check it out!

### Magnetic Sensor Activation

Just as your magnet may have two poles, the reed switch’s pair of ferrous contacts are also polarized. The position, distance, and orientation of your magnet all play a role in determining how the switch activates.

These example graphs, from the Hamlin App Note AN104 do a great job of demonstrating how the position of the magnet affects the activation of the switch.

The graph on the left shows an expected activation area when the magnet is held parallel to the reed switch. This area, as expected, is a mostly parabolic field. The graph on the right demonstrates what you can expect when the magnet is perpendicular to the switch. In this orientation, there is usually a dead zone in the center of the switch. If it’s in the middle of the body, it might not activate, even when the magnet is touching the reed switch.

The polarity and position of the magnet plays an important role in how your reed switch activates. If your switch doesn’t seem as sensitive as you’d like, try placing the magnet to one side or the other. Make sure you test the pair of components out before mounting either in place.

In 2003, CU student Nate Seidle blew a power supply in his dorm room and, in lieu of a way to order easy replacements, decided to start his own company. Since then, SparkFun has been committed to sustainably helping our world achieve electronics literacy from our headquarters in Boulder, Colorado.

No matter your vision, SparkFun's products and resources are designed to make the world of electronics more accessible. In addition to over 2,000 open source components and widgets, SparkFun offers curriculum, training and online tutorials designed to help demystify the wonderful world of embedded electronics. We're here to help you start something.