Did you forgot to put an important file on your USB key or you want to type faster on your smart phone? If your one of those watch this tutorial where I build nice and compact USB OTG 'On-The-Go' cable from an old Usb connectors.


Step 1: What You Will Need

-First thing you are going to need is a female standard USB connector and male USB micro B connector which you can get very cheap in your local electronic store.

-You will also need very thin isolated copper wire.

-Take your scissors and cut 4 pieces of wire the same length. I make them 10 cm long but it is your choice if you want to make them long or short.

-Also cut one very short piece which will enable our cable to act as in OTG mode

Step 2: Wires and Soldering

- Peal the ends of your wires and put a small amount of solder on so you can solder them on connector more easily

- Here is a simple schematic of a USB cable which shows you the correct order of the pins and the default color of each pin.

- Standard USB connector has 4 pins. Red and black are input voltage and ground, green and brown are data + and data -.

- I didn’t have the green one at home so I use yellow one instead.

- After you finish with soldering put a few heating tubes around the connections and make sure they fit tightly around the cable.

- Now solder the other ends of the wire on the micro USB connector. I made another schematic how you should wire things up so the USB will work as a host or OTG mode.

- A lot of people wonder why have micro USB 5 pins instead of 4. Actually the extra pin or pin 4 is typically not connected in the normal USB cable but If it is connected to ground pin the phone will turn in a host mode and will be able to read USB keys, webcams, mice and keyboards.

- Don’t forget to put the heatring tubes before you solder things up and our cable is basically finished.

Step 3: Isolation and Good Look

- The cable itself is pretty weak so we need to make it stronger.

- You can you electric tape but way better method is to use one large heatring tube that will make your cable look more awesome.

- I also try to do this with an old data cable but I find it more difficult and some cables especially cables for charging your phone don’t have the extra pin built-in.

Step 4: What You Can Do With OTG

- Now I will show you a few options how you can use your OTG cable.

- Here I have a keyboard which works very good on my nexus 5. I was able to type 2-3 times faster compared to the android keyboard

- The mouse is working fine as well but I personally haven’t found a practical use.

- For me the best benefit of OTG is that you can put file from your phone to your USB key or hard drive.

- For this part your phone must be rooted and you have to install an app called stickmount which will detect your usb drive and mount it to the path written on the screen.

Stickmount app on ggoogle play: https://play.google.com/store/apps/details?id=eu.c...

Step 5: Thank You

Thank you guys for watching my tutorial. That really means something to me and it really keeps me motivated. I also made a video with better instructions on youtube so please subscribe, like and share it so other people can see it.

You can help and support me on patreon. With that money I will upgrade my tools and renovate my workshop. http://www.patreon.com/jakesworkshop

Facebook page : https://www.facebook.com/jakesworkshop

Music by:

-Lensko - Let's Go

-Lensko - Cetus

Thank you all for support

