Why Do Resistors Have A Color Code?

One of the first things you learn in electronics is how to identify a resistor’s value. Through-hole resistors have color codes, and that’s generally where beginners begin. But why are they marked like this? Like red stop signs and yellow lines down the middle of the road, it just seems like it has always been that way when, in fact, it hasn’t.

Before the 1920s, components were marked any old way the manufacturer felt like marking them. Then in 1924, 50 radio manufacturers in Chicago formed a trade group. The idea was to share patents among the members. Almost immediately the name changed from “Associated Radio Manufacturers” to the “Radio Manufacturer’s Association” or RMA.  There would be several more name changes over the years until finally, it became the EIA or the Electronic Industries Alliance. The EIA doesn’t actually exist anymore. It exploded into several specific divisions, but that’s another story.

This is the tale of how color bands made their way onto every through-hole resistor from every manufacturer in the world.

Continue reading “Why Do Resistors Have A Color Code?”

Alexa, Sudo Read My Resistor! A Challenge For Hackers

Nothing makes us feel more like we’re on Star Trek then saying “Computer, turn on desk light,” and watching the light turn on. Of course, normal people would have left the wake up word as “Alexa,” but we like “Computer” even if it does make it hard to watch Star Trek episodes without the home automation going crazy.

There’s a lot of hype right now about how voice recognition and artificial intelligence (AI) are transforming everything. We’ve even seen a few high-profile types warning that AI is going to come alive and put us in the matrix or something. That gets a lot of press, but we’re not sure we are even close to that, yet. Alexa and Google’s similar offerings are cool, there’s no doubt about it. The speech recognition is pretty good, although far from perfect. But the AI is really far off still.

Today’s devices utilize two rather rudimentary parts to provide an interaction with users. The first is how the devices pattern match language; it isn’t all that sophisticated. The other is the trivial nature of many of the apps, or — as Alexa calls them — skills. There are some good ones to be sure, but for every one useful application of the technology, there’s a dozen that are just text-to-speech of an RSS feed. Looking through the skills available we were amused at how many different offerings convert resistor color codes back and forth to values.

There was a time when building electronics meant learning the resistor color code. With today’s emphasis on surface mount components, though, it is less useful than it used to be. Still, like flossing, you really ought to do it. However, if you have an Amazon Alexa, it can learn the color code for you thanks to [Dennis Mantz].

Don’t have an Alexa? You can still try it in your browser, as we will show you shortly. There are at least eight similar skills out there like this one from [Steve Jernigan] or [Andrew Bergstrom’s] Resistor Reader.

Continue reading “Alexa, Sudo Read My Resistor! A Challenge For Hackers”

Hackaday Links: January 3, 2016

Cx5 is a strange material that’s a favorite of model makers and prop replicators. It’s kind of like a wax, kind of like a clay, and a little bit like a plastic. Now it’s a 3D printer filament. It looks very interesting for sculpted and highly detailed models, something the 3D printing scene hasn’t had yet.

So you want a CNC machine, right? Tormach makes a good one, and here’s what it takes to put a PCNC440 in your garage. This is an incredible amount of work and a great excuse to buy an engine hoist.

[Zemnmez] could find dozens of apps and webpages that would calculate resistor color codes for him automatically. What he couldn’t find is one that would do it in reverse – i.e. type in a resistor value and return the correct color code. He made this.

[aggaz] needed a way to connect multiple MIDI devices to his computer. The MIDI spec provides a neat piece of hardware for just this occasion – the MIDI thru box. The only thing you need to build a single MIDI thru box is an opto-isolator and a buffer. It’s easy enough to build, although the DIN5 jacks used for MIDI devices are pretty expensive nowadays. (FWIW- We get an invalid certificate error when loading this page but you should still be able to load it.)

AliExpress always has some interesting stuff on it, and [Ethan] found something very cool. They’re A8 CPUs found in the latest iPhone. Are they real? Who knows. I bought one, and you’re going to get pictures in another links post in a month or so.

The Game Boy Micro was released by Nintendo in 2005 and quickly became one of the coolest and most desired handheld consoles on the planet. You need only look at the eBay listings for the Micro as evidence of its desirability. [ModPurist] took an old DS Lite and converted it into a Game Boy Micro – same idea, larger package.

Reading Resistors With OpenCV

Here’s a tip from a wizened engineer I’ve heard several times. If you’re poking around a circuit that has failed, look at the resistor color codes. Sometimes, if a resistor overheats, the color code bands will change color – orange to brown, blue to black, and so forth. If you know your preferred numbers for resistors, you might find a resistor with a value that isn’t made. This is where the circuit was overheating, and you’re probably very close to discovering the problem.

The problem with this technique is that you have to look at and decode all the resistors. If automation and computer vision is more your thing, [Parth] made an Android app that will automatically tell you the value of a resistor by pointing a camera at it.

The code uses OpenCV to scan a small line of pixels in the middle of the screen. Colors are extracted from this, and the value of the resistor is displayed on the screen. It’s perfect for scanning through a few hundred through hole resistors, if you don’t want to learn the politically correct mnemonic they’re teaching these days.

Video below, and the app is available for free on the Google Play store.

Continue reading “Reading Resistors With OpenCV”

Hackaday Space: Final Transmission Minecraft Puzzles Explained

This is the last part in our round up of the ARG that we ran throughout April. Just in case you’ve had your head buried in a hole this last week, it was a month-long series of puzzles that lead up to the announcement of the frankly awesome Hackaday Prize. During the week we’ve covered Transmissions 1, 2 and 3 detailing how we put the puzzles together and the things that went wrong. For the final stage we wanted something a bit different. Throughout the ARG we had been inspired by the book Ready Player One, so in this stage we wanted a high score table that people could compete over.

Since we’d managed to get reasonably far ahead of ourselves during Transmission 3 we had just over a week to plan this round. We pitched some ideas around the office for video games we could make with high score tables. None of these really stuck and we soon realized we didn’t have the resources to get the graphic design work done for most games. Someone suggested that we try making a MUD themed around a space port with rescue for Major Tom being the last stage. This seemed like a great idea at first and I began work on it using the RanvierMUD framework. It soon became clear however that writing all the text for a full featured MUD is actually a massive endeavor and I frankly am not that great of a writer.

Learn the secrets and watch a video tour of the Minecraft world below.

Continue reading “Hackaday Space: Final Transmission Minecraft Puzzles Explained”

ReSCan — Automated Resistor Identification!

Need a quick and easy way to sort through a few hundred random resistors? You could do them one at a time by reading the color codes yourself… or you could get a machine to do it for you!

When [Robert] was faced with a pile of unsorted resistors he quickly decided he did not have the patience to sort them manually. So, he started by writing an Android app using OpenCV to detect and identify resistor color codes. The problem is, most phones have trouble focusing at short distances — and since resistors are so small, holding the phone farther back results in color rings only being a few pixels wide — not the greatest for image recognition!

So, he started again on his computer, using a cheap LED-lit webcam instead. He wrote the app in java so he could re-use parts of the code from the Android app. It seems to work pretty well — check it out in the following video! This would be perfect to pair up with your illuminated storage bin hack.

Continue reading “ReSCan — Automated Resistor Identification!”

Hackaday’s Resistor Code Reference Card

Check out the resistor color code reference cards I just whipped up. I was inspired by the PCB versions that Octopart has been crowdfunding this week. Those didn’t have the information I would normally be looking up, so I decided to whip up a few of my own and put them out there for inspiration or for you to print yourselves.

Continue reading “Hackaday’s Resistor Code Reference Card”