loading...
  1. Turn your Raspberry Pi into old school retro gaming console using RetroPie (Windows & MAC)

Turn your Raspberry Pi into old school retro gaming console using RetroPie (Windows & MAC)

Hello Friends,

This is one my favorite post of this season not because it shows how a modern day Micro-processor based system can let you enjoy your vintage gaming but how we still love old school gaming.
In this tutorial, we are going to setup our very own Retro Gaming Console but this time, we are not going to need to buy those fat a$$ consoles from 90’s rather we’ll use a modern day small micro-processor based raspberry pi to setup the system.

Following is the Inventory List:

MicroSD card, 16GB | 32GB × 1
HDMI cable × 1
USB gamepad × 1
MicroSD card reader × 1
USB keyboard × 1
Raspberry Pi 3 × 1

Here’s how you start:

Step #1 : Download the Retro-Pie SDCard Image

For those who don’t know, RetroPie is a software package for the Raspberry Pi that is based on Raspbian OS, a Linux distribution. It combines a full suite of tools and utilities that will allow you to quickly and easily run ROMs for various vintage gaming platforms. We’re going to do our install using an SD card image — essentially a snapshot of an entire working installation of RetroPie. This makes it really easy to get up and running.

Because the Raspberry Pi doesn’t have an internal hard drive, it uses a microSD card for storage of the entire operating system and all files contained therein.

Download and unzip the latest RetroPie SD-Card Image. There are two versions of the RetroPie SD-Card Image:

  • One for the Raspberry Pi Zero, Zero W, A, B, A+ and B+
  • One for the Raspberry Pi 2 and 3

Select the appropriate image for your Pi.

Download the RetroPie SD-card image

Step #2 : Format and ready your SDCard

First, you’ll need to format the SD card as FAT. Insert the SD card into your SD card reader. Your SD card will now show up as a mounted drive on your computer.

Format Type

If your SD card is 32GB or smaller, we’ll format it as MS-DOS (FAT). If your SD card is 64GB or larger, we’ll format it as ExFAT.

Formatting on Windows

Open up Explorer, locate the SD card, right-click it, and select Format from the context menu. Select the desired format and click the Start button.

Formatting on Mac

Open Disk Utility by navigating to Applications > Utilities > Disk Utility. Select your SD card in the left pane. Click the Erase button, select the desired format, give it a name, and click the Erase button. For OS X Yosemite and older, you’ll need to navigate to the Erase tab first.

Format your SD card to work with Raspberry Pi

Step#3 (a) : Install the IMAGE (MAC OS)

To do this, we’ll use a third-party utility called ApplePi-Baker. Download the most recent version and open the application. ApplePi-Baker requires SUDO (admin) access in order to read/write to your SD card. Therefore, you will be prompted to enter your Mac account password.

After opening the application, select your SD card in the left hand column. Then, click the “Restore Backup” button and select the (unzipped) RetroPie SD-Card Image (.IMG file) that you downloaded earlier.

If you see a message stating “ApplePi-Baker.app can’t be opened because it is from an unidentified developer” when you first open ApplePi-Baker, close the message, navigate to System Preferences > Security & Privacy, and allow apps downloaded from anywhere. Or, click “Open anyways” in this pane.

Install the RetroPie image (using a Mac)

Step#3 (b) : Install the IMAGE (Windows OS)
Download and install the Win32DiskImager utility. Follow the instructions here and select the (unzipped) RetroPie SD-Card Image (.IMG file) that you downloaded earlier.

Step #4: Connect the SDCard with Raspberry PI

Safely eject the SD card and slide it into your Raspberry Pi.

Plug in your keyboard, USB game controller, and HDMI cable. Connect the HDMI cable to a monitor or TV. It’s also possible to configure your Pi without a monitor or keyboard if that’s more convenient for you at this point. This is known as “headless” mode.

Finally, connect the MicroUSB power supply. Always connect the power supply after connecting your other peripherals so that your Pi will detect all of the peripherals properly on boot.

Your Pi will now boot!

Put the SD card into your Raspberry Pi and connect your peripherals

Step #5 : Connect to Internet on Pi

You’ll need to connect your Pi to the Internet in order to add game ROMs (more on that later) and access additional RetroPie features such as game rating/description scraping.

Note: This step is only required if you want to access these additional features or transfer ROMs over your network. If you have a Pi Zero and don’t want to add WiFi, you can also transfer ROMs via USB. If you’re using a Pi Zero W, which has onboard WiFi, you’re already ready to connect to the internet!

There are a few ways to add internet functionality to your Pi:

Ethernet (CAT5) Cable

If you have easy access to your router, you can simply connect your Pi using an Ethernet cable.

Built-in WiFi

Only the Raspberry Pi 3 and Pi Zero Wireless have built-in WiFi.

USB WiFi dongle

You can find a USB WiFi adapter super cheap on Amazon.

RetroPie WiFi Setup

If using one of the WiFi options above: After connecting all your peripherals and booting up your Pi, select the RetroPie menu icon and then select WIFI.

Connect your Pi to the Internet

Step #6 : Expand SD Card Filesystem to get complete Space

If your SD card is larger than 4GB, you must expand it before your Pi can use the remaining space. To do this, you’ll need to launch the Raspberry Pi configuration tool (raspi-config).

You can either press F4 to exit the RetroPie UI and get back to the shell (i.e. command line), enter the following and press enter:

