The humble automotive alternator hides an interesting secret. Known as the part that converts power from internal combustion into the electricity needed to run everything else, they can also themselves be used as an electric motor.
These devices almost always take the form of a 3-phase alternator with the magnetic component supplied by an electromagnet on the rotor, and come with a rectifier and regulator pack to convert the higher AC voltage to 12V for the car electrical systems. Internally they have three connections to the stator coils which appear to be universally wired in a delta configuration, and a pair of connections to a set of brushes supplying the rotor coils through a set of slip rings. They have a surprisingly high capacity, and estimates put their capabilities as motors in the several horsepower. Best of all they are readily available second-hand and also surprisingly cheap, the Ford Focus unit shown here came from an eBay car breaker and cost only £15 (about $20).
We already hear you shouting “Why?!” at your magical internet device as you read this. Let’s jump into that.
For years we’ve seen a trickle of really interesting home automation projects that use the Node-RED package. Each time, the hackers behind these projects have raved about Node-RED and now I’ve joined those ranks as well.
You can get this up and running in less than an hour and I’m going to tackle that as well as examples for playing with MQTT, setting up a web GUI, and writing to log files. To make Node-RED persistent on your network you need a server, but it’s lean enough to run from a Raspberry Pi without issue, and it’s even installed by default in BeagleBone distributions. Code for all examples in this guide can be found in the tutorial repository. Let’s dive in!
They say that in order to understand recursion, you must first understand recursion. Once you master that concept, you might decide that it’s time to write your own compiler that can compile itself as a fun side project. According to [Warren] aka [DoctorWkt], who documented every step of writing this C compiler from scratch, a true compiler will be able to do that.
Some of the goals for the project included self-compiling, focusing on a real hardware platform, practicality, and simplicity. [Warren] outlines a lot of the theory of compilers as well, including all the lexical, grammar, and semantic analysis and then the final translation into assembly language, but really focuses on making this compiler one for practical use rather than just a theoretical implementation. He focuses on Intel x86-64 and 32-bit ARM platforms too, which are widely available.
This project is a long read and very thoroughly documented at around 100,000 words, so if you’ve ever been interested in compilers this is a great place to start. There are a lot of other great compiler tools floating around too, like the Compiler Explorer which shows you generated code as you write in a higher level language.
Most electronics we deal with day to day are comprised of circuit boards. No surprise there, right? But how do they work? This might seem like a simple question but we’ve all been in the place where those weird green or black sheets are little slices of magic. [Teddy Tablante] at Branch Eduction put together a lovingly crafted walkthrough flythrough video of how PCB(A)s work that’s definitely worth your time.
[Teddy]’s video focuses on unraveling the mysteries of the PCBA by peeling back the layers of a smartphone. Starting from the full assembly he separates components from circuit board and descends from there, highlighting the manufacturing methods and purpose behind what you see.
What really stands out here is the animation; at each step [Teddy] has modeled the relevant components and rendered them on the PCBA in 3D. Instead of relying solely on hard to understand blurry X-ray images and 2D scans of PCBAs he illustrates their relationships in space, an especially important element in understanding what’s going on underneath the solder mask. Even if you think you know it all we bet there’s a pearl of knowledge to discover; this writer learned that VIA is an acronym!
If you don’t like clicking links you can find the video embedded after the break. Credit to friend of the Hackaday [Mike Harrison] for acting as the best recommendation algorithm and finding this gem.
Today it’s almost always cheaper to buy an imported 3D printer kit than it is to source your own parts and build one yourself. But that doesn’t stop people from doing it anyway. Whether they’re looking for something a bit more solid, or just want to do things their own way, there are still valid reasons to design and build your own machine. Luckily for us in the audience, [Rob Mech] decided to document the build of his custom “LayerFused C201” printer on his YouTube Channel.
If you’ve ever dreamed of taking the plunge and building a 3D printer exactly the way you want, but were never able to manage the time, this seven video series might be the next best thing. Each video takes you through a different step of the construction, from building the frame out of aluminum extrusion all the way to wiring up the endstop switches and the 32-bit SKR v1.3 controller. There’s even a video that introduces the viewer to the concept of a “Frankenstein” printer that uses cobbled together parts just long enough to produce its own final components.
Fadecandy is a platform specifically designed to drive WS2812B LEDs for artistic purposes. This allows users to focus on the visual side of things without getting bogged down with the hassle of selecting the right microcontroller and choosing the applicable libraries. It works great in combination with Processing, a piece of software designed for coders experimenting with visual arts. Through a USB link, any graphics drawn by processing can be mapped to the LEDs attached to the Fadecandy controller.
[Amy] does a great job of explaining how to do everything required, from purchasing the right equipment, through wiring everything up, and then getting it all humming along with the correct software. If you’ve ever wanted to build a big flashy project with a ton of LEDs, this would be a great place to start.
KiCAD has a rightfully earned image problem regarding beginners. The shiny new version 5 has improved things (and we’re very excited for v6!) but the tool is a bit obtuse even when coming from a electronics design background, so we’re always excited to see new learning material. [Mike Watts] is the latest to join the esteemed group of people willing to export their knowledge with his KiCAD tutorial series on GitHub that takes the aspiring user from schematic through fab and assembly.
The tutorial is focused around the process of creating a development board for the dimuitive Microchip née Atmel ATSAMD10 Cortex M0 ARM CPU. It opens by asking the reader to create a schematic and proceeds to teach by directing them to perform certain actions then explaining what’s going on and which shortcuts can accelerate things. This method continues through layout, manufacturing, and assembly.
Of note is that when defining the board outline [Mike] describes how to use OpenSCAD to parametrically define it; a neat micro-tutorial on using the two great tools to compliment each other. We also love that upon successful completion of the tutorial series the user will have developed a tiny but useful development board that can be assembled for about $3 in single quantities!
As with all open source work, if you have quibbles or want to contribute open a pull request and give [Mike] a hand!