Multi Purpose USB Power Adapter

26K16621

Intro: Multi Purpose USB Power Adapter

USB - we all use it every day.
USB allows to share all kind of data on a small USB-Stick, on every PC. Even big amounts of data can be carried on an USB Hard drive. And it' s a perfekt power soure for mobile devices eg. cellphones or MP3-Players.

But soon you'll spot the first problems. You just haven't enough USB-Ports to charge all your moblie devices. Hard drives need to much power for some PC's, most stereo systems and all USB-OTG(on the go) devises. It's Impossible to charge Ipods with a normal USB charger.

I was annoyed of all these problems, so I thought about a solution. I came out with this USB-stick-sized adapter. It should help you with all your USB power problems.
Mainly it has 4 functions:

1. Charge two USB-devices at a single port, while one is still connected to your PC/ other host.
2. Charge two USB-devices with an external power supply.
3. Take power from an external power supply to be able to run USB hard drives on OTG devices, stereo systems, ...
4. Charge your Ipod (I haven't on so I can't tell you if it works). This may even help to charge your moblie phone faster, but try it at your own risk.

Make sure you read the Important Information below.

STEP 1: Important Information

FIRST: I'M not resposible for any damage to you and any devices that this adapter is connected to.

Read through everything (especially read bold and underlined words/phrases) before you start. Steps in [ ] are not nesessary for some functions. You can skip these steps if you want.

For this projekt it is very importent to work exactly. Even tiny mistakes can cause big problems. Reminder that whenever you work with USB. (or do you want to blow up your mainboard / phone / anything else ?)

This isn't an USB-Hub, so dont say " the second port doesn't work for my USB-stick". The second port just offers power to charge devices.

function 3:
If you want to run a hard drive at a OTG-device (in my case it's the S2) remeber it might just accept Fat32 which limits the size of one file to 4GB.
If you can check first if your hard drive runs with just power. Simply plug it into an USB charger and watch if the LED turns on or not. If the LED does't turn on (and your hard drive doesn't make the usual sounds) function 3 might not work.

I might have mixed up meanings of a few words (like port & socket) but I'm too lazy to correct it. That's it for now. Go on.

STEP 2: Preparation: Blueprints

Let's spend some project-relavated thoughts:

Function Nr. 1:
We want to have one fully funktional USB-Port in any case. (power & data) So we have to connect the plug directly to one port. I figured out that too long traces (especially thoses which will be later used for the data) on the PCB cause problems. Have a look on step 7 to see how I did the PCB "layout". The second port needs just power so we can connect it to the + and - . So far so easy

Function Nr. 2:
In combination with Nr.1 very easy as well. Just solder a USB plug (male) to + and minus or solder an external power supply directly to the circuitboard. It would work, but only untill you decide to plug in the USB plug we've added for Nr.1 ...
Function Nr. 3:
... If you would do so you got two at least slightly different voltages conected to each other, what mostly will cause overheating of one powersupplys until the voltage regulater burned out. So I had to find another solution. First I thought about an IC to regulate both voltages to exactly the same, but that would be too complex, too expensive and too easy to make huge mistakes.
I solved the problem with a switch inside the power connector. If you plug in the external power supply it will disconnect mechanically the power form the USB plug exchanging it with its own. That's a loss of 500mA, but who cares if you replace it with 2000mA.
Function Nr. 4:
As you might know "normal" USB-chargers doesent work for ipod/iphone. That's because they "ask" the host controller before they take the power. I shouldn't mind because I haven't any products from apple, but I know many people would like a simple solution. On instructables I found this solution (https://www.instructables.com/id/Modify-a-cheap-USB-charger-to-feed-an-iPod-iPhone/) to charge iPod's / iPhones. In our case we would include the resistors to the second port which doesn't need the data lines. (step 10)
The final schematic is shown in the picture above. The circuit with included IPod charging function is shown in step 10.

STEP 3: Preparation: Think About the Power You Need

First you have to find out how much power you need at the most.
So check your devices if you find information like "100mA". Sometimes you can have a look on the charger's output current eg. for cellphones. If you don't find any information, have a look on the List below.
Common values:
  • keyboard:            100mm
  • mouse:                   100mA
  • USB-stick:          >50mA
  • webcam:              400mA
  • cellphone:   400-1000mA
  • hard drive 2,5":  ~900mA
  • fun gadgets:     <1000mA?
  • other:                  >500mA

