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?”

Model S Motor And Volt Battery Go Together Like Peanut Butter And Jelly

A common project category on this site is “put a Raspberry Pi in it”. For people who wrench on their cars, a similarly popular project is the “LS Swap”. Over the past few years, the world of electronics and automotive hacking started to converge in the form of electric car conversions, and [Jalopnik] proclaims the electric counterpart to “LS Swap” is to put a Telsa Model S motor and a Chevy Volt battery into a project car.

The General Motors LS engine lineup is popular with petro heads for basically the same reasons Raspberry Pi are popular with the digital minded. They are both compact, very powerful for the money, have a large body of existing projects to learn from, and an equally large ecosystem of accessories to help turn ideas into reality. So if someone desired more power than is practical from a car’s original engine, the obvious next step is to swap it out for an LS.

Things may not be quite as obvious in the electric world, but that’s changing. Tesla Model S and Chevrolet Volt have been produced in volume long enough for components to show up at salvage yards. And while not up to the levels of LS swaps or Pi mods, there’s a decent sized body of knowledge for powerful garage-built electric cars thanks to pioneers like [Jim Belosic] and a budding industry catering to those who want to build their own. While the decision to use Tesla’s powerful motor is fairly obvious, the choice of Volt battery may be surprising. It’s a matter of using the right tool for the job: most of these projects are not concerned about long range offered by Tesla’s battery. A Volt battery pack costs less while still delivering enough peak power, and as it was originally developed to fit into an existing chassis, its smaller size also benefits garage tinkerers fitting it into project cars.

While Pi SBCs and LS engines are likely to dominate their respective fields for the foreseeable future, the quickly growing and evolving world of electric vehicles means this winning combo of today are likely to be replaced by some other combination in the future. But even though the parts may change, the spirit of hacking will not.

[Photo: by Jim Belosic of motor used in his Teslonda project]

Additive, Multi-Voice Synth Preserves Sounds, Too

For his final project in [Bruce Land]’s microcontroller design class, [Mark] set out to make a decently-sized synth that sounds good. We think you’ll agree that he succeeded in spades. Don’t let those tiny buttons fool you, because it doesn’t sound like a toy.

Why does it sound so good? One of the reasons is that the instrument samples are made using additive synthesis, which essentially stacks harmonic overtones on top the fundamental frequency of each note. This allows synthesizers to better mimic the timbre of natural, acoustic sounds. For each note [Mark] plays, you’re hearing a blend of four frequencies constructed from lookup tables. These frequencies are shaped by an envelope function that improves the sound even further.

Between the sound and the features, this is quite an impressive synth. It can play polyphonically in piano, organ, or plucked string mode through a range of octaves. A PIC32 runs the synthesizer itself, and a pair of helper PIC32s can be used to record songs to be played over. So [Mark] could record point and counterpoint separately and play them back together, or use the helper PICs to fine-tune his three-part harmony. We’ve got this thing plugged in and waiting for you after the break.

If PICs aren’t what you normally choose, here’s an FPGA synth.

Continue reading “Additive, Multi-Voice Synth Preserves Sounds, Too”

A DNA-Based Computer Calculates Square Roots Up To 900

While DNA-based computing may not be taking over silicon quite so soon, there is progress in the works. In a paper published by Small, researchers from the University of Rochester demonstrate a molecular computing system capable of calculating square roots of integers up to 900. The computer is built from synthetic biochemical logic gates using hybridization, a process where two strands of DNA join to form double-stranded DNA, and strand displacement reactions.

DNA-based circuits have already been shown to implement complex logic functions, but most existing circuits prior to the recent paper were unable to calculate square root operations. This required 4-bit binary numbers – the new prototype implements a 10-bit square root logic circuit, operating up to the decimal integer 900.

The computer uses 32 strands of DNA for storing and processing information. The process uses three modules, starting off with encoding a number on the DNA. Each combination is attached to a florescent marker, which changes signal during hybridization in the second module. The process for calculating the square root controls the signals, with the results deducted from the final color according to a threshold set in the third module.

We’re beginning to see the end of Moore’s Law approaching, with companies like Intel and AMD struggling to shrink transistors 10 nm wide. Nevertheless, with DNA molecules still about 10 time smaller than the best transistors today and DNA computing systems continuing to gain in sophistication, biochemical circuits could potentially be holding solutions to increasing the speed of computing beyond silicon computing.

Take Security Up A Notch By Adding LEDs

All computers are vulnerable to attacks by viruses or black hats, but there are lots of steps that can be taken to reduce risk. At the extreme end of the spectrum is having an “air-gapped” computer that doesn’t connect to a network at all, but this isn’t a guarantee that it won’t get attacked. Even transferring files to the computer with a USB drive can be risky under certain circumstances, but thanks to some LED lights that [Robert Fisk] has on his drive, this attack vector can at least be monitored.

