Hackaday Links Column Banner

Hackaday Links: December 29, 2019

The retrocomputing crowd will go to great lengths to recreate the computers of yesteryear, and no matter which species of computer is being restored, getting it just right is a badge of honor in the community. The case and keyboard obviously playing a big part in that look, so when a crowdfunding campaign to create new keycaps for the C64 was announced, Commodore fans jumped to fund it. Sadly, more than four years later, the promised keycaps haven’t been delivered. One disappointed backer, Jim Drew, decided he was sick of waiting, so he delved into the world of keycaps injection molding and started his own competing campaign. Jim details his adventures in his Kickstarter Indiegogo campaign, which makes for good reading even if you’re not into Commodore refurbishment. Here’s hoping Jim has better luck than the competition did.

Looking for anonymity in our increasingly surveilled world? You’re not alone, and in fact, we predict facial recognition spoofing products and methods will be a growth industry in the new decade. Aside from the obvious – and often illegal – approach of wearing a mask that blocks most of the features machine learning algorithms use to quantify your face, one now has another option, in the form of a colorful pattern that makes you invisible to the YOLOv2 algorithm. The pattern, which looks like a soft-focus crowd scene rendered in Mardi Gras colors, won’t make the algorithm think you’re someone else, but it will prevent you from being classified as a person. It won’t work with any other AI algorithm, but it’s still an interesting phenomenon.

We saw a great hack come this week about using an RTL-SDR to track down a water leak. Clayton’s water bill suddenly skyrocketed, and he wanted to track down the source. Luckily, his water meter uses the encoder receive-transmit (ERT) protocol on the 900 MHz ISM band to report his usage, so he threw an SDR dongle and rtlamr at the problem. After logging his data, massaging it a bit with some Python code, and graphing water consumption over time, he found that water was being used even when nobody was home. That helped him find the culprit – leaky flap valves in the toilets resulting in a slow drip that ran up the bill. There were probably other ways to attack the problem, but we like this approach just fine.

Are your flex PCBs making you cry? Friend of Hackaday Drew Fustini sent us a tip on teardrop pads to reduce the mechanical stress on traces when the board flexes. The trouble is that KiCad can’t natively create teardrop pads. Thankfully an action plugin makes teardrops a snap. Drew goes into a bit of detail on how the plugin works and shows the results of some test PCBs he made with them. It’s a nice trick to keep in mind for your flexible design work.

Chuck peddle father of 6502

Honoring Chuck Peddle; Father Of The 6502 And The Chips That Went With It

Chuck Peddle, the patriarch of the 6502 microprocessor, died recently. Most people don’t know the effect that he and his team of engineers had on their lives. We often take the world of microprocessor for granted as a commonplace component in computation device, yet there was a time when there were just processors, and they were the size of whole printed circuit boards.

Chuck had the wild idea while working at Motorola that they could shrink the expensive processor board down to an integrated circuit, a chip, and that it would cost much less, tens of dollars instead of ten thousand plus. To hear Chuck talk about it, he got a cease-and-desist letter from the part of Motorola that made their living selling $14,000 processor boards and to knock off all of the noise about a $25 alternative.

In Chuck’s mind this was permission to take his idea, and the engineering team, elsewhere. Chuck and his team started MOS Technologies in the 1970’s in Norristown PA, and re-purposed their work on the Motorola 6800 to become the MOS 6502. Lawsuits followed.

Continue reading “Honoring Chuck Peddle; Father Of The 6502 And The Chips That Went With It”

Commodore Tape Drive Emulator On A Raspberry Pi

We imagine most of the people reading Hackaday have an old Raspberry Pi or two laying around. It’s somewhat less likely you’ve still got an 8-bit Commodore in working condition, but we’d wager there’s more than a few in the audience that can count themselves among both groups. So why not introduce them?

[RhinoDevel] writes in to tell us about CBM Tape Pi , an open source Commodore tape drive emulator for Raspberry Pi that needs only a handful of passive components to get wired up. Even better, the project targets the older Pis that are more likely to be languishing around in the parts bin. In the video after the break, a Commodore PET can be seen happily loading content from the original Raspberry Pi with its quaint little composite video connector.

Without any special software on the Commodore itself, the project allows the user to load and save PRGs on the Pi’s SD card, as well as traverse directories. Don’t expect stellar I/O, as [RhinoDevel] notes that no fast loader is currently implemented. Of course if you’re enough of a devotee to still be poking around a VIC-20 or C64 this far into 21st century, then we imagine you’ve got enough patience to get by.

Continue reading “Commodore Tape Drive Emulator On A Raspberry Pi”

Restoring A Dead Commodore 128DCR