Add the values of two devises which might be used together.
eg. 50mA + ~900mA = ~950mA
Note down your highes result.

Note: Some combinations only work with a PC, like any with the webcam.
Note2: The second port offers just power, so just connect devices to charge (or to use the power in a differen way eg. a USB-LED, a USB-Fan, ...).

STEP 4: Preparation: Materials & Tools

Tools:

  • a soldering iron & equippment (abot 30W or, much better, regulated)
  • a fine saw for metal
  • some files
  • a hotglue gun
  • carpet knife
  • a vice (you dont really need one, but it might be usefull)
  • a multimeter to check if everything works (important!)
  • some plires (alway useful)

Materials:
  • 1 USB Plug (male)
  • 2 USB Ports (female)(better one doubleport)
  • an external power supply
  • a matching socket with an internal switch (to detect whether the power supply is pluged in)(3 connections)
  • a circuit board with copper stripes (about 26,5mm x 16mm; 10 x 6 "holes" on an regular board; so there should be 6 stripes 10 "holes" long)
  • solder
  • hotglue
  • a few cm wire
  • 4 resistors (just if you want to charge your ipod/iphone, I'll come back to it later in step 13)

"a large group of the people on this site don't understand exactly how electronics work" said XOIIO and he's maybe right. If you don't understand what is meant in the following paragraph and the reason why this projekt is nothing for you. (Serch for "regulated DC" if you still want to do this and inform yourself)
Missing knowlege can destroy your devices. I don't want to hear "blah blah blah you made me destroy my device" afterwards.

Let's come back to the power supply.
In the step before I told you to figure out how much power you need. 2A (2000mA) should be enough in (nearly) any case.
Make sure it's voltage is 5V (min. 4,65V - max. 5,25V) on every load (0,01A - 2A). To measure on differnt loads you can put a resistor between + and - ; eg. for a load of 1A you need a 5V /1A= 5Ohm . Keep in mind 5W (/10W) become heat so take a big resistor.

Where to get the stuff?

The simplest solution would be to buy everything from your favorite online store.
You can get (nearly) all parts for free by disableling old devices. You can get the USB stuff from a broken USB hub or any other USB device. I take the socket and power supply from a crappy digital picture frame I got for free.
Very common you get a USB Power supply with your phone, the dockingstation, ... But in this setup it doesn't fit to the power socket. If you want to use it read step 13.

STEP 5: Preparation: Measurements

Now we have to measure the socket with an internal switch for the power supply.

1. Unpluged: Measure wich pins ar connected (resistance = 0 +- a few Ohm). Note that down. (Name the connections 1 - 2 - 3)
2. Plug now the power supply in an measure the voltage between all pins. Not that down as well. (Use the same names with + and - )
3. Now comes the most difficult part (to explain as well...)
If everything is gone right you should have written down 4 numbers, one number twice(if not you may have the wrong type of socket). This connection has to be later directly connected to yor USB ports (female) (to the + or the - line, just as you measured before).
The other connection ( + / - ) has to be connected to the USB plug and the ports.
The last connection has to be connected to the USB plug as well, but to the other power line (to the not connected one before)

Remember the numbers and connections for later or write it down.

STEP 6: [Construction: Make the USB Doubleport]

You can skip this step if you have a doubleport allready.

If you have just like me only single ports go on. I use SMD ones (because they were lieing around) but you can use the normal as well.
  1. The ports need a small distance from each other. Otherwise the other port would be blocked if you plug in a USB device. In my case they need an additional piece of the circuitbord inbetween. I just glued the tiny circuitbord ontop of the first port and the second on top of the circuitbord. Just like a sandwich. You might want to do it different, you can always compare it with the distance of the ports at your computer. Make sur the hotglue doesn't touch the contacts.
  2. Now solder the cases together. This might be hard if you got a bad soldering iron. To make it easier you can prepare the soldering point with a file and sone soldering paste. (don't make a mess)
  3. Solder the very left + wire to the left of the other port. If the origonal wire is too short expand it with a piece from your wire (but still try to keep all wires as short as possible). To make sure it won't touch the case you can put som hotglue between them. Go on with the very right - wire the same way.
  4. Mesure the conections.
    1. Both cases should be connected.
    2. Both + wires should be connected.
    3. Both - wires should be connected.
    4. No data lines should be connected to anything.
  5. If you find any mistakes correct them.

STEP 7: Construction: Circuitboard

The "perfect" size is always as different as your parts are compared to mine, so figrure out the perfect position of the parts and and your perfect size first. Keep in mind to keep the traces as short as possible. Betwenn the USB plug and the USB ports should be at least one hole space, better two.

Now cut out your part. Don't try to saw between the lines, "sacrifice" another for better results. When you're done with this take a file and remove any sharp edges. If some copper at the edge (usually 1/4 of a line) is leftover, remove it with the file as well.

Try to place your parts again. Everything fits? Perfekt. If not, do some modifications.
If eg. the plug has too big conection wires of the case remove the part between two holes to create a bigger one.

STEP 8: Construction: Solder the USB Stuff

Before you start turn the copper to the upside. You shoud solder on the surface to prevent fingers or other objects making a short circuit in use. Don't use too much solder.

First solder the USB plug to the circuit board including it's case. Now go on with the ports. Solder their case to the bord as well.
The last thing you have to do is to cut through a connection. Which one? In step 5 you shoud have figured out a direkt connection of the powerlins between the plug and the ports. Cut through the opposite one with the carpet knife.

STEP 9: Construction: Add the Power Socket

Now you have to solder the socket to the circuitbord as you figured out in step 5. All sockets look a bit different so I can't give general instructions to mount it perfect, figure it out by yourself. But I've a few hints:
  1. Most times USB plugs are much longer than needed so you can take some hotglue to stick the socket there.
  2. Remeber to watch out for blank wires touching the cases of the USB plug/ports. To prevent short circuits correct those mistakes if you spot them.
  3. Don't use too thin cable. Remeber power will later run trough them. I used 0.45mm wire but aunything above 0.25mm should be (hopefully) ok as well.

STEP 10: [Construction: Make It Ready for the IPod]

Caffeinomane (https://www.instructables.com/member/Caffeinomane/) made a great instructable (https://www.instructables.com/id/Modify-a-cheap-USB-charger-to-feed-an-iPod-iPhone/) telling about how to charge apple devices such as ipod or the famous iphone. When I asked him to include the information here, he send me the following link where he got his information: http://www.ladyada.net/make/mintyboost/icharge.html

The solution is for the mysteries problem of non-charching devices is...
Sending exact voltages through the datalines. To get those 2 voltage dividers made of two resistors each are used. There are two ways to charge:
  1. with full current (1000mA): 2.8 V on D- and 2.0 V on D+
  2. with half current (500mA): 2.0 V on D- and 2.0 V on D+

Before you start to solder, try out the adapter with other devices to make sure everything works fine.

Because the space is very limited, you should try to get the smalest parts as possible; betwenn + and D- and D+ and - you could even solder a tiny SMD resistor. The values you need are shown in the pictures above. When you go an measure in the next step mind that you connected + and - with resistores (that means different results).

I've never tried this so I can't say if it works!

STEP 11: Final Touches: Measuring

Now it's time to measure again!
If you find any problems, try to solve them.
Mind the resistors you might added to charge your IPod alter the results, so read step 3 and 4 instead of 1 and 2 if you included this feature.

1. Keep it unplugged. Just measure the USB Ports. (without IPod charging option)
  1. Put your multimeter into continuity testing mode / resistance measuring mode.
  2. All " + " had to be connected directly (0 Ohm) to each other and mustn't be connected to anything else (infinit Ohm)
  3. All " - " had to be connected directly (0 Ohm) to each other and mustn't be connected to anything else (infinit Ohm)
  4. The datalines of the plug (male) had to be directly (0 Ohm) connected to the opposite USB port and mustn't be connected to anything else (infinit Ohm)
  5. The datalines of the upper USB port mustn't be connected to anything else (infinit Ohm)
  6. The cases had to be connected directly (0 Ohm) to each other and mustn't be connected to anything else (infinit Ohm)
  7. This shoud be it (I hope :)). Go on.

2. Plug in the external power supply. Just measure the USB Ports. (without IPod charging option)
  1. Put your multimeter into voltage testing mode.
  2. Between the " + " of both USB ports and their and the plug's  " - " you should measure 5V +-0.2 and to anything else you shoud measure nothing
  3. Between the " + " of the USB plug and anything else you shoud measure nothing.
  4. Doublecheck their's no voltage on the datalines
  5. You're done with measuring.

3. Keep it unplugged. Just measure the USB Ports. (with IPod charging option)
    Resistences for D+/- are just for the upper USB port, the datalines of the other ports belong to "other"!
    I took the values from (1.) fast charging for the calculation.

  1. Put your multimeter into resistance measuring mode.
  2. All " + " had to be connected directly (0 Ohm) to each other, connected through ~53,84 KOhm to " - " , ~34,6KOhm to D-, ~49,43KOhm to D+ and mustn't be connected to anything else (infinit Ohm)
  3. All " - " had to be connected directly (0 Ohm) to each other, connected through ~53,84 KOhm to " + " , ~39.18KOhm to D-, ~39.18KOhm to D+ and mustn't be connected to anything else (infinit Ohm)
  4. The datalines of the plug (male) had to be directly (0 Ohm) connected to the opposite USB port and mustn't be connected to anything else (infinit Ohm)
  5. The datalines of the upper USB port had to be connected like said above.
  6. The cases had to be connected directly (0 Ohm) to each other and mustn't be connected to anything else (infinit Ohm)
  7. This shoud be it (I hope :)). Go on.
4. Plug in the external power supply. Just measure the USB Ports. (with IPod charging option)
  1. Put your multimeter into voltage testing mode.
  2. Between the " + " of both USB ports and their and the plug's  " - " you should measure 5V +-0.2 and to anything else you shoud measure nothing, except the datalines of the upper USB port
  3. Between the " + " of the USB plug and anything else you shoud measure nothing.
  4. Doublecheck their's no voltage on the datalines, except the datalines of the upper USB port
  5. You're done with measuring.

STEP 12: [Final Touches: Make Hard Drive Ready for OTG]

The very special thing about this is that you can connect harddrives to cellphones/ other USB OTG devices. If you would just plug it in your phone would commonly not recognize anything. That's because the phone uses just FAT32 but your hard drive will be formated in NTFS.
Important: FAT32 has a size limit of 4GB per data so you might have to split up bigger data.

You will need a program to change NTFS to FAT32. I used "EASEUS Partition Master 9.1.0 Home Edition". This free program might be not the best but it is good enough for now.

NOTE: During the progress data can get lost. So backup everything before you start!!!
The process might take long when there's still data on your harddrive. If you made a backup delete the origional partition and create 2 new ones (much faster).
Have a look on the pictures as well.

  1. install
  2. start go to main srceen)
  3. either resize the partition or delete it to create "unallocated" space infront (Important!)  of the other NTFS.
  4. right-click on the "unallocated" space, "create partition"
  5. fill out the gaps in the window:
    1. partition label: Name it as you want
    2. create as: primary (Important!)
    3. file system: FAT32 (Important!)
    4. drive letter is unimportant; change it if you want to. You can still call the NTFS part "F" and the FAT32 "G", if the FAT32 is infront of the NTFS.
  6. "OK"
  7. Press "Apply"
  8. Copy the whole content back tho the hard drive
  9. You're done :)

