Robotic Arm Sports Industrial Design, 3D-Printed Cycloidal Gears

[Petar Crnjak]’s Faze4 is a open source robotic arm with 3D printable parts, inspired in part by the design of industrial robot arms. In particular, [Petar] aimed to hide wiring and cables inside the arm as much as possible, and the results look great! Just watch it move in the video below.

Cycloidal gearboxes have been showing up in robotic arm projects more and more, and Faze4 makes good use of them. Why cycloidal gears? They are readily 3D printed and offer low backlash, which makes them attractive for robotic applications. There’s no need to design cycloidal gears from scratch, either. [Petar] found this cycloidal gear generator in OnShape extremely useful when designing Faze4.

The project’s GitHub repository has all the design files, as well as some video demonstrations and a link to assembly documentation for anyone who would like to make their own. Watch Faze4 go through some test movements in the video embedded below.

Cycloidal gearboxes, which have similarities to both planetary gearing and strain-wave gears, can be mesmerizing to watch. Check out our previous coverage for more information on what they are and how they work.

source https://hackaday.com/2020/08/14/robotic-arm-sports-industrial-design-3d-printed-cycloidal-gears/

Robotic Arm Sports Industrial Design, 3D-Printed Cycloidal Gears

[Petar Crnjak]’s Faze4 is a open source robotic arm with 3D printable parts, inspired in part by the design of industrial robot arms. In particular, [Petar] aimed to hide wiring and cables inside the arm as much as possible, and the results look great! Just watch it move in the video below.

Cycloidal gearboxes have been showing up in robotic arm projects more and more, and Faze4 makes good use of them. Why cycloidal gears? They are readily 3D printed and offer low backlash, which makes them attractive for robotic applications. There’s no need to design cycloidal gears from scratch, either. [Petar] found this cycloidal gear generator in OnShape extremely useful when designing Faze4.

The project’s GitHub repository has all the design files, as well as some video demonstrations and a link to assembly documentation for anyone who would like to make their own. Watch Faze4 go through some test movements in the video embedded below.

Cycloidal gearboxes, which have similarities to both planetary gearing and strain-wave gears, can be mesmerizing to watch. Check out our previous coverage for more information on what they are and how they work.

source https://hackaday.com/2020/08/14/robotic-arm-sports-industrial-design-3d-printed-cycloidal-gears/

Moving Fridge Magnets Make for Unique Clock

We see a ton of clock projects around these parts, and being hackers, we love to feature them all. But every once in a while we stumble upon a great new way to display the time that really gets our attention and requires a closer look, such as this moving fridge magnet clock.

The fridge magnets [Craig Colvin] built this unique clock around are the colorful plastic kinds that have adorned the lower regions of refrigerators in toddler-filled households for ages. Instead of residing on a fridge, [Craig] laminated a sheet of white acrylic to a thin sheet of steel, to give the magnets something to hold onto. Moving the numbers is the job of a CoreXY-style mechanism. The belt-driven Cartesian movement maneuvers a head to to the right location to pick up a number; a servo in the head moves two powerful magnets into position under the number. The head then moves the number to the right spot, releases its magnets, and the number stays put on the board. You can see it in action in the video after the break.

While we love this as it is, it brings to mind some great mods. One can imagine the addition of letters to make a legit word clock, or to just add a calendar display. We’d also love to see these magnets in their natural habitat by building this into the door of a working fridge.

source https://hackaday.com/2020/08/14/moving-fridge-magnets-make-for-unique-clock/

PIC32 DMA is a Weird Machine

Direct memory access (DMA) systems in computers are more powerful than you might think, and [Bruce Land] and [Joseph Primmer] have done some clever hacking to take full advantage of this on the PIC32 microcontrollers. This is a cool proof-of-concept hack — you can do general computing in the DMA subsystem without using the CPU at all if you don’t mind taking your time — but they also include two useful examples: a direct digital synthesis machine and a random number generator. Both of these run using exactly 0% CPU time.

How do they do it? DMA is a mechanism for shuttling data around in memory or between hardware peripherals without involving the CPU. Say you want to take a large block of memory containing music, and spit it out slowly to an I2S audio converter. A DMA subsystem could be configured to take an interrupt from the sound chip, pass it a chunk of data, increment the data pointer, and wait for the next interrupt.

The gimmick, which goes back at least to [Rushanan] and [Checkoway]’s “Run DMA” paper, is that you can modify the memory source and destination addresses of one DMA service from another DMA service, and that some registers automatically perform mathematical operations on whatever data is put into them. Combine these together, and you’ve got transport-triggered programming.

(An awesome side-note: our own [Al Williams] developed a one-instruction transport-triggered CPU way back in the day: the One Instruction Wonder.)

What is this good for? Writing simple helper applications that run independent of the CPU on a PIC32 microcontroller. [Land] and [Primmer]’s direct-digital synthesis example is a great one. But there are a lot of cases where you simply want to take in some new data and pre-process it a little bit before it enters the main program flow. While creating weird machines in the DMA engine might be a slower way to get it done, it keeps the CPU free for doing other stuff. We’re sure you’ll come up with something.

source https://hackaday.com/2020/08/13/pic32-dma-is-a-weird-machine/

Automatic Cat Weighing Machine Knows Which Pet It is Feeding

Have you ever tried to weigh a cat? For that matter, have you ever tried to get a cat to do anything they don’t want to do? The wilful independence of our feline companions is a large part of what endears them to us, and must have done ever since the ancient Egyptians first had a hybrid wildcat that became domesticated

No wonder it’s so hard to care for multiple cats with different dietary needs. But the mere act of weighing the cats just might be the key to automating their diets while giving them the choice of when they want to eat. It’s a task that [Psy0rz] has cracked with the Meowton, a weighing machine/feeder combo designed to regulate the diets of his various moggies.

Cat scale uses a load sensor under each corner of the platform

The multi-faceted system involving a scale to weight the cat, a food hopper with dispenser, and a scale for the food bowl. The cat has to stand on the scale to eat, and the dispenser doles out some food when it detects this. It identifies each cat by weight, and controls the quantity dispensed accordingly to spread that cat’s allotted diet over the course of the day.

Behind it all is an ESP32, which delivers the stats to a web interface and makes them available for import to a database. He’s identified a flaw in the system, that two cats of the same weight could cause misidentification. To that end he has an RFID reader under way, but it’s still a work in progress. There is even a live stream of the unit in action.

We’re suckers for cats here, and while the various Hackaday Cats provide plenty of companionship and entertainment we’re always up for more. Over the years we’ve featured plenty of cat feeders, but only one cat elevator.

source https://hackaday.com/2020/08/13/automatic-cat-weighing-machine-knows-which-pet-it-is-feeding/

Tensile Testing Machine Takes 3D Printed Parts to the Breaking Point

If you’re serious about engineering the things you build, you need to know the limits of the materials you’re working with. One of important way to characterize materials is to test the tensile strength — how much force it takes to pull a sample to the breaking point. Thankfully, with the right hardware, this is easy to measure and  [CrazyBlackStone] has built a rig to do just that.

Built on a frame of aluminium extrusion, a set of 3D printed parts to hold everything in place. To apply the load, a stepper motor is used to slowly turn a leadscrew, pulling on the article under test. Tensile forces are measured with a load cell hooked up to an Arduino, which reports the data back to a PC over its USB serial connection.

