Thursday, 6 March 2014

power supply - Externally Powered USB Port


I have a Raspberry Pi and it requires a Externally Powered USB hub to run Portable HDD on it. So what if I connect +5 and GND port of the USB Client to external power source of 5V-1A directly rather then connecting them to the USB Host ? OR What if I use a transistor as a switch and for source isolation ? Will this work or not ? Or Do I have to give power to D+ and D- ports too ?


schematic


simulate this circuit – Schematic created using CircuitLab



Answer



Connect the data lines from the USB port to the device, connect the ground of the external power supply to the USB ground and connect the external supply positive line to the device side USB supply only


Here is one example that shown the described connection scheme using a linear regulator as power source (limited to 1A that may not be enough) but you can use any 5v source.



enter image description here




In order to switch the power of the USB client when the plug is removed you can use a mosfet that turns on when the plug is inserted to the PC.


When there is no Vcc voltage in the base of the transistor the resistor R1 works as a pullup and keeps the mosfet off by keeping the gate high.
When the plug is inserted the PC side Vcc is applied to the base of the transistor so the current that flows through it creates a voltage drop across R1 and turns on the mosfet.


Note that the mosfet should be a logic level type that turns fully on with -5v Vgs.
Also the input should not exceed the max allowable Vgs (usually 20v but this is absolute max)


enter image description here




Another alternative is when a switching regulator is used that has a control pin, in that case the PC side Vcc supply can be used as a signal to turn the regulator on when the USB plug is connected.

The following schematic (I've modified the USB plugs slightly) shows such an example using a 1A switching regulator but the same principle applies to switching regulators of higher current.


enter image description here


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...