Woodworking Basics For The Hardware Hacker

Hackaday is primarily a place for electronics hackers, but that’s not to say that we don’t see a fair number of projects where woodworking plays a key role. Magic mirror builds come to mind, as do restorations of antique radios, arcade machines built into coffee tables, and small cases for all manner of electronic and mechanical gadgets. In some of these projects, the woodworking really shines and makes the finished project pop. In others — well, let’s just say that some woodwork looks good from far, but is far from good.

Continue reading “Woodworking Basics For The Hardware Hacker”

Owning Hacker As A Word

To a casual observer it might seem as though our community is in the news rather a lot at the moment. It’s all about hacks on our TV screens in the soap opera of Washington politics, who hacked this, whether those people over there helped that lot hack the other lot, or even whether that person’s emails could have been hacked on that server. Keeping up with it as an outsider can become a full-time job.

XKCD 932 says it all. (CC BY-NC 2.5)
XKCD 932 says it all. (CC BY-NC 2.5)

Of course, as we all know even if the mainstream journalists (or should I refer to them colloquially as “hacks”?) don’t, it’s not us they’re talking about. Their hackers are computer criminals, while we are people with some of the hardware and software skills to bend technology to our will, even beyond what its designers might have intended. And that divergence between the way we use the word in a sense of reappropriation and they use it in disapprobation sometimes puts us in an odd position. Explaining to a sober-suited businessman as the director of a hackspace, that no, we’re not *those*hackers can sometimes  feel like skating on thin ice.

Continue reading “Owning Hacker As A Word”

Multiextrusion 3D Printing And OpenSCAD

In a recent posting called Liar’s 3D Printing, I showed you how you can print with multiple filament colors even if your printer only has one extruder and hot end. It isn’t easy, though, and a lot of models you’ll find on sites like Thingiverse are way too complicated to give good results. An object with 800 layers, each with two colors is going to take a lot of filament changes and only the most patient among us will tolerate that.

What that means is you are likely to want to make your own models. The question is, how? The answer is, of course, lots of different ways. I’m going to cover how I did the two models I showed last time using OpenSCAD (seen below). The software is actually really well suited for this hack, making it easy for me to create a framework of several models to represent the different colors.

About OpenSCAD

I’m not going to say much about OpenSCAD. It is less a CAD package and more a programming language that lets you create shapes. We’ve covered it before although it changes from time to time so you might be better off reading the official manual.

The general idea, though, is you use modules to create primitives. You can rotate them and translate them (that is, move them). You can also join them (union) and take the difference of them (difference). That last is especially important. For example, look at the callsign plate above. Forget the text for now. See the two holes? Here’s the OpenSCAD that creates that shape:

 difference() {
 cube([basew,basel,basez]);
 // cut holes
 translate([4,basel/2,0]) cylinder(r=2,h=basez+2);
 translate([basew-4,basel/2,0]) cylinder(r=2,h= basez+2);
 }

The cube “call” creates the base. The cylinders are the holes and the difference “call” is what makes them holes instead of solid cylinders (the first thing is the solid and everything after is taken away). One key point: instead of numbers, the whole thing uses (mostly) variables. That means if you change the size of something, everything will adjust accordingly if you wrote the script well. Let’s look at applying these techniques for multiple colors.

Continue reading “Multiextrusion 3D Printing And OpenSCAD”

Relay Computing

Recently, [Manuel] did a post on making logic gates out of anything. He mentioned a site about relay logic. While it is true that you can build logic gates using switch logic (that is, two switches in series are an AND gate and two in parallel are an OR gate), it isn’t the only way. If you are wiring a large circuit, there’s some benefit to having regular modules. A lot of computers based on discrete switching elements worked this way: you had a PCB that contained some number of a basic gate (say, a two input NAND gate) and then the logic was all in how you wired them together. And in this context, the SPDT relay was used as a two input multiplexer (or mux).

In case you think the relay should be relegated to the historical curiosity bin, you should know there are still applications where they are the best tool for the job. If you’re not convinced by normal macroscopic relays, there is some work going on to make microscopic relays in ICs. And even if they don’t use relays to do it, some FPGAs use mux-based logic inside.  So it’s worth your time to dig into the past and see how simply switching between two connections can make a computer.

Mux Mania