It’s a straightforward way to build your first tensile tester, and would be perfect for testing 3D printed parts for strength. The STEP files (13.4 MB direct download) for this project are available, but [CrazyBlackStone] recommends waiting for version two which will be published this fall on Thingiverse although we didn’t find a link to that user profile.

Now we’ll be able to measure tensile strength, but the stiffness of parts is also important. You might consider building a rig to test that as well. Video after the break.

source https://hackaday.com/2020/08/13/tensile-testing-machine-takes-3d-printed-parts-to-the-breaking-point/

Gaze Inside the Valve Index VR Headset in Detailed Teardown

Valve’s unique multilayer lenses are far thinner than one might expect.

Want to see what exactly is inside the $500 (headset only price) Valve Index VR headset that was released last summer? Take a look at this teardown by [Ilja Zegars]. Not only does [Ilja] pull the device apart, but he identifies each IC and takes care to point out some of the more unique hardware aspects like the fancy diffuser on the displays, and the unique multilayered lenses (which are much thinner than one might expect.)

[Ilja] is no stranger to headset hardware design, and in addition to all the eye candy of high-res photographs, provides some insightful commentary to help make sense of them. The “tracking webs” pulled from the headset are an interesting bit, each is a long run of flexible PCB that connects four tracking sensors for each side of the head-mounted display back to the main PCB. These sensors are basically IR photodiodes, and detect the regular laser sweeps emitted by the base stations of Valve’s lighthouse tracking technology. [Ilja] also gives us a good look at the rod and spring mechanisms seen above that adjust distance between the two screens.

Want more? [Ilja] also has a gallery of high-resolution images available for those you who fancy a closer look. Also, if you missed it, we covered an examination of the Index’s optical design as part of everything you probably didn’t know about field of view in head-mounted displays.

[via Twitter]

source https://hackaday.com/2020/08/13/gaze-inside-the-valve-index-vr-headset-in-detailed-teardown/

A High Torque Gearbox You Can Print At Home

Typically, when we think of 3D printed parts, we think of unique parts with complex geometries that would be hard to fabricate with other techniques. Strength is rarely the first thing that comes to mind, due to the limitations of thermoplastics and the problem of delamination between layers. However, with smart design, it’s possible to print parts capable of great feats, just as [Brian]’s high-torque gearbox demonstrates.

Pulling a car is a great way to show off the strength of your build.

The gearbox consists of entirely 3D-printed gears, along with the enclosure, with the only metal parts being a few bearings and shafts. Capable of being produced out of PLA on a regular FDM printer, [Brian] has successfully tested the gearbox up to 132 kg∗cm. The suspicion is that there may be more left in it, but some slippage was noticed in the gear train when trying to tow a Ford Focus with the handbrake still on.

Even better, with the addition of a potentiometer, the gearbox can be used as an incredibly tough servo. [Brian] demonstrates this by lifting 22 kg at a distance of 6 cm from the center of the output shaft. The servo does it with ease, though eventually falls off the bench due to not being held down properly.

It’s a build that shows it’s possible to use 3D-printed parts to do some decently heavy work in the real world, as long as you design appropriately. [Brian] does a great job of explaining what’s involved, discussing gear profile selection and other design choices that affect the final performance. We’ve seen similar work from others before, too. Video after the break.

 

source https://hackaday.com/2020/08/13/a-high-torque-gearbox-you-can-print-at-home/

A Tetraquark for Muster Mark!

The holy grail of every particle physics experiment is the discovery of a new particle. Finding a new constituent of matter may earn you eternal glory within the history of physics. Unfortunately, since the last missing piece of the Standard Model, the Higgs boson, was discovered in 2012, and with still no clue about the nature of dark matter and dark energy, there is not much hope to stumble upon a new fundamental building block of matter any time soon.

Luckily, this is not true for composite particles, especially the strange world of quark matter still yields some potential for new discoveries. The latest of such was the observation of a new tetraquark by the LHCb experiment. But what the hell is a quark anyway and why is it named after a German dairy product?

The Proton Is Not Just a Dot

Up until the 1950s, it was believed that subatomic particles such as the neutron and proton are elementary, point-like particles with no inner structure. In the following decade, the progress made by accelerator experiments led to the discovery of an entire zoo of new particles. This sudden “particle explosion” irritated physicists who believed in the beauty of simplicity. Wolfgang Pauli exclaimed that had he foreseen this, he would have become a botanist instead. US physicist Willis Lamb suggested that the discovery of a new particle now ought to be punished with $10,000 fine instead of a Nobel Prize.

In 1964, Murray Gell-Mann and George Zweig independently came up with a model proposing that these new particles are not elementary but instead composed of a combination of new fundamental particles called quarks. The name was coined by Gell-Mann who pronounced it “kwork” and later adopted the spelling from the following cryptic line in James Joyce’s book Finnegans Wake.

Three quarks for Muster Mark!

Sure he has not got much of a bark

And sure any he has it’s all beside the mark.

While Gell-Mann interpreted the line as a call for drinks (“Three quarts for Mister…”) it is unclear what James Joyce really meant. Some think it represents the cry of a seagull while others attribute it to the German word for a kind of cottage cheese.

Definitive proof for the existence of quarks came in 1968 when experiments at the Stanford Linear Accelerator Center showed that the proton is not a point-like particle but instead contains some inner structure. Still, people only recognized later that what they observed were in fact quarks.

A Quark Comes Rarely Alone

Credit: MissMJ, Cush

There are six different kinds of quarks (up, down, top, bottom, strange, charm) that have different masses and charges. For every quark there is also an antiparticle with the same mass but opposite charge. The proton, for example, consists of two up quarks (u) with charge +2/3 and one down quark (d) with charge -1/3, while a neutron consists of two down quarks and one up quark.

Like the electric force that acts on charged particles, each quark contains a color charge blue, green, or red, which makes it susceptible to the strong force. In nature, one can only observe color-neutral particles that consist either of three quarks with different colors (called baryons), or a quark-antiquark pair (called mesons).

The fact that one cannot produce isolated quarks is known as confinement. It can be understood as a peculiarity of the strong force that behaves similar to a rubber band. When trying to separate two quarks it becomes more and more difficult with increasing distance so that at some point it is energetically more favorable to create another quark-antiquark pair.

Tetraquarks and Pentaquarks

Invariant mass spectrum of J/ψ pairs measured by LHCb. The narrow peak slightly below 7000 MeV corresponds to the newly discovered tetraquark.
Credit: LHCb collaboration

Baryons and mesons are not the only possibilities to combine quarks in a color-neutral way. A tetraquark is also viable, being a combination of four quarks qqqq, where q and q respectively refer to a quark and antiquark. A pentaquark qqqqq may even exist.

To search for penta- and tetraquarks one smashes together electrons or protons in an accelerator and analyses the particles produced in the collisions. Since such exotic particles have extremely short lifetimes, they cannot be directly observed in a detector. Instead one plots the number of recorded events vs. the so-called invariant mass, calculated from the energy and momentum of the final decay products. In this plot, a short-lived intermediate particle shows up as a narrow resonance peak. The position of the peak equals the mass of the particle while the width is inversely proportional to its lifetime.

