The idea of gutting an original Commodore 64 and replacing the motherboard with a Raspberry Pi is far from new. In fact, I have already done it using an old breadbox case (link). However, during the modding process of that machine the case was completely destroyed and it will not be possible to restore it even if I wanted to 🙁 So when I was asked to do the mod all over again, now with the aid of a case friendly 3D printed conversion kit specifically made for modding a Commodore 64 C case with a RasPi, I immediately accepted! I received the 3D prints a few weeks ago from COREi64.com (link) and instantly made a dedicated post on them as they are very well made (link). The 3D conversion kit costs 65$ plus shipping from Canada and they can be ordered in a variety of colors.
I wanted the machine to look just like an original Commodore 64 C on the outside, but with its internals replaced by a Raspberry Pi 3 Model B and the original C64 power supply unit should be used to run the Raspberry Pi. As a little teaser of what to expect, the final mod ended up looking like this – The C64 RetroPie Mod:
Building the Machine:
The components used for making the Commodore 64 RetroPie Mod included an original beige Commodore 64C case, a green 3D printed conversion kit from COREi64.com, a Keyrah V2 from Individual Computers (link), a Neutrik HDMI plug (Neutrik NAHDMI-W-B), a 0.5m HDMI cable, two short USB cables (Type A/Micro B) and the power connector from a broken C64 motherboard.
Powering the RasPi
I have a few broken Commodore 64 motherboards that I use for spare parts when doing repair jobs. Early on I decided to use the power plug from one of these spare boards for powering the RasPi. This way I did not have to go get one of them ugly wall warts! A Dremel was used to separate the female power plug from the mainboard. As the whole idea of the mod was to keep the Commodore 64 case intact, hereby retaining the option of converting the machine back to its original state, the rear side holes were used for all interface cables. Thus, the ‘Video’ port would accomodate the power inlet.
The 3D printed material is a little brittle, so care should be taken when drilling holes. Heat is another issue that should be avoided (who would have thought…). Using a rotary tool will melt the material within seconds – so be careful! The female power plug is mounted using an original screw terminal in the case bottom. The black self-tapping screws are not included in the conversion kit from COREi64.com – I got them from China real cheap 🙂
Two pin headers were soldered into the mounting holes of the removed power switch for easy access to Ground and 5V+. Finally a modified USB cable was used to power the RasPi board through a micro USB plug. The RasPi can run power hungry devices through its USB connections of up to 2.5A, but a power supply of 1.2A will provide ample power to run the Raspberry Pi for most applications. In this context, the C64 power supply can provide 1.7A@5V. As I only intend to run a keyboard (and a green power LED) through the USB connection (and maybe a game controller) it should suffice. After about 6 hours of continuous use of the Raspberry Pi, the power supply did not even get lukewarm, so I am not too worried about overloading it 😉
The HDMI connection from the RasPi went through a Neutrik HDMI plug (Neutrik NAHDMI-W-B). Only the central part of the plug was used. The plug fits perfectly into the ‘Serial’ port of the original case without doing any modifications. Finally, some hot glue was used to make sure everything would stay in place. Care was taken that no glue touched the case hereby making it easier to remove everything if I should ever want to convert the machine back to its original state.
Mounting the Raspberry Pi
Next up was mounting the bracket which holds the Raspberry Pi. The 3D printed conversion kit included some 3D printed washers to keep everything in place – nice detail! The kit also includes black oxide screws and some stainless steel washers which makes it very easy to fasten the Raspberry Pi using the brass heat-set inserts. The micro SD card of the RasPi can easily be reached from the outside using the small slot in the Cassette port…
In order to have the original Commodore 64 keyboard work as a modern USB PC keyboard, a Keyrah V2 was installed. The Keyrah PCB allows connection of classic computer keyboards (like the Commodore 64) to modern computers via USB. It also supports digital joysticks by translating the joystick events to key strokes.
The conversion kit came with a plate that seals off the gap surrounding the USB connection of the Keyrah.
Power LED mod
To finish off the hardware part of the build, a green power LED was made as the cables of the original LED was too short. The LED cable was made based on this post (link)
The Finished C64 RetroPie Mod:
After less than two hours (including coffee breaks and the mandatory photo shoots!) of intense building, the machine was back to normal on the outside. The 3D printed conversion kit blocks off all the rear ports with a sleek finish. The micro SD card can be reached from the outside of the case. The Serial port functions as a HDMI-connection while the Monitor port is used for powering the system. The entire machine ended up with quite a clean look.
During the initial phase of the mod, I wanted to add an USB connector to the Expansion port, but changed my mind – a little too late though… Bummer!!! An extra USB plug may be mounted at a later time to accommodate, e.g. a game controller for other emulators than the Commodore 64.
An external view of the plate that seals up the gap surrounding the USB connector. Once again, the attention to detail is stunning and gives the machine a very nice finish.
There is plenty of room even with the electronics installed.
The sweet looking Raspberry Pi 3 Model B with all the cables attached.
The ceramic disc capacitors are just for showing off. Gotta keep some of that retro feeling…
The larger 3D printed bracket has a long arm which, besides securing the attachment to the case bottom, also has ‘cable tie holes’ for controlling the inevitable cable mess. It does not get any easier than this! …and the Keyrah V2 residing peacefully in the right corner…
Installing the Software:
The Linux distribution that I was looking for should be easy to install and have a retro gaming front-end installed natively. I basically wanted to get going as fast as possible without doing tons of Linux terminal stuff! In this respect, I found that the RetroPie (link) distribution had exactly that (hence the name of the mod). After installing RetroPie, I setup the wireless connection from the RetroPie main menu. The Commodore 64 emulator Vice is not one of the standard emulators on the system, so this had to be done manually using the menus of RetroPie.
As copying game roms is not straight forward coming from a MS Windows system, I used FileZilla on my laptop to connect to the RasPi through the wireless connection. By entering the RasPi’s wireless IP address (can be found in the RetroPie wireless setup menu) along with the username pi, the standard password raspberry and port 22 would log me into the Raspberry Pi.
After copying a few of my favourite Commodore 64 games to the /home/pi/RetroPie/roms/c64 folder, the machine was rebooted and the games were available in the emulator menu (RetroPie calls this Emulation Station). Managing the specific emulator settings were done directly in the Vice emulator.
The C64 RetroPie Mod in action:
Here is a small video of the machine running a quick game of Commando using the Commodore 64 Vice emulator on the Raspberry Pi.
The machine has been build for playing Commodore 64 games only which is evident from the very few cables needed for creating the mod! If considering installing other emulators on the machine, adding an USB connection would be the obvious choice. This can easily be done in the, e.g. Expansion port opening (as I already kinda did by mistake…). Different game controllers can then be inserted into this USB port depending on the console being emulated (e.g. NES or SNES). It should be a pretty straight forward job.
In my previous Commodore 64 RasPi mod I used the very first version of the Raspberry Pi, a Keyrah V1 and the ChameleonPi software distribution (link). This combination of hardware and software was far from stable, most likely due to the inferior capacity of the RasPi. Often the keyboard would not function correctly or the software would freeze. Plugging in new USB hardware (e.g. a wired mouse or keyboard) called for a system reboot and often the drivers had to be installed manually (using a Linux terminal). For this current mod, I used a Raspberry Pi 3 Model B (highly recommended!), a Keyrah V2 and the RetroPie software distribution (version 4.1). The combination of the newer hardware and software worked flawlessly! Booting the machine takes about 20 seconds and USB devices work right after being plugged in (e.g. an Xbox 360 controller for MAME games). The wireless network is also a very nice feature for transferring new roms to the system without the need for a cable connection! The Scraper feature of the RetroPie software allows for automatically obtaining game information online. It’s really easy being a modder these days!
As evident from this post I really really like the 3D printed conversion kit for the new style Commodore 64C cases (who doesn’t like 3D printed stuff, right?). It took me less than two hours to install all the hardware including drilling and soldering – and I was not in a hurry. The 3D printed C64 C conversion kit makes it very easy to make a professionally looking machine. Everything fits perfectly and the black oxide screws make for a nice finish (the black self-tappings crews are not included in the kit, but Ebay have heaps of them…). Printing the parts for the entire conversion kit takes about 10 hours of continuous printing. After the printing process, the support material has to be removed and the heat-sets inserted into the prints for accommodating the screws. So quite a bit of labour has been put into these little beauties. In this respect, the pricetag of 65$ plus shipping from Canada seems quite fair and is obviously not a gold mine. I’m just thankful that someone has taken the time to produce these little gems. Great job COREi64!
Tired of the old beige Commodore 64 case? In less than 10 minutes, everything can be transferred to one of them nice looking transparent Kickstarter cases in order to show off the 3D prints to the rest of the world… Happy Raspberry Pi modding!!
© breadbox64.com 2016