Hackaday Links Column Banner

Hackaday Links: September 23, 2018

In the spirit of Nintendo’s NES mini and Super NES mini, Sony is releasing a tiny version of the Playstation. It’s a hundred bucks in December and it comes with Final Fantasy VII, what more do you want? While that’s marginally cool, check out the forums and comments of gaming blogs for some real entertainment — those damn kids won’t get off my lawn and are complaining the included controllers don’t have analog sticks.

This man has solved the range problem for electric cars. He hacked a Prius to run off the overhead wires for San Francisco’s Muni system. Yes, if you want something amazing, here it is. The pantograph/pole/whatever it’s called was acquired ‘somehow’, with the implication that it was stolen. The overhead lines are 600 V, and a Prius’ battery pack is usually 273 V; apparently he “uses up the excess power on a whole lot of resistors, full-time headlights, and a kick-ass stereo system.”. Dear lord, we need a real technical write-up for this one.

get on my level

Humanity’s most impressive accomplishment to date is Twitch Plays Pokemon. This was a cooperative game of Pokemon, with thousands of people mashing buttons. Everyone (eventually) beat the Final Four, but the most impressive part was the Power Plant. We made it through the Power Plant, and we got Zapdos. I was there. It was incredible. Twitch Plays Pokemon has been reborn and rebranded several times, but this one might be good: Twitch Programs a Commodore 64. It’s a (virtual) C64 hooked up to Twitch. If there’s one person watching the channel, you can slowly type out a BASIC program one… character… at… a… time. If there’s more than one person watching, the entire ordeal devolves into the horrors of a democracy, but you might be able to get something done. Have fun.

C64 Keyboard Helps Keep The Memory Alive

To say that the Commodore 64 was an important milestone in the history of personal computing is probably a bit of an understatement. For a decent chunk of the 1980s, it was the home computer, with some estimates putting the total number of them sold as high as 17 million. For hackers of a certain age, there’s a fairly good chance that the C64 holds a special spot in their childhood; perhaps even setting them on a trajectory they followed for the rest of their lives.

At the risk of showing his age, [Clicky Steve] writes in to tell us about the important role the C64 played in his childhood. He received it as a gift on his fifth birthday from his parents, and fondly remembers the hours he and his grandfather spent with a mail order book learning how to program it. He credits these memories with getting him interested in technology and electronic music. In an effort to keep himself connected to those early memories, he decided to build a modern keyboard with C64 keycaps.

As you might expect, the process started with [Steve] harvesting the caps from a real Commodore, in fact, the very same computer he received as a child. While the purists might shed a tear that the original machine was sacrificed to build this new keyboard, he does note that his C64 had seen better days.

Of course, you can’t just pull the caps off of C64 and stick them on a modern keyboard. [Steve] found the STLs for a 3D printable C64 to Cherry MX adapter on GitHub, and had 80 of them professionally printed as he doesn’t have access to an SLS printer. He reports the design works well, but that non-destructively removing the adapters from the caps once they are pressed into place probably isn’t going to happen; something to keep in mind for others who might be considering sacrificing their personal C64 for the project.

[Steve] installed the caps on a Preonic mechanical keyboard, which worked out fairly well, though he had to get creative with the layout as the C64 caps didn’t really lend themselves to the keyboard’s ortholinear layout. He does mention that switches a bit heavier than the Cherry MX Whites he selected would probably be ideal, but overall he’s extremely happy with his functional tribute to his grandfather.

If you’re more of a purist, you can always adapt the C64 keyboard directly to USB. Or go in the complete opposite direction and put a Raspberry Pi into a C64 carcass.

Commodore 64 To Raspberry Pi Conversion Is Respectful & Complete

We’re big fans of taking old computers and giving them a new lease on life, but only when it is done respectfully. That means no cutting, no hot glue, and no gouging out bits to make the new computer fit. It’s best if it can be done in a way that the original parts can be restored if required.

This Commodore 64 to Raspberry Pi conversion from [Mattsoft] definitely fits our criteria here, as it uses the old keyboard, joystick connectors and output portholes for the required authentic look. It does this through the clever use of a couple of 3D-printed parts that hold the Raspberry Pi and outputs in place, mounting them to use the original screw holes in the case.

Combine the Pi with a Keyrah V2 to connect the C64 keyboard and a PowerBlock to juice up all of the parts, and you’ve got a fully updated C64 that can use the keyboard, joysticks or other peripherals, but which also comes with a HDMI port, USB and other more modern goodies.

[Mattsoft] suggests using Combian 64, a C64 emulator for the Pi for the authentic look and feel. Personally, I might use it as a thin client to the big-ass PC with 16 CPU cores and 32GB of memory that’s hidden in my basement, but that’s just because I enjoy confusing people.

