I’ve built a lot of arcades and packed them with Raspberry Pi goodness over the years, but today’s project is going to be quite a bit different! We’re going to pack a Raspberry Pi running Retropie into a Commodore 64. A Raspberry Pi Commodore 64 is something that has been on my list of To-Dos for a long time. I’ve just not had the time to get to it, and until recently was missing one of the main components I needed to make the project worthwhile: a 3D printer.
The Raspberry Pi Commodore 64 Setup
The setup for this project is pretty simple. I had an extra (working) Commodore 64 that I’ve been storing. To build the RPi C64 I didn’t want to alter the Commodore 64’s components in any way that would not be reversible. No cutting the plastic. No wiring or soldering changes. It had to be 100% capable of being turned back to stock. In the future, I might run into a Commodore 64 shell that I can transfer all of this componentry into and return this C64 to factory.
The other thing I wanted to accomplish with this project is a very clean look. Most of the projects I see on the web that slip a Raspberry Pi into a Commodore 64 leave big gaping holes in the back of the computer and it looks very much like a hack. In this project I will use 3D printer parts to fill in the C64 port openings and re-purpose them as ports for the Raspberry Pi (HDMI, micro-USB, and a power switch).
Building the Raspberry Pi Commodore 64
So let’s get started and make this awesome project! I’ll take you through each step one at a time!
The Board Layouts
Let’s first discuss the board layouts, and then I will cover the individual components. Links will be in the article and full list at the bottom of the page if you want to build this same project!
We’re going to use several components to make this happen, and create a super clean Rasbperry Pi Commodore 64. First thing we’ll do is 3D print some covers for the existing Commodore 64 ports. These will also provide port placement for an HDMI port, a remote power switch, and a micro-USB port to provide power to the whole system. In the center of the C64 will be a Raspberry Pi 3 Model B. This will be the main compute unit and will Retropie as the main OS and emulation software. On top of the Raspberry Pi we will install Petrockblock’s Powerblock to provide remote switch boot and shutdown capabilities for the Pi. The last, but very critical component is the Keyrah V2 which will interface the C64’s factory keyboard into the Raspberry Pi via USB.
The Keyrah V2 – C64 Keyboard Interface Board
The Keyrah V2 is an interface board that translates the keys of the Commodore 64 to a standard keyboard interface (via USB). Simply put, it allows you to plug the C64’s Keyboard into the Raspberry Pi’s USB port. But it’s even better than that! It’s also designed to use the existing side panel of the Commodore 64. It provides two joystick ports, a power switch that doubles a keyboard emulation selector, and a USB port where the C64 power port used to go.
For those of you who don’t want to do a Commodore 64 Raspberry Pi conversion, the Keyrah V2 can be used to simply turn the Commodore 64 into a keyboard that can be used with a regular PC.
The Raspberry Pi 3 Model B – The New Brain
Our converted C64 will need a new “brain”. Since we’re removing the Commodore 64’s original motherboard, the Raspberry Pi will take it’s place. The Raspberry Pi 3 Model B is a single-board-computer (SBC) based on the ARM architecture. It will run a software called Retropie which will house various emulation software packages such as MAME (arcade emulation), an NES emulator, and of course VICE (Commodore 64 emulation). With the combination of the Keyrah V2 and VICE, the Pi will be able to 100% emulate a C64!
The PowerBlock – Remote Power Control
The PowerBlock from PetRockBlock is an optional component for this build, but really takes things to the next level! It mounts on the Pi’s GPIO header and does a few really cool things. The first is that it provides power to the Pi, rather than plugging the micro-USB into the Pi’s USB port. You plug your power source into the PowerBlock.
Turning on power, is no different than any other Pi with a remote power switch; the Powerblock simply provides 5 volts of DC electricity to the Pi. Where things get awesome is when you flip the power to the Pi off. The Powerblock continues to provide voltage to the Pi while it issues the system shutdown command and brings Raspian (the Pi OS) to a safe state. Once the Pi has completed shutdown, the PowerBlock stops providing 5 volts and powers down the Pi.
The PowerBlock will keep your Pi’s SD card from getting corrupted from repeated loss of power without a clean shutdown. I highly recommend this product for any Raspberry Pi enthusiasts!
The 3D Printer Components – Making it Clean
As mentioned earlier, I 3D printed some freely available components from Thingiverse. These will make this Raspberry Pi Commodore 64 conversion look super clean! These components will not only cover all of the open ports from the C64, but will provide port locations for our Raspberry Pi connections! The IEC port cover also provides a very clean mount location for the Raspberry Pi!
Assembling the Raspberry Pi Commodore 64
This is where things get really fun, assembling the Raspberry Pi Commodore 64 into a completed unit!
Installing the Knurled Hot Set Nuts
In order to make the 3D printed components last forever and make installation as simple as possible, we’re going to install knurled hot set nuts into the 3D printed components. The heat from the metal nuts will melt the plastic and result in a permanent bond to the plastic when they cool. These nuts provide mount points for all of our componentry.
To install the nuts, you simply hold them in place with some needle-nose pliers and heat them with a soldering iron. They will sink into the cavities and become permanently attached.
Installing the Cables and Switch
Once the hot set nuts are in place it’s time to install the HDMI cable, our remote switch, and micro-USB that will provide 5 volts to the PowerBlock. These just screw into the 3D printed left panel using the knurled hot set nuts we just installed and some cap screws.
Install the Boards
The next step of the Raspberry Pi Commodore 64 build is to install all of the components boards. Install the Raspberry Pi, the Keyrah V2, and the Powerblock into place. Solder wires to the remote switch and plug them into the PowerBlock’s switch header.
Attatch the Commodore 64 Power LED and Keyboard
The final step before closing the case on this project is to connect the Commodore 64’s power LED to the PowerBlock’s LED header and the keyboard to the Keyrah V2’s C64 pin header.
The Finished Raspberry Pi Commodore 64 Conversion
After putting the case lid back on and screwing in the screws you have a completed Raspberry Pi Commodore 64 conversion! I highly recommend running RetroPie on this conversion and installing the PowerBlock drivers to complete things. I have a video on installing RetroPie if you need help.
The completed conversion will allow you to run the VICE emulator on the Commodore 64. Play all of your old games, or simply write a basic program on the C64! VICE (optional install in RetroPie) will even emulate the Commodore disk drives like the 1541 allowing you to load or save your programs and games to the Raspberry Pi’s SD-Card.
Raspberry Pi Commodore 64 Parts List
Get all of the parts you need to build this project from the links below:
- Keyrah V2
- Raspberry Pi 3 Model B
- 32 GB micro-SD card
- PowerBlock
- HDMI extension
- Micro-USB extension
- SPST power button
- Knurled hot set nuts
- Cap screws
- Washers
- Headers
- USB-A to header cable
- Quad Hands
- Weller Soldering Station
Watch The 8-Bit Guy RPi C64 Video
Watch The Geek Pub RPi C64 Video
Some Things I Would Do Differently
If I were to remake this project I would change some things. Not significantly, but enough to make it significantly better for my uses. In fact, I may well go back and make these changes later.
The first thing I would change is to add a 3.5mm audio jack to the computer. It never occurred to me through this entire build that the monitor I was using doesn’t support HDMI audio. It doesn’t even have internal speakers. So a place to plug in external speakers would be a super nice addition.
RELATED: Geek Pub RetroPie Setup Guide
The second thing I would do is add one or two external USB ports. Probably in the cartridge port cover. This would allow me to plug in a USB keyboard or a USB thumb drive. The problem is that the C64 keyboard is missing a lot of keys found on the standard 101-key keyboards in the US and EU. Remember the keyboard combos and the keyboard Olympics required to type outside of the C64 emulator can be maddening. An external keyboard for configuration would be ideal! Of course there are two workarounds for this problem: a) SSH directly into the Pi, and b) Bluetooth keyboards.
The post Raspberry Pi Commodore 64 appeared first on The Geek Pub.