I am trying to make a light go on when door is open using a Reed Switch .But i don't want to use any programming board for this .Is there any other way to light the bulb
Brother Need the Light to on when magnet is apart from sensor not near to sensor
What is the power source?
I have a cupboard where the light comes on using a Hall effect sensor and a MOSFET, with a 12VDC power supply. Same would work for a reed switch.
Are you not aware switches can be N.O. or N.C.?
Yeah Currently i have is N.O
i was hoping to light some led strips i guess 12v will do that. May be 5V
That should have been in Post #1... and you bought the wrong switch.
You need an N channel MOSFET and a resistor. Reed switch between Gate and Source, LEDs between Drain and +12V (or 5V), 0V to drain. 10k resistor between Gate and +12V (or 5V).
Do you need that as a schematic?
- You need two magnets.
- The First magnet is attached to the reed switch so it closes.
- The Second magnet is on the door.
This second magnet is orientated so itrepels the first,i.e. cancels the fixed magnet reed switch attraction.
Edit
Correction made.
You could have also bought a single pole change over reed switch like this one
Single Pole change over switch
Download the data sheet for this part as well from this page.
If you can provide that it would be helpful
Sry my mistake . i didn't know much about that part . I thought there is only a single type
Does the two Magnet needed to be same size
Yes, and same type, and same distance, so that their magnetic fields cancel out and the reed is not activated.
The reed switch could enable a relay which has both N.O. and N.C. so you can choose how to switch the light.
- Not necessary.
The magnets can be different sizes. - A few minutes of tuning will easily get things working.
- The magnets do not physically touch at any time.
When the door is closed, the magnets are set to about 1/2” apart at their closest. - Actual placement depends on magnet size, shape, strength.
You just have to experiment with placement.
I used these switches You just have to make sure your LED's don't draw more current that they are rated for.
Thanks for the help everyone. There are multiple solutions here is there a way to tag multiple post as solution