user82957: Having DuPont cables like on the picture...

... and the RFID RC522 reader with colored wires as found in one of the tutorials.

I know that copper is the same inside of the wires. Anyway, is there any standard or de-facto standard of assigning colors to the meaning of the pins? Black for ground and red for +voltage are known from elsewhere. But what about all the other pins? Here is the detail view for better readability:


user4143: No, there is no standard. However:

Red is often +5V
Black is often GND
I often assign colours numerically according to the resistor colour code:

0 - Black
1 - Brown
2 - Red
3 - Orange
4 - Yellow
5 - Green
6 - Blue
7 - Purple
8 - Grey
9 - White



You may have noticed that that's the same order they appear in the cable too, which is helpful. It's handy when working with things like 8 bit data buses, since you can then easily identify which wire is which.
In some disciplines there are standards, like for audio red is right and left is white (that's the little rhyme I use to remember), and of course there's regulations defining colours for mains cables, but for this kind of thing just use whatever makes sense to you.

82957: <p>Having DuPont cables like on the picture...</p>
<p><a href="https://i.stack.imgur.com/jfX27.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jfX27.jpg" alt="DuPont cable coloured -- for what I have in hands." /></a></p>
<p>... and the RFID RC522 reader with colored wires as found in one of the tutorials.</p>
<p><a href="https://i.stack.imgur.com/DdU0H.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DdU0H.jpg" alt="Colors on pins" /></a></p>
<p>I know that copper is the same inside of the wires. Anyway, <strong>is there any standard or de-facto standard of assigning colors to the meaning of the pins?</strong> Black for ground and red for +voltage are known from elsewhere. But what about all the other pins? Here is the detail view for better readability:</p>
<p><a href="https://i.stack.imgur.com/ymv6w.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ymv6w.jpg" alt="Colors and pins." /></a></p>
 4143: <p>No, there is no standard. However:</p>
<ul>
<li>Red is often +5V</li>
<li>Black is often GND</li>
<li>I often assign colours numerically according to the resistor colour code:
<ul>
<li>0 - Black</li>
<li>1 - Brown</li>
<li>2 - Red</li>
<li>3 - Orange</li>
<li>4 - Yellow</li>
<li>5 - Green</li>
<li>6 - Blue</li>
<li>7 - Purple</li>
<li>8 - Grey</li>
<li>9 - White</li>
</ul>
</li>
</ul>
<p>You may have noticed that that's the same order they appear in the cable too, which is helpful. It's handy when working with things like 8 bit data buses, since you can then easily identify which wire is which.</p>
<p>In some disciplines there are standards, like for audio <em><strong>r</strong>ed is <strong>r</strong>ight and left is white</em> (that's the little rhyme I use to remember), and of course there's regulations defining colours for mains cables, but for this kind of thing just use whatever makes sense to you.</p>
