hi all, i am currently trying to place 7 Magnetic contact switch side by side in a medication box (The ones that has monday to sunday) so as i have no knowledge of magnets and how it affect the project.. So i tried to do digitalread when i try to lift up individual case but for some, it cannot detect the magnetic being removed (Might be due to the magnet beside it) Quite confident it might not be due to the range.. But more of the Polarity which causes the Reed Switch to close if they detect N and S together?? (Not quite sure here.. just giving my guess)
So anyone could maybe give me some help? ( I also found out that some magnet's polarity is different.. might be the manufacturer cased it wrongly.. using Adafruit's magnetic contact switch.) Thanks
Reed switches do not play well when they are close together. This is because the magnetic field "conducts" along the metal strips inside the switches and interferes with the other switches. You would be better off using hall effect switches and smaller magnets.
This is a project where I used this arrangement to detect a dice. Dice Game
Grumpy_Mike:
Reed switches do not play well when they are close together. This is because the magnetic field "conducts" along the metal strips inside the switches and interferes with the other switches. You would be better off using hall effect switches and smaller magnets.
Note that the orientation of your reed switches could make a lot of difference
Diagram:
Yours,
TonyWilk
It sounds like you have the magnets in the lid and the reed switches in the bottom. That means there is always going to be a magnet a certain distance from the reed switch. You can try mounting the reed switches in the lid and the magnets in the bottom, which will double the distance a particular reed switch will be from a magnet when that lid is opened
Hi all, thanks for the speedy replies and recommendations.
i guess @tinman13kup has the nearest idea of how my placement is by.. but if i were to follow the recommendation given by tinman, i think that the wires from the reed will be all over the place since it will move when i lift it up and such.. if i were to place different polarity (like NS | SN) etc, will it work??
Here is a scenario that i found out when experimenting
if i were to place the magnet:
SN NS SN
and i were to remove the 'NS' Magnet, the middle reed will still detect it as closed since the left SN and the right SN somehow made the middle reed detect that there is a legit magnet there..
any other recommendation on how i can do if my main intention is to place the reed below instead of putting it at the lid?
No. Try putting a magnet either side of a tin can, you don't see any effect. Put a magnet either side of some uMetal foil and they don't stick together.
I think you are barking up the wrong tree with this shielding idea uMetal is horrendously expensive.