Gawking Hex Files

Last time I talked about how to use AWK (or, more probably the GNU AWK known as GAWK) to process text files. You might be thinking: why did I care? Hardware hackers don’t need text files, right? Maybe they do. I want to talk about a few common cases where AWK can process things that are more up the hardware hacker’s alley.

The Simple: Data Logs

If you look around, a lot of data loggers and test instruments do produce text files. If you have a text file from your scope or a program like SIGROK, it is simple to …read more

Continue reading Gawking Hex Files

History of the Capacitor – The Pioneering Years

The history of capacitors starts in the pioneering days of electricity. I liken it to the pioneering days of aviation when you made your own planes out of wood and canvas and struggled to leap into the air, not understanding enough about aerodynamics to know how to stay there. Electricity had a similar period. At the time of the discovery of the capacitor our understanding was so primitive that electricity was thought to be a fluid and that it came in two forms, vitreous electricity and resinous electricity. As you’ll see below, it was during the capacitor’s early years that …read more

Continue reading History of the Capacitor – The Pioneering Years

What Could Go Wrong: SPI

Serial Peripheral Interface (SPI) is not really a protocol, but more of a general idea. It’s the bare-minimum way to transfer a lot of data between two chips as quickly as possible, and for that reason alone, it’s one of my favorites. But that doesn’t mean that everything is hugs and daffodils. Even despite SPI’s simplicity, there are still a few ways that things can go wrong.

In the previous article in this series, inspired by actual reader questions, I looked into troubleshooting asynchronous serial connections. Now that you’ve got that working, it’s time to step up to debugging your …read more

Continue reading What Could Go Wrong: SPI

What Could Go Wrong: Asynchronous Serial Edition

It’s the easiest thing in the world — simple, straightforward serial data. It’s the fallback communication protocol for nearly every embedded system out there, and so it’s one that you really want to work when the chips are down. And yet! When you need it most, you may discover that even asynchronous serial can cost you a few hours of debugging time and add a few gray hairs to your scalp.

In this article, I’m going to cover most (all?) of the things that can go wrong with asynchronous serial protocols, and how to diagnose and debug this most useful …read more

Continue reading What Could Go Wrong: Asynchronous Serial Edition

A Hacker’s Guide to Getting Old

It’s no surprise that things change as we age, and that tasks that were once trivial become difficult. Case in point: my son asked for help with the cord on his gaming headset the other night. The cable had broken and we could see frayed conductors exposed. When I got it apart, I found that I could barely see the ultra-fine wires to resolder them after cutting out the bad section. I managed to do it, but just barely.

This experience got me thinking about how to deal with the inevitable. How do you stay active as a hacker once …read more

Continue reading A Hacker’s Guide to Getting Old

Capacitors Made Easy The Hackaday Way

If you build electronic circuits on a regular basis the chances are you will have used capacitors many times. They are a standard component along with the resistor whose values are lifted off the shelf without a second thought. We use them for power supply smoothing and decoupling, DC blocking, timing circuits, and many more applications.

A capacitor though is not simply a blob with two wires emerging from it and a couple of parameters: working voltage and capacitance. There is a huge array of capacitor technologies and materials with different properties. And while almost any capacitor with the right …read more

Continue reading Capacitors Made Easy The Hackaday Way

Symmetry for Dummies: Noether’s Theorem

Einstein referred to her as the most important woman in the history of mathematics. Her theorem has been recognized as “one of the most important mathematical theorems ever proved in guiding the development of modern physics.” Yet many people haven’t the slightest clue of who this woman was, or what she did that was so significant to our understanding of how our world works. If you count yourself as one of those who have never heard of Emmy Noether and wish to enlighten yourself, please read on. I can only hope I do her memory justice. Not just by telling …read more

Continue reading Symmetry for Dummies: Noether’s Theorem

Designing Circuits with Switching Algebra

We return once again to the work of Dr. Claude E. Shannon, this time to his Masters thesis on relay switching circuit design. This thesis introduced switching algebra that allows the systematic design and optimization of logical circuits. While Shannon’s work applied to switches and relays, it is equally applicable to all the modern forms of digital circuits. His thesis received widespread notice when published as “A Symbolic Analysis of Relay and Switching Circuits” in 1938. This work built on the Boolean algebra developed by George Boole and an analysis of logic by Augustus De Morgan which these mathematicians published …read more

Continue reading Designing Circuits with Switching Algebra

Hackaday’s Fun With International Mains Plugs And Sockets

When we recently covered the topic of high voltage safety with respect to mains powered equipment, we attracted a huge number of your comments but left out a key piece of the puzzle. We take our mains plugs and sockets for granted as part of the everyday background of our lives, but have we ever considered them in detail? Their various features, and their astonishing and sometimes baffling diversity across the world.

When you announce that you are going to talk in detail about global mains connectors, it is difficult not to have an air of Sheldon Cooper’s Fun With …read more

Continue reading Hackaday’s Fun With International Mains Plugs And Sockets