A GPIO pin opening/closing a high power circuit?
This would be one simple solution. Note that the relay contacts should be rated for 2 or 3 times the load current so the contacts will last a long time.

If you use a logic-level MOSFET to drive the load directly be sure the MOSFET is rated for several times the load current and has a heatsink if it gets hot to the touch. Also a snubber or 'flywheel' diode is mandatory.







simulate this circuit &ndash; Schematic created using CircuitLab