STEP 13: [Extra: Take Power From an USB Power Supply]

To take the power from an USB power supply you can simply solder an adapter cable. USB plug (male) on one side the power plug matching the socket on the other. Simple and usefull especially for function #3.

STEP 14: Let It Run!

Your're done (at least with reading :D). Congratulations!

Have fun and report your results, any occuring problems and your solution if you found one.
If you made a much better version of mine write your own instructable showing us the differences (When you publish it would be nice if you would inform me via PM).

If you spot somewhere a language mistake feel free to correct me. I'm still learning.

Don't forget to rate, comment and if you like this feel free to follow me or to share the link. This would help me a lot.
Thanks.

21 Comments

Can I charge an ordinary phone with this?
As you should know usb is rated at 5V. If your phone has an equal charging voltage (read the output voltage on your p hone charger) or can be charged with an usb cable it works. However if your phone is not charged with usb, you'll need to solder yourself an adapter cable. If so take a photo and ill give detailed information later.
If it hasn't 5v it will be a lot more complex, still i'll jelp you if so.
So where exactly does the power come from?
The power comes from the usb plug (max. 500mA) or from an external power supply (1000-2000mA). In any case you'll need 5v power source. This can be from a batterie as well.
Hi! Can you please explain the power socket? In what devices can I get one? How does it produce power?
The power socket does not produce any power. Its just a connection to connect the power supply. English is not my native language, I used google translater for some words, I would recomment to do this too. In case you answer prepare to wait a week or two cause I'm on vacation and usually I havn't internet access.
Boy, unregulated DC into an expensive device, absolutely brilliant.
Hey it's regulated. Realy. Read before you post bullshit.







