Thursday, January 22, 2015

Mac-Man Arcade: 4. My Arcade Cabinet

My Arcade Cabinet

This is the part that I was not very confident in doing. I don't have a wood working bone in my body. My unskilled hands refused to work with my mind. I suffered from blisters and cuts throughout this part of the project but I got through it eventually. Also, I don't have a workshop, so everything was done on the living room floor!

I bought my Arcade Cabinet kit from eBay. It was plywood and was pretty rough around the edges and relatively heavy. It was so far the cheapest that I saw for the size that I liked.

It required a lot of sanding. As I previously mentioned, the pre-drilled holes didn't fit the push buttons that I bought. I wasn't sure it was meant for a different size of buttons. I had to buy a hole-saw to enlarge the existing hole. It did burr the edges a bit but I was able to save the surface by using some wood filler. Also the side holes were too close to the Joystick Control Panel. It just didn't fit well and I had to give up the side buttons on the Arcade Cabinet.



Assembly
It wasn't as bad as I thought... just need to measure things correctly and everything turned out pretty well. The wood filler really works well in filling up holes and dents. After that, more sanding....


I used Veneer Edging to cover up the plywood edges. It was pretty straight forward. All I needed was to use a hot iron to iron it in. The hot iron melted the glue on the back of the veneer and stuck it to the plywood. It is not the perfect solution but was a cheap way to do it. I would have liked the colorful T-Molding plastic trim where it gives it a cool finish, but that would have required routing a groove, which was more tools and skill than I have! I trimmed off the excess Veneer Edging and then use more wood filler and more sanding. It looked great after that.


Painting: 2 layers of primer, followed by many layers of actual paint. It takes a while to dry.



Related Posts for 2 Player Bartop Arcade Machine:

Inspiration
Getting Started
Prototype
My Arcade Cabinet
Mac-Man / Machinko (Marquee Artwork)
03/14/2015 - The Pi Day


Sunday, January 11, 2015

Mac-Man Arcade: 3. Prototype

We Prototype

Setting up RetroPie SD card image on Raspberry Pi.
Download the pre-configured setup for Raspberry Pi "1". I think the Author has compiled a version for Raspberry Pi 2 as well. 

Refer to the RetroPie-Setup wiki for your installation after your first boot up.
This contains things like First Installation, configurations, how to get ROMs on the SD card and so on. Basically, this is all I used for my installation. 

For my initial test, I just used my TV where I hook up my raspberry pi through HDMI port and keyboard. The first loading of RetroPie, you will need to configure the control. The Control is meant for navigation within the "EmulationStation". It is not meant for the game. Game Controller is configured differently.

RetroPie doesn't come with any games, you will need to find your own ROMs and load them into their specific directories and EmulationStation Console will automatically pick them up and display them.

Important!!! It is illegal to play game ROMs that you don't own physically. Don't ask me where to get game ROMs. Ask Google perhaps.

The day I configure my controls.


I was extremely excited when I got my push buttons and joystick delivered. It was a week night, I came back from work and started to work on it, I took the box that they delivered the package and turned it into my joystick console. 

Everything was fine until I start hooking it up. It was frustrating!

