Post Reply

[GUIDE]How to make otg cable with external power connector

OP redoano

11th August 2012, 10:37 PM   |  #1  
redoano's Avatar
OP Senior Member
Flag Erzurum
Thanks Meter: 102
 
340 posts
Join Date:Joined: Jun 2008
More
HOW TO MAKE USB OTG CABLE WITH AN EXTERNAL USB POWER SUPPLY for those who cannot find such a cable in their country(like me)



You need a kernel with USB OTG support. SebastianFM's kernel, here

The Micro Usb connector has 5 pins inside. In standard data cables that comes with the phone, only 4 pins are used. When the unused pin is connected, the cable becomes an OTG cable.


Pin 1 : VCC pin, +5V Power supply, COLOR : RED
Pin 2 : D-, Data- Signal line, COLOR : WHITE
Pin 3 : D+, Data+ Signal line, COLOR : GREEN
Pin 4 : This is the pin which is not used in standard data cables, we will "SHORT" it to pin 5 to make an OTG CABLE
Pin 5 : GND, Ground Supply

These colors are UNIVERSAL in USB connectors, this means the red is always VCC, black is GND and the other two always perform the same action, unless somebody deliberately connects the colors to different pins

Warning : I'M NOT RESPONSIBLE FOR ANY DAMAGE ON ANYTHING. (YOUR PHONE, DATA CABLE, USB CONNECTOR, HOUSE, FERRARI ETC.) IF YOU AVOID ANY SHORT CIRCUITS, AND COMPLETE ALL THE STEPS AS I EXPLAIN THERE WILL BE NO PROBLEM. AND THIS TUTORIAL SUPPOSES YOUR PHONE AS AN HTC PYRAMID

IF YOU ALREADY HAVE AN OTG CABLE, YOU DON'T HAVE MUCH TO DO.. YOU GO TO 2

1 ) THOSE WHO DON'T EVEN HAVE AN OTG CABLE START HERE -THESE STEPS REQUIRE EXPERIENCE ON SOLDERING


What you need:

1)A "MICRO USB B" head. (Can be obtained from an old charger, data cable)
2)USB A Male to USB A Female Connector : These Connectors
3)USB Cable (A short one is enough)
4)A sharp knife,etc.
5)Soldering Kit
6)Hot Glue
7)Tape
8)Some experience on soldering

STEP 1 - The first thing yo need to do is to SLICE two sides of the plastic cover of the micro USB connector, and clean the glue under it. You will need the plastic cover later!
HAVE A LOOK AT THIS VIDEO TO UNDERSTAND CLEARLY

STEP 2 - Once you reach the pins under the glue, you can get your soldering iron now to start soldering.

Matching cable Colors and Pin NUMBERS AGAIN : 1-RED, 2-WHITE, 3-GREEN, 4-NO CABLE, 5-BLACK


STEP 3 - If you did soldering (or cables are already soldered to pins--if you're using a data cable) now you need to SHORT CIRCUIT the EMPTY PIN (PIN 4) and PIN 5 (Black Cable). You can use a very short piece of cable to do this. NOW YOU HAVE A "MICRO USB B" CONNECTOR WITH OTG SUPPORT.

STEP 4 - After you completed the soldering, and IF you are sure you made no mistakes, apply HOT GLUE. Wait for it to get cold and hard, then cover it with the plastics you sliced before. You can use cheap quick glues to do that. How the connector looks after all depends on your creativity and ability

STEP 5 - Cut the cable of the USB A MALE to USB A FEMALE connector at 20-25 cm from the female connector. Now you can connect USB Female A connector, Micro USB B connector, and USB Male A connector

STEP 6 - First connect the matching colored wires of USB FEMALE A connector and Micro USB B Connector (red to red-white to white-green to green-black to black). Now you've a working OTG cable, but without an external power connector.

STEP 7 - To connect the "USB A MALE" connector,which will be the external power to the OTG, you only need to connect red and black colored wires of it (the +5V and GND wires) to the matching colors of the other two cables you connected before ("MICRO USB B" and "USB A FEMALE"--The OTG CABLE you've made). If you connect white and green wires of "USB A MALE" connector, YOUR CABLE WILL NOT FUNCTION. DO NOT CONNECT WHITE AND GREEN WIRES OF MALE USB A CONNECTOR.

You can use soldering iron to strenghten the connection between wires. Or you can just use tape. It's up to you. Just be sure that there's no possibility of short circuits.

You need to use tape for each color of wires to prevent short circuits.

AGAIN : Be sure that you've made all the steps carefully and correctly, and avoided any short circuits before using your cable. The only short circuit should be the pin 4 and pin 5 of MICRO USB A connector

AND YES IT'S DONE, YOU CAN USE YOUR CABLE NOW :P

2 ) THOSE WHO HAVE USB OTG CABLE AND JUST WANT TO CONNECT AN EXTRA USB POWER CONNECTOR--START HERE

You need :
1)MALE USB A CONNECTOR with 100-120 cm cable -- lenght depends on you, should not be much longer than 2 meters(standard usb connectors) (U can get it from any data cables, old USB mouse cables, controller-joystick cables.. Just cut the cable at 100-120cm from the connector)
2)Your OTG Cable
3)A Sharp Knife etc.
4)Tape
5)Soldering kit (optional--if you want to strenghten the connections of wires)

