Electronic – arduino – Reed Switches – Good brand, stuck in the closed position problem

arduinomagneticsreedsensorswitches

I'm doing a project with an Arduino pro mini 3.3v that uses internal pull-up to detect changes on a reed switch sensor. I'm buying the reed sensors from AliExpress, and most of the time they work OK without problems, but in some random cases they suddenly stick together… if I tap on them, they open again and work properly… which is worse because it is hard to test if they will work for long term.

I cannot allow this to happen since what this sensor measures is the main purpose of the device, and I cannot sell a product knowing there is a good chance this can randomly happen, making the device unusable.

For now I'm using 2 reeds in series, and doing some failure detection in code. But I would like to ask if someone already had this problem, and ask for a good reed switch brand that is more reliable and maybe spare me this problem for good. I looked for good brands in the internet, but I haven't found enough information. I was thinking maybe also buying plastic ones since the glass ones break so easily.

FYI, the magnet is a small cylindrical 3mmx3mm neodymium magnet, which I guess is not too strong for a 14mm glass reed switch, at a distance of 2-5mm.

Thank you for your help!

Best Answer

Reed switches are very simple devices and usually have only a few failure modes. Here's some advice on how to troubleshoot:

The reeds themselves have to be magnetically very "soft," and if you are purchasing them from a source that does not do a good job of material selection and annealing, the reeds themselves can become slightly magnetized by an external magnetic field and "stick." You can determine if this is your problem if your reed switches fail in this fashion when using a meter to measure the contact pins, (or if they are failing in a circuit where the current is low). If this is a critical application, I would suggest purchasing through a reputable electronics distributor.

If your reeds don't stick with a meter and are only sticking in your device, it may be possible that your energizing magnet is still too close when you want to open. When the magnet moves closer to the switch, there is a gap between the reeds causing a higher reluctance, so it takes a larger field to magnetize the two reeds until they are attracted together. Once in contact, the reluctance is lower so the field strength to keep them magnetized is less than that required to pull them together. This means that the magnet position at which the reed switch opens must be farther away from the reeds than the position when the switch pulls in. Your problem could be this, and could be made worse if the required field strength varies from switch to switch. Once again, I would recommend buying from a reputable supplier; good reed switch manufacturers usually specify a narrow range of field strengths.

Bending of leads can change a reed switch's performance if not done properly. Leads must be supported during bending so that the bending stress is not experienced by the glass capsule. I recommend the glass over the plastic because the contacts are in a hermetically sealed atmosphere for long life.

Finally, as @Jasen correctly points out, if you are switching any capacitive loads you can be introducing instantaneous currents capable of welding the contact surfaces. This will happen regardless of the supplier in a poorly designed circuit. For sensing applications, make sure you have series resistance to limit the instantaneous current through the reeds.

Good luck!