Electronic – Supply power to USB with external power supply

power supplyusbusb device

I have a device (pyro-electric array detector) that connects to the Pc vis a usb. The device itself has an additonal power supply as well.

Now a strange thing happens: If I connect the device to a Pc-tower, it works. But if I connect to a Laptop it does not work. On my colleagues laptop it works but only if he plugs in his laptop's power supply.

My assumption was that there must be a difference in the volatage/current supplied by the individual computers. And indeed there are small differences. 4.7V from the laptop and 5.23V from the PC. The current seems to be low 0.16mA and therewith well below the USB max spec.

What I tried next is to connect an external power supply to be able to adjust the power to the device's need.

For that I cut the USB cable, connected the D+/D- cables for data and connected the power leading to the device to the external power supply. From a control LED on the device I can see that it is happy with that. Now, however, the device is not recognized on the PC any more (Windows device manager).

Any advice on how I can

a)power the USB device by an external power supply and

b) have it working on the PC?

Any hints are appreciated. Forgive me if what I tried is foolish. My last electronics lecture was about five years ago and I never tempered with USB before.

Best Answer

It sounds like your device needs more than the 100 mA it is guaranteed, but does not enumerated properly to request the extra current. You can get up to 500 mA from a USB port if you ask for it and the host grants it.

There is no guarantee that the host will grant the request, but desktop machines pretty much always do since they have plenty of power available. In fact, the desktop motherboard schematics I have seen show only a polyfuse between the 5V supply and each USB port. There is no active electronics limiting current. On those machines, you get the full 500 mA even if you don't ask for it.

Laptops however have limited power and therefore actively monitor and control USB power in most cases. Some machines may limit the sum of all USB devices to a certain current, or limit it more when running on battery only, or when the battery is low, etc. Note that USB powered hubs can't ever grant the full 500 mA since that is all they are getting themselves.

The reason your device won't enumerate anymore is because you broke the ground connection. All three lines D+, D-, and ground are required for communication. You can cut the power line if the device is self-powered. Self powered devices generally have no connection to the USB power line. That's perfectly OK, but they still have to connect via ground.