I have an electric lock that needs 12v to stay in a lock position. It opens on 0v.
I was thinking about controlling this with a MOSFET (IRFZ44N).
Currently I have the following setup:
- The 12v power supply connected to the source pin.
- The drain pin is connected to the power wire of the lock.
- The gate wire is not connected (yet)
With this setup the lock starts in a lock position. So it gets 12v.
Can I control the gate pin by simply connecting it to an Arduino output pin? Can I control this MOSFET with an Arduino board?
If so, is it just a matter of setting the output pin to LOW
and HIGH
to control Gate?
I'm trying to follow this schematic (not mine, just trying to follow it):