USB MAME Arcade Controller

by kojakdurham in Circuits > USB

10299 Views, 20 Favorites, 0 Comments

USB MAME Arcade Controller

Photo-3_13_13,-11.35.59-PM-18.JPG
Photo-3_13_13,-11.35.59-PM-22.JPG

This Instructable documents my construction of a USB MAME controller for playing game ROMs via MAME. This controller is connected to a PC via a 12' USB cable. The PC is then connected to my TV.

Gather Your Supplies and Tools

iPac2 - early version that does not have onboard trackball inputs

Available at Amazon:

http://amzn.to/2j5YLBG

Happ Controls buttons and Joysticks

Available from Amazon:

http://amzn.to/2jqC6i6

1 Sheet of 1/2" MDF

1/2" Square Wood Dowel for Added Structural Stability

Wood Screws

Wood Glue

Ethernet Cable for Button Connections

Wire for Ground Loop

Crimp Connectors

Textured Contact Paper

Tools:

Workbench

Compound Miter Saw

Screwdriver/Drill

1 1/8" Paddle Bit

Controller Hole Template

Lay Out and Cut the Top and Bottom Panels

Photo-3_11_13,-10.22.57-AM-1.JPG
Photo-3_11_13,-10.22.57-AM-4.JPG
Photo-3_11_13,-10.22.57-AM-3.JPG
Photo-3_11_13,-10.22.57-AM-5.JPG

The first step is to decide if you want a single player controller or a two player controller. I opted for two players with the joystick, and 8 buttons per player to give me the maximum flexibility on ROMs. Some games that came out around the time of the demise of the arcade actually used this many buttons. Usually, 6 was the maximum number, so you can save a little bit of money on buttons if you don't think you'll ever need those extra 2 buttons (per player).

Because I wanted to have 2 players, I had to take that into count when designing the button layout, and thus the overall size of the top panel. It's best to plan everything on paper prior to doing any cutting. This will save in the frustration level later on, believe me. If you opt to go with 2 players, make sure you give enough space between the two players so that you aren't banging shoulders while playing simultanously.

Also, I wanted to show that even though you may not have a workshop, you can likely find a place to do the work. I did mine out beside my house by the trash cans (and partly in the garage when it started raining).

Cut the Front, Back, Bottom and Sides

Photo-3_11_13,-10.22.57-AM-2.JPG
Photo-3_11_13,-10.22.57-AM-7.JPG
Photo-3_11_13,-10.22.57-AM-6.JPG
Photo-3_11_13,-10.22.57-AM-9.JPG
Photo-3_11_13,-10.22.57-AM-8.JPG
Photo-3_11_13,-10.22.57-AM-10.JPG

Because I wanted my control panel to be ergonomic, I decided to have a gentle slope down at the player side, so I took that into account when cutting the width of both the top and bottom panels, and then used those lengths as a guide when cutting the angle on the sides. This is where a compound miter saw really came in handy. You can do all of the cuts by hand using a miter box, or even a jigsaw, but my purchase of a compound miter saw was one of my best decisions, as I use it fairly regularly.

Fit the Front, Back, Bottom, and Sides Together, Then Cut and Attach Support Struts

Photo-3_11_13,-10.22.57-AM-11.JPG
Photo-3_11_13,-10.22.57-AM-12.JPG
Photo-3_11_13,-10.22.57-AM-14.JPG
Photo-3_11_13,-10.22.57-AM-15.JPG

Get your measurements, and after cutting, fit everything together to make sure all the cuts were done correctly. Once you're sure you have everything properly cut and fitted, glue and screw the support pieces to the Front, Back and Side Panels. DO NOT ATTACH THE BOTTOM PANEL.

Note, the measurements on the bottom panel are correct in the third picture. The bottom is sitting a little off-set in the image.

Get Your Button Layout and Transfer It to Your Top Panel

Photo-3_11_13,-10.22.57-AM-17.JPG
Photo-3_11_13,-10.22.57-AM-16.JPG
Photo-3_11_13,-10.22.57-AM-20.JPG
Photo-3_11_13,-10.22.57-AM-19.JPG
Photo-3_11_13,-10.22.57-AM-18.JPG
Photo-3_11_13,-10.22.57-AM-28.JPG

I used an online MAME website to get the button layouts (www.slagcoin.com). This is a must, as the button layouts are designed in a CAD program, so the spacing is perfect. No measuring on my part had to be done at all, with the exception of where on the panel to place the layout. Once I had the layout placed, I simply used my 1 1/8" spade bit to make a small hole in the indicated place on the layout, thus making a small hole in the MDF panel. I did a test fit of a button on a piece of scrap wood leftover from cutting the angles on the sides, just to be sure of the fit before I cut all the holes.

Drill, Drill, Drill...

Photo-3_11_13,-10.22.57-AM-21.JPG
Photo-3_11_13,-10.22.57-AM-22.JPG

