Planning Custom Aluminum Enclosures With OpenSCAD

We’ve seen a number of projects over the years that let you create custom enclosures using OpenSCAD, and for good reason. The parametric CAD tool is ideal for generating 3D models based on user-adjustable variables, and if you leverage its integrated Customizer, producing a bespoke box is as easy as moving some sliders around. The resulting files get sent off to the 3D printer, and you’re set. But what if you’re looking for a custom enclosure that’s not so…plastic?

In that case, AlClosure by [0xPIT] might be the answer. Rather than generating STL files intended for your 3D printer, the code is written to help you design an enclosure made from aluminum sheets. The top and bottom panels are intended to be cut from 1.5 mm – 2.5 mm sheets, while the sides are made from thicker 5 mm – 8 mm stock to accept a machined pocket that holds the front and rear inserts.

Since it’s OpenSCAD, much of the design is governed by variables which you can tweak. Obviously the outside dimensions of the enclosure can be changed in a flash, but it’s just as easy to modify the thickness of the aluminum sheet being used, or the size of the screw holes. [0xPIT] has also done a great job of documenting the code itself, so you’ll know exactly what you’re modifying.

Obviously, you’ll need the ability to cut and machine aluminum to actually utilize this project. The code itself is really just a way to conceptualize the design and get your dimensions figured out ahead of time. But as we were recently reminded by the keynote presentation [Jeremy Fielding] gave at the 2021 Remoticon, this sort of early prototyping can often save you a lot of headaches down the line.

6502 Goes FPGA (Again)

While there has been no shortage of FPGA-based recreations of classic processors, we always enjoy seeing a new approach. Last month [Some Assembly Required] took on the challenge to recreate a classic computer from the ground up and started with a 6502 implementation in Verilog. You can see in the second video below that he’s made good progress and there are apparently more videos to come.

The ROL instruction is the subject of the second video. We liked the approach of looking at what the instruction does and how many cycles it takes on different variants It is always good to make sure you know exactly what you are trying to accomplish before you get started.

Continue reading “6502 Goes FPGA (Again)”

A CH341 programmer dongle with a stack of adapters on top (one for 1.8V and one for clip connection), and a test clip to the right of it

BIOS Flashing Journey Writeup Puts Tutorials To Shame

A couple of weeks ago, [Doug Brown] bought a Ryzen motherboard, advertised as “non-working” and discounted accordingly. He noticed that the seller didn’t test it with any CPUs old enough to be supported by the board’s stock BIOS revision, and decided to take a gamble with upgrading it.

Not having a supported CPU in hand either, he decided to go the “external programmer” route, which succeeded and gave this board a new life. This is not why we’re writing this up, however. The reason this article caught our eye is because [Doug]’s research leaves no stone unturned, and it’s all there to learn from. Whether through careful observation or thorough research, this article covers all the important points and more, serving as an example to follow for anyone looking to program their BIOS.

For instance, [Doug] correctly points out a design issue with these common programmers resulting in 5 V getting onto the 3.3 V data lines, and fixes it by rewiring the board. Going through all the letters in the ICs part number, something that many of us would dismiss, [Doug] notices that the flash chip is 1.8 V-only and procures a 1.8 V adapter to avoid the possibility of frying his motherboard. After finding out that the 1.8 V adapters don’t work for some people, he reverse-engineers the adapter’s schematics and confirms that it, indeed, ought to work with the specific parts on adapter he received.

Noting another letter in the part number implying the flash chip might be configured for quad-SPI operation, he adds series resistors to make sure there’s no chance of the programmer damaging the BIOS chip with its hardwired pinout. This is just an example of the insights in [Doug]’s article, there’s way more that we can’t mention for brevity, and we encourage you to check it out for yourself.

With this level of care put into the process, it’s no surprise that the modification was successful. The kind of inquisitiveness shared here is worth aspiring to, and writeups like this often surpass general-purpose tutorials in their insights and usefulness. What’s your “successfully making use of something sold as non-working” story?

If you’re looking for other insightful BIOS stories, we’ve covered someone reverse-engineering their BIOS to remove miniPCIe card whitelisting. We’ve typically covered BIOS modification stories in laptops, since there’s more incentives to modify these, but a lot of laptop BIOS articles will apply to desktop motherboards too, such as this supervisor password removal story or this LibreBoot installation journey by our own [Tom Nardi].

Thank you [Sidney] for sharing this with us!

Realtime Shadows On N64 Hardware

Although the Nintendo 64 console has in the minds of many been relegated to the era of ‘firmly obsolete graphics’, since its graphic processor’s (GPU’s) lineage traces directly to the best which SGI had to offer in the 1990s, it too supports a range of modern features, including dynamic shadows. In a simple demo, [lambertjamesd] demonstrates how this feature is used.

