Cell PhonesComputersConsumer ElectronicsGraphic Design & Video EditingHome Theater & AudioIndustrial TechnologyInternet

What Each Colored Wire Inside a USB Cord Means

Updated on January 05, 2016

Joined: 5 years agoFollowers: 61Articles: 30
USB Color coded wire
USB Color coded wire | Source

USB Color Coded Wires

Most hardware pieces today connected to our CPUs are USB-driven, meaning that they require use of a USB cord or wire. This includes your keyboard, mouse, webcam, memory flash drive, some speakers, the external hard drive, camera or digicam, video cam, and more.

So what is inside it, exactly? USB stands for Universal Serial Bus, and there are four wires inside of it — usually, it's a red, green, white, and black cord. Each of these wires has a corresponding code:

  • Red color indicates the positive wire with 5 volts of DC power.
  • Black has always been the ground wire in almost all electronic devices.
  • White is the data as a "positive" wire, while
  • Green is also for the data , but as the negative wire.

Common USB wires inside
Common USB wires inside | Source

Other Colors

Some USB cords have different wire color combinations, like orange, blue, white, and green. In this case:

  • Orange is the positive, with 5 volts of power in the DC (direct current).
  • White indicates a ground wire, meaning the negative wire.
  • Blue corresponds to the negative data
  • Green as the positive data.

USB color wires with corresponding codes
USB color wires with corresponding codes | Source

Important Things to Note about USB Cords

These are generally the types of different USB color coded wires out there. So, if you are asked or asked about the color codes in the wiring of a hardware device, you can reference this article.

  • Note that the wiring inside a webcam has four wires, but check if your webcam has microphone built in inside. You can trace the wire if so.The Nokia USB pinout has the same code if we skin the wires.
  • Now that you know about the inside of a wire, the next question is: should you use a shield on your USB pin out? Yes, you should. Shielding is very important for protection.
  • You also cannot have a USB cable without the positive and negative, or the ground. The most important wires inside are the positive and negative wires. These are the paths of electric power needed to run your device. Also, you now know what color they are!

Feel free to leave a comment below if you have questions or suggestions. I hope you learned something today. Thank you!

Poll on USB cable defects:

What is your common USB problem?

See results

© 2012 Mark Johann