<p>Thanks for the instructable, and the pinout diagrams!</p>
<p>Where do you get the parts for this?</p>
<p>It works great ! Now I can watch movies stored on my USB key directly on my phone. </p><p>Thank you for this nice explained Instructable. :)</p>
I have an old otg cable but it is not properly get connected. When i connect my phone says usb unexpectedly removed and sometime shows transport end not connected. So what should i do now? Is it possible to fix or should i make a new one by opening it and take out the 2 ports?
<p>Its vry easy yr :)</p>
Perfect for uploading guides from my phone
<p>thank you for this post. I just got a hp stream7 tablet and wanted to hook up a mouse for playing games. I could have bought one on amazon but I hate waiting for delivery. It worked perfectly. I tried to add another standard usb to it hoping I could charge my device and use usb peripheral devices but it seems when in otg mode my tablet won't charge. I really enjoy DIY posts like this thanks again </p>
I am glad you like it :)
<p>Note that this will not work with all phones, and you must not attach an external hard drive, otherwise you might end up with a fried phone and/or hard drive</p>
<p>Excellent project and practical.</p><p>Good clear instruction - many thanks for sharing</p>
<p>I bought a 3-pack of these cables for 5$</p>
<p>As I read it here, there are more people, who think (or have the luck) that buyed USB OTG from ebay is right solution. But I think, its only the luck, because when I bought mine from ebay, it was not OTG, just direct cable (4 to 4 pins). I do not know this until I bought my ASUS Transfromer, which needs OTG (4 to 5 pins). So if You buy it, You never knows, what will come.. But You have some spare cables for projects, if it doesnt work with your device. </p>
<p>Then why bother watching / commenting ? This is about making stuff yourself, </p><p>&quot;We have a <strong>be nice</strong> comment policy. <br>Please be positive and constructive.&quot;</p>
<p>Perfect ible. I like, that you use just connectors and some wires. When I made mine, I use some old USB A to A extender cable, cut it in half, take female end, then I take some USB charging cable from ebay, cut only microUSB end, then slice the housing in halves, remove existing cable from micro connector, weld there all 4 cables and shielding from extender cable, connect pins 4 and 5 on microUSB, use some hot glue for connect sliced halves of microUSB housing and put microUSB with housing to shrink tube. Working perfect, same as yours! (Btw, I used male USB ports with original cables for other projects, so no waste) :)</p>
cool !
<p>ya esta dejando de ser tan dif&iacute;cil de conseguir ese cable.</p>
<p>ALERT: It's worth mentioing that -sadly- not all Androids are OTG friendly! Even more recent (KitKat 4.4 ) entry level ones may not work. I've found only more upmarket Samsungs (S3, S4 etc) responded...</p><p>EXTRA: The latest (Jan. 2015) Australian &quot;Silicon Chip&quot; offers a circuit idea that'll let the OTG cable also charge the device. Essentially it's just 5V across the usual USB red &amp; black wires.</p>
<p>Not all Androids need to be rooted for OTG to read USB drives. My GS3, GS4, and GS5 all read USB flash drives without rooting. ES File Explorer made browsing easier than the Samsung file manager. But when I first got an OTG cable, my first action was to hook up a mouse. That was cool! Impractical, but cool. </p><p>Great Guide!</p>
<p>What Android app do you use to upload sketches to Arduino over USB OTG? That sounds interesting.</p>
<p>I use ArduinoDroid app. https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinodroid2</p>
<p>Can you make an &quot;adapter&quot; by soldering two female A jacks back-to-back and flipped (so pin 1 goes to pin 1, 2-2, 3-3, and 4-4)? Would that, in conjunction with a standard USB-A to MicroUSB-B cable work, or is the circuit diagram different from standard USB?</p>
This option will not work if you use standard micro B connector(for instance:charging cable). You must solder pin 4 to pin 5 on micro b conn
<p>Don't see why you have 2 plugs on one end in the circuit pic but only one on the data pic? Is it one or two ?</p>
hi<br>Can you discribe your problem a bit more accuracy becouse I can't get what your problem is.<br>Jake
<p>Errr In Picture above of circuit wiring there are two small black plugs both on one end of lead -Should there be two or only one . Look at picture of circuit please then look at picture of cable complete -only one on each end of that .</p><p>Can't make it any simpler than that buddy. </p>
the 2 ends are just to show the top and bottom of the plug.
Very well done!
This is awesome. I always wanted to make my own otg cable, but I never knew how to activate the host mode, and I didn't want to kill my phone testing it. (and I may have never put in the time and research to do it) good job though
<p>Hi Chemlife,</p><p>Amazing tutorial. I am surely gonna try this. I have a query which is about a USB male pin. I am trying to solder a broken male pin of a data cable of my ASUS Tablet. But it has RED-GREEN-WHITE-GREY plus YELLOW and ORANGE cables too. The points on the pin are 4 on one side and 1 on the other. I am utterly confused which cables will go where.</p><p>Please help.</p>
that braided/twisted bunch of wires is the coaxial sheathing to prevent interference during data transfer.
<p>However the shield should only be connected at one end of the cable, typically the &quot;host&quot; end--but in this case the full sized usb connector would be much easier to solder to. You do not want to solder it at both ends because there is always a chance that a powered device (powered hub maybe?) may be plugged in and a slight difference in ground will cause an unwanted current flow.</p>
<p>Hi Numlaps,</p><p>Glad you like this tutorial. I am not 100 % sure about that but I think that grey cable(one that is widest and twisted) prevents the cable to tear up. The fifth remaining cable is normally connected to the frame of the USB connector. But it is not that important(you dont have to solder it back). In your case is Red + , green is probably Data +, white is ground?? and yellow or orange is data - (try with yellow and leave orange as it is). You should try a few different options and see which one is working. Also try looking up the specification and datasheet of your cable. That's from my side. Hope you will make it. If I find any new info i will inform you.</p><p>Jake</p>
Great job!<br><br>Can i suggest moving step four to the introduction? I wasn't 100% sure what you were making or why until i read step 4. Some of the grammar made it confusing too. Just my observations. <br><br>
This is a very useful cord. I've made a few of these in the last past year. And you did a very good job I might try your method. So you are used to use it for was to hook it up to my playstation controller. And play games. But the best benefit is to use Google cardboard for virtual reality and hookup your controller and headphones makes a great 3d gaming experience. Good job keep up the good work
thanks I also usr it for uploading arduino sketch directly to arduino<br>You should chech that out

About This Instructable




More by Jakes workshop:3D Print a Kindle Stand How to Make a Teeterboard | Springboard Make a Pocket Hole Jig  
Add instructable to: