Magnetic Switch

Photo of paper sensor.

What does the sensor do?

Unlike the Velostat pressure and light dependent resistor that can generate continuous signal, the reed switch acts more like a button, instead of switching on/off by physically pressing, the sensor can close the circuit when detecting a magnetic field.

Building the Paper Circuit

Illustration of reed switch paper circuit.

You will need

  • Paper

  • Reed switch

  • 3 strips of 0.25”/5mm copper tape

  • 10k ohm resistor (10kΩ)

  • Soldering equipment

Warning

The reed switch is very fragile, be careful with it, especially when bending the legs!

Steps

  1. Download the template from the embelashed repository. The .studio3 file is for a Silhouette machine and the other files can be used with a printer or laser cutter. The red lines are where the template should be cut and the blue lines are where an outline should be drawn.

  2. Using the tools of your choice, cut the template out of paper.

  3. Cut the copper tape in half lengthwise with a pair of scissors.

Animation of cutting copper tape.
  1. Stick the copper tape to the paper template

Animation of sticking down the copper tape.
  1. Solder components and fold to fit to the breakout board connector. Need help with soldering? Feel free to ask someone for help if you are attending a workshop, or check out Adafruit’s soldering guide. Always wear protective glasses.

Animation of soldering.

Note

We are using a pull-down resistor in our circuit. This means that the switch is connected to ground when a magnet is not nearby.

What Kind of Interactions or Movement Can It Sense?

1. Environment The sensor can sense the magnetic field around it.

Animation of magnet near a reed switch.

2. Movement Bending arms; walking…and more

3. Distance By placing magnet to body/object, it can sense the distance to the body/object.

Animation of two objects approaching each other.

Note

If the magnet has less magnetic force, the reed switch can only be switched on from a very short distance. A stronger magnet can help you close the circuit from a relatively far distance.