I'm awaiting arrival of my first order from aliexpress. Spent hours gather information about the projects I want to implement.
Specifically one that will sense motion near the staircase and turn LED's on. My question is two fold
My LED's require 12V
1) Plug the 220V to 12V adapter into the wall, then the 12V into the mosfet IRLB8721. Use the arduino to open/close the circuit.
2) Connect the 220V input side of the adapter to the Arduino and so it never has power unless the circuit is closed.
Hopefully I was able to articulate the different. Case 1 is the 12V adapter plugged into the wall and always on but the 12V isn't flowing. Case 2 is the adapter isn't on unless the circuit is closed.
So my question is
1) In case #1 - Is the IRLB8721 the right one to use? I've seen others 2) In case #2, what would I use (a mosfet) if I want to control a 220v direct to mains?