I want to switch the power supply of a component (5V/3A) with an GPIO output of a ESP32 (3V3/10mA). I have read about a mosfet or solid state relay solution but i am not sure how this looks like on the ESP. Esspecially, can this be done with a 3v3/10mA output and how does the circuit look like. The idea is to use the logic hig state of the output to interrupt the the supply of the 5V component.
Thanks in advance,