Make a USB OTG Host Cable. the Easy Way!

507,131

178

54

About: My name is Taylor, I am an electrical repair tech by day and an engineer by night, after work or free time.

I have been in the market for an OTG cable, otherwise known as a host cable for some time and I have found that the only places that seem to sell them are online only. This is not a problem half the time. I tend to do a fair amount of online shopping but for this product I was left looking for an alternative. Some sellers sold them cheap while the wait time could be as high as 30 days and others sold them for a lot more than what they are worth while the wait time was 2 days. I was looking for a middle ground. When I say a lot more I really mean you are paying more for the product than what it's worth. For those of you who don't know what a USB OTG (on the go) host cable is, it is a simple modified USB cord that has a female (most of the time) USB port on one end and a micro male USB on the other end. The types of connections on each end can differ. This cord acts as a USB port for your phone or tablet and it enables you to use external devices such as a keyboard or mouse via the female USB connector on your phone. This cord is a must have for those who want the most out of their smart phone or tablet. It works by connecting an unused pin in the micro end, to ground. Like I said it is a simple modification. Some phones and tablets do not support this function so it is wise to search the web to find if your device is compatible with this function. I explained a little as to why I was looking for an alternative to buying one online and let me go a little more in depth as to why I chose the DIY route. The top two reasons are, it would be cheaper and I wouldn't have to wait for it, You can make one for under 2 dollars with stuff you more than likely have lying around your house!

With my cable I can now use a keyboard, an xbox 360 controller and flash drives on my galaxy note 2 without any rooting. I can also use mice and other USB hardware.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: What You Will Need

You will need a Micro USB cable (in my case), a USB female port (took one off an old charger), a hobby knife, solder and hot glue and about 30 minutes of your time.

Step 2: Cutting Into the USB Micro End and Making It a Host

I used a cheap dollar store USB cord and I'm glad I did. The cheaper the cord the easier it is to cut and mod. Take a hobby knife and carefully cut the seam and pry back the rubber. Then You can remove the USB micro male connector. You can cut it off or you can work within the wire. After You can see the micro USB connector you have to take it apart to reveal the 5 pins.There is a metal case around the pins that make the shape of the connector. Mine had an easy clasp that I lifted with my knife then slowly removed. Once you see the 5 pins you have to solder the pin next to ground to ground. A little solder bridge is all that is needed. If you don't know the pinout you can look at the picture I included or you can go by the color coded wire. There are four wires inside a normal USB cord and the colors are red, black, white and green. These colors help identify their connection. Red is 5volt+, black is Gnd -, white is data - and green is data +. Some cords use different colors but the connections can still be identified by using the image to help with pin out. The picture I included has the pins numbered, 1 is red 5 volts+, 2 is white data -, 3 is green data +, 4 is not used unless its an OTG cable and 5 is Gnd, black. You have to connect pin 5 to 4. When pin 4 is connected to pin 5, Ground, it allows a pass through that enables your phone to use external devices. That is all that is needed to turn your micro USB into a host cable. After pin 4 and 5 are soldered together you can place the metal case back on and give it a quick test. I tested mine on an old phone before using it on my note. Once you plug it into your phone you should get a message saying "usb connector connected' or something similar. You don't even have to have anything connected to it to get that message. If you removed the wires to mod the pins you can solder them back onto the connector and move to the next step

Step 3: Adding a Femal USB Port.

In order to give you the option of using this as a USB port you need to add a female USB port to the other end of the cable. My cable had a male connector so all you have to do is replace that with a female connector. I also decided to shorten the cord for ease of carry. Simply cut off the male connector, strip and tin the four wires and solder them to the USB female port. Follow my picture for correct wire placement or search for the pinout.

Step 4: Insulate and Make It Stronger

By now your cord is complete but in order to increase the life time of the cord you want to strengthen the wires and connections with some hot glue and electrical tape and you are finished!

I hope you enjoyed and thanks for reading!

8 People Made This Project!

Recommendations

  • Instrument Contest

    Instrument Contest
  • Make it Glow Contest

    Make it Glow Contest
  • STEM Contest

    STEM Contest

54 Discussions

