I would like to control a 12V led lamp using an arduino pin.
I am planning to use the following schematic:
However, I would like to be able to switch the led ON if I want to by a manual switch. The problem in this case is that the drain pin of the Mosfet will also receive 12v. Will this damage the mosfet? If I use the following diagram won't it be safe?
I took the schematic from another thread, ok I will reverse those.
I put the switch after all the electronic parts because I would like this to act as a backup switch so in case everything fails I can still switch on the load mechanically, hence the diode at this point. Is that correct?
Thank you for the suggestion. The thing is however that the switch is already there and I can't touch the existing wiring, I only can add electronics to automate as well. So the switch must be after the mosfet, at the drain. If the diode is not enough to prevent current going back to the mosfet, what else can I do?