I’m trying to replace my female mini usb on my OG camera. Connector is damage so I’m just going to solder it to the 2 wire USB cable. Which one is 5v and which one is ground? Other 2 wires leave them disconnect?
I’m not an electrician. Maybe someone else with more experience will chime in. I entered the picture and your post (with some extra clarifications) into Microsoft Copilot and into Bard to see if they agree (better to ask more than 1 to reduce hallucinations). They both agree that you can ignore the White and Brown Wire since those are data wires. They then give opposite responses for the Grey and Clear Wire.
A search online says that usually the ground is black and the 5V is red. So it’s hard to guess in your case. Maybe the Brown wire is really red? Maybe the grey wire is really black?
A search online looks like they say most USB Wires have red, black, white and green (red=positive 5V, black = negative/ground; white=positivedata; green=negative data)
Google BARD:
Microsoft Copilot (powered by OpenAI):
Sorry, that wasn’t very helpful, but it looks like your wiring is not standard…
Do you still have the old female Micro USB plug that came off the wires? You should be able to match the colors inside the plug to the pin numbers. Those colors are not standard.
Reverse engineering is typically the way to go as wire color codes are not always consistent or standard. Hopefully there is enough wire left on the female connector to see what color goes to what pin? If so just mirror the same on the replacement. Since it is a flat cable, if you can figure out which way the end was oriented vs. the cable, should be relatively easy to figure it out that way too as they likely went in order from left to right.
Rather than attempting to solder directly to the new female connector (which you’ll need a very fine tip and steady hand for, plus some way of sealing it up after) probably would be better to buy a micro USB extension cable off amazon, cut the female end off with a few inches of wire, splice it and then tape or heat shrink the connection. Obviously you need to take care to ensure the 4 conductors don’t short out, so put tiny heat shrink on each one before splicing/soldering them so you can seal each one up after, then wrap or heat shrink the whole wire after also.
Though I suppose you can probably find a female end with a snap on cover for when you’re done soldering. Likely will need to spend some time sealing it up after, probably pack it full of dielectric grease. I think in this case splicing is the way to go.