Try It Out

It’s like Star Wars versus Star Trek at a SciFi convention, or asking creamy or chunky at the National Peanut Butter Appreciation Festival. (OK, we made that one up.) When Jenny reviewed the 1.0 version of LibrePCB, it opened the floodgates. Only on Hackaday!

Of course it makes sense that in a community of hardware hackers, folks who are not unfamiliar with the fine art and engineering of designing their own PCBs, have their favorite tools. Let’s face it, all PCB design software is idiosyncratic, and takes some learning. But the more fluent you are with your tool of choice, the more effort you have invested in mastering it, leading to something like the sunk-cost phenomenon: because you’ve put so much into it, you can’t think of leaving it.

The beauty of open-source software tools is that there’s almost nothing, aside from your own psychology, stopping you from picking up another PCB program, kicking the proverbial tires with a simple design, and seeing how it works for you. That’s what Jenny did here, and what she’s encouraged me to do. Whether it’s beginner-friendly Fritzing (also recently in version 1.0), upstarts LibrePCB or Horizon EDA, heavyweight champion KiCAD, or the loose-knit conglomeration of tools in coralEDA, you have enough choices that something is going to fit your PCB hand like a glove.

I certainly wouldn’t risk a swap up to a new tool on something super complicated, or something with a tight deadline, but why not start up a fun project to test it out? Maybe follow Tom Nardi’s lead and make a Simple Add-on, for a badge or just as a blinky to put on your desk? Don’t be afraid to try something new!

Control Tricks For Tailsitters

An RC VTOL aircraft always makes for a compelling project, but ensuring the transition between hover and forward flight can be quite challenging. In the video after the break, [Nicholas Rehm] demystifies of the flight control algorithm required for a VTOL tailsitter.

Tailsitters are one of the simplest VTOL arrangements, the testbed here being a simple foam KF airfoil wing with two motors and two servo-controlled elevons. As with almost all his projects [Nicholas], uses of his open-source dRehmFlight flight controller to demonstrate the practical implementation of the control algorithm.

Three major factors that need to be simultaneously taken into account when transitioning a tailsitter VTOL. First off, yaw becomes roll, and vice versa. This implies that in hover mode, elevons have to move in opposite directions to control yaw; however, this same action will make it roll in forward flight. The same applies for differential thrust from motors — it controls roll in hover and yaw in forward flight. Nevertheless, this change of control scheme only works if the flight controller also alters its reference frame for “level” flight (i.e., flips forward 90°). As [Nicholas] demonstrates, failing to do so results in a quick and chaotic encounter with the ground.

With these adjustments made, the aircraft can transition to forward flight but will oscillate pitch-wise as it overcorrects while trying to maintain stable flight; this is due to PID gains – 3rd factor. The deflection required by control surfaces is much more aggressive during hover mode; thus PID gains need to be reduced during forward flight. A final improvement involves adding a brief delay when switching modes for smoother rotation.

For more interesting VTOL configurations, check out [Tom Stanton]’s RC V-22 Osprey, and this solar recharging trimotor

Continue reading “Control Tricks For Tailsitters”

Smart Coffee Replaces Espresso Machine Controller With Arduino, Sensors

A common hacker upgrade to an espresso machine is to improve stability and performance with a better temperature controller, but [Schematix]’s Smart Coffee project doesn’t stop there. It entirely replaces the machine’s controller and provides an optional array of improvements for a variety of single-boiler machines (which is most of them).

Smart Coffee isn’t free, it costs 16 NZD (about 10 USD) but there is a free demo version. There is no official support, but there are wiring guides and sources aplenty from which to purchase the various optional parts. It runs on an Arduino MEGA 2560 PRO (or similar microcontroller) and supports a wide array of additional hardware including pressure transducer, water level sensor, flow meter, OLED display, and more.

Modification of one’s espresso machine is a rewarding endeavor, but the Smart Coffee project provides a way for one to get straight to the hacking and function modifying, instead of figuring out the wiring hardware interfacing from scratch.

We’ve seen [Schematix]’s work before with a DIY induction heater which showed off thoughtful design, and it’s clear he takes his coffee at least as seriously. Check out the highly comprehensive overview and installation video for Smart Coffee, embedded just below the page break.

Continue reading “Smart Coffee Replaces Espresso Machine Controller With Arduino, Sensors”

Famicom-Inspired NES TV Looks Rad In Red

Take it from us, insomnia is no joke. But the wee hours can have a great effect on creativity, and if you’ve got a project in mind, doing that is way better than just sitting around, zoning out to infomercials and wishing for sleep. Over recent nights, [insomniacfactory] has been working on a Sharp C1 Famicon-inspired NES TV, and the result is simply fabulous.