The first indication for the existence of a tetraquark came in 2003 from the BELLE experiment in Japan. In the same year, another Japanese experiment called SLEP maybe saw a pentaquark. In the meantime, several penta- and tetraquarks have been unambiguously discovered. At the forefront of these discoveries was the LHCb experiment which confirmed the existence of a tetraquark in 2014 and one year later also discovered a pentaquark. The tetraquark discovered recently by LHCb is special because it consists of two charm quarks and two charm antiquarks cccc. All other tetraquarks observed so far have at most two heavy quarks and none of them is made of more than two quarks of the same type.

Why Do We Even Care?

You may wonder why people go through the effort of hunting for these exotic particles. As with most particle physics experiments, it is all about a better understanding of the fundamental forces of nature, in this case, the strong force described by quantum chromodynamics (QCD). Calculating the properties of bound quarks is fairly complicated and so the measurement of these exotic particles helps to test different theoretical models. For example, it is unclear if all quarks in a tetra- and pentaquark are tightly bound together or if they form a molecule-like, loosely bound combination of baryons and mesons. Discovering more of these particles and measuring their properties could help to resolve this question.

source https://hackaday.com/2020/08/13/a-tetraquark-for-muster-mark/

Under Pressure: How Aluminum Extrusions Are Made

At any given time I’m likely to have multiple projects in-flight, by which of course I mean in various stages of neglect. My current big project is one where I finally feel like I have a chance to use some materials with real hacker street cred, like T-slot extruded aluminum profiles. We’ve all seen the stuff, the “Industrial Erector Set” as 80/20 likes to call their version of it. And we’ve all seen the cool projects made with it, from CNC machines to trade show displays, and in these pandemic times, even occasionally as sneeze guards in retail shops.

Aluminum T-slot profiles are wonderful to work with — strong, lightweight, easily connected with a wide range of fasteners, and infinitely configurable and reconfigurable as needs change. It’s not cheap by any means, but when you factor in the fabrication time saved, it may well be a net benefit to spec the stuff for a project. Still, with the projected hit to my wallet, I’ve been looking for more affordable alternatives.

My exploration led me into the bewilderingly rich world of aluminum extrusions. Even excluding mundane items like beer and soda cans, you’re probably surrounded by extruded aluminum products right now. Everything from computer heatsinks to window frames to the parts that make up screen doors are made from extruded aluminum. So how exactly is this ubiquitous stuff made?

The Die

The basic process for extruding aluminum is, outwardly, as simple to understand as the extrusion process used by a 3D-printer: heat material and force it through a die with the desired shape and size. But when PLA is replaced by giant aluminum log, and a Bowden cable and stepper motor by an enormous hydraulic ram, the details quickly cloud the simplicity of the underlying concept.

A die with a distinctive profile. Source: Phoenix International

Die design is perhaps the most critical part of the extrusion process. Dies have to withstand tremendous forces at high temperatures, and must maintain their dimensional stability while doing so. Extrusion dies start life as round bars of tool steel up to a meter or more in diameter but typically around 30 cm. Dies are usually fairly thin in profile relative to their diameter, since the longer the path the aluminum takes as it passes through the die, the greater the friction it experiences. More friction means more force, which means bigger presses, more wear on the dies, and generally higher costs.

Dies are generally created by specialty manufacturers that employ skilled die design engineers and machinists. The process of turning a design into a die usually starts with roughing out the blank on a CNC lathe, then proceeds to a sequence of CNC milling operations. Electric discharge machining (EDM) is used extensively to get the fine detail needed to provide a smooth finish, and to achieve the precise geometry needed to control the flow of the aluminum through the die.

Most extrusions will have one or more hollow chambers, like the lumen of a pipe or, in the case of our 80/20 profiles, the negative space of the T-slots and the central bore. The die has to create those features, which require parts of the die to “float” in the incoming flow of softened metal. Diemakers accomplish this by suspending these features on arms that bridge the space in the upstream part of the die. The shape and surface finish of these arms has to be carefully designed so that the metal flows around them and joins together to create a smooth, continuous stream of material without voids, which could lead to weakness in the finished product.

Careful consideration of the hydrodynamic forces exerted by and upon the flowing metal are also important to die design. While the exit side of the die is pretty much exactly the size and shape of the finished extrusion, the entrance side is anything but. By some estimates, half of the energy used while extruding aluminum goes into overcoming friction between the metal and the die, so everything that can be done to reduce those forces is like money in the bank. The entrance of the die has to be designed to direct the incoming metal as smoothly and easily as possible into the final shape, which is part of the reason die designers include very generous draft angles over the width of the die.

The Squeeze

There are a number of different ways to approach the extrusion process, each with its own pros and cons. Direct extrusion is basically what you’re familiar with in 3D printing, or if you’ve ever used one of those squeezy things in a Play-Doh set: a slug of softened material is pressed against a die, which then flows through the die to assume its final shape. Indirect extrusion turns that around, forcing the die to move relative to the material. Both approaches have their pros and cons, and both result in extrusions with different metallurgical properties.

In either process, a large log of aluminum, called a billet, is heated in either a gas furnace or by induction. The temperature varies with the specific alloy and the complexity of the die, but it’s important to note that the billet is not melted, just softened. The die and much of the hydraulic press are also heated, to prevent thermal stresses from breaking anything in the machinery and to prevent the aluminum from cooling too soon and sticking to the die.

Aluminum extrusion presses generally have a horizontal orientation, with a massive hydraulic ram facing the die across a narrow gap. The preheated billet is placed into the gap, and the hydraulic ram starts to press it into the die (or, in indirect extrusion, moves the die over the material). The softened metal begins to flow into the spaces of the die, around the arms, and narrowing down into the final shape as it exits the die.

The growing extrusion exits the press and is almost immediately quenched with either air or, more commonly, a water bath. The quenching process is important, because as the extrusion exits the die it is still soft and liable to be deformed. Quenching also sets the crystal structure of the metals in the alloy, giving the finished extrusion its desired metallurgical properties.

Stretching and Aging

But even with quenching, the extrusions that come out of the die onto the long outfeed tables are far from complete. The tremendous forces exerted during extrusion coupled with the thermal stresses of quenching inevitably warps and twists the profiles. This is corrected with a stretching operation, where extrusions are literally picked up and stretched out the long way with hydraulic tools. This restores the profile to its intended shape; the few percent change in the length of the profile necessarily changes the profile dimensions slightly, a fact which has to be accounted for by the die designers.

Curiously, fresh extrusions need to be aged somewhat at elevated temperatures before reaching their final specified strength. This is accomplished in large aging towers over a period of hours to days, depending on the alloy. Aged extrusions are then cut to length, possibly have a finish applied — clear or dyed anodized finishes are very popular for 80/20 extrusions as they protect the aluminum from oxidation — and packaged for shipping.

Given the amount of material that goes into an aluminum extrusion, and the investment needed to run the massive machines that do the job, it’s easy to understand why 80/20 profiles cost what they do. So now maybe I’ll just bite the bullet and order what I need.

Featured images: F&L Industrial Solutions, Inc.

source https://hackaday.com/2020/08/13/under-pressure-how-aluminum-extrusions-are-made/

Under Pressure: How Aluminum Extrusions Are Made

