Electronic – Magnetic contact circuit

buttoncurrentmagneticsrelay

Which is the best circuit for using a magnetic contact for turning on a LED strip?
I would like to turn on a strip led with 12V 7A battery, but:
1 – if I use only the magnetic contact it will be burned (when the contact is closed the LED strip have to be off so in this way I put it to ground, is it right?) (yes this is a short circuit, I'm not using this way)

schematic

simulate this circuit – Schematic created using CircuitLab

2 – if I put a resistence it works but the strip led has low power:

schematic

simulate this circuit

3 – if I put the resistence only for the magnetic contact, when it's closed the LED strip is ON (instead should be OFF)because the current goes the same through the LED strip (I think it has a lower resistence)

schematic

simulate this circuit

4 – I thought I should use a transistor between the strip led and the magnetic contact but it's not enough..
Should I use also a relay?

Can someone help me? Am I thinking in the right way?

Best Answer

Try this:

schematic

simulate this circuit – Schematic created using CircuitLab

The MOSFET switches the current to the LED strip (containing series resistors and LEDs). The top connection of the LED strip is + the bottom is -. When the reed switch is closed, the MOSFET gate is connected to the source, so it is turned 'off'.

This circuit draws about 1mA from the battery when off (through the LED and R1), so it will slowly discharge the battery. You can increase R1 to 20 or 50K if that is an issue, but too high and you can damage Q1 due to slow switching.

Edit: See buffered version that draws only 12uA in the off state. D3 should have a breakdown greater than the battery voltage but less than the rating of the 4049, so I've used a 13V zener.

Related Topic