Tutorial and hardware files for a digital switch capable of switching DC loads up to 12V. Includes 3.3V Buck Regulator, N-channel MOSFET low-side switch circuit, and flyback diode on the load side.
https://docs.sparkfun.com/SparkFun_MOSFET_Power_Switch_and_Buck_Regulator_Low-Side