At any given time I’m likely to have multiple projects in-flight, by which of course I mean in various stages of neglect. My current big project is one where I finally feel like I have a chance to use some materials with real hacker street cred, like T-slot extruded aluminum profiles. We’ve all seen the stuff, the “Industrial Erector Set” as 80/20 likes to call their version of it. And we’ve all seen the cool projects made with it, from CNC machines to trade show displays, and in these pandemic times, even occasionally as sneeze guards in retail shops.

Aluminum T-slot profiles are wonderful to work with — strong, lightweight, easily connected with a wide range of fasteners, and infinitely configurable and reconfigurable as needs change. It’s not cheap by any means, but when you factor in the fabrication time saved, it may well be a net benefit to spec the stuff for a project. Still, with the projected hit to my wallet, I’ve been looking for more affordable alternatives.

My exploration led me into the bewilderingly rich world of aluminum extrusions. Even excluding mundane items like beer and soda cans, you’re probably surrounded by extruded aluminum products right now. Everything from computer heatsinks to window frames to the parts that make up screen doors are made from extruded aluminum. So how exactly is this ubiquitous stuff made?

The Die

The basic process for extruding aluminum is, outwardly, as simple to understand as the extrusion process used by a 3D-printer: heat material and force it through a die with the desired shape and size. But when PLA is replaced by giant aluminum log, and a Bowden cable and stepper motor by an enormous hydraulic ram, the details quickly cloud the simplicity of the underlying concept.

A die with a distinctive profile. Source: Phoenix International

Die design is perhaps the most critical part of the extrusion process. Dies have to withstand tremendous forces at high temperatures, and must maintain their dimensional stability while doing so. Extrusion dies start life as round bars of tool steel up to a meter or more in diameter but typically around 30 cm. Dies are usually fairly thin in profile relative to their diameter, since the longer the path the aluminum takes as it passes through the die, the greater the friction it experiences. More friction means more force, which means bigger presses, more wear on the dies, and generally higher costs.

Dies are generally created by specialty manufacturers that employ skilled die design engineers and machinists. The process of turning a design into a die usually starts with roughing out the blank on a CNC lathe, then proceeds to a sequence of CNC milling operations. Electric discharge machining (EDM) is used extensively to get the fine detail needed to provide a smooth finish, and to achieve the precise geometry needed to control the flow of the aluminum through the die.

Most extrusions will have one or more hollow chambers, like the lumen of a pipe or, in the case of our 80/20 profiles, the negative space of the T-slots and the central bore. The die has to create those features, which require parts of the die to “float” in the incoming flow of softened metal. Diemakers accomplish this by suspending these features on arms that bridge the space in the upstream part of the die. The shape and surface finish of these arms has to be carefully designed so that the metal flows around them and joins together to create a smooth, continuous stream of material without voids, which could lead to weakness in the finished product.

Careful consideration of the hydrodynamic forces exerted by and upon the flowing metal are also important to die design. While the exit side of the die is pretty much exactly the size and shape of the finished extrusion, the entrance side is anything but. By some estimates, half of the energy used while extruding aluminum goes into overcoming friction between the metal and the die, so everything that can be done to reduce those forces is like money in the bank. The entrance of the die has to be designed to direct the incoming metal as smoothly and easily as possible into the final shape, which is part of the reason die designers include very generous draft angles over the width of the die.

The Squeeze

There are a number of different ways to approach the extrusion process, each with its own pros and cons. Direct extrusion is basically what you’re familiar with in 3D printing, or if you’ve ever used one of those squeezy things in a Play-Doh set: a slug of softened material is pressed against a die, which then flows through the die to assume its final shape. Indirect extrusion turns that around, forcing the die to move relative to the material. Both approaches have their pros and cons, and both result in extrusions with different metallurgical properties.

In either process, a large log of aluminum, called a billet, is heated in either a gas furnace or by induction. The temperature varies with the specific alloy and the complexity of the die, but it’s important to note that the billet is not melted, just softened. The die and much of the hydraulic press are also heated, to prevent thermal stresses from breaking anything in the machinery and to prevent the aluminum from cooling too soon and sticking to the die.

Aluminum extrusion presses generally have a horizontal orientation, with a massive hydraulic ram facing the die across a narrow gap. The preheated billet is placed into the gap, and the hydraulic ram starts to press it into the die (or, in indirect extrusion, moves the die over the material). The softened metal begins to flow into the spaces of the die, around the arms, and narrowing down into the final shape as it exits the die.

The growing extrusion exits the press and is almost immediately quenched with either air or, more commonly, a water bath. The quenching process is important, because as the extrusion exits the die it is still soft and liable to be deformed. Quenching also sets the crystal structure of the metals in the alloy, giving the finished extrusion its desired metallurgical properties.

Stretching and Aging

But even with quenching, the extrusions that come out of the die onto the long outfeed tables are far from complete. The tremendous forces exerted during extrusion coupled with the thermal stresses of quenching inevitably warps and twists the profiles. This is corrected with a stretching operation, where extrusions are literally picked up and stretched out the long way with hydraulic tools. This restores the profile to its intended shape; the few percent change in the length of the profile necessarily changes the profile dimensions slightly, a fact which has to be accounted for by the die designers.

Curiously, fresh extrusions need to be aged somewhat at elevated temperatures before reaching their final specified strength. This is accomplished in large aging towers over a period of hours to days, depending on the alloy. Aged extrusions are then cut to length, possibly have a finish applied — clear or dyed anodized finishes are very popular for 80/20 extrusions as they protect the aluminum from oxidation — and packaged for shipping.

Given the amount of material that goes into an aluminum extrusion, and the investment needed to run the massive machines that do the job, it’s easy to understand why 80/20 profiles cost what they do. So now maybe I’ll just bite the bullet and order what I need.

Featured images: F&L Industrial Solutions, Inc.

source https://hackaday.com/2020/08/13/under-pressure-how-aluminum-extrusions-are-made/

Under Pressure: How Aluminum Extrusions Are Made

At any given time I’m likely to have multiple projects in-flight, by which of course I mean in various stages of neglect. My current big project is one where I finally feel like I have a chance to use some materials with real hacker street cred, like T-slot extruded aluminum profiles. We’ve all seen the stuff, the “Industrial Erector Set” as 80/20 likes to call their version of it. And we’ve all seen the cool projects made with it, from CNC machines to trade show displays, and in these pandemic times, even occasionally as sneeze guards in retail shops.

Aluminum T-slot profiles are wonderful to work with — strong, lightweight, easily connected with a wide range of fasteners, and infinitely configurable and reconfigurable as needs change. It’s not cheap by any means, but when you factor in the fabrication time saved, it may well be a net benefit to spec the stuff for a project. Still, with the projected hit to my wallet, I’ve been looking for more affordable alternatives.

My exploration led me into the bewilderingly rich world of aluminum extrusions. Even excluding mundane items like beer and soda cans, you’re probably surrounded by extruded aluminum products right now. Everything from computer heatsinks to window frames to the parts that make up screen doors are made from extruded aluminum. So how exactly is this ubiquitous stuff made?

The Die

The basic process for extruding aluminum is, outwardly, as simple to understand as the extrusion process used by a 3D-printer: heat material and force it through a die with the desired shape and size. But when PLA is replaced by giant aluminum log, and a Bowden cable and stepper motor by an enormous hydraulic ram, the details quickly cloud the simplicity of the underlying concept.