Once you have the small holes for your button layouts marked, it's time to drill...and drill...and drill...

Layout the Game Control Buttons and Drill Them

Photo-3_11_13,-10.22.57-AM-25.JPG

These include the 'Coin', P1, P2, etc. buttons. My panel used 8 of these buttons to fully control MAME.

Router the Top Edge, If Desired

Photo-3_11_13,-10.22.57-AM-26.JPG
Photo-3_11_13,-10.22.57-AM-27.JPG

I wanted to make my controller as close to an actually arcade machine as possible, so I borrowed a router from a friend and using the appropriate bit, routered the edge. I didn't do a great job, but it's acceptable. I had the bit set too low, so it cut an edge on the outer edge of the wood. It will be covered with a thick covering, so it won't be noticeable when complete.

Cover the Controller

Photo-3_11_13,-10.22.57-AM-32.JPG
Photo-3_11_13,-10.22.57-AM-31.JPG
Photo-3_13_13,-11.35.59-PM-3.JPG
Photo-3_13_13,-11.35.59-PM-2.JPG
Photo-3_13_13,-11.35.59-PM-1.JPG
Photo-3_13_13,-11.35.59-PM-4.JPG
Photo-3_13_13,-11.35.59-PM-7.JPG
Photo-3_13_13,-11.35.59-PM-5.JPG
Photo-3_13_13,-11.35.59-PM-6.JPG

I chose to use a textured contact paper. It was cheap, and I think does a good job.

Cover the Top, Cut the Button Holes, and Mount the Buttons and Joysticks

Photo-3_13_13,-11.35.59-PM-10.JPG
Photo-3_13_13,-11.35.59-PM-11.JPG
Photo-3_13_13,-11.35.59-PM-12.JPG
Photo-3_13_13,-11.35.59-PM-13.JPG
Photo-3_13_13,-11.35.59-PM-15.JPG
Photo-3_13_13,-11.35.59-PM-14.JPG
Photo-3_13_13,-11.35.59-PM-16.JPG
Photo-3_13_13,-11.35.59-PM-17.JPG
Photo-3_13_13,-11.35.59-PM-19.JPG

Make sure to pull the contact paper tight, or you'll have wrinkles in it that won't come out. You can see that mine actually came loose a bit, due to not using any additional adhesive. I'm not too concerned about the wrinkles, but they are present. Using a spray adhesive when mounting the contact paper would eliminate these wrinkles.

Ergonomics Check

Photo-3_13_13,-11.35.59-PM-23.JPG
Photo-3_13_13,-11.35.59-PM-24.JPG

I tested the ergonomics again, just to make myself feel good about the hole position. Perfect!

Wiring the Buttons and Joysticks and Mounting the IPAQ Board

Photo-3_11_13,-10.22.57-AM-23.JPG
Photo-3_18_13,-9.27.36-AM-1.JPG
Photo-3_18_13,-9.27.36-AM-2.JPG
Photo-3_18_13,-9.27.36-AM-4.JPG
Photo-3_18_13,-9.27.36-AM-3.JPG
Photo-3_18_13,-9.27.36-AM-5.JPG
Photo-3_18_13,-9.27.36-AM-6.JPG

This is why you leave the bottom off when constructing the controller - so you can do the wiring, and have access to the internals later on if something goes wrong, of if you want to make changes (see the Conclusion of this Instructable for details).

The wiring diagram came from the iPAQ software, which can generate your wiring based on how many buttons and joysticks you plan on installing. I printed it out so that I'd have a reference to follow while doing the wiring work. I personally used Cat5e network cable for the positive leads, as I had a ton of it laying around, and because there are 8 strands of cable in each one, I could use one cable to 8 connections. I think it made for a neater install. I just made a long, multi connection cable for the ground. The iPAQ is USB, so

Conclusion

Photo-3_13_13,-11.35.59-PM-21.JPG
Photo-3_18_13,-9.27.36-AM-7.JPG
Photo-3_18_13,-9.27.36-AM-8.JPG

Because I used a USB-based iPAQ controller board, I'm connecting it to a HTPC (home theatre PC) that was already connected to my TV. I just plug the unit into the front USB port and fire up MAME, or whatever emulator program I want at the time. The benefit of building the unit this way, is that I can just unplug the unit when we're not using it and store it away in a closet, or behind the baby gate in the picture, to keep it from getting damaged.

I like the flexibility of having the controller separate from a bartop or full-sized MAME device because of this, but in the future, my plan is to install a Raspberry Pi 3 or 3b running RetroPie into the interior with the iPAQ controller board, and then just run an HDMI cable out. The downside of this is that by doing so, I will need to install a power connector to the back of the controller for the RPi, as well as an HDMI socket, as well as cutting some holes for ventilation, as RPi 3s run hot. I might actually install an active fan on one side of the back of the controller, and an exhaust hole on the other.