tl;dr: Xin-Mo Dual Arcade Driver issue on Raspberry Pi. I read it some where (couldn't recall) that the issue is fixed permanently in the later kernel, so if you use the latest RetroPie, it should not have any problem. Please hook up all Players before you test.



This is probably the part that drives me nuts. The package comes with the Xin-Mo dual player adapter (so I have 2 players controllers). Being a software engineer, I am used to working on a small portion and implement everything once I got it to work. So I thought it would be a good idea to just hook up 1 player first and get it to work before assembling the 2nd player. Mind you, the wiring of the controls & buttons are ugly. Once you got it connected, you need to figure out the ports that each button is wired up to (use evtest) and then edit the configuration file to map the keys to the buttons in the game. Nevermind, I finally figured out how to do it... I thought I got everything connected correctly but the joystick doesn't response to Right and Down. After much frustration, I went to bed. 

The next day, I found this site where this guy had similar issue (doesn't response to Up and Left) using Xin-Mo Dual Arcade driver on Raspberry Pi. It was a bug with the driver. He got a fix to it where he wrote a driver as a patch to the Linux Kernel, GREAT! I had to try that. I went home that night, trying out the fix as described in his site. Raspberry Pi doesn't have a lot of resources, it took the whole night to recompile the kernel. I got up at 5am the next morning eager to find out if it worked. *$&%$#*#$(#! It didn't work!... 

The next few days, I retried my installation, I retried the patch and tried alternatives that I could think of. I was exhausted trying to figure out this issue. The only thing I didn't try is to hook up the 2nd Player. Finally, I hooked up the 2nd player wanting to see if it has the same issue. Little did I know, this damn thing worked... not only did it work.. magically my 1st Player worked as well. Later, I did read that the patch to fix the Xin-Mo issue actually made it into the RetroPie version that I had used. I didn't need to do all that, I should have just hook up the 2nd players and I would have got it working earlier.

Anyway... Hooray! got it working.. I was enjoying the game. My friend Eileen stop by one day and we had a blast. 




Monday, January 5, 2015

Mac-Man Arcade: 2. Getting Started

How I started:

Read the steps from rolfebox from "http://www.instructables.com/id/2-Player-Bartop-Arcade-Machine-Powered-by-Pi/?ALLSTEPS".

Bought my ingredients: (spent approximately $320)
  • Raspberry Pi B+ Model - MicroCenter.com - I got it for $25
    • I think you can get it cheaper since Raspberry Pi 2 is out now. 
  • SD Card - 8GB $10, Raspberry Pi Case: $6
  • 2 Player Mame Arcade USB kit with 2 Joysticks 4/8 way,16 HAPP Push buttons, 60 in 1. Ebay Seller: 4partyfun. - I got it for $59.95 (free shipping).
    • You can ask for the color of joystick, they are nice enough to switch it to Red as requested. 
  • Table or Bartop Arcade Cabinet - Ebay Seller: jcc-paul. - I got it for $75.00 (free shipping).
    • It is quite heavy, the button holes didn't really fit and I had to enlarge the holes with a hole saw (it was quite a pain), the seller made a button hole on each side of the cabinet. I like the side hole idea where I can add push buttons for additional feature like volume control. Unfortunately, it doesn't have enough space to fit along with the control panel. I wish he could have made the hole 2 inches toward the rear, then it would be perfect. So, since the holes were unusable, I had to buy 2 metal hole plugs to seal them. It still looks cool and looks like the metal belongs there. By the way...be prepared to do a lot of sanding if you get this cabinet.
    • If you are more of a handy man, you can make this yourself at a much lower cost. The website above from rolfebox actually gives you the measurements of the Arcade Cabinet that he made. Unfortunately, I live in an Condo and don't have enough space to work on this, it would be fun to make this your self.
  • 19" Element TV from Craiglist - $50
    • This TV fits perfectly into the Arcade cabinet that I bought. The viewing angles aren't great. The last time I checked, Fry's was selling a refurb for $69.
  • Marquee - Backlit poster printing from "http://www.printmoz.com/backlit-posters/backlit-film" for $23 
    • Shane designed the Marquee artwork with Photoshop Illustrator. 18w x 11h
    • Quality was pretty good. Need to be aware of their printing measurements. We didn't take into account the crop marks in the artwork we sent them. So it looked like they scaled it slightly in the horizontal. It was shorter than the original design, but is still looks pretty good.
  • Cabinet light, 13" from the hardware store - $14
  • 2 pieces of custom cut plastic to sandwich the Marquee Artwork from local store - $12
  • L shape aluminium Angle to hold the Marquee from Orchard Supply Hardware - $4.50
  • Others (mostly from Dale Hardware)
    • Paint - Water based Primer & Semi gloss Paint (Black Horizon from Benjamin Moore) - $20
    • Veneer Edging - to seal the cabinet edge - $5
    • Sand paper, Plastic Pads for the bottom of cabinet, Double sided tape, wood screws, Velcro tape. - $10
I did not buy all these at the same time, I did it through a few phases.
  1. I started with getting the push button and joysticks. I got it working on my prototype cabinet.
  2. Once I was satisfied with the prototype I started to look at the Arcade cabinet to decide if I wanted to make everything from scratch or get something with 80% ready made kit and I do my own detail work. I took the second route obviously.
  3. Design the Marquee.
  4. Put everything together.

Related Blog for 2 Player Bartop Arcade Machine:

Inspiration
Getting Started
Prototype
My Arcade Cabinet
Mac-Man / Machinko (Marquee Artwork)
03/14/2015 - The Pi Day


Thursday, January 1, 2015

Mac-Man Arcade: 1. Inspiration

Inspiration


On 31st Dec 2014, I went to Sacramento, CA to celebrate new year with 2 friends (D & D). We went to a pretty divey bar where they are famous of making strong booze..... we thought it could give us a quick buzz before hitting the other bars.. Anyway... this is not a blog to talk about booze.

So as I was sitting down, I spotted the 2 Arcade Machines that they have at a corner. Don't remember what game it was. It instantly reminded me of my childhood where I was sneaking in the Arcade Game shop in my village with a few schoolmates. It was illegal for children under the age of 18 where I was from (Malaysia). The feeling of breaking the rules and afraid of getting caught or being seen by relatives and friends were both exciting and scary at the same time. Anyway... this is not a blog to talk about my childhood.

At this point, someone was playing the Arcade Machines, I was thinking how cool it would be to have one at home. That triggered me instantly to pull up my phone and search the internet to see if I can make this myself. The next day or two, I continued to do some reading about it and I concluded that it is not that difficult... I decided to make one myself using Raspberry Pi.

Here are some sites that I made my references:
1. http://www.instructables.com/id/2-Player-Bartop-Arcade-Machine-Powered-by-Pi/?ALLSTEPS
2. (I used this) http://blog.petrockblock.com/retropie/
3. http://sourceforge.net/projects/raspicade/
4. http://pimame.org/

and many more... you can find lots of info out there.

Some kickstarter projects for Arcade Game powered by Raspberry Pi that were successfully funded:
https://www.kickstarter.com/projects/2103217949/porta-pi-arcade-a-diy-mini-arcade-cabinet-for-rasp
https://www.kickstarter.com/projects/pimoroni/picade-the-arcade-cabinet-kit-for-your-raspberry-p


Related Posts for 2 Player Bartop Arcade Machine:

Inspiration
Getting Started
Prototype
My Arcade Cabinet
Mac-Man / Machinko (Marquee Artwork)
03/14/2015 - The Pi Day