Color Code of Resistor
Posted: Tue Jan 18, 2022 4:27 am
Hey, guys!
I created a resistor program that calculates resistance from colors, but I'm not sure how to convert resistance to color. Can you assist me with putting this together?
For example, if I enter 100 ohms and a 5% tolerance, the hues brown, black, brown, and gold appear.
I’ve read some articles like https://www.apogeeweb.net/electron/a-guide-to-color-code-of-resistor.html, but I still have no idea.
Thank you so much for your assistance!
I created a resistor program that calculates resistance from colors, but I'm not sure how to convert resistance to color. Can you assist me with putting this together?
For example, if I enter 100 ohms and a 5% tolerance, the hues brown, black, brown, and gold appear.
I’ve read some articles like https://www.apogeeweb.net/electron/a-guide-to-color-code-of-resistor.html, but I still have no idea.
Thank you so much for your assistance!