A die with a distinctive profile. Source: Phoenix International

Die design is perhaps the most critical part of the extrusion process. Dies have to withstand tremendous forces at high temperatures, and must maintain their dimensional stability while doing so. Extrusion dies start life as round bars of tool steel up to a meter or more in diameter but typically around 30 cm. Dies are usually fairly thin in profile relative to their diameter, since the longer the path the aluminum takes as it passes through the die, the greater the friction it experiences. More friction means more force, which means bigger presses, more wear on the dies, and generally higher costs.

Dies are generally created by specialty manufacturers that employ skilled die design engineers and machinists. The process of turning a design into a die usually starts with roughing out the blank on a CNC lathe, then proceeds to a sequence of CNC milling operations. Electric discharge machining (EDM) is used extensively to get the fine detail needed to provide a smooth finish, and to achieve the precise geometry needed to control the flow of the aluminum through the die.

Most extrusions will have one or more hollow chambers, like the lumen of a pipe or, in the case of our 80/20 profiles, the negative space of the T-slots and the central bore. The die has to create those features, which require parts of the die to “float” in the incoming flow of softened metal. Diemakers accomplish this by suspending these features on arms that bridge the space in the upstream part of the die. The shape and surface finish of these arms has to be carefully designed so that the metal flows around them and joins together to create a smooth, continuous stream of material without voids, which could lead to weakness in the finished product.

Careful consideration of the hydrodynamic forces exerted by and upon the flowing metal are also important to die design. While the exit side of the die is pretty much exactly the size and shape of the finished extrusion, the entrance side is anything but. By some estimates, half of the energy used while extruding aluminum goes into overcoming friction between the metal and the die, so everything that can be done to reduce those forces is like money in the bank. The entrance of the die has to be designed to direct the incoming metal as smoothly and easily as possible into the final shape, which is part of the reason die designers include very generous draft angles over the width of the die.

The Squeeze

There are a number of different ways to approach the extrusion process, each with its own pros and cons. Direct extrusion is basically what you’re familiar with in 3D printing, or if you’ve ever used one of those squeezy things in a Play-Doh set: a slug of softened material is pressed against a die, which then flows through the die to assume its final shape. Indirect extrusion turns that around, forcing the die to move relative to the material. Both approaches have their pros and cons, and both result in extrusions with different metallurgical properties.

In either process, a large log of aluminum, called a billet, is heated in either a gas furnace or by induction. The temperature varies with the specific alloy and the complexity of the die, but it’s important to note that the billet is not melted, just softened. The die and much of the hydraulic press are also heated, to prevent thermal stresses from breaking anything in the machinery and to prevent the aluminum from cooling too soon and sticking to the die.

Aluminum extrusion presses generally have a horizontal orientation, with a massive hydraulic ram facing the die across a narrow gap. The preheated billet is placed into the gap, and the hydraulic ram starts to press it into the die (or, in indirect extrusion, moves the die over the material). The softened metal begins to flow into the spaces of the die, around the arms, and narrowing down into the final shape as it exits the die.

The growing extrusion exits the press and is almost immediately quenched with either air or, more commonly, a water bath. The quenching process is important, because as the extrusion exits the die it is still soft and liable to be deformed. Quenching also sets the crystal structure of the metals in the alloy, giving the finished extrusion its desired metallurgical properties.

Stretching and Aging

But even with quenching, the extrusions that come out of the die onto the long outfeed tables are far from complete. The tremendous forces exerted during extrusion coupled with the thermal stresses of quenching inevitably warps and twists the profiles. This is corrected with a stretching operation, where extrusions are literally picked up and stretched out the long way with hydraulic tools. This restores the profile to its intended shape; the few percent change in the length of the profile necessarily changes the profile dimensions slightly, a fact which has to be accounted for by the die designers.

Curiously, fresh extrusions need to be aged somewhat at elevated temperatures before reaching their final specified strength. This is accomplished in large aging towers over a period of hours to days, depending on the alloy. Aged extrusions are then cut to length, possibly have a finish applied — clear or dyed anodized finishes are very popular for 80/20 extrusions as they protect the aluminum from oxidation — and packaged for shipping.

Given the amount of material that goes into an aluminum extrusion, and the investment needed to run the massive machines that do the job, it’s easy to understand why 80/20 profiles cost what they do. So now maybe I’ll just bite the bullet and order what I need.

Featured images: F&L Industrial Solutions, Inc.

source https://hackaday.com/2020/08/13/under-pressure-how-aluminum-extrusions-are-made/

Drone Buoy Drifts Along the Gulf Stream for Citizen Science

It may be named after the most famous volleyball in history, but “Wilson” isn’t just a great conversationalist. [Hayden Brophy] built the free-drifting satellite buoy to see if useful science can be done with off-the-shelf hardware and on a shoestring budget. And from the look of the data so far, Wilson is doing pretty well.

Wilson belongs to a class of autonomous vessels known as drifters, designed to float along passively in the currents of the world’s ocean. The hull of [Hayden]’s drifter is a small Pelican watertight case, which contains all the electronics: Arduino Pro Trinket, GPS receiver, a satellite modem, and a charger for the LiPo battery. The lid of the case is dominated by a 9 W solar panel, plus the needed antennas for GPS and the Iridium uplink and a couple of sensors, like a hygrometer and a thermometer. To keep Wilson bobbing along with his solar panel up, there’s a keel mounted to the bottom of the case, weighted with chains and rocks, and containing a temperature sensor for the water.

Wilson is programmed to wake up every 12 hours and uplink position and environmental data as he drifts along. The drifter was launched into the heart of the Gulf Stream on August 8, about 15 nautical miles off Marathon Key in Florida, by [Captain Jim] and the very happy crew of the “Raw Deal”. As of this writing, the tracking data shows that Wilson is just off the coast of Miami, 113 nautical miles from launch, and drifting along at a stately pace of 2.5 knots. Where the buoy ends up is anyone’s guess, but we’ve seen similar buoys make it all the way across the Atlantic, so here’s hoping that hurricane season is kind to Wilson.

We think this is great, and congratulations to [Hayden] for organizing a useful and interesting project.

source https://hackaday.com/2020/08/13/drone-buoy-drifts-along-the-gulf-stream-for-citizen-science/

Head-Tracking NES Water Blaster Is Good Summer Fun

Super Soakers were great fun back in the day, but adults tend to get tired of the manual labour of pumping pretty quickly. [Sean] decided to build something a touch more modern, coming up with this head-tracking water blaster.

The water spray tracks the movement of the wearer’s head. With a camera mounted on the nozzle, this allows the user to simply look to designate targets. Similar technology is used in military fighter jets.

To eliminate pumping, the build instead enlists the services of an electric pump, powered by a 12 V battery. Pushing water through a tube into a 3D printed nozzle, it provides a fat stream of water with around 5 meters range, with little effort from the user. The nozzle is fitted into a NES Zapper, and attached to a servo pan-tilt platform. The camera is mounted on the water gun, and hooked up to a set of Fat Shark FPV goggles with an IMU unit. When the user looks around, the water gun moves in sync with their head movements. This allows for the user to look at targets to hit them with the water stream, a very intuitive method of aiming.

