Introduction: How to Make USB OTG Cable

Picture of 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

Picture of 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

Picture of 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

Picture of 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

Picture of 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


rachesv99 made it! (author)2016-12-26

Thanks for the instructable, and the pinout diagrams!

ThomasS341 (author)2016-11-29

Where do you get the parts for this?

loboat made it! (author)2016-02-25

It works great ! Now I can watch movies stored on my USB key directly on my phone.

Thank you for this nice explained Instructable. :)

Kiran Bkk (author)2016-01-14

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?

vtk7676 (author)2015-09-26

Its vry easy yr :)

crashzoom (author)2015-03-23

Perfect for uploading guides from my phone

harley072782 (author)2015-01-24

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

I am glad you like it :)

JonasC1 (author)2015-01-19

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

Jakes workshop (author)2015-01-06

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

camfi (author)Jakes workshop2015-01-08

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

wynrol (author)camfi2015-01-09

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?

camfi (author)wynrol2015-01-09

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.

gattler (author)camfi2015-01-10

Your logic is sound.

Jakes workshop (author)camfi2015-01-08

I agree with you but general purpose of this is to make it by yourself.

wynrol (author)2015-01-09

Excellent project and practical.

Good clear instruction - many thanks for sharing

Rangemaster42 (author)2015-01-08

I bought a 3-pack of these cables for 5$

maniacse (author)Rangemaster422015-01-08

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.

malcolmt (author)Rangemaster422015-01-08

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

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

maniacse (author)2015-01-08

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

Jakes workshop (author)maniacse2015-01-08

cool !

rowilsonh (author)2015-01-08

ya esta dejando de ser tan difícil de conseguir ese cable.

manuka (author)2015-01-08

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...

EXTRA: The latest (Jan. 2015) Australian "Silicon Chip" offers a circuit idea that'll let the OTG cable also charge the device. Essentially it's just 5V across the usual USB red & black wires.

itninja (author)2015-01-08

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.

Great Guide!

Xenophod (author)2015-01-08

What Android app do you use to upload sketches to Arduino over USB OTG? That sounds interesting.

Jakes workshop (author)Xenophod2015-01-08

I use ArduinoDroid app.

S0N_0F_A_S0N (author)2015-01-08

Wow great feedback

maniacse (author)2015-01-08

Find some micro USB and A USB connections diagrams online, connect power + and -, then data + and -, and then do not forgot to connect (short circuit) pins 4 and 5 (or how they called it) to use full functionality of OTG. Some devices works on just 4 cables (power+data, ie Acer Iconia) and some needs all 5 pins connected (it means, that you connect also pin 5 on micro USB, those are most android devs, ASUS Transformer, ...)

jolshefsky (author)2015-01-08

Can you make an "adapter" 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?

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

tytower (author)2015-01-02

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 ?

Jakes workshop (author)tytower2015-01-02

Can you discribe your problem a bit more accuracy becouse I can't get what your problem is.

tytower (author)Jakes workshop2015-01-03

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 .

Can't make it any simpler than that buddy.

gs_ipanda (author)tytower2015-01-05

the 2 ends are just to show the top and bottom of the plug.

PhotoMaster (author)2015-01-01

Very well done!

pucksurfer (author)2014-12-30

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

numlaps (author)2014-12-28

Hi Chemlife,

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.

Please help.

that braided/twisted bunch of wires is the coaxial sheathing to prevent interference during data transfer.

However the shield should only be connected at one end of the cable, typically the "host" 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.

Jakes workshop (author)numlaps2014-12-28

Hi Numlaps,

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.


justbennett (author)2014-12-26

Great job!

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.

tplockett (author)2014-12-23

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

Jakes workshop (author)tplockett2014-12-23

thanks I also usr it for uploading arduino sketch directly to arduino
You should chech that out

About This Instructable




More by Jakes workshop:Make a Portable Spot WelderMake a Motorised Camera SliderHow to Engrave Picture on Wood
Add instructable to: