Electronic – Powering a breadboard with USB

breadboardpower supplyusb

I've recently become quite interested in building small breadboard computers. I've been reading a site that seems to be aimed for beginners, that builds a simple breadboard computer using the 6502 and some other chips.

When reading the above site I feel like I understand most of what's said, but I have problems with figuring out how to power my breadboard. It seems to be that I need to power the breadboard computer with a +5V DC power supply.

I've seen some single-board computers use USB as a power supply. As I understand it, USB outputs +5V. So I figured: I could probably try and mount an USB socket to my breadboard and use it as my power supply.

I don't have a background in electronical engineering (I'm in my final year on my CS degree, and I've only taken one very basic EE course), so I don't have any idea if doing what I suggest is a recipe for disaster, or a adequate solution.

So, is it possible to use a USB socket to power my breadboard? If so, how would I go about to connect it (schematics would be appreciated).

Thank you!

Best Answer

As Steven said, a normal USB 2.0 bus can provide up to 500 mA at 5 V. However, a device is only guaranteed 100 mA until it negotiates with the host to draw more. Depending on how much power the host has available, it will either grant the device the ability to draw 500 mA or shut it off.

In practise, most desktop motherboards just connect the USB 5 V line to their internal 5 V power supply in series with a polyfuse. Desktops have plenty of power, so it's not worth the expense to put the extra power detection and switching into the hardware. Laptops however have limited power and they often do have the additional hardware. From a laptop you are more likely to only get the guaranteed 100 mA without active communication.

If you are using a desktop to supply the USB power and you can grab 500 mA without talking on the USB, then you get up to 2.5 Watts. Actually you get a little less because the minimum guaranteed USB voltage at full current with the maximum length and thinnest allowed cable is something like 4.3(?) Volts. In practise with a desktop and a short cable, you will get pretty close to 5 V even at 500 mA.

So what you ask it doable, but in the end I'd just get a off the shelf 5 Volt power supply. Nowadays wall-wart style switching power supplies are cheap and available. The minimum you can find will probably supply at least 1 A. That will be more tightly regulated than what you get from USB.

Related Topic