Digital signal will be momentary; a delay after the digitalWrite, digitalWrite can be either HIGH or LOW as needed.
Two digitalWrite's one to turn on; the other to turn off.
I was wrong MOSFET circuit will be switching 5 Volts; not the 12 Volt battery that is supplying the buck converter...
Trying to come up with a switch that will stay on until toggled by a a digital HIGH or LOW. Will be switching 12 volt input to a 5 volt output buck converter.
William
Trying to keep current required by MOSFET low. Requesting help with a MOSFET latching schmatic and selecting MOSFET. Micro-controller operates at 3.3 Volts. Will be switching 12 Volt DC. 12 Volt is supplied to a step-down buck converter for 5 Volts powering the video camera.
Have coded ESP32...