Another day, another retro computer lovingly restored to like-new condition by [Drygol]. This time, the subject of his attention is a Commodore 128DCR that earned every bit of the “For Parts, Not Working” condition it was listed under. From a spider infestation to a cracked power supply PCB, this computer was in quite a state. But in the end he got the three decade old machine back in working condition and even managed to teach it a few new tricks along the way.

Obviously the shattered PSU was the most pressing issue with the Commodore. Interestingly, the machine still had its warranty seal in place on the back, so whatever happened to this PSU seems to have occurred without human intervention.

Rather than just replacing the PSU, [Drygol] first pieced the board back together with the help of cyanoacrylate glue, and then coated the top with an epoxy resin to give it some mechanical strength. On the back side the traces were either repaired or replaced entirely with jumper wires where the damage was too severe.

With the PSU repaired and tested, he moved on to cleaning the computer’s main board and whitening all the plastic external components. Even the individual keycaps took a bath to get them looking like new again. This put the computer in about as close to like-new condition as it could get.

But why stop there? He next installed the JiffyDOS modification to improve system performance, and wired in an adapter that lets the computer output a crisp 80 columns over S-Video. It’s safe to say this particular Commodore is in better shape now than it was when it rolled off the assembly line.

While an impressive enough final result, this is still fairly tame for [Drygol]. If you want to see a real challenge, take a look at the insane amount of work that went into recreating this smashed Atari 800XL case.

A CIA In 74HCT

If you owned a classic Commodore home computer you might not have known it at the time, but it would have contained a versatile integrated circuit called the MOS6526. This so-called CIA chip, for Complex Interface Adaptor, contained parallel and serial ports, timers, and a time-of-day counter. Like so many similar pieces of classic silicon it’s long out of production, so [Daniel Molina] decided to replicate a modern version of it on a PCB using 74HGT CMOS logic.

The result will be a stack of boards board that appear to be about the size of a 3.5″ floppy disk covered in surface-mount 74 chips, and connected to the CIA socket of the Commodore by a ribbon cable. The base board is the only one completed so far and contains the data direction registers and parallel ports, but the succeding boards will each carry one of the chip’s other functions.

It seems rather odd to use so much silicon to recreate a single chip, but the point is not of course to provide a practical CIA replacement. Instead it’s instructive, it shows us how these interfaces work as well as just how much circuitry is crammed into the chip. It’s no surprise that it’s inspired by the C74 Project, a TTL 6502 processor that we featured last year.

This Commodore 16 Is An NTSC One… No, Wait, It’s A PAL One!

We’re used to our computers being powerful enough in both peripheral and processing terms to be almost infinitely configurable under the control of software, but there was a time when that was not the case. The 8-bit generation of home computers were working towards the limits of their capability just to place an image on a TV screen, and every component would have been set up to do just the job it was intended for. Thus when different countries had different TV standards such as the mostly-European PAL and the mostly-American NTSC, there would have been different models of the same machine for each market. The Commodore 16 was just such a machine, and [Adrian Black] has modified his NTSC model with a custom ROM, an Arduino and an Si5351 clock generator to be switchable between the two.

The differences between a PAL and NTSC C16 are two-fold. The clock for the video chip is of a different frequency, and the ROM contents differ too. [Adrian]’s machine therefore has a larger ROM containing both versions which are switchable via one of the upper address lines. A couple of tracks cut in the crystal oscillator circuit allow him to inject a new clock from the Si5351 module, and and Arduino controls everything. The appropriate ROM and clock are selected via a very simple interface, the reset button is captured and while a short press still resets the computer a long one switches the mode.

Despite having its principal engineer, [Bil Herd] as a colleague here at Hackaday, it’s sad that we don’t see as many Commodore 16s as we should. A recent feature showed a 64k C16, but didn’t make it into a C64.

Continue reading “This Commodore 16 Is An NTSC One… No, Wait, It’s A PAL One!”

A Quite Obscure C128 Video Mode Hack

30 years ago, [Dave] found himself up a C128D creek without a paddle. His main monitor was on the fritz, and he needed to use his C128D in 40-column mode to run old C64 programs for development purposes. Normally this is only possible through the low quality composite out, but no composite monitor was available. Needs must, so he got to coding a workaround that would allow the C128D to output in 40 column mode through the higher-quality RGBI output. 

It’s a proper old-school hack in the spirit of the 8-bit era. The C64 ROM is copied into RAM, where it’s then modified to instead update a 40-column image that’s sent to the RGBI display hardware. The original C64 character ROM is also copied over to ensure everything displays correctly.

It’s not bulletproof, and a few pokes to the wrong memory locations have a high likelihood of crashing the system, seeing as the ROM is now in RAM. However, it does allow the user to enable FAST mode and use all the C128 extended keys. [Dave] recommends experimenting in an emulator first, lest you scare your vintage monitor with angry signals it can’t understand.

The C128 was Commdore’s last 8-bit computer on the market, and there’s a heck of a story behind its creation.