C64 Runs On STM32F429 Discovery

There have been various reincarnations of the Commodore C64 over the years, and [Dave Van Wagner] has created one that can run on an STM32F429ZI Discovery development board. These dev boards have been around quite a few years and feature a 2.4 inch color TFT LCD in addition to the typical I/O circuitry, and are a pretty good value — [Dave] says they currently sell for under $30 through distribution.

The project began earlier this year when [Dave] set out to write a command line program in C# that emulated C64 Basic. He had written a 6502 emulator many years earlier, but had not tested it. [Dave] went on a programming binge in March and got it up and running over a very long weekend. He subsequently decided to add support for VIC-20, TED, and PET as well.

Even though [Dave] says C# is a beautiful language, he subsequently ported the program into C (an ugly language?) in order to run on the Discovery board, swapping the command line terminal interface for real LCD video and a USB keyboard. There’s also an Arduino version (terminal interface only). It runs about 15% slower than a real C64, and there are some limitations still like no SID. But overall, this is a great project and a low-cost way to emulate a C64 in an embedded format. If you want to explore further, here is the Mbed project for the STM32F429, and you can find the Arduino and C# versions on his GitHub page. You may remember [Dave] from the C128 video hack we wrote about last year.

Celebrating The 4004’s 0x31st Anniversary

This weekend marked the 49th anniversary of the legendary Intel 4004 microprocessor, and to celebrate [Erturk Kocalar] combined the old and new in this intriguing Retroshield 4004 / Busicom 141-PF calculator project. We have reported on his Arduino shield project before, which lets you connect a variety of old microprocessors to an Arduino so you can experiment with these old chips with a minimum of fuss.

[Erturk] decided to use the Arduino to simulate the hardware of the Busicom 141-PF, a calculator famous for bringing us the microprocessor. In addition to the calculator, the Arduino has to simulate the Intel 4004 CPU’s supporting chips, which include ROM, RAM, and shift registers. If you want to build one of these yourself, all the design files are open source, or you can get an assembled shield from his Tindie store. In either case, you will have to provide your own 4004, which are surprisingly still available. (Tindie and Hackaday share the same parent company, Supplyframe. We’ve got nothing to do with Intel.)

We really appreciate the detailed explanation that [Erturk] provides about the inner workings of the calculator. Interfacing the emulator to the original ROM code running on the 4004 is non-trivial — take a look at the explanation of the spinning drum printer, for example. We enjoyed perusing the annotated ROM listing, as well as reading the story of the efforts which have been undertaken to prevent these historical documents from being lost forever. Be sure to check out the history of the 4004 and its inventor Federico Faggin if you’d like to delve deeper.

 

Homebrew Slide Rule Gets Back To Mathematical Basics

In the grand scheme of things, it really wasn’t all that long ago that a slide rule was part of an engineer’s every day equipment. Long before electronic calculators came along, a couple of sticks of wood inscribed with accurate scales was all it took to do everything from simple multiplication to logarithms and trig functions.

While finding a slide rule these days isn’t impossible, it’s still not exactly easy, and buying one off the shelf isn’t as fun or as instructive as building one yourself. [JavierL90]’s slide rule build started, ironically enough, on the computer, with a Python program designed to graphically plot the various scales needed for the fixed sections of the slide rules (the “stators”) and the moving bit (the “slide”).  His first throught was to laser-engrave the scales, but the route of printing them onto self-adhesive vinyl stock proved to be easier.

With the scale squared away, work turned to the mechanism itself. He chose walnut for the wood, aluminum for the brackets, and a 3D-printed frame holding a thin acrylic window for the sliding cursor. The woodworking is simple but well-done, as is the metalwork. We especially like the method used to create the cursor line — a simple line scored into the acrylic with a razor, which was then filled with red inks. The assembled slide rule is a thing of beauty, looking for all the world like a commercial model, especially when decked out with its custom faux leather carry case.

We have to admit that the use of a slide rule is a life skill that passed us by, but seeing this puts us in the mood for another try. We might have to start really, really simple and work up from there.

Gorgeous Perfboard Build Puts 1-Bit Controller Back To Work

Eight-bit computers are all the retro rage these days, with people rushing to build computers either from chips like the 6502 or the Z80, or even recreating these chips from a collection of TTL logic chips. And while we respect and covet those builds immensely, 8-bit computers aren’t the only game going on. To wit we present this lovely single-board computer sporting a 1-bit CPU.

The machine, which creator [Simon Boak] cheekily dubs “the world’s least-powerful computer,” is based on the Motorola MC14500B, a chip from the 1970s that was aimed at the industrial controls market. There, the chip’s limited instruction set and narrow bus width were not as limiting as they would be in a general-purpose computer. In fact, since the chip requires an external program counter, it offers a great degree of design flexibility. [Simon] chose a 4-bit address space, but with a little wizardry he was able to get eight bits of input in the form of DIP switches and eight bits of output LEDs. It’s not good for much past making lights blink, but it does that with nary an Arduino in view — although it does sport a couple of 555s.

[Simon]’s goal for the build was simply to build cool from an unusual chip, and we think he succeeded. In fact, we can’t recall seeing a neater perfboard build — it’s almost to the level of circuit sculpture. We especially like the hybrid solder and wirewrap construction. We’ve seen builds based on this chip before, but never one so neat and attractive.

