Electronic – Standard wire colors

wire

I am fairly new to "electrical" engineering as a hobby/ past time. I have always loved electricity and have made simple circuits since I was a little baby.

I am now working on one of my first arduino projects and I started thinking about what color wires I should use for the different I/O and serial communication.

I know it doesn't matter, but I am curious: are there standard wire colors for things such as Tx and Rx, Digital IO, analogue IO?

It is very common that Red is "Positive" and Black is "Negative." I have also noticed that USB data wires are usually green and white. Are there other standards that are commonly used for other applications? Can someone give me a list please?

Best Answer

Obligatory link to the XKCD comic about standards:

Fortunately, the charging one has been solved now that we've all standardized on mini-USB. Or is it micro-USB? Shit.

So yeah, there are standards. There are so many of them that it's effectively the same as having no standard, as every possible wire arrangement likely has a standard that describes it.