RetroModem For The Commodore 64

Retrocomputers are fun, but ultimately limited in capability compared to modern hardware. One popular pursuit to rectify this is the connection of early home computers to the Internet. To that end, [que] built the Retromodem for the Commodore 64.

The build starts with a case from an Intel 14.4 modem. A little fast for the Commodore 64 era, but anachronism is charming when done tastefully. Inside is an Arduino with an ethernet module to handle the heavy lifting of carrying packets to the outside world.  [que] took the time to wire up status LEDs for the proper vintage look, which really adds something to the project. They switch on and off to indicate the various settings on the modem – it’s great to see in the video below the break the “HS” LED light up when the baud rate is changed to a higher speed.

The project implements most of the Hayes command set, so you can interface with it over a serial terminal just like it’s 1983. [que] doesn’t go into too many details of how it’s all put together, but for the experienced code warrior it’s a project that could be whipped up in a weekend or two. For a more modern take, perhaps you’d like to hook your C64 up over Wifi instead?

Continue reading “RetroModem For The Commodore 64”

Hacked Headset Brings VR To The Commodore 64

The venerable Commodore 64 got a lot of people started in computers, and a hard core of aficionados keeps the platform very much alive to this day. But a C64 just doesn’t have the horsepower to do anything more than some retro 8-bit graphics games, right?

Not if [jim_64] has anything to say about it. He’s created a pair of virtual-reality goggles for the C64, and the results are pretty neat. Calling them VR is a bit of a stretch, since that would imply the headset is capable of sensing the wearer’s movements, which it’s not. With just a small LCD screen tucked into the slot normally occupied by a smartphone in the cheap VR goggles [jim64] used as a foundation for his build, this is really more of a 3D wearable display — so far. The display brings 3D-graphics to the C64, at least for the “Street Defender” game that [jim64] authored, a demo of which can be seen below. We’ll bet position sensing could be built into the goggles to control the game too. Even then it won’t be quite the immersive (and oft-times nauseating) experience that VR has become, but for a 35-year old platform, it’s not too shabby.

Looking for more C64 love? We’ve got a million of ’em — case mods, C64 laptops, tablets, even CPU upgrades.

Continue reading “Hacked Headset Brings VR To The Commodore 64”

Fixing Bugs In Ancient BASIC Games

Before everyone learned programming on Stack Exchange, things were much different. Computer magazines had BASIC programs in them, which readers would type out, line by line, and hit RUN. In theory, this is a terrible way to learn programming; it’s simply rote recitation without any insight into what the code is actually doing. Of course, copying and pasting from Stack Exchange is exactly the same thing, so maybe these magazines were ahead of the curve.

[0xA000] recently came across one of his old computer magazines containing the type-in listing for Blindganger, a game where you wander a maze blindly. When [0xA000] typed this game into his C64 back in 1988, the game didn’t work. Thirty years later, he decided to give it another go and ended up fixing bugs in an old computer game.

When [0xA000] typed this game into his computer back in 1988, the map just didn’t work, and the final screen revealed a maze where the walls were where they shouldn’t be. A quick Google turned up a disk image of the same game that had the same problem. This bug was obviously in the section of code that draws the map at the end of the game, so [0xA000] started looking there. The offending typo in the code was an $F4 instead of an $F5, or 244 instead of 255. This shifted the colors of the map by 11 positions, meaning the locations marked as visited in the final screen were wrong. Whether this bug cropped up in development or was just a simple typo when typesetting the magazine doesn’t really matter now; after 29 years, this bug is fixed.

Adding Character To The C64

The venerable Commodore 64, is there anything it can’t do? Like many 1980s computer platforms, direct access to memory and peripherals makes hacking easy and fun. In particular, you’ll find serial & parallel ports are ripe for experimentation, but the Commodore has its expansion/cartridge port, too, and [Frank Buss] decided to hook it up to a two-line character LCD.

Using the expansion port for this duty is a little unconventional. Unlike the parallel port, the expansion port doesn’t have a stable output, as such. The port contains the data lines of the 6510 CPU and thus updates whenever RAM is read or written to, rather then updating in a controlled fashion like a parallel port does. However, [Frank] found a way around this – the IO1 and IO2 lines go low when certain areas of memory are written to. By combining these with latch circuitry, it’s possible to gain up to 16 parallel output lines – more than enough to drive a simple HD44780 display! It’s a testament to the flexibility of 74-series logic.
It’s all built on a C64 cartridge proto-board of [Frank]’s own design, and effort was made to ensure the LCD works with BASIC for easy experimentation. It’s a tidy mod that could easily be built into a nice enclosure and perhaps used as the basis for an 8-bit automation project. Someone’s gotta top that Amiga 2000 running the school district HVAC, after all!