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”

A Commodore 64 running a smartwatch link program

The Commodore 64 Smartwatch Can Now Sync With Your Commodore 64 Desktop

If you’ve got a smartwatch on your wrist, chances are you’ve also got a device nearby that links up with it. Most modern watches will happily sync with Android devices or iPhones, and some will also talk to Windows PCs. But what if you’re running an alternative OS? Something like, say, Commodore BASIC? In that case, you might want to check out [Nick Bild]’s latest project, which lets you to sync your smartwatch to your Commodore 64.

Sadly, you can’t just use any old smartwatch: the project is an extension of [Nick]’s Commodore 64 Smartwatch that we featured earlier. This watch can run Commodore 64 programs thanks to a custom software stack, but like most typical smartwatches also includes an accelerometer that counts your steps. Syncing the step counter to your computer is straightforward: after you come home from your daily run, you simply tap “sync” on the watch, enter LOAD"SYNC.PRG",8,1 on your Commodore 64, and the computer will show your total step count.

The C64 watch communicates with the host computer through a built-in infrared port. The classic Commodore computers don’t have an IR receiver, so [Nick] built one himself using an Arduino Micro hooked up to the C64’s User port. A custom program reads out the data and shows the step count on the screen.

Although the feature set of this app is a bit limited, [Nick]’s project demonstrates how the good old Commodore 64 can still perform useful tasks in today’s world. Not that we needed much reminding: after all, we’ve even seen it run AI applications using TensorFlow Lite.

Continue reading “The Commodore 64 Smartwatch Can Now Sync With Your Commodore 64 Desktop”

TensorFlow Lite – On A Commodore 64

TensorFlow is a machine learning and AI library that has enabled so much and brought AI within the reach of most developers. But it’s fair to say that it’s not for the less powerful computers. For them there’s TensorFlow Lite, in which a model is created on a larger machine and exported to a microcontroller or similarly resource-constrained one. [Nick Bild] has probably taken this to its extreme though, by achieving this feat on a Commodore 64. Not just that, but he’s also done it using Commodore BASIC.

TensorFlow Lite works by the model being created as a C array which is then parsed and run by an interpreter on the microcontroller. This is a little beyond the capabilities of the mighty 64, so he has instead created a Python script that does the job of the interpreter and produces Commodore BASIC code that can run on the 64. The trusty Commodore was one of the more powerful home computers of its day, but we’re fairly certain that its designers never in their wildest dreams expected it to be capable of this!

If you’re interested to know more about TensorFlow Lite, we’ve covered it in the past.

Header: MOS6502, CC BY-SA 3.0.

Will The Real Commodore Please Stand Up?

The Commodore 64 is a much-loved 8-bit retro computer that first appeared in 1982 and finally faded away around a decade later. The Commodore company started by [Jack Tramiel] went on to make the Amiga, and eventually ceased trading some time in the late 1990s. All history, now kept alive only by enthusiasts, right? Well, not quite, as the C64 has been the subject of a number of revivals both miniature and full-sized over the years. The latest came in the form of a Kickstarter for the C64x, a seemingly legitimately-branded Commodore 64-shaped PC, but it seems that has now been paused due to a complaint from an Italian company claiming to be the real heirs of Commodore. So will the real Commodore please stand up?

The origin of the Kickstarter C64x breadbin C64 PC is well enough documented, having its roots in a legitimate 2010 offering for which the person behind the C64x appears to have gained the rights. The Italian company is also called Commodore and uses the familiar branding from the glory days to sell some Commodore-themed games, novelties, and a tablet computer, but its website is a little tight-lipped about how it came by the use of that IP. Could it have come upon those rights through the 1990s German owner of the brand, Escom? We’d be fascinated to know.

Continue reading “Will The Real Commodore Please Stand Up?”

A (Nearly All) New Commodore 64

The Commodore 64 remains one of the most influential of the 8-bit home computers four decades after its launch, so not surprisingly there is a huge enthusiast community surrounding it. With so many produced over the years it was available one might think that there would be no shortage of surviving specimens, but sadly time and component failure have taken their toll and the classic micro is not always the most reliable kid on the block. Thus a cottage industry has sprung up supplying C64 parts, leading [The Retro Shack] to have a go at making a new one entirely from scratch.

As you can see in the video below the break it’s not quite an entirely new ’64, as parts including some of the custom silicon come from failed boards. The PCB is a modern recreation of the original and the SID sound chip is an ARMsid though, and most of the parts come from a handy bagged-up kit that makes assembling the BoM much easier. Instead of the big silver box of the original RF modulator is a modern composite board, and there are a few issues with minor connector part differences.

Assembly is simply a very long through-hole soldering process, and once he’d completed it there was the expected refusal to work. We’ve all been there, and eventually he traced it to an incorrectly fitted chip. If you think you’ve seen a few brand new C64s here before you’d be correct, one of them even used LEGO for those elusive keycaps.

Continue reading “A (Nearly All) New Commodore 64”

How To Get Into Computer Game Development In 1982

If you are a follower of retrocomputing, perhaps you caught the interactive Black Mirror episode Bandersnatch when it came out on Netflix. Its portrayal of a young British bedroom coder finding his way into the home computer games industry of the early 1980s was of course fictional and dramatised, but for those interested in a real-life parallel without the protagonist succumbing to an obsession with supernatural book there’s a recent epic Twitter thread charting an industry veteran’s path into the business.

An acceptance letter like this from Artic Software would have been the wildest dream of any early-80s bedroom coder.
An acceptance letter like this from Artic Software would have been the wildest dream of any early-80s bedroom coder.

[Shahid Kamal Ahmad] now has an impressive portfolio spanning his his nearly four decades at the forefront of gaming, but his story starts in 1982 as a diabetic British Pakistani teenager from a not-privileged background in London writing in BASIC on his Atari 400. His BASIC games are good, but not good enough to gain acceptance from a publisher, so he sells his prized BMX bicycle to buy books on Atari 6502 assembler, a coffee percolator, and for curiosity’s sake, [Rodnay Zaks’] Programming the Z80. An obsessive three-month learning of 6502 programming and the Atari’s architecture ensues, and his game Storm in a Teacup sells to Artic Software.  He’s a professional game developer.

We follow him through a couple more projects until he arrives at Software Projects in Liverpool to try to sell his game Faces of Haarne, which he secures publishing for but also lands the opportunity of a lifetime. Jet Set Willy is the smash hit of the year on the ZX Spectrum, and they urgently need a Commodore 64 port. Can he do it in four weeks, with a bonus if he manages three? The subsequent descent into high-pressure assembly coding and learning the quirks between two completely different 8-bit architectures is an epic in itself, but he manages it in just a shade over the three weeks and they pay him the bonus anyway. His career in the computer game industry is cemented.

Through this tale the reminders of 1980s Britain are everywhere, far from bring a retro paradise it was a place hollowed out by industrial decline, with very little for those at the bottom of society to be optimistic about. His descriptions of casual racism are hard-hitting, but the group of computer-addicted friends at school is probably something that all teenagers of the era whose interests lay in that direction can relate to. The real hero of the story is probably his mother, who somehow found the resources for that Atari 400 and who provided him with much-needed support and encouragement.

This thread captures a unique and never-to-be repeated era in which a teenager could master an emerging technology and make a living in it without an expensive education. Like Bil Herd’s description of his career at Commodore in the same period, it’s well worth a read.