Simple Magnetic Sensor

Thread Starter

crobertsbmw

Joined Sep 7, 2011
28
I am looking to make a sensor to tell when this box is going to be open or closed. We are going to have the magnets to lock it in place.

Basically I want this circuit. Does it exist?



I have heard a lot about hall effect sensors but I don't really know what I am doing to get them to work and I feel like there might be a more simple circuit.
 

praondevou

Joined Jul 9, 2011
2,942
Basically I want this circuit. Does it exist?

.......................................

I have heard a lot about hall effect sensors but I don't really know what I am doing to get them to work and I feel like there might be a more simple circuit.
What you have drawn is an electromagnet.

The part connected to the circuit is supposed to be sensor, right?

That would be a normally closed sensor, no magnetic field present --> it's closed, magnetic field present --> it's open.

Look for a magnetic switch on main distributors.

http://search.digikey.com/us/en/cat/sensors-transducers/magnetic-hall-effect-digital-switch-linear-compass-ics/1967232?k=sensor

example: http://www.diodes.com/datasheets/AH180N.pdf

And yes, a reed switch is another possibility, it needs to be a NC.
http://search.digikey.com/us/en/products/MK15-B-2-OE/374-1209-1-ND/2765371
 

crutschow

Joined Mar 14, 2008
24,749
If you can isolate the magnets just connect a wire to each and detect when the magnets make contact and close the circuit.

In the circuit shown connect the resistor to the top magnet and take the output from the bottom magnet.
 

mcgyvr

Joined Oct 15, 2009
5,394
That is the typical setup for magnetic window/door alarms which feature a magnet and a reed relay as stated above. Simply googling "window alarm magnet" gets you thousands of sources to buy that.
 

EB255GTX

Joined Apr 30, 2011
62
People are confusing reed relay with reed switch (aka reed sensor).

A reed relay consists of a coil and a reed switch.
Correct of course, but intereting point - not a lot of people seem to know that relays can be operated by an external magnetic field :)

So if you only have a reed relay handy and need a reed switch - just use it!
 

colinb

Joined Jun 15, 2011
351
Correct of course, but intereting point - not a lot of people seem to know that relays can be operated by an external magnetic field :)

So if you only have a reed relay handy and need a reed switch - just use it!
Maybe useful if you're stuck on a deserted island with only a reed relay and a magnet. :)

However, it would be difficult to get good results since the reed switch is highly sensitive to the orientation of the magnet, and your working distance will be necessarily increased if the relay body keeps you from getting close to the reed switch inside.
 
Top