The Sharp C1 Famicom was CRT television with a Famicom (precursor to the NES) built in. It allegedly had better picture quality than either a Famicom or NES with a separate television, and this was because it had direct internal display connection. The picture quality was so good that video game magazines at the time used it for screenshots.

Starting with a couple of TVs and a plan, [insomniacfactory] got to work, using the guts from a newer donor TV and a 1985 NES main board with the region-free mod and the RF module removed.

[insomniacfactory] also added also added a wiring harness and a side loader connector from a broken Game Genie to the NES main board. After some careful Dremeling out of the 1981 AKAI TV, they had room for the clone console’s cartridge slot and controller plugs.

This project took a lot of careful and fiddly work, especially since the boards are all bracketed in place and easy to remove. But it totally looks like it was worth it, and now [insomniacfactory] can retro game all night for a while before starting the next insomnia-driven project.

Are you in the mood for more iconic NES? Take a guided tour.

Fluid Simulation Does The Math

If you like math, you should enjoy [kynd’s] page about simulating fluid in p5.js. You might still enjoy the pretty colors and shapes if you aren’t into math. What’s scary is that the page promises to have as little math as possible, but there’s still quite a bit. Of course, we are sure you could go even deeper down the rabbit hole.

The algorithm’s core is a pair of 2D arrays representing cells that comprise the display area. One array holds the color of the cell, while another holds a velocity vector of the fluid in the cell. A vector, of course, has both a magnitude and a direction.

Continue reading “Fluid Simulation Does The Math”

Zilog’s Forgotten Operating System: Z80-RIO

When it comes to famous operating systems for the Z80 and similar Zilog processors, the first and maybe only one to come to mind is CP/M, which was even made its presence known on the dual-CPU (8502 and Z80) Commodore 128. Yet Zilog also developed its own operating system, in the form of the comprehensively titled Z80 Operating System with Relocatable Modules and I/O Management (Z80-RIO for short). With limited documentation having survived, [Ralf-Peter Nerlich] has set out to retain and recover what information he can on RIO and the associated Programming Language Zilog (PLZ) after working with these systems himself when they were new.

A Zilog MCZ 1/20 system from around 1979. (Credit: Herb Johnson)
A Zilog MCZ 1/20 system from around 1979. (Credit: Herb Johnson)

Perhaps unsurprisingly, neither Z80-RIO nor PLZ were targeting the regular consumer market when they were brought to market in the late 1970s, but were part of Zilog’s focus on industrial markets, as well as laboratories and elsewhere that could benefit from a versatile, programmable computer system for control and automation.

As part of an integrated hardware/software solution, Zilog released a series of computer systems, such as the MCZ 1/20 of which a number of examples survive today. Herb Johnson’s collection and restoration projects provide a good overview of not only the base systems, but also the expansion cards available for these systems. Right along with the Z80-RIO OS providing the ability to customize the system for the target usage, the underlying hardware could also be configured with just the expansion boards required, or conceivably even custom boards.

Of course, it doesn’t take many guesses to figure out what happened to Z80’s RIO OS and related, with the 1980s heralding massive shifts in the computer markets. Although now functionally obsolete for decades, it’s good to see such preservation efforts of 1970s computing systems and related software. These are after all the foundations on which modern day computing is built.

(Thanks to [Stephen Walters] for the tip)

Tetris On An Oscilloscope, The Software Way

When we talk about video games on an oscilloscope, you’d be pardoned for assuming the project involved an analog CRT scope in X-Y mode, with vector graphics for something like Asteroids or BattleZone. Alas, this oscilloscope Tetris (Russian language, English translation) isn’t that at all — but that doesn’t make it any less cool.

If you’re interested in recreating [iliasam]’s build, it’ll probably help to be a retro-oscilloscope collector. The target instrument here is a Tektronix TDS5400, a scope from that awkward time when everything was going digital, but CRTs were still cheaper and better than LCDs. It’s based on a Motorola 68EC040 processor, sports a boatload of discrete ICs on its main PCB, and runs VxWorks for its OS. Tek also provided a 3.5″ floppy drive on this model, to save traces and the like, as well as a debug port, which required [iliasam] to build a custom UART adapter.

All these tools ended up being the keys to the kingdom, but getting the scope to run arbitrary code was still a long and arduous process, with a lot of trial and error. It’s a good story, but the gist is that after dumping the firmware onto the floppy and disassembling it in Ghidra, [iliasam] was able to identify the functions used to draw graphics primitives on the CRT, as well as the functions to read inputs from the control panel. The result is the simple version of Tetris seen in the video below. If you’ve got a similar oscilloscope, the code is up on GitHub.

Care for a more hardware-based game-o-scope? How about a nice game of Pong? Or perhaps a polar breakout-style game is what you’re looking for. Continue reading Tetris On An Oscilloscope, The Software Way”