sudo raspi-config

Or, you can use the Retropie interface to do this. Select the RetroPie menu icon and then select RASPI-CONFIG.

Then, choose either Expand Filesystem or expand_rootfs from the menu (this option will vary based on your Raspberry Pi version). You now need to restart your Pi. You may have noticed there’s no reset button (unless you’ve added one).

To safely reboot your Raspberry Pi, use the following Pi reboot command after pressing F4 to return to the shell:

sudo reboot

After your Pi reboots, we want to make sure that all packages are up to date. Press F4 to get back to the shell/command line, and run the following commands:

sudo apt-get update
apt-get upgrade

Reboot your Pi once more.

Expand your SD card to utilize all usable space

Step #7 : Connect to PI

We now need to connect to your Raspberry Pi from your computer so that we can copy over game ROMs and easily edit configuration files.

Again, this step is optional as you can also transfer ROMs via USB and accessing your configuration and other additional features isn’t strictly required.

There are numerous ways to do this; my favorite method is via SSH/SFTP using an FTP client. As far as free FTP clients go, I recommend FileZilla since it’s very well documented and supported and is available for both Mac and Windows.

Download FileZilla from their downloads page and install it. I recommend you uncheck all the “additional components” that FileZilla will ask you to install, such as the Yahoo search page and toolbar crap.

**Note: As of the latest version of Raspbian Jessie, SSH is disabled by default for security purposes; you will need to enable SSH on your Pi before proceeding. Thankfully, this process is super easy and painless.

Use the following credentials to connect to your Pi. The default Pi username and password are pi and raspberry, respectively.

Host:your pi's IP address (see below) 
Username: pi
Password: raspberry
Port: 22

For security purposes, I highly recommend you change the default Raspberry Pi password to something else. It only takes a minute.

To find your Pi’s IP, open Terminal (Mac) or Command Prompt (Windows) and enter the following command to ping your Pi and return its network IP:

ping raspberrypi

or, for newer versions of RetroPie, use:

ping retropie

It may take a few tries to get a response. If you see a “Request timeout” response when you run the ping command, then the command has failed. Instead, boot up your Pi, press F4 to get to the shell, and run the following command:

ifconfig

This alternate method will list your Pi’s IP immediately afterinet addr: under eth0.

Step #8 : Configuring Controller

You’ll now want to configure your USB gamepad to work with your Pi. I recommend the Buffalo Classic USB Gamepad since it’s inexpensive, highly compatible with the Pi, and comes in sweet Japanese packaging. You can find an Amazon link to that controller at the top of this guide.

To configure your controller to work with the menu system and games, boot up your Pi. Your Pi will automatically launch the RetroPie UI where you will be prompted to configure the controller. If you mess up, don’t worry — you can access this configuration menu again later by pressing Start in the RetroPie UI or by typing F4 on your keyboard and then rebooting your Pi.

Configuring your controller

Step #9: Finding ROM’s

A ROM is an entire port of a particular video game. RetroPie contains a copy of EmulationStation, which both provides the user interface for your new retro gaming rig and interprets these ROMs appropriately. RetroPie comes with a few games preinstalled — such as QuakeDuke Nukem 3D, and Cave Story. These games are best played using a keyboard, however, since the gamepad doesn’t have enough keys to map the controls for some PC-ported games.

A Legal Note

Most vintage games are owned by a company (yes, even the very old ones!) and are protected by copyright laws. Thus, unfortunately, downloading ROMs for those games constitutes piracy.

While you can find tons of ROMs on any Torrent site, keep in mind that you should not download any copyrighted titles.

Free ROMs

Luckily, there are some free ROMs out there that we can use for now! MAMEdev.org has a nice list of these free, legal ROMs. We’ll use these as examples and you can find more ROMs on your own.

Let’s use Gridlee and Super Tank as examples. Download each ROM.

Finding game ROMs

Step #10: Installing ROMs

ROMs can be installed via SSH/SFTP (over your network) or via a USB thumb drive. Additional methods for copying ROMs to RetroPie can be found on the RetroPie Wiki.

I wrote a separate guide on installing RetroPie ROMs using a USB drive. Or, if your Pi is connected to the internet, you can use the instructions below.

Reconnect FileZilla and browse to the following directory:

/home/pi/RetroPie/roms

Unzip each game ROM and upload each game folder into its respective game system folder. For example, if you had a Super Mario Bros 3 ROM, you would upload the game’s folder into the “nes” directory.

Gridlee and Super Tank go in the “mame” directory since MAME handles the arcade emulation for most vintage arcade-style games that don’t belong to a specific home video game system such as the NES, SNES or Atari.

After you’ve copied these directories over, restart your Pi.

Installing game ROMs

Step #11 : Ready for the Vintage Gaming Experience

Your Pi will boot into RetroPie automatically. Bask in the glory of simple graphics, bolstered by highly addictive gameplay.

Note:
Cave Story is actually a pretty sweet game.

You're ready to play!

Additional Steps:

Step#12: Exiting
To exit a game, press the START and SELECT buttons at the same time. This will bring you back to the RetroPie UI.

How to easily install OpenCV 3+ on Raspberry Pi 2/3 in Raspbian ? (without using virtual environments)




Leave a Reply

Your email address will not be published. Required fields are marked *

Welcome to OpenCV World !! Come as a Guest, stay as a Family