Raspberry Pi Archade Machine Tutorial

By January 26, 2014 Independent Works
GrandstandFirefox

Raspberry Pi Archade Machine Tutorial
A complete guide to building a portable arcade machine using a Raspberry Pi

Over the past month I have been preoccupied by a small project of which I will share with you. If your interested.
I will post this again as I know that some of you geek (not Nerds) really dig this sort of thing. Hope you get a chance to build on yourself, and please excuse the number of times I say “actually”. sooo funny. But enjoy!!

RaspBerry Pi Arcade Machine Tutuorial Step-by Step from Mr. Fire on Vimeo.

RaspBerry Pi Arcade Machine Tutuorial Step-by Step – Overview, Purchase and Operating Sysytem from Mr. Fire on Vimeo.

What you will need:

rasppi-starterkit
Raspberry Pi Model B 512MB RAM with the NOOB system preinstalled on the SD Card:
https://export.farnell.com/jsp/raspi/orderPad.jsp?COM=raspi-group&country=GB
£34.99

I would recommend getting the Keyboard, Mouse and HDMI comboI also got the WiPi for wireless broadband

251251421882_4
7.4V Li-ion Battery 1500mAh:
£8.99 + £1.50 p+p

350962980317_1
7.4v 11.1v LiPo RC Battery AKKU Balance Charger 2s 3s
£7.20

190824809132_2
HK Micro UBEC 3A / 5v
£5.79

041688
Sweex GA100 Gamepads
£8.23

myXxhNCcaNBLrMhmjNW6uUQ
3.5″ Digital TFT LCD Screen Rear View Monitor For Car Reverse Camera DVD VCD
£9.99 + 0.99 p+p

z
AC ADAPTER 5.0V 0.7A  Used for the testing of the Raspberry Pi
£3.95 + £2.95

Any 5v output for the LCD Screen.

USB Keyboard and Mouse

The Coding for the operating system:

Default Username and Password

[email protected]
user: pi
pass: raspberry

ADMIN
sudo su

Load GUI
startx

RaspBerry Pi Arcade Machine Tutuorial Step-by Step – Admame install and game test from Mr. Fire on Vimeo.

Install AdvanceMame:

cd ~
wget http://sheasilverman.com/rpi/raspbian/debs/advancemame_1.2-1_armhf.deb
dpkg -i advancemame_1.2-1_armhf.deb

Fetch the software dependencies needed by AdvanceMAME that Moebius is missing.
apt-get -y install libsdl1.2debian libfreetype6

Run AdvanceMAME for the first time.
advmame

Once more to make sure the .xml is uptodate:
advmame

A configuration file advmame.rc is placed in the /root/.advance/ directory. The file holds a huge list of default settings. Backup and then edit this file with Nano.

cd /root/.advance/
cp advmame.rc advmame.rc~
nano advmame.rc

Change the following settings.

device_mouse none
misc_freeplay yes
misc_quiet yes
record_sound no
record_video no

device_mouse turns off mouse support.
record_sound and record_video turns off both recording functionality which is not suited to the Pi.
misc_freeplay turns the free-play mode switch on if a game supports it.
misc_quiet turns off the annoying start-up copyright message.

If the Pi is connected to a HDMI TV or monitor add the following to your settings.
device_video_clock 5 – 50 / 15.62 / 50 ; 5 – 50 / 15.73 / 60

For Pi’s using a HDMI to VGA converter this setting worked well for me.
device_video_clock 5 – 50 / 15.75 / 50

Clocks values for PAL TV (European) are:
device_video_clock 5 – 50 / 15.62 / 50

RaspBerry Pi Arcade Machine Tutuorial Step-by Step – Autostart, Admenu, and ROMs from Mr. Fire on Vimeo.

Start MAME At Boot (optional)

:cd /etc/
:cp inittab inittab~
:nano +54 inittab

Replace

1:2345:respawn:/sbin/getty –noclear 38400 tty1

with

1:2345:respawn:/sbin/getty -a root –noclear 38400 tty1
#1:2345:respawn:/sbin/getty –noclear 38400 tty1

Save changes to inittab and exit Nano.

To auto-launch AdvanceMAME we need to set-up the root account to use the file .profile to run a custom Bash launch script after login.

cp /usr/share/base-files/dot.profile /root/.profile
cd /root/
nano .bashrc

In .bashrc add the following to auto-start AdvanceMame and save your changes. The echo command displays text on-screen while the && characters creates a new line. Hashes # are used to ignore lines in a script which makes them useful for programming comments.

# /root/.bashrc: executed by bash(1) for root shells.

if [ -z “$SSH_CONNECTION” ]; then
# Launch AdvanceMAME with a ROM
echo && echo “Starting AdvanceMAME” && echo
/usr/local/bin/advmame [MAMEGAME HERE] fi

Congratulations you now have a self contained Raspberry Pi arcade emulator, reboot your Pi and test the auto-login and auto-launch.

reboot

While booting if you ever need to abort the auto-launch of AdvanceMAME you can tap [Ctrl] C at the Welcome in your Moebius. Starting AdvMAME notification.

Install a Menu to List Games (optional)

cd ~
wget http://sheasilverman.com/rpi/raspbian/debs/advancemenu_2.6-1_armhf.deb
sudo dpkg –force-overwrite -i advancemenu_2.6-1_armhf.deb

Then run the program.
advmenu

MAKE  SURE YOU HAVE ROMs ALREADY IN THE /roms FOLDER.

AUTO START advmenu
In .bashrc add the following to auto-start AdvanceMenu and save your changes. The echo command displays text on-screen while the && characters creates a new line. Hashes # are used to ignore lines in a script which makes them useful for programming comments.

if [ -z “$SSH_CONNECTION” ]; then
# Launch AdvanceMAME with a ROM
echo && echo “Starting AdvanceMAME” && echo
/usr/local/bin/advmenu
fi

RaspBerry Pi Arcade Machine Tutuorial Step-by Step – Joystick, LCD and Advmenu config from Mr. Fire on Vimeo.

Joystick controll of advmenu
/root/.advance
in your advmenu.rc file.

:device_mouse auto
:device_joystick auto

RaspberryPiMameVid 05 from Mr. Fire on Vimeo.

Leave a Reply