STEP 1 ) Cut the USB OTG cable in the middle.
STEP 2 ) You only need red and black colored wires of "MALE USB A" connector, which are +5V and GND.
STEP 3 ) Connect the matching colors of your OTG cable again, but this time also connect the "MALE USB A" connector's red and black wires to the matching colors. WHITE and GREEN wires of this connector should not be connected. Otherwise the cable WILL NOT FUNCTION.

You need to use tape for each color of wires to prevent short circuits.

BE SURE THAT THERE'S NO POSSIBILITY OF SHORT CIRCUITS AND YOU'VE MADE NOTHING WRONG

You can also connect SHIELD WIRES of each cable to each other. But i'm not sure what actually it does. If you test it, please post your experiences.

What is Shield Wire:


The USB cables actually also have "SHIELD WIRE". My 2.5" external LG HDD does not work with the cables without shield wire, but many products should work. Shield wire is the one silver colored wire surrounding the other four colored cables and aluminium foil. It is connected to the outer silver colored parts of the connectors. I'll update this post after testing if shield wire needs to be connected,too. For now i use my cable without it, but my hdd does not work. All others (usb mouse, usb flash drives, joystick, hub, my sony e443 Walkman , PS3 Dualshock 3 Controller etc.) work. I don't know if the reason why my hdd does not work is that wire. Will test it by monday and upgrade my post.

My own made cable is attached below, not perfect, but good, working fine

Thanks to SebastianFM
Attached Thumbnails
Click image for larger version

Name:	rsz_c360_2012-08-11-23-55-29.jpg
Views:	21362
Size:	244.5 KB
ID:	1255733  
Last edited by redoano; 10th September 2013 at 09:38 AM.
The Following 67 Users Say Thank You to redoano For This Useful Post: [ View ]
11th August 2012, 11:45 PM   |  #2  
tessut's Avatar
Senior Member
Flag Baden-Württemberg
Thanks Meter: 226
 
1,206 posts
Join Date:Joined: Dec 2010
Donate to Me
More
Man this works great ! Thumbs up

Sent from my HTC Sensation XE with Beats Audio Z715e using xda app-developers app
12th August 2012, 09:43 AM   |  #3  
Senior Member
Thanks Meter: 43
 
381 posts
Join Date:Joined: Jun 2007
can use y cable and usb on the go cable together

connect otg cable to data part of male y cable

y cable: http://www.ebay.com/itm/New-USB-2-0-...item4d035494df

otg: http://www.ebay.com/itm/OTG-Host-Ext...item3f1af0b17a
Last edited by badai; 12th August 2012 at 09:52 AM.
12th August 2012, 03:20 PM   |  #4  
Member
Flag Ludhiana
Thanks Meter: 13
 
41 posts
Join Date:Joined: Jan 2011
More
Angry Thanks!!
Hey i wanted to make my own DIY cable similar to yours. Similar cuz i will be using this on my allwinner based TABLET. it has native OTG support but the original cable is lost. i was looking for pinouts but this guide was better. anyhow my main worry is :-

WE ARE USING EXTERNAL POWER SUPPLY WITH THIS HACK. IT WORKS FOR SURE NO DOUBT BUT, IS THERE A CHANCE THAT IT MIGHT DAMAGE THE TABLET . (current running back to the tablet ? tho i doubt it cuz my tablet can be charged with this same port also, still wanna be sure .. ) ??

PS: - USING HTC ORIGINAL USB CHARGER AS EXTERNAL POWER SUPPLY ( 5V & 1AMP) i only use external supply with hdd only.

rest thumbs up !!! great work !!

---------- Post added at 07:50 PM ---------- Previous post was at 07:47 PM ----------

Quote:
Originally Posted by badai

can use y cable and usb on the go cable together

connect otg cable to data part of male y cable

y cable: http://www.ebay.com/itm/New-USB-2-0-...item4d035494df

otg: http://www.ebay.com/itm/OTG-Host-Ext...item3f1af0b17a

yes this combination works perfectly

but i guess for all "DIY" ppl (like me) this is better .... he he ...
12th August 2012, 03:54 PM   |  #5  
redoano's Avatar
OP Senior Member
Flag Erzurum
Thanks Meter: 102
 