... I spend hours making this (If you are not a nativ English speaker everything takes more time to write) and i always tried to explain it as detailed as possibe. I have no problem if you don't understand what i mean, you can always ask if you're interessed. But if you spend just a few seconds on reading this you shouldn't write a "criticism". That's why I'm pissed.



Please read the following as well:

We have a "be nice" comment policy. Please be positive and constructive with your comments or risk being banned from our site.
Well somebody seems to be on their period, why not read that yourself before overreacting.

And by the way, considering there is no VOLTAGE REGULATOR in your circuit/schematic, it is not regulated, wall adapters or whatever power supply you use can get power surges, so maybe look your own instructable through.
I wrote:



Make sure it's voltage is 5V (min. 4,65V - max. 5,25V) on every load. To measure on differnt loads you can put a resistor between + and - ; eg. for a load of 1A you need a 5V /1A= 5Ohm .



In Germany we have a very accurate power supply system (I guess you know what I mean), but I know some contries haven't these benefits.

An extra VOLTAGE REGULATER such as the 7805 would cause a loss loss of at least 2 V and only can handle currents up to 1A. A better circuit such as the PQ30RV21 (uncommon, I know ) has just a max. dropout voltage of 0.5V and a max current of 2A but you'll need some cooling as well. You see that wouldn't be the right solution anyway.