It’s a fun build that’s perfect for the summer, and an easy one to recreate for anyone with some spare servos and FPV gear. Of course, with a little face-tracking software, it would be easy to hit targets automatically. Video after the break.

source https://hackaday.com/2020/08/13/head-tracking-nes-water-blaster-is-good-summer-fun/

Rack ’em Stack ’em Raspberry Pi Controller Board

It isn’t that hard to assemble an array of Raspberry Pi boards and there are several reasons you might want to do so. The real trick is getting power to all of them and cooling all of them without having a mess of wires and keeping them all separated. The ClusterCTRL stack lets you stack up to five Raspberry Pi boards together. The PCB aligns vertically along the side of the stack of Pis with sockets for each pin header. Using a single 12 to 24V supply, it provides power for each board, a USB power connection, and provisions for two fans. There is also a USB port to control the fans and power.

There’s also a software component to deliver more granular control. Without using the software, the PI’s power on in one second and monitor a GPIO pin to control the fans. With the software, you can turn on or off individual nodes, gang the two fans to turn on together, and even add more stacks.

There is a case that you can print from STL files, although you can buy them preprinted on the Tindie listing where the bulk of information on ClusterCTRL is found. You could also have a 3D printing vendor run off a copy for you if you’d rather.

The power supply is a 10A 5.1V DC to DC converter. That works out to 2A per Pi and 51W total. The power supply for the input, then, needs to be enough to cover 51W, the power for the fans, and some overhead for regulator inefficiency and other small overhead.

We’ve seen a lot of Pi clusters over the years including one that is a good learning tool for cluster management. Of course, there’s always the Oracle cluster with 1,060 boards, which is going to take a bigger power supply.

source https://hackaday.com/2020/08/12/rack-em-stack-em-raspberry-pi-controller-board/

Rack ’em Stack ’em Raspberry Pi Controller Board

It isn’t that hard to assemble an array of Raspberry Pi boards and there are several reasons you might want to do so. The real trick is getting power to all of them and cooling all of them without having a mess of wires and keeping them all separated. The ClusterCTRL stack lets you stack up to five Raspberry Pi boards together. The PCB aligns vertically along the side of the stack of Pis with sockets for each pin header. Using a single 12 to 24V supply, it provides power for each board, a USB power connection, and provisions for two fans. There is also a USB port to control the fans and power.

There’s also a software component to deliver more granular control. Without using the software, the PI’s power on in one second and monitor a GPIO pin to control the fans. With the software, you can turn on or off individual nodes, gang the two fans to turn on together, and even add more stacks.

There is a case that you can print from STL files, although you can buy them preprinted on the Tindie listing where the bulk of information on ClusterCTRL is found. You could also have a 3D printing vendor run off a copy for you if you’d rather.

The power supply is a 10A 5.1V DC to DC converter. That works out to 2A per Pi and 51W total. The power supply for the input, then, needs to be enough to cover 51W, the power for the fans, and some overhead for regulator inefficiency and other small overhead.

We’ve seen a lot of Pi clusters over the years including one that is a good learning tool for cluster management. Of course, there’s always the Oracle cluster with 1,060 boards, which is going to take a bigger power supply.

source https://hackaday.com/2020/08/12/rack-em-stack-em-raspberry-pi-controller-board/

Rack ’em Stack ’em Raspberry Pi Controller Board

It isn’t that hard to assemble an array of Raspberry Pi boards and there are several reasons you might want to do so. The real trick is getting power to all of them and cooling all of them without having a mess of wires and keeping them all separated. The ClusterCTRL stack lets you stack up to five Raspberry Pi boards together. The PCB aligns vertically along the side of the stack of Pis with sockets for each pin header. Using a single 12 to 24V supply, it provides power for each board, a USB power connection, and provisions for two fans. There is also a USB port to control the fans and power.

There’s also a software component to deliver more granular control. Without using the software, the PI’s power on in one second and monitor a GPIO pin to control the fans. With the software, you can turn on or off individual nodes, gang the two fans to turn on together, and even add more stacks.

There is a case that you can print from STL files, although you can buy them preprinted on the Tindie listing where the bulk of information on ClusterCTRL is found. You could also have a 3D printing vendor run off a copy for you if you’d rather.

The power supply is a 10A 5.1V DC to DC converter. That works out to 2A per Pi and 51W total. The power supply for the input, then, needs to be enough to cover 51W, the power for the fans, and some overhead for regulator inefficiency and other small overhead.

We’ve seen a lot of Pi clusters over the years including one that is a good learning tool for cluster management. Of course, there’s always the Oracle cluster with 1,060 boards, which is going to take a bigger power supply.

source https://hackaday.com/2020/08/12/rack-em-stack-em-raspberry-pi-controller-board/

RetroPlug Syncs Gameboy Emulators With Your DAW for Chiptunes Overload

The Gameboy is one of the biggest platforms in the chiptune scene. While it’s possible to play a show with a single handheld, many artists choose to use two or even more to fatten their sound and rock the crowd. To ease the workflow of creating songs for such a setup, [tommitytom] created Retroplug and you can see him walk through the features in the demo video after the break.

Retroplug is a VST wrapper for the Sameboy Gameboy emulator. This makes it possible to run multiple emulated Gameboy instances within digital audio software like Ableton or Fruityloops. Rather than having to juggle multiple 30-year old Gameboys and the associated batteries and link cables, instead, it can all be done within a hosted VST window.

Presently, the software works only with 64-bit Windows and VST2, however source is available for those eager to peek under the hood. It fully implements MIDI support for mGB, and works well with LSDJ and Arduinoboy setups. *.sav files are created for each emulated instance too, so when you’re done composing, you can throw your songs onto real hardware when you go out and perform!

We see no shortage of fresh projects, from Genesis chiptune players to MIDI control for Gameboys.  As its adherents always say, chiptune will never die. We’d love to see a similar project done with a C64 emulator, NES, or even the Genesis. If you happen to put it goether, drop us a line!

source https://hackaday.com/2020/08/12/retroplug-syncs-gameboy-emulators-with-your-daw-for-chiptunes-overload/

Scratch Build of This Tiny RC Car is a Handmade Fabrication Masterpiece

Tiny remote control cars burst onto the scene from time to time, often sold from mall kiosks and covered in garish stickers. However, sometimes it’s more fun to build than to buy. [diorama111] clearly fits into this camp, building a tiny 1:150 scale RC car from the ground up.

The build starts with a Tomy 1:150 model of what looks to be a Mercedes. However, only the outer shell remain. From giving the wheels rubber tires and fabricating a delicate steering assembly, to adding motors for both locomotion and turning, the mechanical build is on point. But seeing the ATtiny1616 is deadbugged with a DRV8835 motor driver, with the SMD parts hooked up with magnet wire to save the most space possible is equally impressive. A PIC79603 IR module is used to receive the commands to drive the car.

The build is an artful one, and all done by hand — no 3D printing or CNC parts involved. Watching the car drive is a delight. The smooth analog steering and slow speed give it an excellent scale appearance. The only thing we wonder about is the difficulty of driving it quickly without the aid of self-centering steering. It reminds us fondly of the 1:96 scale fully-functional Mustang RC plane we featured in 2017. Video after the break.

