How to Make USB OTG Cable




Introduction: How to Make USB OTG Cable

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:

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.

Facebook page :

Music by:

-Lensko - Let's Go

-Lensko - Cetus

Thank you all for support

2 People Made This Project!


  • Fix It! Contest

    Fix It! Contest
  • Metalworking Contest

    Metalworking Contest
  • Tiny Home Contest

    Tiny Home Contest

42 Discussions

thanks a lot had a blonde moment i only had 4 pins to solder to on the micro USB...couldn't find the fifth pin, i searched for quite a while trying to determine if the outside of the micro USB connector was indeed the fifth pin "ground" with no success. Then it dawned on me to check the continuity between the braided shield and the outside metal on the micro USB connector...voila .. man did I ever feel like a dumb a$#
so here is a photo that i wish i could have found lol


Where do you get the parts for this?

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?

Perfect for uploading guides from my phone

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

1 reply

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

maybe you could send me some pictures of your cable and I can help you find where your problem is

5 replies

or you can just buy it on eBay for less than a buck.. plus free shipping ;-)

In response to Camfi "or you can buy it on eBay...." Sure, I suspect you could buy 90% of everything made on instructables on eBay or on-line. But that's the whole point of the instructables web site so why make such a prattish comment?

I agree with you, this site should motivate people to build and create stuff themselves. But not everything is for everyone... for example guy asking why there are two Micro USB connectors on the pic abowe, or this one whom is unable to connect four wires correctly.. are you kidding me?
In general I'm getting sick of thees comments of stupid people around the internet without any knowleadge what they are even trying to make. ok sorry for offensive note of my post but for some people like that would be much cheaper to buy it, than destroy something for recieving parts for this project.

Your logic is sound.

Excellent project and practical.

Good clear instruction - many thanks for sharing

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.

Then why bother watching / commenting ? This is about making stuff yourself,

"We have a be nice comment policy.
Please be positive and constructive."

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) :)

1 reply