I'm trying to make a HomeKit device that will turn a component on and off. The component's power supply is 12v at 2amps. I figured I'd put the NodeMCU inline with the power (the component's power adapter into the NodeMCU, then the NodeMCU switches the rest of the power on/off to the device). I'm using a L7805CV 5v voltage regulator to give the NodeMCU 5v off that power. So far so good.
Next I'm using an IRF740 MOSFET to switch the power on/off to the component.
The problem is the NodeMCU pin only provides 3.3v, which is not enough power to trigger the MOSFET for the voltage/amps the component needs. If I jump the gate pin to the 5v, the MOSFET works.
So, I need to somehow have the 3.3v pin from the NodeMCU trigger 5v into the gate of the MOSFET.
Is there an easy way to do this without using a logic level shifter? I'm trying to keep this as simple as possible with as few components as possible. Can I somehow use another IRF740 to trigger the 5v? I'm not sure how to do that, as the MOSFETs are switching on the grounded side of the circuit (12v into component, component's ground into MOSFET).