[via r/electronics]

ESP32 Adds New Features To 1990s Home Alarm System

Given how fast technology is progressing, some consumer gadgets lend themselves to being replaced every few years. Mobile phones are a particularly good example of a device that you probably won’t want to hold onto for more than 4 years or so, with TVs not far behind them. On the other hand, something like a home alarm system can stay in the fight for decades. As long as it still goes off when somebody tries to pop a window, what more do you need?

Well if you’re like [Brett Laniosh], you might want the ability to arm the system and check its current status from your phone. But instead of getting a whole new system, he decided to upgrade his circa 1993 Gardiner Gardtec 800 alarm with an ESP32. As it so happens, the original panel has an expansion connector which he was able to tap into without making any modifications to the alarm itself. If you’ve got a similar panel, you might even be able to use his source code and circuit schematics to perform your own modification.

Optocouplers link the ESP and alarm panel.

Now we know what you’re thinking. Surely there’s a risk involved when trusting an ESP32 connected to the Internet with the ability to disarm your home alarm system. [Brett] has considered this, and made sure that the web server running on the microcontroller can only be accessed from the local network. If he does want to connect from beyond WiFi range, he does so through a VPN. In other words, his code is never directly exposed to the wilds of the Internet and is always hiding behind some kind of encryption.

The WiFi connection allows [Brett] to arm and disarm the alarm system remotely, check if it’s been triggered, and reset it if necessary, all from his smartphone. But he’s also added in a 433 MHz receiver so he can use simple handheld fobs to arm the system if he doesn’t want to go through the phone. Even if you dropped out the Internet connectivity, this alone is a pretty nice upgrade.

For those not afraid to take the more invasive route, you could potentially reverse engineer and reprogram your old alarm panel. Or you could even so the full DIY route and create your own low-cost alarm system using the ESP32 and off-the-shelf modules.

Bodge Wire Saves A Vintage Mac SE/30 From The Heap

Anyone who pokes around old electronics knows that age is not kind to capacitors. If you’ve got a gadget with a few decades on the clock, there’s an excellent chance that some of its capacitors are either on the verge of failure or have already given up the ghost. Preemptively swapping them out is common in retrocomputing circles, but what do you do if your precious computer has already fallen victim to a troublesome electrolytic?

That’s the situation that [Ronan Gaillard] recently found himself in when he booted up his Mac SE/30 and was greeted with a zebra-like pattern on the screen. The collected wisdom of the Internet told him that some bad caps were almost certainly to blame, though a visual inspection failed to turn up anything too suspicious. Knowing the clock was ticking either way, he replaced all the capacitors on the Mac’s board and gave the whole thing a good cleaning.

Unfortunately, nothing changed. This caught [Ronan] a bit by surprise, and he took another trip down the rabbit hole to try and find more information. Armed with schematics for the machine, he started manually checking the continuity of all the traces between the ROM and CPU. But again, he came up empty handed. He continued the process for the RAM and Glue Chip, and eventually discovered that trace A24 wasn’t connected. Following the course it took across the board, he realized it ran right under the C11 axial capacitor he’d replaced earlier.

Suddenly, it all made sense. The capacitor must have leaked, corroded the trace underneath in a nearly imperceptible way, and cut off a vital link between the computer’s components. To confirm his suspicions, [Ronan] used a bodge wire to connect both ends of A24, which brought the 30+ year old computer roaring back to life. Well, not so much a roar since it turns out the floppy drive was also shot…but that’s a fix for another day.

It seems like every hardware hacker has a bad capacitor story. From vintage portable typewriters to the lowly home router, these little devils and the damage they can do should always be one of the first things you check if a piece of hardware is acting up.

Cardboard Models Trace Design Process Of Vintage Tektronix Miniscopes

There aren’t many brands that inspire the kind of passion and fervency among its customers as Tektronix does. The venerable Oregon-based manufacturer of top-end test equipment has produced more collectible gear over the last 75 years than just about anyone else.

Over that time they have had plenty of innovations, and in the 1970s they started looking into miniaturizing their flagship oscilloscopes. The vintageTEK museum, run by current and former employees, has a review of the design process of the 200 series of portable oscilloscopes that’s really interesting. At a time when scopes were portable in the way a packed suitcase is portable, making a useful instrument in a pocketable form factor was quite a challenge — even for big pockets.

The article goes into great detail on the back-and-forth between the industrial designers, with their endless stream of models, and the engineers who would actually have to stuff a working scope into whatever case they came up with. The models from the museum’s collection are wonderful bits of history and show where the industrial designers really pushed for some innovative designs.

Some of the models are clearly derived from the design of the big bench scopes, but some have innovative flip-down covers and other interesting elements that never made it to production. Most of the models are cardboard, but some were made of aluminum in the machine shop and sport the familiar “Tek blue” livery. But the pièce de résistance of the collection is a working engineering model of what would become the 200-series of miniscopes, a handmade prototype with a tiny round CRT and crudely labeled controls.

The vintageTEK museum sounds like another bucket-list stop for computer and technology history buffs. Tek has been doing things their own way for a long time, and stopping by the museum is sure to be a treat.

Thanks to [Tanner Bass] for the tip.