Squoze Your Data

I have a confession to make. I enjoy the challenge of squeezing software into a tiny space or trying to cut a few more cycles out of a loop. It is like an intricate puzzle. Today, of course, there isn’t nearly as much call for that as there used to be. Today even a “small” microcontroller has a ton of memory and resources.

Even so, there’s still a few cases where you need to squeeze those last few bytes out of memory. Maybe you are trying to maximize memory available for some purpose. Maybe you are anticipating mass production and you are using the smallest microcontroller you can find. Or maybe you’re doing the 1 kB Challenge and just want some advice.

One way to find techniques to maximize resources is to look at what people did “in the old days.” Digital Equipment computers once had a special character set called Squoze (or sometimes DEC Radix-50). This technique can be useful when you need to get a lot of strings into memory. The good news is that you can reliably get 3 characters into 2 bytes (or, as DEC did, 6 characters into 4 bytes). The bad news is that you have to pick a limited character set that you can use. However, that’s not always a big problem.

Continue reading “Squoze Your Data”

The Little Mechanism That Made Precise Time-keeping Possible

There are few things to which we pay as much attention as the passage of time. We don’t want to be late for work, or a date. Even more importantly, we don’t want to age and die. Good time keeping is an all important human activity, and we started to worry about it as soon as we abandoned our hunter-gatherer lifestyle and agriculture and commerce emerged.

By de:Benutzer:Flyout - own work, http://de.wikipedia.org/wiki/Bild:Kerzenuhr.jpg, CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=1783765
A candle clock

Measuring time needs two things: a repetitive process to mark equal increments of time, and a way of tracking and displaying the result. The first timekeeping devices relied of course on the movement of the sun. Ancient Egyptians, around 3500 BC, built obelisks that, by casting a shadow on the ground at different positions, gave an approximate idea of the time. Next came the use of some medium that was consumed at a regular pace: candle, incense, water and sand clocks are examples. A great advancement came with the advent of the mechanical clock, and here is where the escapement mechanism appears.

Continue reading “The Little Mechanism That Made Precise Time-keeping Possible”

Path To Craftsmanship: Don’t Buy Awful Safety Gear

A while back I tried to make a case for good safety disciple as a habit that, when proactively pursued, can actually increase the quality of your work as a side effect. In those comments and in other comments since then I’ve noticed that some people really hate safety gear. Now some of them hated them for a philosophical reason, “Ma granpap didn’t need ’em, an’ I don’t neither”, or ,”Safety gear be contributin’ to the wuss’ness of the modern personage an’ the decline o’ society.” However, others really just found them terribly uncomfortable and restricting.

In this regard I can help a little. I’ve spent thousands of terrible long hours in safety gear working in the chemical industry. I was also fortunate to have a company who frequently searched for the best safety equipment as part of their regular program. I got to try out a lot.

Continue reading “Path To Craftsmanship: Don’t Buy Awful Safety Gear”

My Life In The Connector Zoo

“The great thing about standards is that there are so many to choose from.” Truer words were never spoken, and this goes double for the hobbyist world of hardware hacking. It seems that every module, every company, and every individual hacker has a favorite way of putting the same pins in a row.

We have an entire drawer full of adapters that just go from one pinout to another, or one programmer to many different target boards. We’ll be the first to admit that it’s often our own darn fault — we decided to swap the reset and ground lines because it was convenient for one design, and now we have two adapters. But imagine a world where there was only a handful of distinct pinouts — that drawer would be only half full and many projects would simply snap together. “You may say I’m a dreamer…”

This article is about connectors and standards. We’ll try not to whine and complain, although we will editorialize. We’re going to work through some of the design tradeoffs and requirements, and maybe you’ll even find that there’s already a standard pinout that’s “close enough” for your next project. And if you’ve got a frequently used pinout or use case that we’ve missed, we encourage you to share the connector pinouts in the comments, along with its pros and cons. Let’s see if we can’t make sense of this mess.

Continue reading “My Life In The Connector Zoo”

Resurrection — Pressing WW2 Radio Equipment Back Into Service

Mass production was key to survival during the Second World War. So much stuff was made that there continues to be volumes of new unpacked stuff left over and tons of used equipment for sale at reasonable prices. Availability of this war surplus provided experimenters in the mid 20th century with access to high performance test equipment, radio equipment, and high quality components for the first time.

Even today this old stuff continues to motivate and inspire the young generations because of its high build quality, unique electro-mechanical approaches, and overall innovative designs which continue to be relevant into the 21st century. In this post we will show you how to get started in the hobby of resurrecting WW2 radio equipment and putting it back on the air.

Continue reading “Resurrection — Pressing WW2 Radio Equipment Back Into Service”

A Realistic Look At The Death Of A Standard

A bit ago I wrote an article called, “Death To The 3.5mm Audio Jack, Long Live Wireless.” A few readers were with me, a few were indifferent, many were vehemently against me, and there was a, not insubstantial, subset in a pure panic about the potential retirement of a beloved connector. Now I used a lot of opinionated language dispersed with subjectively evaluated facts to make a case that the connector is out. Not today maybe, but there is certainly a tomorrow not so far off where there are more wireless headsets at the electronics store than wired ones.

I think I saw a laserdisc player in operation exactly once.
I think I saw a Laserdisc player in operation exactly once.

So what happens when a standard dies? What happens when technology starts to move on? Let’s take a look at the CD-ROM.  Continue reading “A Realistic Look At The Death Of A Standard”

Tools Of The Trade — Injection Molding

Having finished the Tools of the Trade series on circuit board assembly, let’s look at some of the common methods for doing enclosures. First, and possibly the most common, is injection molding. This is the process of taking hot plastic, squirting it through a small hole and into a cavity, letting it cool, and then removing the hardened plastic formed in the shape of the cavity.

The machine itself has three major parts; the hopper, the screw, and the mold. The hopper is where the plastic pellets are dumped in. These pellets are tiny flecks of plastic, and if the product is to be colored there will be colorant pellets added at some ratio. The hopper will also usually have a dehumidifier attached to it to remove as much water from the pellets as possible. Water screws up the process because it vaporizes and creates little air bubbles.

Next the plastic flecks go into one end of the screw. The screw’s job is to turn slowly, forcing the plastic into ever smaller channels as it goes through a heating element, mixing the melted plastic with the colorant and getting consistent coloring, temperature, and ever increasing pressure. By the time the plastic is coming out the other end of the screw, and with the assistance of a hydraulic jack, it can be at hundreds of tons of pressure.

Finally, the plastic enters the mold, where it flows through channels into the empty cavity, and allowed to sit briefly to cool.  The mold then separates and ejector pins push the part out of the cavity.

Continue reading “Tools Of The Trade — Injection Molding”