As can be seen in the demonstration video (linked after the break), this demo features a single dynamic light, which casts a shadow below the central object in the scene, with a monkey object floating around that casts its own shadow (rendered into an auxiliary frame buffer). This auxiliary buffer is then blended into the main buffer, as explained by [ItzWarty] over at /r/programming on Reddit.

This effectively means that the main scene uses a shadow volume, which was used extensively with Doom 3. The primary reasons for why the N64 didn’t use shadow volumes all over the place was due to the limitations this places on the shadow caster (objects) in the scene, such as the need to be convex, and overlap is likely to lead to artifacts and glitches.

Doom 3 would fix this with the use of a stencil buffer that would further refine the basic dynamic lighting support on the N64, which ultimately would lead to the fancy video game graphics we have today. And which no doubt will look properly obsolete in another decade again, as usual.

Continue reading “Realtime Shadows On N64 Hardware”

Seoul Introduces Self-Driving Taxis

Last year the Seoul city government passed an ordinance enabling the commercial operation of autonomous passenger-carrying vehicles. A six square kilometer region in the Seoul neighborhood of Sangam, near the 2002 World Cup Stadium, was designated as a pilot program test bed. This area encompasses 24 streets totaling 31.3 km. Two companies were selected, and the pilot program launched a few weeks ago. Currently there are three vehicles and passengers can ride for free during this introductory phase. Three more taxis and a bus will be added within this year, with plans for 50 in this region by 2026. For the time being, these cars require a standby driver who takes control in an emergency and in school zones. Check out the short news report (in English) below the break.

There was a smaller autonomous driving test program in the city of Sejong which we wrote about back in January, and [Alfred Jones] gave a keynote presentation at the 2020 Hackaday Remoticon on the challenges of designing self-driving vehicles if you want to learn more on this topic.

Continue reading “Seoul Introduces Self-Driving Taxis”

DIY High Flow 3D Printing

Sometimes we’re impressed by the sheer audacity of a project. [Stefan] rarely disappoints in that area, and his latest video shows him making an adapter to convert a normal 3D printed nozzle into a high-flow nozzle, similar to one you’d find on a Volcano. We say similar because [Stefan] took the trouble to drill three holes in the adapter to increase the melting surface area. The audacious part is that he doesn’t really have the machine shop to drill three tiny precision holes in close proximity — and he shows us the pictures to prove that he didn’t get it right the first (or fifth) time. But he did stick with it and got good results.

Why do such a thing? He wanted to mount the high-efficiency nozzles he’s been experimenting with on the Volcano extruder. The commercial one, in particular, doesn’t come in the extended size. To simplify things, he started with a long brass insert. The conical hex cut offers a natural center point if you are satisfied with a single hole through the center of the adapter. The hex cutout allows you to use a key to install or remove the spacer easily.

The idea behind the longer nozzles is that the filament has more time at temperature and can therefore move faster and still melt. The additional surface area should help, too. Of course, [Stefan] does plenty of testing and you can see the results in the video. A Volcano nozzle started misbehaving around 25 mm/s but at 30 mm/s, things started going bad. The CHT nozzle on the homemade standard spacer stayed working up to 30 mm/s and even at 60 mm/s was doing better than the standard nozzle at 45 mm/s. Sadly, the multiple holes in the special adapter caused worse extrusion performance, presumably by increasing pressure in the extrusion system. However, it did work well in real-life printing. Since the single bore adapter and the CHT nozzle worked great we don’t think it would be worth making the more complex one, as impressive a feat as that was.

[Stefan] thinks a lot about nozzles. He worries about wear, of course. He also built his own version of the high-flow nozzle.

Continue reading “DIY High Flow 3D Printing”

several chocolate figurines of various sizes

Cast Your Own Holiday Chocolate Bunny, Or Rather Mouse

The art of forming and using a mold is, well, an art. The already tricky process would be made even harder by using a fickle material, like chocolate. This is exactly where [Alexandre Chappel] found himself as he tried to cast his own chocolate figurines.

The starting point was a 3D low-poly model of everyone’s favorite fictional electric mouse. He tweaked the model to add offsets so that after the model was vacuum formed, there would be something to clamp onto. [Alexandre] was left with four different pieces, and he vacuum-formed them with 1 mm PETG plastic. Electing for white chocolate to add coloring, he started heating the chocolate. Adding too much colorant resulted in a seized mess, so the process was a bit of trial and error. Finally, he poured in chocolate and spun it around to form an even layer of chocolate as a shell. The flashing lines were easy to trim with a utility knife.

The last thing to add was a little splash of color via airbrush and food-grade paint. The results are stunning, and even though the techniques are simple, the results came together nicely. The files are available on his website if you’re curious about making your own. If you’re curious about more clever casting techniques with chocolate, take a look at the creative use of diffraction grating to get iridescent chocolate.

Continue reading “Cast Your Own Holiday Chocolate Bunny, Or Rather Mouse”