If you have another idea, energy loss-less in common use, I'd be glad if you submit it and I'll include it into the instructable.
Still, this site is mostly used in north american countries, and a large group of the people on this site don't understand exactly how electronics work, and without a voltage regulator would fry their devices, I've seen it in loads of comments that go "blah blah blah you made me destroy my device". Generally it's best to assume people know less that you think they do.
I added the following:



"a large group of the people on this site don't understand exactly how electronics work" said XOIIO and he's maybe right. If you don't understand what is meant in the following paragraph and the reason why this projekt is nothing for you. (Serch for "regulated DC" if you still want to do this and inform yourself)

Missing knowlege can destroy your devices. I don't want to hear "blah blah blah you made me destroy my device" afterwards.



Is that ok from your point of view?
I don't even need credit, I just like to see that everything is explained thouroughly because like I said a lot of people don't know enough to do this properly, or take for granted the fac that this instructable doesnt teachthem everything.
how different is this workshop compared to simply using an active USB hub or a powered USB hub?

Just take a two or four port USB hub, use a 5V 1A power supply adapter and connect it to the USB hub, you can get a fully working 4-port USB charger cum USB hub whcih can be connected to the OGT or the PC and used anyway. Soldering is not everyone's game.. then getting parts and running the risk of wrong connections can be fatal to the devices... (for noobs of course)

well, the workshop is a great idea, but i still think the USB hub is a cheaper and better alternative...

your comments please...?
Yes a powerd USB Hub works in these situations as well, but it's bigger and expenciver (compared to 0$ if you have all the stuff right at home). This was kind a hollyday project for me as well, you might understand the sense if your parents don't like you being at the computer all time :D.

If you're not familliar with soldering (or if you have just a rusty 20W soldering iron) go on and buy a device of your choice. The main difference is that a hub has electronics build in, which might cause errors or slow down the max. data speed.
on the other hand, a USB port would supply 500 ma of current. if it is shared with another USB device (HDD or Flash drive) it would share the current and the charging of the phone would be terribly slow.....

What do you think?
No, actually not. A USB stick drains less than 10 mA 490 will still be left for other devices. A Hard drive AND charging something would be imposseble caus it would be above 1.5A (1500mA). But iif you have a powerful external power supply (mine has 2A) it should be possible.
Btw: Most PC's have one regulator for two or even more USB ports Wich meens 2 ports have 1A in total. This way it's possible to charging something AND power a keyboard AND power a mouse with just two ports.
Did this information helped you?
Cool project! I can tell by your diagram though that this will not work on iPods. To do this you need resistance or power on the data pins. These are pins 2 and 3.
There's a second one bro, just for you :D. Now seriously, I'am using the simple version cause I haven't any apple devices. Step 10 explains how it should word for these.
Cheers
on the other hand, a USB port would supply 500 ma of current. if it is shared with another USB device (HDD or Flash drive) it would share the current and the charging of the phone would be terribly slow.....

What do you think?
More Comments