USB as electric power supply

For everything that's not in any way related to PureBasic. General chat etc...
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

USB as electric power supply

Post by gnasen »

Hi folks,

I have an external device which needs 12V at 4.1W (~350mA). Instead of using a battery I think about using the USB3 as power supply. This delivers 900mA on USB3 with around 5V which results in 4.5W.
Therefore I would put in the USB cable and use a transformer to get the needed voltage.

However I read that you have to tell the USB that you want to use the hight state (900mA) instead of the low state (100mA). Does anyone know how to achieve this (in Linux)? What happens if I dont tell to switch to high state?
I think the easiest thing would be to grab a power cable for an HDD, cut it off and use this. Would this work?

Im looking forward for your ideas ;)
pb 5.11
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: USB as electric power supply

Post by IdeasVacuum »

If using a laptop, the device might make your battery drain too quickly. Most USB drives use a separate power supply, USB is for comms only. However, you have not told us much - what is the device, how much time does it need to be running?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Tenaja
Addict
Addict
Posts: 1959
Joined: Tue Nov 09, 2010 10:15 pm

Re: USB as electric power supply

Post by Tenaja »

gnasen wrote:Hi folks,

I have an external device which needs 12V at 4.1W (~350mA). Instead of using a battery I think about using the USB3 as power supply. This delivers 900mA on USB3 with around 5V which results in 4.5W.
Therefore I would put in the USB cable and use a transformer to get the needed voltage.

However I read that you have to tell the USB that you want to use the hight state (900mA) instead of the low state (100mA). Does anyone know how to achieve this (in Linux)? What happens if I dont tell to switch to high state?
I think the easiest thing would be to grab a power cable for an HDD, cut it off and use this. Would this work?

Im looking forward for your ideas ;)
For short term this would work fine. Just remember, that stepup circuits are often only 80-90% efficient--but what is even more important is the quiescent current (the power draw with no load).
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: USB as electric power supply

Post by gnasen »

Tenaja wrote:For short term this would work fine. Just remember, that stepup circuits are often only 80-90% efficient--but what is even more important is the quiescent current (the power draw with no load).
The efficiency loss for a stepup circle is very interesting, thanks for that hint. The device is a camera (very expensive, no experiments!) and the running time is not that important. It should work for an hour.
Hence I still have no clue about this low/high state of the USB. Does it activate automatically on load? How to register at the USB root? Questions over questions.
pb 5.11
Little John
Addict
Addict
Posts: 4781
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: USB as electric power supply

Post by Little John »

I think your external device has to communicate with the USB host controller.
Some additional information is here (in German).
For details see http://www.usb.org/developers/docs/ :-)
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: USB as electric power supply

Post by gnasen »

Little John wrote:I think your external device has to communicate with the USB host controller.
Some additional information is here (in German).
For details see http://www.usb.org/developers/docs/ :-)
That sounds like a non-trivial task. I would need to build some kind of controller :?
Is there maybe an USB device which just works as a power supply? So instead of feeding an USB bus with an external power supply, just a device which reverses this? I would be surprised if something like that is not available.
pb 5.11
Little John
Addict
Addict
Posts: 4781
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: USB as electric power supply

Post by Little John »

Maybe something like this?
(There are lots of other external accumulators.)
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: USB as electric power supply

Post by gnasen »

Little John wrote:Maybe something like this?
(There are lots of other external accumulators.)
The idea was to avoid an additional external accumulator (this is how it is done at the moment).
pb 5.11
Little John
Addict
Addict
Posts: 4781
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: USB as electric power supply

Post by Little John »

gnasen wrote:The idea was to avoid an additional external accumulator
Oops, you already wrote that in your initial post. Sorry. :oops:

Maybe something like this or this?
gnasen
Enthusiast
Enthusiast
Posts: 282
Joined: Wed Sep 24, 2008 12:21 am

Re: USB as electric power supply

Post by gnasen »

Little John wrote:
gnasen wrote:The idea was to avoid an additional external accumulator
Oops, you already wrote that in your initial post. Sorry. :oops:

Maybe something like this or this?
Yes yes! promising! I will have a closer look at this, thank you very much.
pb 5.11
Post Reply