Sega Mega Drive joypad adapter for the Commodore 64 and Amiga

Using a Sega Mega Drive (Genesis) controller on a Commodore 64 puts a lot of strain on the CIA chip and can cause it to fail. So how can you use a Mega Drive joypad on a C64 safely? In this video I build a simple open source adapter that converts the pad’s output into levels the C64 can handle. It also works with Amiga machines and adds button swapping and an option to map UP to a button. This video was sponsored by PCBWay and features an open source project from their shared community uploads library.

Why can’t you plug a Mega Drive pad straight into a C64?

With a Mega Drive pad connected, some of the control lines are pulled high when the C64 is expecting them to be either low or open. That causes keyboard read errors, and the higher voltage can even destroy the CIA chip. This board sits between the pad and the computer and prevents that.

The project was shared by Screwbreaker, building on work by SukkoPera, who in turn used the details in “Commodore World” issue 5. You can view and order your own board on the PCBWay project page for the OpenC64MegaDrivePadAdapter, and PCBWay pass 10% of the proceeds to the author.

Advertisement

Parts list

  • Male and female DB9 sockets
  • Two BC547B transistors
  • Four 10K quarter watt resistors
  • Six 1N4148 diodes
  • Three DPDT on-on sub-miniature slide switches
OpenC64MegaDrivePadAdapter PCB with DB9 sockets, BC547B transistors, 1N4148 diodes and slide switches
The open source Mega Drive to C64 and Amiga adapter and its parts

Building the adapter

First a quick clean with 99.9% IPA, which dissolves the fingerprints and grease that would otherwise inhibit soldering and evaporates quickly. With the board in my PCB holder I fitted the six diodes first. The stripe on each diode marks the cathode and must match the stripe on the board. I bend the legs underneath so the parts don’t drop out when I flip the board.

My iron was at 330°C. Put the iron on the leg and the pad at the same time and feed solder to the leg, not the iron, so it flows onto the heated joint. Snip the legs with side cutters, and wear eye protection: they sometimes ping off violently.

Next the four 10K resistors. They aren’t polarised, but I like them all facing the same way. I fit parts in order of height, shortest to tallest, so I’m not blocking my own access. Then the BC547B transistors: match the component’s shape to the silkscreen and the collector, base and emitter legs will be in the right places. Getting the third leg into its hole can be fiddly, so make sure it’s in before you push. The square pads on this board connect to the ground plane, which soaks up heat and makes those joints harder to solder: just keep at it.

What do the three switches do?

  • Switch 1 selects C64 or Amiga mode.
  • Switch 2 swaps which of the Mega Drive B and C buttons act as fire 1 and fire 2.
  • Switch 3 remaps the second fire button to UP, which is very useful in platformers that use up on the joystick to jump.

Bend opposite corner legs to hold each switch in place, and keep them straight while you solder.

Three slide switches fitted to the C64 and Amiga Mega Drive joypad adapter board
The three slide switches: C64/Amiga, button swap and UP mapping

Modifying the DB9 socket for the Amiga

Make sure each DB9 goes on the right end. The joypad end needs the male connector to accept the pad’s plug; the board grips make it a tight fit. The female DB9 plugs into the computer. If you’re only using the adapter on a C64 you can fit that socket as it is, but for certain Amiga computers you need to cut one side of the socket’s flange off.

It’s easier than it looks. After double checking I was cutting the correct side, I put the socket in a vice and used my Dremel 3000 with a small cut-off disc at medium speed, metal first, to avoid melting too much plastic. Always wear protection with cutting wheels. A junior hacksaw would do the job just as well. The cut metal is very sharp, so I smoothed and rounded it with a small sanding drum, then did a little manual filing to tidy it up.

Cutting the flange off a female DB9 socket with a Dremel cut-off disc for Amiga compatibility
Trimming the DB9 flange so the adapter fits Amiga ports

Solder the socket’s board grips first. Electrically they’re not that important, but they add a lot of strength, so fill them. I switched to a bigger iron (still 330°C) for its larger tip, though one iron is fine for the whole build. Don’t linger too long on the pins or the socket’s plastic will soften.

Did it work? Testing on a Commodore 64

I tested with my trusty Mega Drive pad from back in the day, on the C64 (the machine known to struggle with this pad), pushed firmly into port 2 with the adapter in C64 mode. I used a cartridge, because C64 loading times can be painful. Up and down worked on the select screen, and B mapped to UP worked as well.

Flimbo’s Quest is one of those games that uses up on the joystick to jump (a pet peeve of mine). With the adapter, B jumps and C shoots, and the game is a lot easier with a proper jump button. It was really worth making this small project.

Flimbo's Quest running on a Commodore 64 played with a Sega Mega Drive pad through the adapter
Flimbo’s Quest with B as jump: much easier

Related

More Mega Drive pad adapters: the Atari 7800 Mega Drive controller adapter and making a Mega Drive pad work on an MSX. For more C64 builds, see my Epyx FastLoad cartridge build.

Advertisement