I am trying to create a Raspberry Pi Hat which has my usb hub and a mosfet which turn on and off the power on individual port.
There are different way to do this: Transistor, Mosfet, Relay, but I have chosen Mosfet for the lower consumption if the usb has to be on for a long time ( everything runs on battery ).
Unfortunately my knowledge of mosfet made the pcb not working as I was hopping, so I tried to add a transistor PNP and buying different rate ( 500ma, 1A ), the transistor worked but didnt let pass enough current even if it says 1A.
I am a bit confused on what I have made wrong and if my idea to use the VCC rather than GND line is correct. I do understand that PNP should be use on the positive line and NPN on negative lines, right?
My temporary solution is to connect a relay to switch on and off, which works, but I want to make my pcb as small as possible by using a mosfet ( smd ).