0
None
BrianH26

2 years ago

I just started using VRidge for using my G3 as VR screen.
For this I use USB tethering from the phone to the PC. Would it be possible to splice a wall charger into the data cable so the phone gets charged at the same time?
I was thinking that connecting the charger cable in parallel would work?
Red to red for example. At least then I could use my phone in VR and have it charging from the wall.at the same time.
Thanks.

1 reply
0
None
AristarcoBrianH26

Reply 9 months ago

I'm not sure but I think the chargers are controlled by the data wires to get more or less current. It's possible that the charging circuit inside the phone makes this current and voltage control inside the phone, but if not, when charged, the paralleled charger will keep charging the battery and end up damaging it. Again, I'm not sure. You should investigate the charging process of your device.

0
None
cjkessler

1 year ago

Would it be a similar process for the iPhone cable?

1 reply
0
None
Aristarcocjkessler

Reply 9 months ago

The lightning connector has an ID and validation chip inside the plug. You can't just hardwire connections to make OTG, afaik. I recommend not doing it since the lightning port was conceived specially to be an obstacle to any innovation and creation as long as you're not an authorized dealer paying the fee to make compatible cables or devices and proceeding could damage your iPhone.

0
None
nosregI

10 months ago

Nice

0
None
James6699

Question 10 months ago on Introduction

Do you have to use a male and female or can you just put the two ends of the usb cables together

0
None
mouse23

1 year ago

You said......."There are FOUR wires inside a normal USB cord and the colors are red, black, white and green. These colors help identify their connection. Red is 5volt+, black is Gnd -, white is data - and green is data +. Some cords use different colors but the connections can still be identified by using the image to help with pin out. The picture I included has the pins numbered, 1 is red 5 volts+, 2 is white data -, 3 is green data +, 4 is not used unless its an OTG cable and 5 is Gnd, black. You have to connect pin 5 to 4. When pin 4 is connected to pin 5," ............ But you are describing FIVE pins. ???

1 reply
0
None
out-of-the-boxmouse23

Reply 1 year ago

There are 5 pins in micro USB connectors but only four of those pins have wires in normal charge and sync cables. I don't get your point or question but hopefully that answered it

0
None
JulianH50

2 years ago

Very useful and informative, thank you. I just converted a £0.50 micro USB 10cm extension cable to OTG and it works perfectly for attaching accessories to my Galaxy Note II.

0
None
nelie jane

2 years ago

Hi friends, I have an ipad mini and since it's almost full in memory, can i just use the OTG usb female host cable adapter to transfer my photos and videos to into my hard disk? thank you :-)

0
None
BaddyK

3 years ago

I am trying to make one but the wires are as follows- two bare wires(silver), two red wires, white and green. And I am confused which one is vcc and which is gnd

0
None
T.J.AmandaJ

3 years ago

can i splice the cord and connect the two wires ?

1
None
EsyrrowT

5 years ago on Introduction

My company (Shenzhen Hinsung Electronics Co., Ltd.) can make USB OTG Cables with USB Power (http://www.hinsung.com/pro_info_129.html). They are cheap and high quality. And our delivery time is within 15 days. Does anyone have interest in reselling our OTG cables?

HS-CU2549.JPGIMG_96281.JPG
6 replies
0
None
EsyrrowTawesomersause

Reply 3 years ago

Sorry to reply you so late. Do you have an email adress?

0
None
daddyotiEsyrrowT

Reply 3 years ago

Yes, here in Southern California Orange County.

If you need an independent rep here, send me the particulars to and we can arrange a dialog.

Thank you,
S. Tito Bombaci

0
None
EsyrrowTdaddyoti

Reply 3 years ago

Sorry to see your reply so late.

Do you need me to send you the particulars?

Please contact me if you need. :)

My email is esyrrow@gmail.com.

0
None
SunshineCEsyrrowT

Reply 3 years ago

Is there an OTG for the 40pin adapter for an ASUS Transformer?

0
None
JersonGSunshineC

Reply 3 years ago

http://www.amazon.com/Patazon-40Pin-Adapter-Transformer-Infinity/dp/B008TO3PSS