ZX Spectrum Turned Into A USB Keyboard

ZX

They’re a little hard to find in the US, but the ZX Spectrum is right up there with the Commodore 64 and the Atari 8-bit computers in England. [Alistair] wanted to recreate the feeling of sitting right in front of the TV with his Speccy, leading him to create the ZX Keyboard, a Spectrum repurposed into a USB keyboard.

While most projects that take an old key matrix and turn it into a USB keyboard use the TMK firmware, [Alistair] wanted to flex his programming muscles and wrote the firmware from scratch. It runs on an Arduino Pro Mini, scanning the matrix of five columns and eight half rows to turn combinations of keypresses into an astonishing number of commands, given the limited number of keys on the ZX.

The firmware is available on [Alistair]‘s repo, available to anyone who doesn’t want to pay the £50 a new ZX Spectrum keyboard will cost. As far as the usability of a Spectrum keyboard goes, at least [Alistair] didn’t have an Atari 400 sitting in the attic.

Sinclair ZX Spectrum +2A Slims Down

sinclair

[Carl] got his hands on a dead Sinclair ZX Spectrum +2A. He decided he wasn’t just going to fix it, he was going to improve it! The ZX Spectrum Compact is literally a “sawn-off” Spectrum +2A. [Carl's] inspiration came from a similar mod at the Old Machinery blog.

Amstrad seems to have had a habit of bolting on additions to their products. In the case of the Spectrum +2A, it was a tape drive. Tapes weren’t a great storage method in the 80’s, and today they’re downright annoying. [Carl] didn’t need the tape interface, as he’s using a DiVide ATA interface.

The modification is rather straight forward. [Carl] broke out the hacksaw and cut the right end cap away from the tape drive. He then cut the entire tape drive away. The motherboard wasn’t safe from the saw treatment either, as the printer interface was cut off. Thankfully there were no components on the printer interface. Apparently [Carl] didn’t short any traces as he went to town with his saw.

With the motherboard modified to fit the abbreviated case, [Carl] was ready to begin reconstruction. He glued the cap onto the sawn-off case with Grip Fill glue, which also served to fill any gaps. Some sanding, priming, and painting later, The ZX Spectrum Compact was finished. This isn’t a perfect mod, as the gap is still slightly visible under the paint – but it’s good enough for [Carl]. Hey, it’s good enough for us, too – we can’t all be [Ben Heck]!

 

Try out your assembly and BASIC skills with a ZX Spectrum project

It can be really hard to warm up to coding in Assembly. But this tutorial looks to make it understandable and (almost) easy. It focuses on programming a game for the ZX Spectrum. But you won’t need the hardware on hand as you can just use the ZX Spin emulator as you work your way through the code.

Ostensibly this is a 30-minute tutorial but that’s a gross underestimate. We finished a cursory read of the tutorial and the building blocks are certainly clear and easy to understand. But we like to make sure we understand every line of code and plan to spread that out over the coming weekend.

The first chapter eases us into machine code by combining it with a bit of BASIC. You’ll see how to manipulate the ZX Spectrum memory and then pluck that value back out into the BASIC program. But once chapter 2 hits it’s pretty much all assembly from there on out. The nice thing is that as you go along you learn how the hardware works and there are quite a few references to pages in the manual so you can do some extra learning along the way.

[Thanks Mathilda]

Hackaday Links August 31, 2012

Landing a fixed-wing through hotel balcony french doors

As you can see, launching an RC airplane off of a hotel balcony is easy. But watch the video and you’ll find out trying to fly through the french doors for a landing is another story. [Team BlackSheep] hits (har, har) Thailand in this collection of breathtaking flights.

Quieting rack-mount switch for home use

[VictorB] got his hands on this switch to beef up his home network. Since the three fans on the back sound like a jet engine he did some cutting to use a larger, quieter fan.

Component package alphabet

Sure, you probably know what SOIC stands for, but what is a CSP? You can clear things up a bit by studying your IC Alphabet.

ZX Spectrum audio card

For those still looking to squeeze everything they can out of a classic ZX Spectrum, here’s a way to improve the audio with a custom sound card (translated).

AVR programmer reprogrammed as an NES controller interface

[Slack] modified his USBasp programmer to uses as an NES controller interface. The hardware can be had on eBay for under $10, and he was already using one as a dev board. After seeing this USB to NES dongle post it didn’t take long to make the programmer into a gaming tool.

Vintage peripheral hacks roundup

A few days ago, we featured an Apple ][ USB keyboard mod, and several readers chimed in sharing their own retro conversions in the comments section. We had no idea that many of you had made similar modifications of your own, so here’s a quick roundup of what your fellow Hackaday readers have put together.


Optical Atari STM1 Mouse

atari_stm1_usb

[JJ] had a 25-year old Atari STM1 mouse sitting around and was wondering how to get it to work with his new computer. Instead of interfacing the old mouse with his computer via a custom circuit board, he gutted the STM1 and replaced the innards with those of a much newer optical mouse. He did a bit of trimming to get the new PCB to fit, aiming the optical sensor through the now-empty “ball hole”. According to [JJ] it works just as good as it looks.


ZX Spectrum USB keyboard conversion

sinclair_zx_spectrum_usb

[Lee] is a sucker for vintage hardware, and with the help of his friend [LanceR], resurrected an old Sinclair ZX Spectrum computer into a working USB keyboard. After replacing the deteriorated membrane, the pair mapped out the keyboard to figure out how the matrix was wired. With that done, they built a prototype USB interface board, which they later replaced with a proper PCB.


BBC Master Compact USB keyboard conversion

bbc_master_compact_usb

A friend of [MoJo’s] had a BBC Master Compact computer from back in the day and wanted to have the keyboard converted to USB in order to use it with certain emulators. [MoJo] gladly took on the project, stripping some of the old motherboard components out to make room for his new circuitry. He built a USB interface board around an ATMega162, and even got the old built-in speaker working properly. From the outside, the keyboard looks like it has never been touched – nice job!