Comments

    0 of 8192 characters used
    Post Comment

    • pstraubie48 profile image

      Patricia Scott 4 years ago from sunny Florida

      Hi Mark

      My nephew is a whiz with computers. He takes care of all of the issues I have with mine. He taught me about USB cords although I admit I really know very little about them. I just know when I need them and where to plug them. This is a topic that many will find very interesting as you have a number of hubs on it and you elaborate. Thanks for sharing. Sending angels to you :) ps

    • Mark Johann profile image
      Author

      Mark Johann 4 years ago from Italy

      Hi pstraubie48,

      Say hi to your nephew. He might be a good technician. I am glad you already know about usb cords. Thanks for commenting and for being interested in my topic hub here. I have bundles of interesting topics about technology. If you have computer problems, I am ready to help.

      Thanks to your angels. :)

    • manpreet shahi 4 years ago

      my USB has three wires and i want to know that i want to make a lamp using USB cable and i am conffused in which wire that the current flows

      sir please send the answer related to my problem in my E- mail address my Email address is MALUKSINGH0786@gmail.com

    • Mark Johann profile image
      Author

      Mark Johann 4 years ago from Italy

      Hello manpreet shahi, please provide the wire colors of your usb. Thanks. I will email you as soon as you give the wire colors.

      I will help you with this, my friend. :)

    • leo 3 years ago

      im trying to make usb Y with two male ends for additional power supply, should i just connect the other male with its + and - wire and the data wires as dead?

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi leo,

      It is not clear to my understanding but I will try to answer your question. If you want to supply more power from one USB port it could be but the power source could be hardly support those consuming devices for a long time.

      To my understanding, you are condemning the data wires and you just want to use the 5 volts from the usb wires. And you want make Y connections from one single USB port to two power consuming devices. The basic rule is to connect all positive wires. Also connect all negative wires. That's it. I am just concerned on the power source if it will burn or not work at all due to excessive draw of electric current of two 5 volt devices.

    • Claude Walker 3 years ago

      I am not sure if this is the right forum,but I will try anyway.

      I would like to connect an AV plug to one end of the USB, but I don't know how .My wires are BLK RED WHITE and GREEN.

      Thanks

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      If you mean RCA cable(red,yellow,white) to USB cable, this would not be since data file transfer is used in this cable. Yo u can buy another device for this. You should avail the RCA to USB converter device.

    • Wayne 3 years ago

      I have a USB cord but the colors inside are white, yellow, green, and blue. How do I tell what they are.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi,

      Yellow is the positive wire and blue is the negative wire. White and green wires are for data.

    • Stephan 3 years ago

      I'm curious about the iphone ;) How is it there? I checked it out myself but am yet to understand what all the wires are for... There are like 8 wires with different sizes, I have no clue what is what and can also not find a site so far that could help me. Whould very much appreciate if you could help thanks.

    • Torridfyre 3 years ago from Cebu City

      Hi Mark, the wire colors of my blackwidow keyboard are white, yellow, pink and purple. Which of it connects to a certain color in a standard usb plug? Thanks in advance :)

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Let me check about it. I will reply to you as soon as I get the confirmation but just for trial and error, I think the white is the ground wire, the negative. Yellow is the positive wire of 5 volts and the Data minus and Data plus wires are the pink and purple wires.

      Don't worry, 5 volts won't hurt so much to your USB device.

    • Fidelio 3 years ago

      im cutting out a wire from my mouse. turns out it's got red, green, white and blue. i wonder if this blue wire works like that of the black one in the first example. cheers!

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      To my findings, orange is the positive with 5 volts, white wire indicates ground wire or in other words the negative wire, blue is the negative data. Now green is the positive data or data plus.

    • Torridfyre 3 years ago from Cebu City

      Hi Mark, thanks for the response.

      I' ve made the rewiring but it just says "usb device not recognized". Another thing is, There is a current flowing through the keyboard but it doesn't light up. I also did some trial and error one the wirings but none worked. What do you think is going on?

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      I am glad you trust me with this problem. I was with this one before and it turned out that my USB driver has some problems.

      Do the uninstall of all USB device and restart your PC then install it back then. Tell me what happens.

    • Shusil 3 years ago

      Hi mark please help me in my work that I have a webcam which is not in the usb mode so I just want to cut the wire of the webcam and connect to the webcam, the webcam is integrated with a microphone too, and which has a color code of red,yellow,white and black. from the cam the wire came out in a single and about 3 inch from the cam the wire wire is divided into three phases of three connector like that of the video, audio output cable of the DVD player the color of the wire are yellow, red and white. I think the black color is divided and flow with each of the three color, So I would like to connect the webcam with a usb which has a color code of red, green,black and white, will it be able to function the webcam. Will it need a driver for my PC but I don't have any driver. please help me to convert it.....

      Hoping your good response.

      My mail.---- Shusil.chamber@gmail.com

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      First, I want to ask you if why it is not in USB wire? Basing on our pictorial diagram above, we can see the color coding. Just let me know where are you stopping right now.

    • thom144e 3 years ago

      Good day Mark. I have an ASUS Eee tf201 tranformer tablet that uses a USB for its power source. The power supply states that it is a switching power source of 5v 2amp - 15 volt 1.2 amp. I want to use a portable battery source, but I am told it will not supply 15 v from the USB. I would like to use this portable power's 14 to 16 ( adjustable power) port, but it is round, not a USB. Can I just use a suitable round connector and solder + & - power to a female USB. eliminating the data wires?

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Thanks for asking. I am pleased to answer in my best knowledge possible.

      If you mean that "5v 2amp - 15 volt 1.2 amp" is the print text in your transformer, I believe it means that you can use the USB port of any computer because this also means 5 volts to 15 volts, meaning, the range of voltage that could be used to power your tablet or to charge it.

      Your portable battery, I guess has 5 volts and I believe it is compatible. Go for it. Don't worry. Low voltage won't hurt your device.

      Please check it again and tell me the result. I will also give you additional idea on converting USB with Serial cable or you say round.

    • thom144e 3 years ago

      hi, I have already tried to use a standard USB 2 amp portable power source, and it did not seem to work ( charging light did not appear). I purchased an extra power supply from a vendor (not ASUS) and it says 15 v 1500 milliamp, so I figure the tablet does need 15 volt. if I try to plug into a computer it does not charge, nor does it charge on any USB port except the one that came with the ASUS tablet. i talked to a portable power vendor, and he is changing the power from a 12volt serial to 15 volt USB for me. I can also use this same power supply for my Toshiba as it has 20 volt adjustable serial port as well as the USB 5v and 15 v ports. Being in China has its advantages as the vendor is making the USB port for me; no extra charge.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Reply noted. I am compiling your valuable experience so that some people who will have this problem, may be able to find a solution. Thanks for replying.

      It seems that technology keeps on evolving from time to time. Techies need to upgrade and update always.

    • Ghost32 3 years ago

      Nice work here, Mark. I've never really inspected the wires inside any of my USB cords but was delighted to find this source of expertise on the subject. Who knows when I might need it?

      After all, I've been learning more things in the last few years than I did fifty years ago in school.

      Voted Up and More.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Thanks for dropping by here in my simple hub, Fred. It seems that learning is fun for you. Nice of you!

      Johan, my cousin says hi and want to write again in HP. She was once wrote few hubs here and moved her hubs for her own account soon.

    • Jonny 3 years ago

      Hi Mark, any thoughts on my white, red, purple and orange configuration. No example online seems to show this. Micro USB cable. I would love to know which is which.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi Jonny,

      I am also new to this but try this one: white is always the ground if you have red-white in that four wires. So, red is the positive wire. The rest orange and purple will be the data wires. Update me if you need more help.

      Thanks for asking, I am ready to help. :)

    • ryan leer 3 years ago

      Hello,

      I have blue, gray, white and green - would you please advise me on which are the power/data wires?

      Thank you! :)

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi there,

      If white and green is the tandem with the blue so I could conclude that white is the Ground wire or the negative wire then green is the positive wire. Blue and gray here are the data wires.

      Let me know if what will happen, I am ready to help you ryan leer. :)

    • ryan leer 3 years ago

      Thanks for the reply!

      The green and blue wires seem to be insultaed by fuzzy/shiny material that feels like fabric - they're on the leftmost and rightmost sides of my cable which is flat. The white and gray cables, in between the green and blue, are very tiny and insulated with rubber.

      I've tried testing both green/blue and white/gray cables a LED (output voltage accounted for) with no luck.

      Appreciate the help! :)

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Thanks for the reply. :)

      Okay, so I am asking you to try which wires are for power, basically the ground and the positive wires by getting a LED and try to look for the wires that could light it.

      You can find many LEDs on broken electronic devices like chargers, old radios, etc.

      Just take it and stick the two terminals of the LED to see if it lights. Thanks. Reply to me for more inquiries. :)

    • Sonia 3 years ago

      Please indicate what is the use of "usb cable AM to -A ( RoH8 ) " Is it to link two computers for transfer data ?

    • Petros 3 years ago

      Uuuhhh i want to rewire an internal card reader I found to a usb cable, but the cable has: black,red,green,blue,orange. :P Is this not possible, or am I missing something?? :/

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi there!

      USB cable has only four wires inside. Please try to see it clearly. I will wait to help you. :)

    • Felisa Daskeo profile image

      Felisa Daskeo 3 years ago from Manila, Philippines

      This is a very informative hub. I don't know anything about computer inner parts because i am not a computer savvy so it is my first time to know about the USB wires. You explained them very well just like a good teacher and I'm sure anyone who will read it will understand what you have explained. Thank you for sharing.

    • Glen 3 years ago

      Hello my usb cable has Red ,Yellow ,Brown and Blue wires could you tell me which one is which...

      Thanks

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hello there, Felisa. Thanks for your nice comment. I see you are a teacher also. Nice hubbing and I believe you write fast because you have 60 hubs in two months time.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi Glen, I am sure that the red wire is the positive wire with the voltage of 5 and to check the negative wire just try the yellow because as seen in the photo diagram, blue wire is the DATA minus and I think that your brown wire resembles the DATA plus wire. Therefore, we have yellow as negative wire to be paired with the red wire.

      Please let me hear from you soon. Let me help you.

    • Felisa Daskeo profile image

      Felisa Daskeo 3 years ago from Manila, Philippines

      Thanks Mark. I do write fast when I find time to write. Keep hubbing because your hubs are very helpful.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Welcome. Your hubs too are helpful for us educators, especially in your field. You shared your expertise and that is noble of you. I may help you someday with some technology hubs.

    • daniel 3 years ago

      hey man how would i cut the wires on my webcam to make a live streaming video i can watch on my tv using the red yellow and white plugs how do i connect them and what would i use for a power source

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hello, thank you for participating my hub. I apologize but the RCA cable has different signal categories with DATA wires of USB cable. But one of my friends bought a converter. You try it.

    • hesh rose 3 years ago

      Hiya I wish to doctor a netbook webcam cable and use as an extra usb at least for power, data also would-be a bonus, my web cam cable has a large black slim black one orange and red and Brown twisted together, no microphone I think, which for female usb doctoring? Many thanks

    • hesh rose 3 years ago

      The large black goes to a ground screw in the netbook motherboard so I assume ground, what to do?

    • johnjoy 3 years ago

      hi mark i have a usb mouse and i cut it the color is red brown/orange green or blue i don't know how to connect it

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi johnjoy,

      I analyze the wires and I am sure that red is the positive wire of 5 volts DC. Now, I assume green as the negative wire or ground wire but no need to worry because you can test the rest of the wires. Just think red is the positive wire. Don't hesitate to come back here for more improvements. Thank you.

    • j charles 3 years ago

      hello mark im a newbie to this hub page thingy but great job,my problem is right i have a male to female usb cord but i wana turn the male end to a 3.5mm jack so i can hook up my flash drive to the female end and the audio jack to my car stereo so i can play music.is this possible?my usb cloros are white ,red ,green and white.thank you

    • Prasadaai9 3 years ago

      hi mark, I have iball C12 face to face webcam and i would like to connect that to dvr via AV pin. It has Black, Red, White, Green, light brown wires. pl help

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      The data signals are not similar with just audio signals alone. Sorry. :) But I would like to help you. We will research for that.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Okay, for this question. I will post on the converted idea. Thank you and be in to my hub.

    • Prasadaai9 3 years ago

      counting on u ....

    • Prasadaai9 3 years ago

      AV pin will be connected to BNC male, option also is to directly connect usb female to bnc male

    • brandin douglas 3 years ago

      i have a webcam and the cord has been cut. a friend said he had it wired up to his smart phone. inside the usb cable what wires do I have to have hooked up to operate the cam? he said he only had like 3 wires hooked up so not sure which ones to hook to what lol, can anybody elaborate on this plz. thanx

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      The best thing is to find the positive wire first, probably, the red wire, if there is a red wire. If not, then find the positive wire based on our set of wires in the photo above.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      @Prasadaai9

      Hi, once again. Upon the research of my team, we recommend buying a converter. This is the best thing since USB cable is data cable and RCA cable (audio cable) is analog signal not data signal.

      If you buy a converter, try the product above in the amazon area. Thanks.

    • Prasadaai9 3 years ago

      hi, i live in india/udaipur, we don't get RCA converter here even online i have tried, but they have no surety about USB to RCA.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Okay, I would suggest to burn your files and play it in the other device. Or you may copy it with external HD.

    • christopher 3 years ago

      is it possible to wire a Iphone USB into a guitar amplifier so that it charges and plays music through the cord?

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      It could be but for the latest models of guitar amplifiers. Common amplifier has analog signals only and your USB cord is not analog but data signals. The best thing to play is to use earphone jack from your Iphone to the the analog RCA cable to the guitar amplifier.

    • christopher 3 years ago

      oh ok thanks

    • Henrikas 3 years ago

      Hello Mark, I accidentaly cut of, my iPod nano cabel, to the edge of usb. I want to solder ir, but I don't know which one of these 4 wires ar First one, secnod, third and fourth (from the right). Wires are green, red, white and blue.

    • tritez. 3 years ago

      hello, can you help me figure out how I can solder my micro usb cable from my smart phone directly to hdmi port or vga port? thank you.

    • Lee Mort 3 years ago

      I am splicing a usb connector wire into a 6 prong mouse connector wire which wires go where? USB = shield: tinfoil & alum wire, red, green, black,and white ... 6 prong circle mouse connect= shield: tinfoil, orange, yellow, black, and bare copper. Please help, on second mouse now. Thanks Lee, Tromeel@yahoo.com

    • Lee Mort 3 years ago

      Help Please, to go along with that query, I would like to transfer my Philips (ph62080)mic microphone to a usb also, I have cut the wires (2), Red power and the ground and have tried to connect the red to red and the ground to every other wire "One at a time" but to no advale this usb is red, green, white, black, alum. ground. also have tried the mic. red to all "....."in reverse, ran out of color options. I have seen mics on usb before. Help please!!! and THANK YOU Lee Tromeel@yahoo.com

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Henrikas,

      Red or orange is the positive wire. I am sure of this. I will base my answer on my photo on top. So I suggest white is the negative wire or ground wire. Green and blue are data wires. Keep in touch with me if anything goes.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      We have a separate hub for this type of connectors.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      For the USB, tinfoil and aluminum wire are not needed for this connection and the red, green, black, white USB wires are in the picture on top. Now, the 6 pins you mean for the PS2 mouse connector has this following code: Red is for number 4, green is for number 1, white is for 5 and black is for 3.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      This is only possible if you have converter or a driver since mic is analog and USB interface is digital.

    • Angie 3 years ago

      Hi there, I have two 3rd party Lightning Charger cables, bought from the same place. One wire (with the USB end) has white, yellow, red, and green. The other wire (with the Lightning charger end) has black, white, yellow, and orange.

      I was wondering if there is a way to combine these wires together to form one (long) Lightning Charger USB cable? If you could contact me via email at GonzalezGelica@gmail.com, that would be very much so appreciated.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      For quick fix, try the coding seen on the photo above/top of this hub. Make a trial and error since USB wire has only 5 volts and not that harmful. Or you can email me for the detailed problem you have with pictures to make sure. my emal: markjohann1012@gmail.com

    • G P Das 3 years ago

      I have Gateway notebook which has in built web cam with a microphone and a LED light to indicate non-active or active. It has seven wires that is connected to the mother board. If 4 wire are for USB, 2 for microphone then what is 7 th wire doing. ( Similarly in another Laptop or notebook I found 5 wires. And here if 4 are for USB what is function of 5 th wire)

    • abdelhalim 3 years ago

      hello sir , I have two cabels that I want to wire them together but the colors are different , like this

      (red,green,black,white) (brown,red,white,yellow)

      so how can I don it ? thank you

    • Abdou Abdelhalim profile image

      Abdou Abdelhalim 3 years ago from Algiers, Algeria

      please answer me it's urgent !!! how to wire these cabels (usb controller)

      (red,green,black,white) (brown,red,white,yellow)

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Red is always for red wire. Now, the important thing is to find the ground wire since red wire is the positive with 5 volts pressure through it. On the first set, try to select the ground wire which is the black wire and I suggest you choose the white wire for the second set. If it works, then just have a trial and error with the yellow and brown wire. If it won't work, then choose the brown wire for the black wire. I am sure yellow is not the ground wire. Please keep in touch for more questions. Thanks for dropping by.

      Mark

    • Uffe 3 years ago

      I would like to have a schematic so I can see the pin number for each wire, can´t find it anywhere.

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      I am going to post soon on the USB schematic but as of the moment please refer on our photos shown above. Thank you.

    • carolann 3 years ago

      Hi can anyone help. I purchased a smart TV and my Wii will not hook up to it. The Wii has 3 color coded wires, white, red and yellow however the tv has only two entries with a smaller imput like a headphone. I purchased a wire from a store and they told me that if I buy a coupling to join my wii wires to the new one I purchased it would work. The new one I purchases has three color coded wires that are Red Green and blue and at the other end is one wire that looks just like a headphone wire and it did fit into the tv however I am not sure how to join the new ones to the WII because the colors are different. I did manage to get it up on the tv screen however the picture is really bad and coming and going. Can anyone help or have any advise on how I can get this to work. The TV is a LG 55 inch Smart TV and the Wii is an older model thanks

    • Mark Johann profile image
      Author

      Mark Johann 3 years ago from Italy

      Hi there! I am preparing my new hub for this. Stay put and I will give you details soon. Just remember that yellow RCA wire/cord is for video and red/yellow wires is for left/right speakers.

    • man 2 years ago

      i don't have a red or a black wire

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi man,

      Okay, so what are your wires? Please indicate here.

    • Jim 2 years ago

      Hi Mark,

      Maybe you can help me out with these connections.

      I have cable A :

      BARE - Microphone Ground

      WHITE - Microphone Positive

      BLACK - Speaker Ground (or Headphone Right)

      BLUE - Speaker Positive (or Headphone Left)

      And cable B for microphone and headphones USB 2.0:

      WHITE

      RED

      BLACK

      GREEN

      I tried few options but with no results. Can you please help me out!

      Thanks,

      Jim

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi there Jim,

      Sorry it seems that they are not compatible since mic is analog and USB is digital. You need a converter. Thank you.

    • jiim 2 years ago

      any suggestion what type of converter i need?

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Yes. My friend, I suggest you browse some of my hubs/articles here in repairing PC and Windows program. You can find some cheap adapter or converter for that. If anything goes, please don't hesitate to contact me. Thanks.

    • jiim 2 years ago

      just to be sure - if not to hard, can you guide me with the link, so i know for sure what i need. You have so many hubs/articles its hard to find it!

      Thank YOU

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Okay, I will help you find it. This is the title the hub: How to repair your computer if Windows is not booting up?

      Keep in touch.

    • Greg 2 years ago

      Hi Mark, I have a broken Ipad Mini Lightning cable wire, I've checked it inside and I could see a black, white, green and red wires. can you help me on how to connect it to the main board of the plug please?? thanks

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi Greg, try to observe the labels on the photo above. Thanks. Keep in touch for more concerns.

    • Joe 2 years ago

      I have a fun one! :)

      I have an apple lightning to USB cable. The usb end is bad. I want to try to splice the cable with a USB cable I have sitting around.

      The lightning cable has pink, white, green and then 3 pieces of unshielded cable.

      The USB cable I want to use has the traditional black, white, red, green.

      So, I'm wondering what to do with the black wire in the USB repair cable?

      Are the 3 unshielded wires in the lightning cable a ground and could I just put those together and connect to the black wire in my USB repair cable?

    • Simon 2 years ago

      Hi Mark,

      I have found that in the case of the wires Black, Red, Green, White, the coding is thus:

      Black = ground

      Red = +Ve

      Green = +data

      White = -data

      where the data wires are the opposite way around to how they are in your pictures.

      Not sure if this is just in some cases or not - perhaps further research will prove to be useful.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      I am sure that black is the ground wire. Kindly elaborate your questions further. Thanks.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      I know that data wires transmit in and out or vice versa depending on the operation of device or program. Thank you.

    • Joe 2 years ago

      I spliced the red, green and white wires in the USB cable to the red, green and white wires in the lightning cable.

      So I have the black wire left in my USB cable

      But...

      The lightning cable doesn't have a black wire. But there are 3 thin unshielded wires. Are they ground wires? Can I put them together and splice them to the black wire in the USB cable?

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Lightning cable has 8 pins. I don't think it would fit with our USB cable. Apple company won't allow us to buy another cable other than theirs nor could we repair if something happens with the chip embedded at the tip of your lightning cable. I have one of those and still working. If I get to repair mine and works fine, I let you know. Thanks for dropping by.

    • Lav Dev 2 years ago

      hi mark ,

      i cut my mouse wire and i got the colors as blue white orange and green,

      i want to connect the cable to my mobiles phones charger wire which have two wires inside one white and other black ,to make it long and charge through the usb

      i have iphones usb dock to insert the usb cable .. how to connect the 4 wires to the 2 wires of charger to charge my phones with put any risk ???

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi Lav Dev,

      I am glad to tell that is just easy. just take the orange and white wire from your mouse USB wire then connect the orange to the black as positive wire and white wire to the same white wire of your charger. Also, you can see some signs or symbol on the wire itself.

      Be fine to contact me if anything happens. Thanks for dropping by.

      Here to help you guys always,

      mark

    • shahroz 2 years ago

      My usb wire of optical mouse a4 tech has 5 wires of red ,blue,green,coper and redcopper mixed color how can join this on replacing P2P wire of my old C4 tech mouse plz anyone answer me to my id engr_shahroz@hotmail.com

    • Dheeraj Singh 2 years ago

      Hi Mark Johann my self dheeraj i have 208c webcam in three colours wires 1st red, 2nd yellow and 3rd is white. tell me how i connect to pc plz tell me cheap and best idea.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi Dheeraj,

      I am glad you came for help and this is the answer. Sorry, it won't work because these three wires have analog signals and our USB wires have digital signals. As you can see in our photo above, we have four wires. It is not compatible. You need a converter though. Try reading my hub about a converter from analog to USB.

      P.S. Okay, I will help you find the converter on my hub. This is the title of the hub: How to repair your computer if Windows is not booting up?

      Keep in touch.

      Mark

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Just base your wire colors on our pictorial diagram on top of this hub. You can also connect the positive wire which is the red wire, then assume that the ground wire is the green wire. If nothing happens, try the other wires. Don't worry it has only 5 volts DC.

      Mark

    • Peter Mac 2 years ago

      Hi Mark,

      Can't seem to find what I am looking for. I have a 12v motor with two red one black wires. when I power the wires one red at a time I get the desired effect of the motor turning either direction. I would like to wire this via USB so I can control it from my computer. Its for a homemade auto focuser for my telescope. Any suggestions would be really helpful.

      Thanks

    • Cheree 2 years ago

      Hi, I have a broken parrot (car Bluetooth) the connection for ipod is broke wires are blue red grey and purple with one unshielded how do I wire on a new end with black green white and red? Or is this not possible :(

    • renante 2 years ago

      hi!, i have a problem with my mouse, when i connect it it says " the connection not recognized. i change the 5 wire usb connector but, i don't know the color coding of green, white-green, blue, white-blue and white.

      can help me on how to connect the 5 wire usb connector?

      thank you.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      In my experience, I cannot say it is the mouse wire, the green, white-green, blue, white-blue and white. It has something to do with the mouse driver on your motherboard. The best thing to do is to uninstall and reinstall the motherboard drivers. Thank you. Keep in touch for more inquiry.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hello Peter Mac,

      Our USB voltage in all CPU on this planet has only 5 volts DC so you need 12 Volts DC. It is true you can it spin but this spin is not sufficient. It is only lower to the true power of your 12 Volts motor. Now, I want to suggest if you really like to use your CPU voltage to support your 12V motor, open your CPU casing then locate the power supplies wires. This four wires usually in a set of four wires, the two black wires, yellow wire and the red wire. The negative is the black wires of course, the red is the 5 volts wire and the one you are looking for is the 12 volts wires in yellow wire color.

      Remove the insulator by skinning the wires and tap the two wires on your motor. Don't forget to reinsulate the wires with electrical tape.

      Thank you.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi Cheree,

      Red is the positive wire there with 5 volts DC and I suggest testing the grey wire for the negative wire. I am not so sure but just try it. It is not that harmful to your device because it has only 5 volts. The rest of the wires are data wires. Thank you.

    • Madu 2 years ago

      Hi Mark,

      These days most of electronic device chargers are connected with USB cables. Would you please explain the wiring on such a power adaptor? For example Samsung S5 phone charger which connect to phone via mini usb port.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Hi Madu,

      Okay, it only uses two wires as far as my knowledge is concern. That, if you only ask for its charging system. If you ask for data transfer, it uses all of its terminal to function.

      Please specify your question if I have not answered it well. Thank you.

    • jamie 2 years ago

      How can i Were an Apple charger end to an aux Plus so it wi will work on my tv

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Does it use a USB cord wire?

    • Cameron 2 years ago

      My USB has yellow red green and white wires. Can't find any colour codes for this. Would appreciate some help. Thanks☺

    • Shrekangry 2 years ago

      Pleaae help me i want to connect the wires of my usb to the adapter which have 5v output the problem is the adapter have only one wire black but the usb wire have 4 wires black white red and blue can i attach all the wires together i want to recharge my galaxy note at 5 v so plz help me

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Red is the positive wire which is to be paired with the negative wire and I believe it is the black wire. Some USB set of wires have white wires in negative but just try first the black then if not white. The rest will be the data wires. Keep in touch for more inquiry.

    • john 2 years ago

      If I'm wanting to simply charge my phone. As long as I have 5v and ground will it charge or do I have to connect data wires. Or is that just to simply transfer data.

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      Data wires are not important in charging. Thank you.

    • Narek 2 years ago

      I just needed this to fix my wireless mouse wire that the puppy chewed through. I figured since I only really use it for charging I don't need all wires to be connected so I just spliced the black and red together and it works! Thanks.

    • SIDDHANT 2 years ago

      HEY MARK

      I have a usb keyboard it shows (v,g,d+,d-)pls tell me how to connect the 4 wires i.e blue ,white, orange ,and green to them.

    • gavin mitchell 2 years ago

      hey usb has the color white, grey, light pink and light green what are the positive negative and the + an - wire

    • Mark Johann profile image
      Author

      Mark Johann 2 years ago from Italy

      light pink is the positive and light green is the negative wire

    • SAURABH SRIVASTAVA 12 months ago

      intex keyboard,red,green,yellow and white,which wire will go to which slder joint?thanks...

    • Angad 12 months ago

      Hii Sir,

      I am trying to make Power bank with Data Code. So Pls help me for making it. If your give me answer on my Email Address that is good for me. My email address is teamsamram@gmail.com

    • Dani 12 months ago

      Hello, I am making a solar panel phone charger and I have 2 wires (the red + and black -) wires that need to be attached to my phone charger that I have cut. However, I noticed that there are 4 wires. I just attached the red to the red and black to the black because I assumed that those are the ones that help carry the electricity. What do I with the green and white data wires. Do data wire carry electricity that help charge things? By not connecting them to anything is the phone not receiving all of the electricity? Also I don'r really understand what ground wire means; does it just mean the negative end of the wire that carries electricity? Thank you

    • Kevin lam 10 months ago

      Hi, i have a cable that has a red, yellow, grey and a wire that is transparent , what is the arrengment?

    • Tim 9 months ago

      Can anyone help guide me to wiring without the use of meters and such?

      I have a ethernet chord that has ethernet and usb connection only on one end. I need the usb end to work, a mouse chewed the wires beyond repair.So i'm trying to use an old usb end on it, but the old one i'm trying to wire is just plain colored black, green, red and white. but the usb part on the ethernet chord is blue, striped blue & white, brown, striped brown & white. any help would be greatly appreciated. And "please", email only help. i'm using a library pc. my email is born2big@yahoo.com

    • lauralee45 8 months ago

      how would i go about splicing two male ends of usb to a female to run two computers off usb wifi?

    • Vikram Sagar 8 months ago

      what is D,C,V,G in optical mouse pcb....????

      i have broken all 4 wires (white,orange,blue,green) now i m having problem with

      colour code....kindly help...

    • takudzwa 7 months ago

      my mouse have red ,orange, green and white

    • Yohn 7 months ago

      Hi....i want to make a lamp using my usb but not sure which wires to connect..my colour codes are red,black,white and green

    • Chiamaka 6 months ago

      Plss mark I want to connect 2 USB CODES. android charger. One of it has green red black nd white wires. D oda has yellow, thick Grey, light grey nd white

    • Myoshi 5 months ago

      I would like to know how to connect my phone to my tv I've been trying to invent my own cord so I cut my end off my HDMI and exposed. The color cords then I cut the end off of my USB cord and tried to connect them together I'm trying to watch tv using my phone data I don't have wifi. But do I need a power cord also please help me I'm always trying to do something hook up a gadget. But I want to do it right

    • Maurice Patterson 5 months ago

      I have a phone charger cord that I,m trying to connect ,that broke, but one side of the cord,have a red and black wire on one side and the other side have a red, white, black, green and white on the other side that I,m trying to connect them together can you help me ? Please

    • mayo 5 months ago

      hello mate, i have a white usb cable with four cables inside, the colors are orange, white, brown and green i would like to connect them to a creative speakers model SB5250, I would like to know which is the positive, ground and data, how bout any ideas to hook them up via USB to power them up and to avoid that large power connection heavy cord

    • omf 5 months ago

      Hi Mark i ahve a very simple problem i hope. I have a modern speaker which you can sit the ipod on top but it also as rca jack if i want to connect a device to it: the device iwould like to connect to it my mac book but rca jack is not working. is there a way that i can splice a usb cord connect it to my computer and then splice that into the port for the ipod or even splice it into an rca jack

    • jyhnas 5 months ago

      worked

    • Ian bumoskey 4 months ago

      I have an hp keyboard model 9009. The end was torn or chewed off. I had a printer cord that was bad and I seen the keyboard had yellow and not black. Any tips

    • devin 4 months ago

      I have a I pod nano I'm trying to splice the wires and wire it back up using another USB but there are 3 wires in the charger to my I pod and only 2 to my USB witch ones are hot out of my I pod

    • Mikeshaver92 4 months ago

      I have a flat micro USB phone charger that has 4 wires 1 white and 3 clear I want to splice a normal charger on it with a red and black wire... how do I do that

    • RPierce 2 months ago

      I'm trying to hook up a security camera going usb, I would like to know what colors I can use to get video from my camera to my pc. The only wires I have from my camera are typical shield ground and one positive the wires I have on the usb are red, green, black and white along with the shielded

    • Mark Johann profile image
      Author

      Mark Johann 2 months ago from Italy

      Hello there! Data wires are used to view videos from usb devices. Of course, you need power wires for that.

    • Michelle Weaver 2 months ago

      I bought a charger that is like 4ft. long for my cell phone. It has on the outer side's yellow & pink wires, the center has Lt blue (maybe Lt.green) and white.

      What is positive and negative?

    • Mysteryneophyte@gmail.com 2 months ago

      hi mark,

      I have a usb cable with red, green, white and cloth like white wire. It also has a unshielded wire. I am wondering if I can make this cable a charge only cable? I want to get ride of the data cables, which are they?? Thanks, im lost here. Its for my samsung note 10.1...trying to see if I can get rid of the red x while charging so it doesn't take 24 hours.

    • Mark Johann profile image
      Author

      Mark Johann 2 months ago from Italy

      I always believe green is the negative. Sometimes, it is black. Then pink wire is the positive which may sometimes be red.

    • Mark Johann profile image
      Author

      Mark Johann 2 months ago from Italy

      Cloth wire is the support lace only and not a conductor. Please check your wires. I must be four wires. Red and Green are power wires. Red for positive and green for negative.

    • Argeneus 8 weeks ago

      My "other" proplem

      Is that after 2-3 months of modered use, my caple starts charging slower and slower... soon yes i end up with

      (Not detected - Detected - Not detected -Detected and so on) and always ends with Not detected

      I think the proplem is just whering down the copper by use.

      I think it's cutting corners on prize by manifactural proses..

      Maybe they need a better metal or metal mix or maybe use just a little more copper in the tupes... they know chargers and most Usb with mini usb end will move around alot more now day's

      *Hope u understood this, dont have time 4 spellcheck now

      cheers from Iceland

    • Nebiyu 6 weeks ago

      hi mark

      my printe usb cable have 5 wires and alumonium shield inside

      yelo,grey,green ,black and white

      please help

    • Seth Tyler 5 weeks ago

      Hey I have a little problem. My Dog chewed my iPhone charger cord and I need to replace it with an old wire they were both iPhone. The one that my dog chewed was green red and white and the other charger is greeen red and black . Do I splice the white and black together ? Thank you!

    • louisianna 5 weeks ago

      i had a white usb cable and when i cut it open i have a pink wire and a white wire.

      which is which??

    • mohd syazwan sahar 2 weeks ago

      hello, im want a ask.how i want to connect if their is 2 wire as red and black.. and i want connect with usb ports. which is black , red, green and white color. how i want to consider this to correctly connect it. hope for ur reply. thanks!

    • Glenn 2 weeks ago

      I have a USB type C cable... Trying to do a power project. The four wires I have are loght Grey, Pastel Pink, Pastel Green, and White. Can you help me determine which two are the 5v Positive and the Negative colors? Plz and Thank You... :)

    • Brandon Walker 2 weeks ago

      Hello mark, I'm looking for a temporary solution to my phone charging problem until i get it fixed. It's a Galaxy Note 3 and it seems that one of the pins inside the charging port has been bent/pushed back i think. I can see it near the back of the port when I look. Anyways, it currently charges if i use a wall charger and even charges when plugged into my PC as well as transfers files, but it charges significantly slower than it use to and it will not recognize most external power banks. They charge other phones but nothing happens when plugged into mine and the power banks eventually just turn off because they arent being used.

      In short, I'm wondering if I can modify one of my cables by removing a wire or rerouting the wire in order to either fix the external power bank issue or to increase the speed my phone charges back to it's normal speed. 2 questions in 1 but I've searched for days and asked in other places. this hub seems very informed and even if It my problem cannot be fixed, any insight would help alot, and I've already bookmarked this to read other articles. Thanks in advance

      (side note - some power banks work on the phone and some do not, even ones from the same brand.)

    • Walt 9 days ago

      Hello Mark,

      My usb only has red, white, and green. Could you please tell me what the positive and negative are? I am trying to turn my childs swing from battery operated to wall charge.

    • Walt 9 days ago

      Hello Mark,

      My usb only has red, white, and green. Could you please tell me what the positive and negative are? I am trying to turn my childs swing from battery operated to wall charge.

    • Ycar 3 days ago

      Hi is it applicable to charger... my charger has 2ampere the wires are red and black only, but the charging pin is broken so i decided to change to other pin but the pin i was have are 4 color which is red black green and white ... how can i connect it

    Click to Rate This Article