[Thanks to killergeek for the tip!]

source https://hackaday.com/2020/08/12/scratch-build-of-this-tiny-rc-car-is-a-handmade-fabrication-masterpiece/

Miniature Star Wars Arcade Lets You Blow Up the Death Star on the Go

If you have fond childhood memories of afternoons spent at the local arcade, then you’ve had the occasional daydream about tracking down one of those old cabinets and putting it in the living room. But the size, cost, and rarity of these machines makes actually owning one impractical for most people.

While this fully functional 1/4th scale replica of the classic Star Wars arcade game created by [Jamie McShan] might not be a perfect replacement for the original, there’s no denying it would be easier to fit through your front door. Nearly every aspect of the iconic 1983 machine has been carefully recreated, right down to a working coin slot that accepts miniature quarters. Frankly, the build would have been impressive enough had he only put in half the detail work, but we certainly aren’t complaining that he went the extra mile.

[Jamie] leaned heavily on resin 3D printed parts for this build, and for good reason. It’s hard to imagine how he could have produced some of the tiny working parts for his cabinet using traditional manufacturing techniques. The game’s signature control yoke and the coin acceptor mechanism are really incredible feats of miniaturization, and a testament to what’s possible at the DIY level with relatively affordable tools.

The cabinet itself is cut from MDF, using plans appropriately scaled down from the real thing. Inside you’ll find a Raspberry Pi 3 Model A+ running RetroPie attached directly to the back of a 4.3 inch LCD with integrated amplified speakers. [Jamie] is using an Arduino to handle interfacing with the optical coin detector and controls, which communicates with the Pi over USB HID. He’s even added in a pair of 3,000 mAh LiPo battery packs and a dedicated charge controller so you can blow up the Death Star on the go.

Still don’t think you can fit one in your apartment? Not to worry, back in 2012 we actually saw somebody recreate this same cabinet in just 1/6th scale.

[Thanks to Paul for the tip.]

source https://hackaday.com/2020/08/12/miniature-star-wars-arcade-lets-you-blow-up-the-death-star-on-the-go/

Degrees of Freedom: Booting ARM Processors

Any modern computer with an x86 processor, whether it’s Intel or AMD, is a lost cause for software freedom and privacy. We harp on this a lot, but it’s worth repeating that it’s nearly impossible to get free, open-source firmware to run on them thanks to the Intel Management Engine (IME) and the AMD Platform Security Processor (PSP). Without libre firmware there’s no way to trust anything else, even if your operating system is completely open-source.

The IME or PSP have access to memory, storage, and the network stack even if the computer is shut down, and even after the computer boots they run at such a low level that the operating system can’t be aware of what they’re really doing. Luckily, there’s a dark horse in the race in the personal computing world that gives us some hope that one day there will be an x86 competitor that allows their users to have a free firmware that they can trust. ARM processors, which have been steadily increasing their user share for years but are seeing a surge of interest since the recent announcement by Apple, are poised to take over the personal computing world and hopefully allow us some relevant, modern options for those concerned with freedom and privacy. But in the real world of ARM processors the road ahead will decidedly long, windy, and forked.

Even ignoring tedious nitpicks that the distinction between RISC vs CISC is more blurred now than it was “back in the day”, RISC machines like ARM have a natural leg up on the x86 CISC machines built by Intel and AMD. These RISC machines use fewer instructions and perform with much more thermal efficiency than their x86 competitors. They can often be passively cooled, avoiding need to be actively cooled, unlike many AMD/Intel machines that often have noisy or bulky fans. But for me, the most interesting advantage is the ability to run ARM machines without the proprietary firmware present with x86 chips.

ARM is an Architecture Licensed to Many Manufacturers

ARM doesn’t make any chips themselves like the x86 manufacturers like Intel do. Rather, they maintain and license their architecture to other companies who in turn build processors that use the ARM instruction set. There is an almost uncountable number of companies making ARM processors: Broadcom, Qualcomm, Rockchip, Atmel, STMicroelectronics, and Texas Instruments, to name a few. And don’t forget Apple, who have been making ARM-based phones and tablets for years and who are about to transition their entire line of products to this superior architecture.

The diversity in manufacturers both is a blessing and a curse when it comes to privacy-respecting options for firmware and software. With so many manufacturers, ARM chips are in almost everything and are so common that there is an easily-accessible wealth of knowledge about how to build software for them (even though desktop computing applications are just a little bit behind).

Applications for the platform are varied as well, from microcontrollers to routers to smartphones and a handful of PCs. However, as anyone with an Android phone may have experienced when trying to unlock their bootloader, there is no uniform way that ARM processors are booted and there’s no uniform or even standardized boot software for ARM-based chips. Some use uboot or coreboot, some need to use some binary blobs, and still others have proprietary firmware that is not open source or able to be modified in any way and even prohibits modifying other software on the device.

Companies using ARM devices are free to open up their devices to be as free as possible like Pine64 does with their phones, tablets, and computers, but others (including cell phone service providers like AT&T or Verizon) can use the freedom afforded to them by the ARM platform to make sure their customers have almost no access to the software running on that hardware. Finding ARM platforms that are open is a challenge if the original manufacturer or supplier didn’t make it a priority, but there are some other options available.

Finding Your Way to ARM and Libre Firmware

One of the more favorable of those options is the Rockchip RK3288, which uses an ARM Cortex-A17 processor and can be found in a number of different Chromebooks. Libreboot, a free and open-source firmware available for a small set of computers, is available for these chips as well which means that (as long as you can get the right graphics driver installed) you can run 100% free software on this computer. Of course, the chipset is around six years old so while it is a fair bit newer than other computers running libreboot (like installing libreboot on my personal laptop which is of the 2008 vintage), it’s still not the most modern processor out there.

PineBook Pro teardown shows a Rockchip RK3399 ARM processor.

For something a little newer, a great example of the openness possible with ARM is from Pine64, which produces several laptops, phones, and a tablet all based on ARM chips. Their PineBook Pro, for example, uses the upgraded Rockchip RK3399 which has two Cortex-A72 cores and four Cortex-A53 cores, which allows it to split various tasks among themselves in order to make the best use of each of these chips, and of course it uses a libre bootloader as well. The offerings from Rockchip aren’t the only options, either; the Free Software Foundation has a list of other systems-on-a-chip that have varying degrees of software freedom.

Popular Choices for Open Bootloaders on ARM

While the open, diverse nature of ARM means that anyone anywhere can code a firmware/bootloader/BIOS for their specific platform of choice, it’s not necessary to reinvent the wheel. There are a few options already out there that are popular choices.

The most free of these is the oft-mentioned libreboot, which uses 100% free and open-source software and never uses any binary blobs. It is available for a handful of ARM-based laptops from the early 2010s (as well as some other older x86-based boards as well). Libreboot itself is a fork distribution of coreboot, a bootloader that is largely free (licensed under GPLv2) but occasionally uses proprietary binary “blobs” of non-free software in order to get certain hardware up and running that might not otherwise have a non-proprietary way of booting.

Besides these two main bootloaders there is also Das U-boot, or simply uboot, another free bootloader available for various platforms including ARM. Many specialty bootloaders exist as well, such as RedBoot which is built specifically for Red Hat implementations, and BareBox which is used largely in embedded devices. Of course, like the many flavors of Linux, there are an astounding number of other bootloaders available with various features and levels of freedom.

