Teensy Twofer Of Plug-In Emulated Retro CPUs

[Ted Fried] wrote in with not one but two (2!) new drop-in replacements for widespread old-school CPUs: the Zilog Z80 and the Intel 8088. Both of the “chips” run in cycle-accurate mode as well as in a super turbo mode, which can run so fast that you’ll need to use the Teensy’s internal RAM just to keep up.

Both of these designs have a hardware and software component. The PCBs basically adapt the pinout of the Teensy to the target CPU, with a bunch of 74VLC latches on board to do the voltage level conversion. The rest is a matter of emulating all of the instructions on the Teensy, which is more than fast enough to keep up. If this sounds familiar to you, it’s basically the same approach that [Ted] used last year to bring us his replacement for the 6502 found in the Apple ][ and Commodore 64.

Why would you want an emulated CPU when the originals are still available? [Ted] inherited a busted Osborne I, an ancient Z80 luggable. By replacing the original Z80 with his emulation, he could diagnose the entire system, which led him to discover some bad DRAM chips and get the old beast running again. Or maybe you just want to play IBM XT games at insane speeds?

And it looks like [Ted] has updated his 6502 emulation to include the undocumented C64 opcodes, so if you’re into that scene, you should be covered as well.

If any of this tickles your fancy, head over to [Ted]’s blog, microcore labs, and follow along. Although now that he’s covered most of the famous retrocomputers, we have to ask ourselves what processor is going to be next?

A grey keyboard with orange and dark grey accents is angled away from the camera. The keys nearby are clearly distinguishable in the foreground but blurry toward the back/right. The keyboard is quite thick as it also contains a computer motherboard.

Mechanical Keyboard With A Framework Inside

Like the Commodore 64 and other keyboard computers of yore, the [Elevated Systems]’s CJ64 fits all of its processing and I/O into a single keyboard-shaped package.

This iteration of the project takes it to the next level with an enclosure milled out of aluminum instead of the mere 3D printed enclosure of the previous versions. With a Framework mainboard, the ports are configurable via the Framework expansion card system giving you even more options to customize this build. To round it out, this keyboard PC doesn’t scrimp on the keyboard part either with mechanical switches and MT3 profile keycaps.

If you’d like to build one of these for yourself, [Elevated Systems] has uploaded the 3D printed enclosure files to his GitHub repository. The files for machining are available as well, but only to patrons.

For some more Framework-based mods, check out this Framework Tablet, the Framedeck, or this other retro-inspired Framework build. If you want an all-in-keyboard slabtop, then maybe check out Are Slabtops the Future of Computing?

Continue reading “Mechanical Keyboard With A Framework Inside”

A Commodore SX-64 showing a six-digit code and a countdown timer

Generating Two-Factor Authentication Codes With A Commodore 64

If you’ve used a corporate VPN or an online-banking system in the past fifteen years or so, chances are you’ve got a few of those little authenticator key fobs lying around, still displaying a new code every 30 seconds. Today such one-time codes are typically sent to you by text message or generated by a dedicated smartphone app, which is convenient but a bit boring. If you miss having a dedicated piece of hardware for your login codes, then we’ve got good news for you: [Cameron Kaiser] has managed to turn a Commodore SX-64 into a two-factor authenticator. Unlike a key fob that’s one gadget you’re not likely to lose, and any thief would probably need to spend quite some time figuring out how to operate it. Continue reading “Generating Two-Factor Authentication Codes With A Commodore 64”

Commodore Datasette Does Its Own Calibration

Ah, the beloved Commodore 64. The “best-selling computer system of all time”. And hobbyists are keeping the dream alive, still producing software for it today. Which leads us to a problem with using such old equipment. When you get your copy of Petscii Robots on cassette, and try to fastload it, your machine might just consistently fail to load the program. That’s fine, time to pull out the cue-tips and rubbing alcohol, and give the read heads a good cleaning. But what if that doesn’t do the job? You may just have another problem, like tape speed drift.

There are several different ways to measure the current tape speed, to dial it in properly. The best is probably a reference cassette with a known tone. Just connect your frequency counter or digital oscilloscope, and dial in the adjustment pot until your Datasette is producing the expected tone. Oh, you don’t have a frequency counter? Well good news, [Jan Derogee] has a solution for you. See, you already have your Datasette connected to a perfectly serviceable frequency counter — your Commodore computer. He’s put out a free program that counts the pulses coming from the Datasette in a second. So play a reference cassette, run the program, and dial in your Datasette deck. Simple! Stick around after the break for a very tongue-in-cheek demonstration of the problem and solution.

Continue reading “Commodore Datasette Does Its Own Calibration”

A man playing an accordion-like instrument made from two Commodore 64s

The Commodordion Turns Two C64s Into A Single Instrument

One of the main reasons the Commodore 64 became an icon of the 1980s was its MOS 6581 “SID” sound chip that gave it audio capabilities well beyond those of other microcomputers of the 8-bit era. The SID became something of a legend by itself among chiptune enthusiasts, and several electronic instruments have been designed that generate their sound through a SID chip. Not many of those look anything like traditional musical instruments however, so we’re delighted to see [Linus Åkesson]’s new project: two Commodore 64s joined back-to-back using a bellows to form a wonderful new instrument called the Commodordion. It can be played in a similar way one plays a traditional accordion: melodies are played with the right hand, chords with the left, and volume is adjusted by varying the pressure in the bellows.

An accordion-like instrument made from two Commodore 64sThe two computers are basically unmodified, and boot Commodore BASIC like they normally would. A custom circuit board emulates a cassette player and provides the software to be loaded into memory. Both computers run the same program and can be switched between the right-hand and left-hand role by pressing a specific key combination. The software in question is called Qwertuoso, and basically maps notes and various features of the SID chip to keys on the Commodore’s keyboard.

Of course, it’s the bellows that makes this instrument a true member of the accordion family. Made from 5.25″ floppy disks and sticky tape, it forms a more-or-less air-tight system linking the two computers. The airflow in the bellows is measured through a microphone placed next to the air intake: the amount of noise generated is roughly proportional to the amount of air being expelled or inhaled. This information is then used to modulate the volume generated by the two SID chips.

By [Linus]’s own admission it’s not the most ergonomic of instruments, so we’re doubly impressed by the amount of skill he demonstrates while playing it in the video embedded below. It’s not the first time either that he has turned a Commodore 64 into a musical instrument: he previously built a church organ and a theremin. While the Commodordion may look complicated, it’s actually much simpler in construction than a mechanical accordion.

Continue reading “The Commodordion Turns Two C64s Into A Single Instrument”

A schematic explaining the workings of the Commodore 64's joystick port

Bluetooth Interface Adds Rumble Feedback To Commodore 64 Games

Nothing says “1980s gaming” like a black joystick with a single red fire button. But if you prefer better ergonomics, you can connect modern gamepads to your retrocomputers thanks to a variety of modern-to-classic interface adapters. These typically support just the directional pad and one or two action buttons, leaving out modern features like motion control and haptic feedback.

That’s a bit of a shame, because we think it would be pretty cool to feel that shock in our hands whenever Pitfall Harry drowns in quicksand or Frogger gets hit by traffic. We’re therefore happy to report that [Ricardo Quesada] has decided to add rumble functionality to the Bluetooth-to-Joystick-port interface that he’s been working on. He demonstrates the feature on his Commodore 64 in the video embedded after the break.

Naturally, any software needs to be adapted to support haptic feedback, but a trickier problem turned out to be the hardware: joystick ports are input-only devices and therefore cannot send “enable rumble” signals to any connected gamepads. [Ricardo] found a clever way around this, using the analog inputs on the joystick port that were typically used for paddle-type controllers.

The analog-to-digital converter inside the computer works by applying a pulse signal to the analog port and measuring the time it takes to discharge a capacitor. The modern gamepad interface simply detects whether these pulses are present; they can be enabled or disabled through software by toggling the analog readout on the joystick port. This way, the joystick port can be used to send a single bit of information to any device connected to it.

[Ricardo] developed patches for Rambo: First Blood part II and Leman to enable rumble functionality. He describes the process in detail in his blog post, which should enable anyone who knows their way around 6502 machine code to add rumble support to their favorite games.

The adapter works with a variety of retro systems that use the Atari-style joystick interface, but if you’re an Apple II user, you might want to look at this Raspberry Pi-based project that interfaces with its nonstandard joystick interface. If you’re into wireless gaming in general, be sure to also check out our history of wireless game controllers.

Continue reading “Bluetooth Interface Adds Rumble Feedback To Commodore 64 Games”

C64 Turned Theremin With A Handful Of Parts

The theremin is popular for its eerie sound output and its non-contact playing style. While they’re typically built using analog hardware, [Linus Åkesson] decided to make one using the venerable Commodore 64.

The instrument works by measuring the capacitance between its two antennas and the Earth. As these capacitances are changed by a human waving their hands around near the respective pitch and volume antennas, the theremin responds by changing the pitch and volume of its output.

In this case, the humble 555 is pressed into service. It runs as an oscillator, with its frequency varying depending on the user’s hand position. There’s one each for pitch and volume, naturally, using a clamp and spoon as antennas. The C64 then reads the frequency the 555s are oscillating at, and then converts these into pitch and volume data to be fed to the SID audio chip.

[Linus Åkesson] demonstrates the build ably by performing a slow rendition of Amazing Grace. The SID synthesizer chip in the C64 does a passable job emulating a theremin, used here with a modulated pulse wave sound. It’s an impressive build and one we fully expect to see at a big chiptune show sooner rather than later. We’re almost surprised nobody came out with a C64 Theremin cartridge back in the day.

We’ve seen other fancy theremin-inspired builds recently too, like this light-based design.

Continue reading “C64 Turned Theremin With A Handful Of Parts”