Using a USB drive with a single LED that illuminates during a read OR write operation is fairly common, but since it’s possible to transfer malware unknowingly via USB drives, one that has a separate LED specifically for writing operations will help alert a user to any write operations that might be trying to fly under the radar. A recent article by [Bruce Schneier] pointed out this flaw in USB drives, and [Robert] was up to the challenge. His build returns more control to the user by showing them when their drive is accessed and in what way, which can also be used to discover unique quirks of one’s chosen operating system.

[Robert] is pretty familiar with USB drives and their ups and downs as well. A few years ago he built a USB firewall that was able to decrease the likelihood of BadUSB-type attacks. Be careful going down the rabbit hole of device security, though, or you will start seeing potential attacks hidden almost everywhere.

Hackaday Links Column Banner

Hackaday Links: January 12, 2020

Nothing ruffles feathers more reliably than a software company announcing changes to its licensing terms. And so it goes with AutoDesk, who recently announced that Eagle would no longer be available as a standalone product and would now be bundled with Fusion 360. It looks like there’s still a free option for personal use, which is good even if it limits designs to two schematic sheets, two board layers, and 80 cm² board area. And perhaps this means there will be a Linux version of Fusion 360 too.

With the Y2K bug now twenty years in the rearview mirror, it’s entertaining to look back at that time and all the hype that surrounded it. Usually we talk about the effort that went into fixing vulnerable systems, but do we ever talk about the recipes of Y2K? The Advent of Computing podcast recently did an episode that gives a great background of the Y2K bug, plus discusses what people were planning to do for food after the bug detonated all the world’s nukes when the new millennium rolled around. Pantries stocked with canned goods, wood stoves to cook on and keep warm by when the powerplants all self-destructed on January 1 – it was all part of the vibe at the time.

We suppose when you put 60 birds into orbit at a time, it doesn’t take long to make a sizable impact on the planet’s constellation of satellites. Still, it came as a surprise that SpaceX was able to claim the title of world’s largest commercial satellite constellation after just three Starlink launches. We guess the operative term is “commercial” here, since some governments probably have far more satellites in service than the 182 Starlinks that have been launched so far. That’s a far cry from the 11,000 plus eventually predicted to form the Starlink constellation, but it’s already having an impact.

As a proud Idahoan, I feel personally triggered by what’s billed as the world’s first smart potato. True, I live in the part of the state with the trees and the bears, not the spuds, but still, it’s right there on our license plates. While clearly tongue-in-cheek, the Smart Potato pokes fun of our official State Vegetable, which I find beyond the pale. Seems like anything can be crowdfunded these days.

Speaking of which, check out Kohler’s Alex-connected smart toilet. For a mere $7,000 you can have a toilet that does everything a regular, boring old toilet does, but with lights. In fairness, the value of a good bidet can’t be overstated, but the ability to talk to your toilet and have it talk back seems a little on the iffy side. Perhaps teaming it up with the Charmin Poop-Bot, a self-balancing robot that connects to your phone and brings you a roll of toilet paper if you find yourself without a square to spare.

And finally, drummer Neil Peart died this week at the far-too-young age of 67. While there’s probably a fair number of Rush fans in the core hackaday demographic, there’s no hack or other tie-ins here. I’m just sad about it and wanted to share the news.

DIY Ionizer Clears The Air On A Budget

Have you ever had a good, deep breath of the air near a waterfall, or perhaps after a thunderstorm? That unmistakably fresh smell is due to ionized air, specifically negative ions, and many are the claims concerning their health benefits. A minor industry has sprung up to capitalize on the interest in ionized air, and while [Amaldev] wanted to clean up the Mumbai air coming into his home, he didn’t want to pay a lot for a commercial unit. So he built his own air ionizer for only about $10.

When [Amaldev] dropped this in the Hackaday tip line, he indicated that he’d been taking some heat for the design from Instagram followers. We imagine a fair number of the complaints stem from the cluster of sewing needles that bristle from one end of the PCB and are raised to 6,000 volts by a fifteen-stage Cockcroft-Walton multiplier. That’s sure to raise eyebrows, or possible the hair on one’s head if you happen to brush by the emitters. Or perhaps [Amaldev]’s critics are dubious about the benefits of ionized air; indeed, some commenters on the video below seem to think that the smoke in the closed jar was not precipitated by the ion stream as [Amaldev] claims, but rather somehow was settled by heat or some other trickery.

Neither of those bothers us as much as the direct 230-volt mains connection, though. We’d have preferred to see at least an isolation transformer in there, or perhaps a battery-powered flyback circuit to supply the input to that multiplier. Still, the lesson on cascade multipliers was welcome, and we found the smoke-clearing power of ionized air pretty amazing.

Continue reading “DIY Ionizer Clears The Air On A Budget”