You Should Value Your Privacy and Security

With so many variables, hopefully the coming ARM revolution will include free options for those of us who value security and freedom from the ground up. While Apple almost certainly will not use a free or open-source bootloader as the firmware for their laptops, they’re not actually driving this movement. There’s sea change happening right now throughout the computing world in favor of ARM processors over their more inefficient and insecure x86 competitors and if Apple is any indication this may eventually spill over into the rest of the PC world as well.

The current state of PCs doesn’t really allow us to “vote with one’s wallet” since there are almost no options in the landscape for security or privacy. But your privacy and security have value. With the diversity of manufacturers of ARM devices, I am hopeful that the a growing number of companies will to listen our needs and finally offer modern, powerful, and competitive computers built from the ground up with hardware, firmware, and software choices that begin with privacy and security in mind.

source https://hackaday.com/2020/08/12/degrees-of-freedom-booting-arm-processors/

Degrees of Freedom: Booting ARM Processors

Any modern computer with an x86 processor, whether it’s Intel or AMD, is a lost cause for software freedom and privacy. We harp on this a lot, but it’s worth repeating that it’s nearly impossible to get free, open-source firmware to run on them thanks to the Intel Management Engine (IME) and the AMD Platform Security Processor (PSP). Without libre firmware there’s no way to trust anything else, even if your operating system is completely open-source.

The IME or PSP have access to memory, storage, and the network stack even if the computer is shut down, and even after the computer boots they run at such a low level that the operating system can’t be aware of what they’re really doing. Luckily, there’s a dark horse in the race in the personal computing world that gives us some hope that one day there will be an x86 competitor that allows their users to have a free firmware that they can trust. ARM processors, which have been steadily increasing their user share for years but are seeing a surge of interest since the recent announcement by Apple, are poised to take over the personal computing world and hopefully allow us some relevant, modern options for those concerned with freedom and privacy. But in the real world of ARM processors the road ahead will decidedly long, windy, and forked.

Even ignoring tedious nitpicks that the distinction between RISC vs CISC is more blurred now than it was “back in the day”, RISC machines like ARM have a natural leg up on the x86 CISC machines built by Intel and AMD. These RISC machines use fewer instructions and perform with much more thermal efficiency than their x86 competitors. They can often be passively cooled, avoiding need to be actively cooled, unlike many AMD/Intel machines that often have noisy or bulky fans. But for me, the most interesting advantage is the ability to run ARM machines without the proprietary firmware present with x86 chips.

ARM is an Architecture Licensed to Many Manufacturers

ARM doesn’t make any chips themselves like the x86 manufacturers like Intel do. Rather, they maintain and license their architecture to other companies who in turn build processors that use the ARM instruction set. There is an almost uncountable number of companies making ARM processors: Broadcom, Qualcomm, Rockchip, Atmel, STMicroelectronics, and Texas Instruments, to name a few. And don’t forget Apple, who have been making ARM-based phones and tablets for years and who are about to transition their entire line of products to this superior architecture.

The diversity in manufacturers both is a blessing and a curse when it comes to privacy-respecting options for firmware and software. With so many manufacturers, ARM chips are in almost everything and are so common that there is an easily-accessible wealth of knowledge about how to build software for them (even though desktop computing applications are just a little bit behind).

Applications for the platform are varied as well, from microcontrollers to routers to smartphones and a handful of PCs. However, as anyone with an Android phone may have experienced when trying to unlock their bootloader, there is no uniform way that ARM processors are booted and there’s no uniform or even standardized boot software for ARM-based chips. Some use uboot or coreboot, some need to use some binary blobs, and still others have proprietary firmware that is not open source or able to be modified in any way and even prohibits modifying other software on the device.

Companies using ARM devices are free to open up their devices to be as free as possible like Pine64 does with their phones, tablets, and computers, but others (including cell phone service providers like AT&T or Verizon) can use the freedom afforded to them by the ARM platform to make sure their customers have almost no access to the software running on that hardware. Finding ARM platforms that are open is a challenge if the original manufacturer or supplier didn’t make it a priority, but there are some other options available.

Finding Your Way to ARM and Libre Firmware

One of the more favorable of those options is the Rockchip RK3288, which uses an ARM Cortex-A17 processor and can be found in a number of different Chromebooks. Libreboot, a free and open-source firmware available for a small set of computers, is available for these chips as well which means that (as long as you can get the right graphics driver installed) you can run 100% free software on this computer. Of course, the chipset is around six years old so while it is a fair bit newer than other computers running libreboot (like installing libreboot on my personal laptop which is of the 2008 vintage), it’s still not the most modern processor out there.

PineBook Pro teardown shows a Rockchip RK3399 ARM processor.

For something a little newer, a great example of the openness possible with ARM is from Pine64, which produces several laptops, phones, and a tablet all based on ARM chips. Their PineBook Pro, for example, uses the upgraded Rockchip RK3399 which has two Cortex-A72 cores and four Cortex-A53 cores, which allows it to split various tasks among themselves in order to make the best use of each of these chips, and of course it uses a libre bootloader as well. The offerings from Rockchip aren’t the only options, either; the Free Software Foundation has a list of other systems-on-a-chip that have varying degrees of software freedom.

Popular Choices for Open Bootloaders on ARM

While the open, diverse nature of ARM means that anyone anywhere can code a firmware/bootloader/BIOS for their specific platform of choice, it’s not necessary to reinvent the wheel. There are a few options already out there that are popular choices.

The most free of these is the oft-mentioned libreboot, which uses 100% free and open-source software and never uses any binary blobs. It is available for a handful of ARM-based laptops from the early 2010s (as well as some other older x86-based boards as well). Libreboot itself is a fork distribution of coreboot, a bootloader that is largely free (licensed under GPLv2) but occasionally uses proprietary binary “blobs” of non-free software in order to get certain hardware up and running that might not otherwise have a non-proprietary way of booting.

Besides these two main bootloaders there is also Das U-boot, or simply uboot, another free bootloader available for various platforms including ARM. Many specialty bootloaders exist as well, such as RedBoot which is built specifically for Red Hat implementations, and BareBox which is used largely in embedded devices. Of course, like the many flavors of Linux, there are an astounding number of other bootloaders available with various features and levels of freedom.

You Should Value Your Privacy and Security

With so many variables, hopefully the coming ARM revolution will include free options for those of us who value security and freedom from the ground up. While Apple almost certainly will not use a free or open-source bootloader as the firmware for their laptops, they’re not actually driving this movement. There’s sea change happening right now throughout the computing world in favor of ARM processors over their more inefficient and insecure x86 competitors and if Apple is any indication this may eventually spill over into the rest of the PC world as well.

The current state of PCs doesn’t really allow us to “vote with one’s wallet” since there are almost no options in the landscape for security or privacy. But your privacy and security have value. With the diversity of manufacturers of ARM devices, I am hopeful that the a growing number of companies will to listen our needs and finally offer modern, powerful, and competitive computers built from the ground up with hardware, firmware, and software choices that begin with privacy and security in mind.

source https://hackaday.com/2020/08/12/degrees-of-freedom-booting-arm-processors/