How do you go from a two input mux to an arbitrary logic gate? Simple, if you paid attention to the banner image. (Or try it interactive). The mux symbols show the inputs to the left, the output to the right and the select input at the bottom. If the select is zero, the “0” input becomes the output. If the select is one, the “1” input routes to the output.

Continue reading “Relay Computing”

Will Supercapacitors Ever Replace Batteries?

Recharging your mobile phone or your electric vehicle in a few minutes sure sounds appealing. Supercapacitor technology has the potential to deliver that kind of performance that batteries currently can’t, and while batteries are constantly improving, the pace of development is not very fast. Just remember your old Nokia mobile with Ni-Cad batteries and several days of usage before a recharge was needed. Today we have Lithium-Ion batteries and we have to charge our phones every single day. A better energy storage option is clearly needed, and supercapacitors seem to be the only technology that is close to replace the battery.

Continue reading “Will Supercapacitors Ever Replace Batteries?”

Forrest Mims, Radio Shack, And The Notebooks That Launched A Thousand Careers

There was a time when Radio Shack offered an incredible variety of supplies for the electronics hobbyist. In the back of each store, past the displays of Realistic 8-track players, Minimus-7 speakers, Patrolman scanners, and just beyond the battery bin where you could cash in your “Battery of the Month Club” card for a fresh, free 9-volt battery, lay the holy of holies — the parts. Perfboard panels on hinges held pegs with cards of resistors for 49 cents, blister packs of 2N2222 transistors and electrolytic capacitors, and everything else you needed to get your project going. It was a treasure trove to a budding hardware hobbyist.

But over on the side, invariably near the parts, was a rack of books for sale, mostly under the Archer brand. 12-year old me only had Christmas and birthday money to spend, and what I could beg from my parents, so I tended to buy books — I figured I needed to learn before I started blowing money on parts. And like many of that vintage, one of the first books I picked up was the Engineer’s Notebook by Forrest M. Mims III.

Wish I could find my original copy from 1979. This one is on Amazon.
Wish I could find my original copy from 1979. I just bought this one from Amazon.

Many years rolled by, and my trusty and shop-worn first edition of Mims’ book, with my marginal notes and more than one soldering iron burn scarring its pulp pages, has long since gone missing. I learned so much from that book, and as I used it to plan my Next Big Project I’d often wonder how the book came about. Those of you that have seen the book and any of its sequels, like the Mini-notebook Series, will no doubt remember the style of the book. Printed on subdued graph paper with simple line drawings and schematics, the accompanying text did not appear to be typeset, but rather hand lettered. Each page was a work of technical beauty that served as an inspiration as I filled my own graph-paper notebooks with page after page of circuits I would find neither the time nor money to build.

I always wondered about those books and how they came about. It was a pretty astute marketing decision by Radio Shack to publish them and feature them so prominently near the parts — sort of makes the string of poor business decisions that led to the greatly diminished “RadioShack” stores of today all the more puzzling. Luckily, Forrest Mims recently did an AMA on reddit, and he answered a lot of questions regarding how these books came about. The full AMA is worth a read, but here’s the short story of those classics of pulp non-fiction.

Continue reading “Forrest Mims, Radio Shack, And The Notebooks That Launched A Thousand Careers”

Understanding The Quartz Crystal Resonator

Accurate timing is one of the most basic requirements for so much of the technology we take for granted, yet how many of us pause to consider the component that enables us to have it? The quartz crystal is our go-to standard when we need an affordable, known, and stable clock frequency for our microprocessors and other digital circuits. Perhaps it’s time we took a closer look at it.

The first electronic oscillators at radio frequencies relied on the electrical properties of tuned circuits featuring inductors and capacitors to keep them on-frequency. Tuned circuits are cheap and easy to produce, however their frequency stability is extremely affected by external factors such as temperature and vibration. Thus an RF oscillator using a tuned circuit can drift by many kHz over the period of its operation, and its timing can not be relied upon. Long before accurate timing was needed for computers, the radio transmitters of the 1920s and 1930s needed to stay on frequency, and considerable effort had to be maintained to keep a tuned-circuit transmitter on-target. The quartz crystal was waiting to swoop in and save us this effort.

Continue reading “Understanding The Quartz Crystal Resonator”