|
Here is the circuit diagram. I could not find a button which was open when the magnet is in place so this design is dominated by the necessity to reduce the gate closed current as much a practible. This required two PNP transistors in tandem.
Here is the program code. It is quite customable using constants. |
|