340 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by badai

can use y cable and usb on the go cable together

connect otg cable to data part of male y cable

y cable: http://www.ebay.com/itm/New-USB-2-0-...item4d035494df

otg: http://www.ebay.com/itm/OTG-Host-Ext...item3f1af0b17a

I couldnot find 2 males to one female usb cable (Y cable) in my country.. This is of course a better choice with no soldering, no tape, just connectors

Quote:
Originally Posted by mechexpert

Hey i wanted to make my own DIY cable similar to yours. Similar cuz i will be using this on my allwinner based TABLET. it has native OTG support but the original cable is lost. i was looking for pinouts but this guide was better. anyhow my main worry is :-

WE ARE USING EXTERNAL POWER SUPPLY WITH THIS HACK. IT WORKS FOR SURE NO DOUBT BUT, IS THERE A CHANCE THAT IT MIGHT DAMAGE THE TABLET . (current running back to the tablet ? tho i doubt it cuz my tablet can be charged with this same port also, still wanna be sure .. ) ??

PS: - USING HTC ORIGINAL USB CHARGER AS EXTERNAL POWER SUPPLY ( 5V & 1AMP) i only use external supply with hdd only.

rest thumbs up !!! great work !!

---------- Post added at 07:50 PM ---------- Previous post was at 07:47 PM ----------



yes this combination works perfectly

but i guess for all "DIY" ppl (like me) this is better .... he he ...

If you avoid ANY short circuits, there's no possibility of damaging your product
The Following User Says Thank You to redoano For This Useful Post: [ View ]
22nd September 2012, 01:18 PM   |  #6  
Member
Neverhood
Thanks Meter: 6
 
70 posts
Join Date:Joined: Jul 2009
Question
....................
Last edited by mm2236; 22nd September 2012 at 07:15 PM.
9th October 2012, 07:12 AM   |  #7  
Member
Thanks Meter: 18
 
44 posts
Join Date:Joined: Jan 2011
confused
Sir, I have done exactly what's in the guide for having an otg cable and attaching a usb male for external power. But I am facing a little problem and that is when I connect power to usb male first, but without attaching to my Tab, and I connect my pen drive first, it doesn't get powers as the led doesn't blink. But it does blink only at the moment I insert the pen drive into the female usb. Now I did a different thing, I connected micro usb port to my Tab, then my pen drive and then the power male usb cable, it works fine. But I am getting confused that is my pen drive getting power from that attached usb male.
18th October 2012, 10:16 AM   |  #8  
redoano's Avatar
OP Senior Member
Flag Erzurum
Thanks Meter: 102
 
340 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by sauravdante

Sir, I have done exactly what's in the guide for having an otg cable and attaching a usb male for external power. But I am facing a little problem and that is when I connect power to usb male first, but without attaching to my Tab, and I connect my pen drive first, it doesn't get powers as the led doesn't blink. But it does blink only at the moment I insert the pen drive into the female usb. Now I did a different thing, I connected micro usb port to my Tab, then my pen drive and then the power male usb cable, it works fine. But I am getting confused that is my pen drive getting power from that attached usb male.

I sometimes face the same problem when i want to use my external HDD device. But its not a problem at all. I think usb male power has some difficulties on supplying enough power to both phone and HDD. It works by connecting HDD first, then USB male to power, and then phone. This order may change according to your charger, device, and phone

Sent from my HTC Sensation Z710e using xda app-developers app
30th October 2012, 05:57 AM   |  #9  
romny19's Avatar
Senior Member
Hollywood, FL
Thanks Meter: 14
 
181 posts
Join Date:Joined: May 2012
Donate to Me
i dont know what happened to this. i just did exactly all the steps.... then i first tried it on my HTC one s with a USB 16GB and now my USB doesnt work.... i even connected the USB to see if i still works on my computer and now its dead... ti doent even light up.....
2nd November 2012, 06:51 PM   |  #10  
redoano's Avatar
OP Senior Member
Flag Erzurum
Thanks Meter: 102
 
340 posts
Join Date:Joined: Jun 2008
More
Quote:
Originally Posted by romny19

i dont know what happened to this. i just did exactly all the steps.... then i first tried it on my HTC one s with a USB 16GB and now my USB doesnt work.... i even connected the USB to see if i still works on my computer and now its dead... ti doent even light up.....

You may have damaged it? You sure you connected all the wires correctly? Because all these colors are universal and there shouldn't be any problem once everything properly done.

Sent from my HTC Sensation Z710e using xda app-developers app
Last edited by redoano; 2nd November 2012 at 06:54 PM.

Post Reply Subscribe to Thread

Tags
android, cable, host, otg, sensation
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes