CadQuery Comes Of Age

Now, we know what some of you are going to say — “Oh man, not another programmatic CAD tool, what’s wrong with OpenSCAD?” — and you may be right, but maybe hold on a bit and take a look at this one, because we think that it’s now pretty awesome! OpenSCAD is great, we use it all the time round these parts, but it is a bit, you know, weird in places. Then along comes CadQuery, and blows it out of the water ease-of-use and functionality wise. Now, we’ve seen a few mentions of CadQuery over the years, and finally it’s become a full-blown toolset in its own right, complete with a graphical frontend/editor, CQ-editor. No odd dependencies on FreeCAD to be seen! That said, installing FreeCAD is not a bad thing either.

The goal is to have the CadQuery script that produces this object be as close as possible to the English phrase a human would use.

Continue reading “CadQuery Comes Of Age”

The powerbank PCB, with all the components on one side, 18650 holder on the other, a MicroUSB cable plugged into the PCB's MicroUSB socket

Open Hardware 5V UPS Improves On Cheap Powerbank Design

Often, we need to power a 5V-craving project of ours on the go. So did [Burgduino], and, unhappy with solutions available, designed their own 5V UPS! It takes a cheap powerbank design and augments it with a few parts vital for its UPS purposes.

You might be tempted to reach for a powerbank when facing such a problem, but most of them have a fatal flaw, and you can’t easily tell a flawed one apart from a functioning one before you buy it. This flaw is lack of load sharing – ability to continue powering the output when a charger is inserted. Most store-bought powerbanks just shut the output off, which precludes a project running 24/7 without powering it down, and can cause adverse consequences when something like a Raspberry Pi is involved.

Understandably, [Burgduino] wasn’t okay with that. Their UPS is based on the TP5400, a combined LiIon charging and boost chip, used a lot in simple powerbanks, but not capable of load sharing. For that, an extra LM66100 chip – an “ideal diode” controller is used. You might scoff at it being a Texas Instruments part, but it does seem to be widely available and only a tad more expensive than the TP5400 itself! The design is open hardware, with PCB files available on EasyEDA and the BOM clearly laid out for easy LCSC ordering.

We the hackers might struggle to keep our portable Pi projects powered, employing supercapacitors and modifying badly designed Chinese boards. However, once we find a proper toolkit for our purposes, battery-powered projects tend to open new frontiers – you might even go beyond your Pi and upgrade your router with an UPS addon! Of course, it’s not always smooth sailing, and sometimes seemingly portability-friendly devices can surprise you with their design quirks.

Another Neat General Purpose Soldering Iron Driver

Over on Hackaday.io, user [Tomasz Jastrzebski] has designed a tidy-looking custom controller for driving temperature-controlled soldering irons. The design is intended to be general purpose, capable of operating with irons rated for different voltages and probe type, be they thermocouple- or thermistor-based. Rather than integrating a power supply, this is handled by an external unit, giving the possibility of feeding this from a variety of sources that are not necessarily tied to the grid.

Hardware-wise, we’ve got the ubiquitous STM32 microcontroller in charge of the show, with a nice front end based on the INA823 instrumentation amplifier, referenced to a REF2030 precision voltage source. The input stage is configured as a versatile Wheatstone bridge input circuit, giving plenty of scope for tweaking.

There are a few extra features in the design that aren’t necessarily needed for a soldering iron driver, such as RTC support, complete with supercapacitor backup, but then this doesn’t have to drive a soldering iron, it could drive any DC heater with temperature feedback. With a change in firmware, this could serve other tasks. One potential feature that springs to mind — have the unit automatically power down at a certain time of day in case it was left on accidentally.

The schematic has a lot of relevant detail — in that many parts have a good list of alternatives, presumably because of the semiconductor shortages — which is a good habit to get into if you ask us. Many of us involved with manufacturing have been doing this for years, as it makes sense to give the assembly house the extra options, but this really is basically mandatory practice now.

Firmware for the STM32G0 series microcontroller is based on the STM32 HAL, keeping it simple, with a Visual Studio Code project provided for your convenience. All hardware (KiCAD) and firmware can be found on the project GitHub.

We’ve seen a few projects like this over the years, like this Really Universal Soldering Controller, a custom controller for JBC irons, and this great portable Arduino-based unit.

BBQ lighter fault injector

Blast Chips With This BBQ Lighter Fault Injection Tool

Looking to get into fault injection for your reverse engineering projects, but don’t have the cash to lay out for the necessary hardware? Fear not, for the tools to glitch a chip may be as close as the nearest barbecue grill.

If you don’t know what chip glitching is, perhaps a primer is in order. Glitching, more formally known as electromagnetic fault injection (EMFI), or simply fault injection, is a technique that uses a pulse of electromagnetic energy to induce a fault in a running microcontroller or microprocessor. If the pulse occurs at just the right time, it may force the processor to skip an instruction, leaving the system in a potentially exploitable state.

EMFI tools are commercially available — we even recently featured a kit to build your own — but [rqu]’s homebrew version is decidedly simpler and cheaper than just about anything else. It consists of a piezoelectric gas grill igniter, a little bit of enameled magnet wire, and half of a small toroidal ferrite core. The core fragment gets a few turns of wire, which then gets soldered to the terminals on the igniter. Pressing the button generates a high-voltage pulse, which gets turned into an electromagnetic pulse by the coil. There’s a video of the tool in use in the Twitter thread, showing it easily glitching a PIC running a simple loop program.

To be sure, a tool as simple as this won’t do the trick in every situation, but it’s a cheap way to start exploring the potential of fault injection.

Thanks to [Jonas] for the tip.

3D Printed Jig Makes Custom Springs A Snap

We’ve often heard it said that springs come in in all shapes and sizes…except for the one you need. In light of this, the hardware hacker would do well to keep the tools and knowledge required to make a custom spring close at hand when building something that moves. Luckily, all it really take is some stiff metal wire, a rod, and patience.

Unless you’ve got a 3D printer, that is. In which case, we’d suggest you print out this very clever “Spring Factory” designed by [Vincent Baillet]. The simple tool, consisting of just two parts, makes it easier and faster to make consistent DIY springs when compared to traditional methods. Rather than trying to eyeball the spacing of the coil as you wind the wire around the mandrel, this design does it for you.

As seen in the video, springs made with this tool look very professional. Not only does the threaded mandrel keep the spacing between coils even, it also makes sure all the springs you produce are identical. This can be especially important with projects that need to use multiple matching springs. [Vincent] says his handy tool works with piano wire from 0.8 to 1.2 mm, and slightly thicker if plain steel.

Of course, the obvious flaw in a tool like this is that it can only be used to make springs of a specific diameter. Changing the length is easy enough, just use more or less wire. But to make a thinner or thicker spring, you’d need a different size of mandrel. It seems that [Vincent] has only released the gadget in this approximately 9 mm diameter so far, but here’s hoping a few more sizes get added to the mix before too long.

Looking for something a bit more advanced? This Arduino-powered wire bender is capable of making some very impressive custom springs, among other things.

Continue reading “3D Printed Jig Makes Custom Springs A Snap”

Laser Z-Axis Table Comes Into Focus

Laser cutters and 3D printers are game-changing tools to have in the workshop. They make rapid prototyping or repairs to existing projects a breeze as they can churn out new parts with high precision in a very short amount of time. The flip side of that, though, is that they can require quite a bit of maintenance. [Timo] has learned this lesson over his years-long saga owning a laser cutter, although he has attempted to remedy most of the problems on his own, this time by building a Z-axis table on his own rather than buying an expensive commercial offering.

The Z-axis table is especially important for lasers because a precise distance from the lens to the workpiece is needed to ensure the beams’s focal point is correctly positioned. Ensuring this distance is uniform over the entire bed can be a project all on its own. For this build, [Timo] started by building a simple table that allowed all four corners to be adjusted, but quickly moved on to a belt-driven solution that uses a stepper motor in order to adjust the entire workspace. The key to the build was learning about his specific laser’s focal distance which he found experimentally by cutting a slot in an angled piece of wood and measuring the height where the cut was the cleanest.

After everything was built, [Timo] ended up with a Z-axis table that is easily adjustable to the specific height required by his laser. Having a laser cutter on hand to bootstrap this project definitely helped, and it also seems to be an improvement on any of the commercial offerings as well. This also illustrates a specific example of how a laser cutter may be among the best tools for prototyping parts and building one-off or custom tools of any sort.

injecto doing it's thing

Tiny Homemade Injection Molder

With 3D printing continually gaining ground, some hackers might not see the need for traditional injection molding. After all, you can tweak the code or the model and print dozens of different iterations with fairly minimal lead time. Things get trickier when you need to print hundreds or thousands of the same thing and that ten-hour print time adds up quickly. [Actionbox] built a tiny injection molder they dubbed INJEKTO to speed up their manufacturing.

The design was optimized to be accessible as it is held together with brackets and cheap aluminum flat stock. The hardest part to source is the heating chamber, as it is a piece of turned aluminum. A PID controller keeps the temperature relatively stable and heats the plastic pellets you can dump in the top. Next, you’ll need an external air compressor to power the dual 2″ pneumatic pistons. The pistons push the plastic out of the spring-loaded extruder nozzle. [Actionbox] is already planning on a second version with 4″ pistons that provide significantly more force to extrude larger amounts of plastic as the current version tops out at about 27 grams.

Injection molding still needs a heavy-duty mold to inject into, which can be hard to machine. So until we can 3D print an injection mold, this multi-head 3D printer is something in between a 3D printer and an injection molder, as it can print a dozen of the same thing, speeding up that print time.

Continue reading “Tiny Homemade Injection Molder”