I need to control a USB device, to allow the SBC to power it off. The idea is, the USB device is always on, and when it needs, the SBC turn it off over a GPIO. Something like this:
Any suggestion would be appreciated. Should I add a transistor on MOSFET gate? Or this should be ok? The power of the connected USB device shouldn't go above 1A.
R9 should be on the other side of R8.
R9 has no function for the gate of the FET.
It's function is to stop the MCU pin from floating during boot-up.
Leo..
So this schematic should turn ON power to the USB all the time, and I can switch it OFF by writing HIGH on FETpin. Am I right?
The AO3401 should be enough for a 5V/1A.
The whole idea is to allow the SBC to control the connected USB device by turning it OFF when needs. The connected device should be always ON, unless the condition is met to turn it OFF.
I am not exactly sure what is happening but by using the source as your reference the gate needs to be negative for a P-FET, if it is positive it will remain off.