# Super Game Pi

## Overview

https://www.youtube.com/watch?v=f_zp42fQ-dQ

In this project we’re building a handheld gaming console! This DIY gadget has 12 buttons, an analog joystick, stereo speakers and a 5” HDMI display. We’re using the Raspberry Pi A+ and RetroPie image. We call it.... Super Game Pi!  
   
 Bigger than our [DIY GameBoy](../../pigrrl-raspberry-pi-gameboy/overview), this project has support for way more games, a bigger screen, sound and all ze&nbsp;buttons!  
   
 To make your own Super Game Pi, you’ll have to 3D print the enclosure, hack&nbsp;an SNES controller and solder electronics.  
   
 You can pick the Raspberry Pi A+ and all the parts to build this project from Adafruit.&nbsp;We’ll need some hand tools and access to a 3D Printer. Check out the full list of materials&nbsp;below.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/249/medium800/gaming_hero-hands1.jpg?1420582925)

## RetroPie + Emulationstation

Unlike the&nbsp;DIY gameboy, this project uses an 5" HDMI display instead of the 2.8" PiTFT. Since the PiTFT is not an HDMI display, our earlier project couldn't take advantage of the Pi's hardware graphics accelleration.&nbsp;

## Big screen, more games!

With a 5" true HDMI screen, the Pi can run Emulationstation so you can play just about any emulator. Ports and PC games are also supported as long as you can update the Pi to run proper libraries and&nbsp;dependencies. By default, the RetroPie image includes all&nbsp;the libraries to run a hand full of retro emulators (NES, SNES, Apple II, PC, GB, GBA).

![](https://cdn-learn.adafruit.com/assets/assets/000/022/317/medium800/gaming_hero-collage.jpg?1420647847)

Danger: 

### **This is a challenging and advanced DIY project that requires basic 3D printing, electronic and maker skills. The parts take about 8-10 hours to print while the assembly will vary depending on how much time you can devote to completing the project. You'll want to plan this project with least 6&nbsp;hours of making in mind.&nbsp;**

**We built this project over the course of many weeks with a lot of effort. We will not be able to fix or refund your project if it deoesn't work out! Do not attempt if you are not familiar with all the parts used!**

**This is not a good "first" 3D printing or Raspberry Pi project!**

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/022/170/medium800/gaming_parts-sm.jpg?1420512796)

## Parts

- [Raspberry Pi A+](https://www.adafruit.com/product/2266)
- [TFP401 HDMI Driver](https://www.adafruit.com/product/2218)
- [5" TFT Display](https://www.adafruit.com/products/1680)
- [Analog 2-axis Joystick](https://www.adafruit.com/products/512)
- [Cupcade&nbsp;Adapter PCB](https://www.adafruit.com/product/1916)
- [6600mAh Lithium Ion Battery](https://www.adafruit.com/product/353)
- [SNES Controller](https://www.adafruit.com/product/131)
- [Slide Switch](https://www.adafruit.com/product/805)
- [PowerBoost500C](https://www.adafruit.com/product/1944)
- [Stereo 2.8W Class D Audio Amp](https://www.adafruit.com/product/1712)
- [2x Mini Metal Speakers](https://www.adafruit.com/product/1890)
- [40-pin FPC extension](https://www.adafruit.com/product/2098)
- [USB Mini WiFi module](https://www.adafruit.com/product/814)&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/252/medium800/gaming_handtools.jpg?1420583888)

## Tools & Supplies

- [3D Printer](https://www.adafruit.com/category/128)
- Powered usb is required to set up the raspberry pi A
- [Soldering Iron](https://www.adafruit.com/categories/84)
- Power Drill
- [Panavise Jr.](https://www.adafruit.com/product/151)
- [Helping-Third Hand](https://www.adafruit.com/product/291)
- [PLA + Ninjaflex Filament](https://www.adafruit.com/products/2080)
- Hakko [Flat Pliers](https://www.adafruit.com/product/1368)&nbsp;+&nbsp;[Flush Diagonal Cutters](https://www.adafruit.com/product/152)
- [30AWG silicone coated strand wire](https://www.adafruit.com/product/2051)
- [Heat shrink tubing](https://www.adafruit.com/products/1649)
- Slim&nbsp;[HDMI Cable](https://www.adafruit.com/product/2420)
- [Female Jumper Wires](https://www.adafruit.com/product/1949)
- [3.5mm Stereo cable](https://www.adafruit.com/product/1700)

# Super Game Pi

## Circuit Diagram

## Circuit Analysis

Take a moment to look over&nbsp;the components. The circuit diagram is ment to be used a reference for visualizing wired connections.

The length of wires, dimension of components, and positions are not exact.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/029/647/medium800/gaming_circuit-diagram.jpg?1452543489)

![](https://cdn-learn.adafruit.com/assets/assets/000/029/649/medium800/gaming_cupcade-diagram.jpg?1452543535)

## Wired Connections

The four main components&nbsp;(Raspberry Pi A+, TFP401 display driver, 2.8W Amplifier and PowerBoost500C) will be powered by the PowerBoost 500C and a 6600mAh Lithium Ion battery via JST cable. To power the circuit on/off, a&nbsp;slide switch is connected to the **EN** ,and&nbsp; **GND** &nbsp;pins on the PowerBoost500C.&nbsp;

The 2.8W Amplifier is connected to **GND** and **+Postive** pins on the PowerBoost 500C. A right-angle 3.5mm stereo plug to pigtail cable is wired to the amp and connected to the audio jack on the Pi A+. Two mini metal speakers are wired to the audio output pins on the amp.

The **5V** and **GND** pins on TFP401 display driver are wired to the **5V** and **GND** pins on the PowerBoost500C. A flat HDMI cable is connnected from&nbsp;the TFP401 to the Raspberry Pi A+.

The 5" HDMI display uses a 40-pin FPC extension board to connect the TFP401 display driver to the screen.

## Raspberry Pi GPIO

Below is a legend of each connection. It includes the pin number, name and connection. The GPIO graphic matches the order of the pins.&nbsp;Use this to reference which buttons connect to the GPIO.

![](https://cdn-learn.adafruit.com/assets/assets/000/027/183/medium800/gaming_pin-legend.png?1439852075)

## How Do I Read This?

The pin# is the actual number of the pin in series. The numbers go from left to right, top to bottom. The name is the title for a given pin entity. Note the&nbsp;GPIO # does not match the pin number. The connection is the button or&nbsp;wire that needs to be assoicated with the pin.

The **GPIO #** will be associated with the **Input value** in the **retrogame.c file.**

In most cases, you should print out the legend (on physical paper) and use it as a&nbsp;cheatsheet while assembling the circuit.

# Super Game Pi

## Software

![](https://cdn-learn.adafruit.com/assets/assets/000/022/392/medium800/gaming_retropie-splash.png?1421004539)

## RetroPie

Download the RetroPie&nbsp;image and burn it to a micro SD card. I recommend using the BitTorrent link. The latest version (Dec,&nbsp;2014) 2.3 features Emulationstation.

[Download Retropie](http://blog.petrockblock.com/retropie/retropie-downloads/)
![](https://cdn-learn.adafruit.com/assets/assets/000/022/393/medium800/gaming_emulationStation-theming_system.jpg?1421004554)

## Emulationstation

Emulationstation is a multi-platform front-end for managing a library of emulators. It's a lot like a slick TV interface.&nbsp;[The RetroPie Project](http://blog.petrockblock.com/retropie/)provides an easy way to install over 30 different emulators on the Raspberry Pi, using EmulationStation. This is one of the easiest ways to get your Raspberry Pi ready for some retro gaming goodness.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/394/medium800/gaming_4gb-sdCard.jpg?1421004721)

## Burning Retro Pie to SD Card

You'll need a micro SD card with minimum storage of 4GB. It can be new blank or contain existing data, just note you're going to completely erase anything that may be on the SD card.

There are SD card burner tools available depending on your&nbsp;operating system.&nbsp;Use **Win32DiskImager** on a windows machine. On a Mac, use&nbsp; **ApplePi-Baker** or&nbsp; **RPi-sd card builder.** These tools will properly format the SD card so the Pi can boot and run a setup script.

[Download SD Card Burner](http://elinux.org/RPi_Easy_SD_Card_Setup)
## HDMI Configuration

Once the RetroPie image has been successfully written&nbsp;to the SD card, you'll need to edit the **config.txt file** located in ~/boot/config.txt

Copy and paste the values into the **config.txt** and save the file. This&nbsp;will allow the Raspberry Pi to format the operating system to match the resolution of the 5" HDMI display.

```
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0
arm_freq=900
core_freq=250
sdram_freq=450
over_voltage=2
avoid_safe_mode=1
gpu_mem=256
overscan=1
```

## Testing SD Card

Follow the next page to setup the HDMI screen to the Raspberry Pi.

# Super Game Pi

## Initial Setup

## Test HDMI Display

The Raspberry Pi will&nbsp;run the setup script, install dependencies and boot into emulationstation. By default, the USB keyboard will&nbsp;be recongized and available for input config.

The aspect of the screen should cover the full display - If it doesn't, double-check your **config.txt** file and ensure the values are correct.

## Setup Pi + Display

Let's connect&nbsp;the Pi and display&nbsp;to check&nbsp;the RetroPie image and **config.txt** file have been setup. If you haven't already, eject/remove the micro SD card from your computer and insert into the Raspberry Pi.

- Connect&nbsp;the 40-pin FPC ribbon wire&nbsp;from the 5" TFT display to the TFP401 display driver.
- Connect an&nbsp;HDMI cable from the TFP401 display driver to the Raspberry Pi.&nbsp;
- Connect a USB hub to the Raspberry Pi. Connect a USB keyboard and mouse to the USB hub. Insert a USB WiFi dongle to the USB hub.
- Connect a micro USB cable from your computer to the TFP401 display driver.
- Connect a micro USB cable from your 5V power supply to the&nbsp;Raspberry Pi.
- The Pi and TFP401 display driver will immediately power on upon pluggin in the micro USB connector.

## Test RetroPie&nbsp;Emulationstation

With&nbsp;a micro USB cable plugged from your 5V power supply&nbsp;to the Raspberry Pi, it will power on and boot automatiically. Wait for the pi to boot and run the setup script. It will boot into Emulationstation.&nbsp;

Emulationstation will prompt you to configure the keyboard for game inputs. With a USB keyboard attached, set up your preferred controls by pressing keys as prompted.

## Setup&nbsp;WiFi Adapter

Recent versions of RetroPie include a WiFi setup utility.&nbsp;From the main EmulationStation screen, access the RetroPie settings using whatever key you’ve assigned as the “A” button. You’ll see&nbsp; **WIFI** &nbsp;in this list:

![](https://cdn-learn.adafruit.com/assets/assets/000/038/172/medium800/gaming_raspberry_pi_wifi1.png?1483514229)

Here you can select your WiFi network name and enter a password. It’s not beautiful, but gets the job done.

Select “Exit” when done to return to the EmulationStation UI…

![gaming_raspberry_pi_wifi2.png](https://cdn-learn.adafruit.com/assets/assets/000/038/173/medium640/gaming_raspberry_pi_wifi2.png?1483514242)

With networking enabled, we can now access the remaining software needed for the PiGRRL 2 experience. There are a couple ways to do this…

- **BEST:** &nbsp;Use an&nbsp; **ssh** &nbsp;terminal client to log into the Raspberry Pi at&nbsp; **retropie.local** &nbsp;  
This is recommended, as you can just copy-and-paste the commands that follow. The default name and password are “pi” and “raspberry,” respectively.
- **OR:** &nbsp;Press “F4” to exit EmulationStation for a command-line prompt (works, but you’ll need to type these commands&nbsp;_exactly_).

## Adafruit Retrogame Setup

Open terminal command line on your computer to ssh into the Raspberry Pi.&nbsp;

`ssh pi@IP-ADDRESS-HEREcontinue? yes`  
`password: raspberry`  
`pi@raspberrypi ~$ []`

Enter the following commands to download and run our retrogame setup script:

```
cd
curl https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/retrogame.sh &gt;retrogame.sh
sudo bash retrogame.sh
```

You'll be presented with a list of ready-made configurations. Select the option for “ **Super Game Pi** ” and proceed with installation, which should take a minute or maybe less.

Unless you have other system config you want to perform, go ahead and **reboot** &nbsp;when prompted.

Now the Adafruit retrogame config is setup and ready for buttons. The only way to test if it worked is to connect buttons to the GPIO pins. On to the next steps!

## Issues, Problems, Need Help?

If you encounter any technical problems with the Raspberry Pi software, components or otherwise, please post up your issue, including photos of your wiring on the Adafruit Forums. Our support team will be able to help you there.

[Adafruit Forums](https://forums.adafruit.com/viewforum.php?f=36)
# Super Game Pi

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/022/253/medium800/gaming_parts-cad.png?1420584390)

## Ready to Print

Parts were designed in Autodesk 123D Design to only&nbsp;house only the components listed in the build of materials. The parts are&nbsp;optimized to 3D print on FDM desktop&nbsp;machines.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/395/medium800/gaming_cad-parts.jpg?1421008616)

## Open to Mod

We've shared the 123DX file which includes the original solids. You can download and modify the design if you're interested to extend the features or adjust geometery for other components.

[Download Parts From YouMagine](https://youmagine.com/designs/super-game-pi)
[Download Parts from Thingiverse](http://www.thingiverse.com/thing:629873)
![](https://cdn-learn.adafruit.com/assets/assets/000/021/971/medium800/gaming_3d_parts_wood.jpg?1419954788)

## PLA Material

We recommend using PLA filament for minimum warping and best print quality. The parts are pre-orientation and&nbsp;centered so they're&nbsp;ready to print. No support material or raft required.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/396/medium800thumb/gaming_ninjaflex-buttons.jpg?1448315202)

## Ninjaflex Filament

We recommend using TPE flexible filament like Ninajflex to print the **L** and **R** shoulder buttons. This gives the buttons a grippy rubbery feel making it easy and enjoyable&nbsp;to mash.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/397/medium800thumb/gaming_3d-printer-build.jpg?1448315208)

## Build Platform

The parts are large and require a bed plate with a minimum size of 226mm by 128mm. To ensure a high quality surface finish, we recommend&nbsp;printing straight on a clean surface&nbsp;like acyrlic, blue painters tape or glass.&nbsp;

Having a leveled bed is very crucial to getting a decent&nbsp;quality surface. Babysit the first layer. If the first layer doesn't&nbsp;stick down all the way, cancel&nbsp;the print, clean the bed and try again.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/399/medium800/gaming_cura-slicer.jpg?1421009837)

## Slice Settings

We recommend using [Cura](https://ultimaker.com/en/products/software)&nbsp;to slice the parts. Depending on your printers nozzle and extruder, you will need to adjust the&nbsp;settings. We recommend printing slow around 30-40mm/sec for best quality..

[3D Printer Profiles](https://github.com/djecken/3d-printer-profiles)
# Super Game Pi

## Finishing Parts

## Clean up

The parts may have extra bits and artifacts that need to be removed. We recommend using a pair of flush hakko snips to remove the "gobbers".&nbsp;

Low&nbsp;retraction slice settings will introduce excess material near the port cut outs, stand-offs and posts. These can be cleaned up by snipping away the&nbsp;bits and pieces.&nbsp;

Info: 

## Tolerance Testing

You'll want to run a few&nbsp;tests on the parts to check the tolerances for screws and fittings. If sections&nbsp;are too tight, use a filing tool to loosen&nbsp;the tolerance.&nbsp;

- Join two enclosure parts together and insert&nbsp;#4-40&nbsp;screws to fasten parts&nbsp;together - Checking&nbsp;if posts line up.
- Insert a #4-40 machine screw into mounting holes to make screw&nbsp;threads.
- Test tolerances of speaker mounts. Check if a mini metal speaker snaps into the cavity.
- Test tolerances for the&nbsp;action buttons. Place a button over the opening to check if&nbsp;they loosely&nbsp;fit.

## Sanding

Optionally, you can sand the parts for a smooth finish. Use a low gritted sand paper and work your way to a finer grit.&nbsp;This helps reduce the appearance of lines and ridges in the surface.

Sand in a well ventilated area. Use a mask and worker gloves while sanding to reduce the chances&nbsp;of inhaling fine dust particals and getting any&nbsp;on your hands. Clean up dust from sanding with a vaccum.

Info: 

## Tack Cloth

If you're down with sanding the parts, you can use tack cloth to remove fine particals and dust from the surface. This will make the part a bit sticky, so you may want to use latex gloves while cleaning.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/248/medium800thumb/gaming_xtc-apply.jpg?1448315064)

## XTC-3D coating

For a shiney and reflective, finish you can use XTC-3D coating from Smooth-On. It's a two part epoxy resin that can be applied to printed parts with a sponge brush.

Use latex gloves while handling and applying epoxy resin. This&nbsp;two part compound is a 2A : 1B ratio that&nbsp;has a work time of approximately 15 minutes.&nbsp;

Follow the insturction sheet included for tips on applying coating to parts.

Info: 

## Bonding

The cover and frame for the battery needs to be bonded&nbsp;together. We recommend using E6000 adhesives for making a permanent&nbsp;industrial strength bond.

Apply E6000 to the inner edge of the battery cover and place ontop of battery frame part. Lightly sequeeze tube to apply and pull back to retract adhesive from leaking.

Use a weight with a flat surface&nbsp;like a book or case to appy pressure to the parts.

Let parts dry&nbsp;over night.

![gaming_batbox-glue1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/244/medium640/gaming_batbox-glue1.jpg?1420581889)

![gaming_batbox-glue2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/245/medium640/gaming_batbox-glue2.jpg?1420581940)

![gaming_batbox-glue-finish.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/246/medium640/gaming_batbox-glue-finish.jpg?1420581986)

Info: 

# Super Game Pi

## Power Circuit

![](https://cdn-learn.adafruit.com/assets/assets/000/022/121/medium800/gaming_353-03.jpg?1420490377)

## 6600mAh Lithium Ion Battery

Newer batteries will include a JST cable with male connector already soldered to the battery. The&nbsp;length of the cable included is&nbsp;enough to reach the power charing circuit in this project.

## Prep Battery JST

If you happen to have an older 6600mAh battery, the battery may not have a JST connector already attached. In this case, the 6600mAh battery will include&nbsp;a male JST cable. Strip and tin the ends on both sets of wires. Add pieces of heat shrink tubing and solder the matching wires&nbsp;together - Negative(black) to negative, positive(red) to positive.&nbsp;

![gaming_battery-stock.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/186/medium640/gaming_battery-stock.jpg?1420517657)

![gaming_battery_jst_third_hand.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/187/medium640/gaming_battery_jst_third_hand.jpg?1420517699)

![gaming_battery-jst-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/188/medium640/gaming_battery-jst-soldered.jpg?1420517723)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/185/medium800/gaming_case_screws_start.jpg?1420517058)

## Install PowerBoost 500C Screws

Fasten two #4-40 3/8 to the bottom part of the enclosure near the bottom with the cut out in the center. This is where the microUSB port of the PowerBoost 500C will be.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/123/medium800/gaming_insert_powerboost.jpg?1420503818)

## Mount PowerBoost500C

Place the PowerBoost500C on to the lower center area of&nbsp; **back.stl** part with the micro USB port facing the cutout.&nbsp;

Line up the mounting holes to&nbsp;the stand-offs and hold the PCB to the&nbsp;enclosure&nbsp;with one hand. With the other hand,&nbsp;fasten two&nbsp;#4-40 3/8 flat Phillips machine screws to the mounting holes untl it's fully flush with the surface of the enclosure.

## Prep&nbsp;Slide Switch

Place&nbsp;slide switch near the top center of the bottom enclosure part - There's an opening with clips for housing the slide switch.

Measure the length of wire needed for connecting the slide switch to the PowerBoost 500C. Cut three pieces of 30AWG stranded wire and strip the ends with wire cutters. Tin each wire.

Secure slide switch to helping third hand. Solder wires to each terminal&nbsp;on slide switch. Insert pieces of heat shrink tubing to each wire and heat to seal connections.

![gaming_slide-switch-prepare.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/189/medium640/gaming_slide-switch-prepare.jpg?1420517835)

![gaming_slide-switch-tin-wires.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/190/medium640/gaming_slide-switch-tin-wires.jpg?1420517871)

![gaming_slide_switch_heat_shrink.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/191/medium640/gaming_slide_switch_heat_shrink.jpg?1420517915)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/125/medium800/gaming_slide_switch_insert.jpg?1420503890)

## Install&nbsp;Slide Switch

With wires solder to slide switch, install the switch into the bottom enclosure part by fitting it through the cut out with wires in first.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/126/medium800/gaming_powerboost_soldered.jpg?1420503937)

## Connect Switch to PowerBoost500C

Solder wires from slide switch to **BAT** , **EN** and **GND** pins on the PowerBoost 500C.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/258/medium800/gaming_powerboost-test.jpg?1420598115)

## Power Test

Plug in the JST connector from the 6600mAh lithium polymer battery to the JST port on the PowerBoost 500C.

Turn the slide switch on to test the PowerBoost 500C. The blue LED should light up indicating a charged&nbsp;battery - Red LED means the battery needs to be charged.

If no LED's turn on, double check your wiring.

With the PowerBoost 500C tested and working, turn it off and unplug the JST and set the battery aside.

# Super Game Pi

## Display Driver

![](https://cdn-learn.adafruit.com/assets/assets/000/022/259/medium800/gaming_screen-fpc-connector.jpg?1420599208)

## Connect 40-pin FPC extension board

Connect the 40-pin on the 5" TFT display to the FPC extension board with the copper side facing the back of the board.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/262/medium800/gaming_driver-cable.jpg?1420599586)

## Connect 40-pin extension cable

Insert the 40-pin FPC extension cable to the 40-pin connector on the TFP401 display driver by using your fingers to open the latch and inserting the cable&nbsp;with the blue tape&nbsp;facing down - silver pads facing up.

## Mount Display Driver

Insert and fasten four #6-32 1/2 flat Phillips machine screws&nbsp;to the mounting holes in the bottom enclosure part about half way.

Place the TFP401 display driver over the stand-offs with the ribbon cable facing the edge of the enclosure. Hold the part&nbsp;in place and to fasten the screws all the way to secure the component.

![gaming_driver-screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/263/medium640/gaming_driver-screws.jpg?1420599693)

![gaming_driver-mounting.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/264/medium640/gaming_driver-mounting.jpg?1420599770)

![gaming_driver-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/265/medium640/gaming_driver-mounted.jpg?1420599803)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/129/medium800/gaming_driver-power-boost.jpg?1420504146)

## Connect TFP401 to PowerBoost 500C

Measure two 30AWG wires for connecting the TFP401 display driver to the PowerBoost 500C. Strip and tin the ends&nbsp;of each wire. Solder the wires to the&nbsp; **5V** and **GND** pins on the TFP401 display driver to the **5V** and **GND** pins on the PowerBoost500C.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/267/medium800/gaming_driver-screen-test.jpg?1420600924)

## Test Display&nbsp;

Plug in the JST connector from the Lithium Polymer battery to the JST port on the PowerBoost 500C.

Insert the microSD card with RetroPi image to the Raspberry Pi.

Connect the HDMI cable to the TFP401 display driver and an HDMI device (like your computer or Raspberry Pi with powered connection).

Turn on slide switch to power circuit. The display and driver should power on and show initial boot.

If the components do not power on, double check your wiring.

Power down the Pi, turn off the power switch and disconnect the battery from the PowerBoost500C. Disconnect the 40-pin FPC cable from the FPC extension board - but leave the ribbon cable connected to the display driver. On to the next steps!

# Super Game Pi

## Raspberry Pi

## Mount Pi

Place the Raspberry Pi A+ over the bottom enclosure and line up mounting holes with the stand-offs. Line up the USB port with&nbsp;the cut out near the edge. Hold the Pi down and fasten four&nbsp;#4-40 flat Phillips machine screws to each stand-off.&nbsp;

![gaming_pi-screw.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/230/medium640/gaming_pi-screw.jpg?1420579615)

![gaming_pi-screw2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/231/medium640/gaming_pi-screw2.jpg?1420579842)

![gaming_pi-screw3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/232/medium640/gaming_pi-screw3.jpg?1420579878)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/243/medium800thumb/gaming_jumpers.jpg?1448315039)

## Prep Jumper Wires

We'll be working with male/female jumper cables for most connections that interface with the Pi's GPIO header.

Using jump wires will allow us&nbsp;to&nbsp;quickly plug or disconnect&nbsp;cables from the GPIO. This is a thinner approach then using the Pi Cable - You can also easily&nbsp;decipher connections by using&nbsp;colored wires.

To make "super thin" jumper cables, all we need to do is remove the covers and bend them a bit. Here's the breakdown:

Remove the plastic covers from two female to male jumper cables and snip off the male connector. Strip and tin the end of the wire. Carefully bend the female connector from the jumper cable to make it a right angle plug. Check the length of wire and ensure it reaches powerboost **+postive** and **-negative** pins.

Place a small piece of heat shrink tubing over the wire to insulate the exposed female jumper connector.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/269/medium800/gaming_pi-pb-wire.jpg?1420601761)

## Wire Pi to PowerBoost 500C

Solder&nbsp;one jumper wire to the **5V&nbsp;** pin on the PowerBoost. Solder the other wire to the **GND** &nbsp;pin.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/268/medium800/gaming_pi-wired2.jpg?1420601541)

## Connect Pi to PowerBoost 500C

Plug the jumper wired to **5V** &nbsp;pin on the Powerboost 500C to the&nbsp; **5V** (Pin #2) pin on the Raspberry Pi.

Connect the jumper cable wired to the **GND** &nbsp;pin on the PowerBoost 500C to the&nbsp; **GND** (Pin #6) on the Pi.

Now we can easily unplug&nbsp;the cables from the Pi and remove it if we wanted to - This project is&nbsp;all about being modular!

# Super Game Pi

## Audio

![](https://cdn-learn.adafruit.com/assets/assets/000/022/136/medium800/gaming_amp_screwed.jpg?1420504538)

## Installing Amplifier&nbsp;

Thev2.8W class-D ST2012 amp will be mounted to the lower right&nbsp;side of the bottom enclosure part. Place the amplifier over the bottom enclosure part and line up the mounting holes with the stand-offs.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/192/medium800/gaming_amp-screwing.jpg?1420518358)

## Mount&nbsp;Audio Amplifier&nbsp;

Hold the amp&nbsp;down to the enclosure and fasten two #4-40 3/8 Phillips flat&nbsp;machine&nbsp;screws to mount the component.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/140/medium800/gaming_amp_power_boost.jpg?1420504743)

## Connect Amp to PowerBoost 500C

Measure two pieces of wire for connecting the ST2012 amp to the PowerBoost 500C. Pins **VDD** and **GND** on amp will connect to the **+positive** &nbsp;and **-negative** &nbsp;pins on the PowerBoost 500C. Cut two pieces of 30AWG wire. Strip and tin the ends.

Solder&nbsp;wires to **VDD** and **GND** pins on ST2012. Connect wires to **+positive&nbsp;** and **&nbsp;-negative** pins on PowerBoost 500C and solder.

## Prep Audio Cable

Insert&nbsp;the 3.5mm stereo plug connector to the audio jack on the Raspberry Pi A+.

Measure the length of audio wire needed to connect the cable to the 2.8W class-D ST2012 amplifier - add some extra slack for stripping.

Tuck the shorten&nbsp;audio cable&nbsp;underneath TFP401 display driver. You'll need to unfasten the screws from the driver PCB to fit cable&nbsp;in place.

![gaming_pi_audio_thread.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/148/medium640/gaming_pi_audio_thread.jpg?1420505564)

![gaming_pi_audio_cut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/149/medium640/gaming_pi_audio_cut.jpg?1420505598)

## Prep Audio&nbsp;Wiring

Cut the audio cable and strip off the black insulation from the&nbsp;cable. Use an x-acto knife to remove the insulation from the main cable. While stripping, you may cut pieces from the stranded wire -Be careful not to cut too much. These are the ground wires - bundle them up and twist them together to form a wire. Tin the ground&nbsp;wire to keep the stranded wires from separating.

![gaming_audio_cable_cut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/141/medium640/gaming_audio_cable_cut.jpg?1420504819)

![gaming_audio_cable_twist.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/142/medium640/gaming_audio_cable_twist.jpg?1420504849)

![gaming_audio_tin.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/143/medium640/gaming_audio_tin.jpg?1420504877)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/144/medium800/gaming_amp_wired.jpg?1420504935)

## Wire Amp

Strip the red and white wires from the &nbsp;audio cable and tin the tips. Insert the white&nbsp;wire into the **L+ pin** on the ST2012 amp. Insert the red&nbsp;wire to the **R+** pin. The ground wire needs to be connected to the **L-** or **R-** pin.

Create a small wire to jump the **L-** and **R-** pins on the ST2012 amp. Ensure it's a&nbsp;short piece of&nbsp;30AWG wire.&nbsp;

The ground wire may be too thick to fit in the through-hole on the amp PCB. Carefully thin the wire by&nbsp;trimming the edges with&nbsp;wire cutters. Insert the ground wire to either **L-** or **R-** , sharing the wire jumper.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/145/medium800/gaming_amp_power_check.jpg?1420504973)

## Connect Audio Cable to Amp

Solder the audio wire connections to the ST2012 class-D amplifier.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/138/medium800/gaming_speaker_unsolder.jpg?1420504683)

## Prep Speakers

Remove exisiting wires on speakers by heating up solder points with iron.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/193/medium800/gaming_speaker_insert.jpg?1420518755)

## Prep Speaker Wires

Measure the lengths of wires needed for connecting&nbsp;the speakers to the amplifier. Place the top enclosure part near the bottom part and lay speakers over the cavities&nbsp;to guage wire length - The left and right speakers will have different lengths!

Measure again, and cut four pieces of 30AWG wire&nbsp;making two sets for connecting the speakers to the amp. Strip and tin the ends of each wire.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/139/medium800/gaming_speaker-soldered.jpg?1420504710)

## Connect Speakers to Amp

Solder speaker wires to **+positive** and **-negative** pins on audio output of the **ST2012** breakout.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/172/medium800/gaming_speaker-test.jpg?1420513043)

## Test Amp + Speakers

For an audio test, disconnect the 3.5mm stereo plug from the Pi and connect it to a device like a&nbsp;mobile phone.

Disconnect the jumper wires from Pi.

Connect the JST from the battery to the PowerBoost 500C and turn the slide switch on to power the circuit.

Play back an audio track, youtube video or anything that produces sound. You should hear some jams! &nbsp;If not, double check your wiring.

The ST2012 amplifier doesn't have an LED indicator, so you'll need to use a multimeter to check your&nbsp;connections.

# Super Game Pi

## Analog Joystick

![](https://cdn-learn.adafruit.com/assets/assets/000/022/146/medium800/gaming_joystick-parts.jpg?1420505376)

## Assemble Joystick

Line up the analog joystick with the breakout board so the terminals fit in the "through-holes".&nbsp;Solder the joystick to the PCB. Place the rubber thumb piece on top of the joystick nub part and firmly press it down to secure it into place.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/147/medium800/gaming_joystick-soldered.jpg?1420505401)

## Wire Joystick&nbsp;PCB

Measure and cut four pieces of 30AWG wire to about 8cm long. Secure the joystick PCB to a panavise and solder four pieces of wire to the **Yout** , **Xout** , **VCC** and **GND**.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/319/medium800thumb/gaming_joystick-cupcade-solder.jpg?1448315186)

## Wire Joystick PCB to Cupcade PCB

Secure the cupcade PCB to a panavise Jr. and solder the four wires to **Yout** , **Xout** , **VCC** and **GND** with the wires going into the pins with cupcade logo facing up.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/150/medium800/gaming_joystick-board.jpg?1420505785)

## Mount Joystick PCB to Enclosure

Place the&nbsp;joystick breakout board on the bottom enclosure part and line up the mounting holes with the stand-offs. Hold PCB to enclosure and fasten four&nbsp;#4-40 3/8 flat Phillips machine screws. PCB will be loose -&nbsp;Use #4-40 hex nuts to secure the PCB to the enclosure.

![gaming_joystick-screw.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/289/medium640/gaming_joystick-screw.jpg?1420643337)

![gaming_joystick-nuts.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/291/medium640/gaming_joystick-nuts.jpg?1420643428)

![gaming_joystick-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/292/medium640/gaming_joystick-mounted.jpg?1420643465)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/293/medium800/gaming_cupcade-screw.jpg?1420643541)

## Mount Cupcade PCB to Enclosure

Position the cupcade PCB&nbsp;over&nbsp;the bottom enclosure part with the wires facing down. Line up mounting holes on the PCB with stand-offs on the part. Mount in place&nbsp;with two #4-40 3/8 flat Phillips machine screws.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/254/medium800thumb/gaming_jumpers.jpg?1448315080)

## Prep Jumper Cables

Use five female jumper cables to connect the cupcade PCB to the Pi GPIO header. Start by removing the plastic covers with a sharp tool to expose the female connector. Use a pair of flat pliers to bend the female connector so it's right angled - This allows us to make it a 'thin' as possible.

Add a piece of heat shrink tubing to insulate the exposed female connector. Cut off the other end of the cable and strip the ends with wire cutters. Tin the stranded wire to make connecting to the pin on the PCB easier.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/152/medium800/gaming_joystick-board-pi.jpg?1420505987)

## Cupcade Adapter PCB

The Cupcade PCB was designed to fit onto a PiTFT header&nbsp;via socket connector, but in this project we're free wiring the PCB using jumper cables - This allows us to easily rewire connections if things need to change.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/321/medium800/gaming_cupcade-connections.jpg?1420655714)

## Wire Cupcade to Pi

Follow the wire diagram to reference which pins need to&nbsp;connect the cupcade PCB to the Pi GPIO. Down, Up, Left, and Right are being connected here.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/320/medium800thumb/gaming_cupcade-wiring.jpg?1448315193)

## Solder Wires to Cupcade Adapter PCB

Double-check wiring, cross referening the diagram and sodler the jumper cables to the appropriate&nbsp;pins on the Cupcade PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/153/medium800/gaming_joystick-check2.jpg?1420506052)

## Connect Cupcade Jumpers to Pi GPIO

Plug in the female jumper cables wired from the cupcade PCB to the GPIO header Raspberry Pi.

Follow the legend&nbsp;below to connect the&nbsp;cupcade to the Raspberry Pi GPIO.

**USE THE PI GPIO DIAGRAM BELOW, _NOT_ THE PHOTOS ABOVE** — the photos show a prototype and the connections changed.

![](https://cdn-learn.adafruit.com/assets/assets/000/027/182/medium800/gaming_pin-legend.png?1439851953)

# Super Game Pi

## Prep Button PCBs

![](https://cdn-learn.adafruit.com/assets/assets/000/022/256/medium800thumb/gaming_controller-disassemble.jpg?1448315098)

## Disassemble SNES controller

Remove the screws from the controller using a Phillips screwdriver. Seprate the back cover from the front and carefully remove the PCB from the enclosure.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/155/medium800/gaming_btn-elastomer.jpg?1420506158)

## Save Buttons + Elastomers

Dump all of the buttons and elastomers onto your work surface or palm of your hand. Admire and store in a baggy for later use.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/257/medium800thumb/gaming_snes-remove-wire.jpg?1448315105)

## Unsolder main cable

Secure the SNES PCB to a panavise Jr. Heat up your&nbsp;soldering iron and reflow the solder poins on&nbsp;the main cable. Use a pair of tweezers to&nbsp;gently remove each&nbsp;wire from the PCB. Toss cable over shoulder - won't be needing it.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/156/medium800/gaming_btn_board.jpg?1420506325)

## Splitting PCBs

Ensure SNES PCB is very secure to panavise Jr. Reference diagram to follow where to split the sections. Move to a well ventilated area and put on some safety glasses.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/255/medium800thumb/gaming_button-pcb-cutting.jpg?1448315087)

## Cut PCBs

Use a power tool like a Dremel to cut the PCB into three sections. Handle panavise jr. in place before&nbsp;sawing. Slowly saw through the PCB until you've reach about 1mm - break away sections&nbsp;with hand.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/022/173/medium800/gaming_LR_btn_unsoldered.jpg?1420513370)

Remove&nbsp;the&nbsp; **L shoulder** PCB from **D-Pad** by reflowing solder from the wire using a soldering iron. Remove&nbsp;the bit of&nbsp;cable soldered to the **L shoulder** PCB.

In this project, we won't be needing the D-Pad PCB because we're using&nbsp;the analog joystick - Disgard that PCB or store it away for another project.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/181/medium800/gaming_AB-R-btn-hole.jpg?1420514320)

## Drill Holes to PCBs

Secure PCBs to a Panavise jr. Use a sharpie marker or etch a mark in the very center of the buttons PCBs. Use a rotary power tool like a Dremel to create a hole in the center of the A, B, X, Y button PCB. Use a drill bit that is&nbsp;approximately 2mm in diameter.&nbsp;

Info: 

## Etch Traces

Use an x-acto or filing tool to expose copper traces on the PCB sections. Reference the images&nbsp;for recommended etching spots. Lightly scratch the surface of the silk screen until&nbsp;the copper traces are exposed.

The PCB section with A, B, X and Y have&nbsp;very small traces - be very careful not to bridge these&nbsp;connections! Try offsetting each spot in different levels to keep wiring&nbsp;seprate from each other.

The L and R shoulder PCB don't need etched traces since they both have pin outs for wiring positive and negative connections.

![gaming_btn_board_trace.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/157/medium640/gaming_btn_board_trace.jpg?1420506400)

![gaming_btn_board_etch1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/159/medium640/gaming_btn_board_etch1.jpg?1420506438)

![gaming_btn_board_etch2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/161/medium640/gaming_btn_board_etch2.jpg?1420506527)

## Tin PCBs

Add droplets of solder to the exposed traces on the Start/Select and A, B, X, Y and R shoulder PCBs. Add solder to the two pins on the L shoulder PCB. Place soldering iron down onto PCBs and quickly add solder to tin the etched spots.

# Super Game Pi

## Wiring Buttons

## Right Angle Jumper Cables

For wiring&nbsp;the buttons, we're going to use female/male&nbsp;jumper cables. We'll need to slim these down so they&nbsp;fit inside the enclosure.

Remove the plastic covers from the female end to expose the connector. Bend the connector using flat pliers to make a right angle cable. Add a piece of shrink tubing to insulate the exposed connector.

Cut off the other end of the jumper cable and strip the end using wire strippers. Tin the stranded wires to make it easier to insert into breakout boards.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/179/medium800/gaming_SP-btn-wires.jpg?1420513782)

## Start and Select

Place the start/select PCB over the&nbsp;bottom enclosure part. Line up the hole in the center of the PCB to the post near the left side of the bottom enclosure part. Measure the length of wire needed to connect to the Pi GPIO. Cut wire&nbsp;and prep to make it a right angle jumper cable.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/180/medium800/gaming_sp-tinned.jpg?1420513859)

## Wire Start/Select PCB

Remove PCB from enclosure and secure to helping third hand.&nbsp;Solder the three jumper wires to the pads on the PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/325/medium800/gaming_ab-tinned.jpg?1420656555)

## Prep&nbsp;A, B, X, Y and R Wires

Place the PCB over the enclosure and line up the center hold with the post on the right side. Measure length of wire needed to connect PCB to Pi GPIO. Add a bit extra slack for moverability. Cut six pieces of jumper wires and prep them to be right angled following the steps above.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/183/medium800/gaming_ab-wired.jpg?1420514425)

## Wire A, B, X, Y and R

Remove PCB from enclosure and secure to helping third hand.&nbsp;Carefully solder the jumper wires to the tin spots on the button PCBs.&nbsp;

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/022/174/medium800/gaming_LR-wired.jpg?1420513451)

## L&nbsp;Shoulder Button

Insert L shoulder PCB to the holder on the left side and measure the length of wire needed. Prep two jumper wires and solder them to the pins&nbsp;on the PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/176/medium800/gaming_btn-boards-wired.jpg?1420513649)

## Wired PCBs

The button PCBs will have different lengths of wire.&nbsp;The colored jumper cables&nbsp;helps differentiate wire connections.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/323/medium800/gaming_base-mount-tack.jpg?1420656269)

## Prep Button PCB base

Apply mounting&nbsp;putty the surface of the two base platforms where the&nbsp;PCBs rest - This will keep the PCBs from slipping.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/178/medium800/gaming_SP-board-insert.jpg?1420513753)

## Mount&nbsp;Start/Select PCB

Place the start/select PCB back onto the enclosure part with post fitted through center hole. Press PCB down to secure in place.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/177/medium800/gaming_AB-board-insert.jpg?1420513700)

## Mount A, B, X, Y&nbsp;and R PCB

Place the button&nbsp;PCB onto the enclosure with post fitted through center hole. Press PCB down to secure in place. Double check orientation is correct.

R shoulder button is fitted into the shoulder holder. Slide into place with traces facing out.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/175/medium800/gaming_LR_board_insert.jpg?1420513495)

## Install L Shoulder&nbsp;PCB

Insert the L Shoulder PCB into the holder on the left side of the enclosure with traces facing out.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/324/medium800/gaming_base-mount-pcbs.jpg?1420656297)

## Button PCBs on&nbsp;enclosure

Double check position and orientation of button PCBs.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/322/medium800/gaming_pi-bnt-connections.jpg?1420656200)

## Connect Jumpers to Pi

Follow the Pi GPIO wiring diagram and carefully plug each jumper wire to the GPIO pins.

Some jumper cables may need to over lap each other to fit properly. Avoid cables from blocking any other components. &nbsp;Double check your work.

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/027/184/medium800/gaming_pin-legend.png?1439852218)

# Super Game Pi

## First Test

![](https://cdn-learn.adafruit.com/assets/assets/000/022/171/medium800/gaming_battery_insert_btm.jpg?1420512925)

## Connect Battery to PowerBoost 500C

Thread the JST cable from 6600mAh lipo battery through the large opening on&nbsp;back of the bottom enclosure part. Connect it to the JST port on the PowerBoost500C.

![](https://cdn-learn.adafruit.com/assets/assets/000/022/297/medium800/gaming_display-connector.jpg?1420644042)

## Connect 5" TFT Display

Insert&nbsp;the 40-pin connector from the 5" TFT&nbsp;display to the socket extension on the TFP401 HDMI dispaly driver. The shiney copper side will be facing the top of the extension PCB.

## Install HDMI Cable

Insert the 30cm long flat HDMI cable to theTFP401 display driver and connect it to theRaspberry Pi.

![gaming_hdmi-driver-plug.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/298/medium640/gaming_hdmi-driver-plug.jpg?1420644098)

![gaming_hdmi-pi-plug.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/299/medium640/gaming_hdmi-pi-plug.jpg?1420644142)

## Boot Test

Double check&nbsp;the micro SD card with burn image of RetroPi is inserted into the Raspberry Pi.

Turn on the PowerBoost500C with the slide switch. The blue LED should light up indicating it's got a charged battery - red LED means battery is dead and needs to be charged.&nbsp;

The TFP401 display driver should power on with a blue LED and illuminate the 5" TFT display.

If the display remains black, the 40-pin connector was inserted upside down - flip it the other way&nbsp;and try again.

The Pi should power on with a red LED followed by a green LED. It should take a second to load&nbsp;and display the inital boot text on the TFT dislay.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/022/300/medium800thumb/gaming_btn-testing.jpg?1448315166)

## Joystick+Buttons Test

The Pi should boot automatically into Emulation station. Initial setup should take place and prompt you to hold down a key. Follow the input configurate setup and press buttons to map keys.

Place the elastomer pieces on the start/select and a, b, x, y button PCBs for testing. Line them up as close as you can to the button spot on the pads.

If the joystick or buttons are not being recongized, double check the initial setup and see if the **retrogame.c** was modified and made.

## Working First Test

If everything is lit up and working, you can power it down and start getting ready to close it all up.

# Super Game Pi

## Final Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/022/162/medium800/gaming_display_insert.jpg?1420512293)

## Install 5" Display

Disconnect the display from the extension socket - we need to&nbsp;install it to the top enclosure part.

Insert the 5" TFT display into the top enclosure part&nbsp;at an angle&nbsp;and slide it in through the clips on the edge of the opening for the screen.

Carefully bend the enclosure back to allow the clips to open and hold the edges of the screen down into place. Try not to press the screen&nbsp;down to the clips as too much force will snap off the clips or damange the screen.

![gaming_display-safe-clips.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/301/medium640/gaming_display-safe-clips.jpg?1420645012)

![gaming_display-clips.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/302/medium640/gaming_display-clips.jpg?1420645067)

![gaming_display-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/303/medium640/gaming_display-mounted.jpg?1420645125)

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/022/163/medium800/gaming_hdmi_plug.jpg?1420512393)

## Install flat HDMI cable

The HDMI cable needs to arranged with the wire folded in order to properly close the enclosure.&nbsp;

Bend the wire at the end of the connector and arrange the excess so that it can be tucked into the battery opening near&nbsp;the back of the enclosure.

![gaming_hdmi-excess1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/305/medium640/gaming_hdmi-excess1.jpg?1420645353)

![gaming_hdmi-excess2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/306/medium640/gaming_hdmi-excess2.jpg?1420645387)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/164/medium800/gaming_elastomers_insterted.jpg?1420512438)

## Install Buttons & Elastomers

Place the plastic buttons into the openings on the top&nbsp;enclosure part. The elastomer set for the action buttons can be held in place by inserting the corner hoop into the nub on the enclosure. The start/select elastomer has a hole in the center that can&nbsp;plug into the nub on the enclosure.

![gaming_insert-buttons.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/307/medium640/gaming_insert-buttons.jpg?1420645473)

![gaming_insert-button-elastomers.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/308/medium640/gaming_insert-button-elastomers.jpg?1420645574)

![gaming_insert-start-elastomer.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/310/medium640/gaming_insert-start-elastomer.jpg?1420645659)

## Install L+R Shoulder PCBs

Insert the L and R shoulder elastomer pieces into the holders with the tip facing the openings in the enclosure.

![gaming_insert-shoulder-L.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/311/medium640/gaming_insert-shoulder-L.jpg?1420645745)

![gaming_insert-shoulder-R.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/312/medium640/gaming_insert-shoulder-R.jpg?1420645777)

![](https://cdn-learn.adafruit.com/assets/assets/000/022/316/medium800thumb/gaming_insert-shoulder-elastomers.jpg?1448315175)

## Shut&nbsp;Enclosure

There are six&nbsp;screws that will hold the two enclosure parts secured together. Locate the posts that will join the enclosure parts and fasten #4-40 3/8 flat Phillips machine&nbsp;screws into the posts - this makes it easier to fasten the parts while holding them shut.&nbsp;

Start with the top corner and work your away all around the enclosure. The top of the enclosure has two stand-offs that can be secured using a machine screw and nut.

![gaming_top-side-open.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/313/medium640/gaming_top-side-open.jpg?1420645840)

![gaming_top-side-close.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/314/medium640/gaming_top-side-close.jpg?1420645865)

## Secure&nbsp;enclosure shut

The HDMI cable will make it difficult to close the enclosure due to the excess wire. Press the two parts together with one hand and start fastening the screws on the bottom of the part to secure&nbsp;the enclosure shut.

![gaming_case_screws_corner.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/165/medium640/gaming_case_screws_corner.jpg?1420512534)

![gaming_case_screw_top.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/166/medium640/gaming_case_screw_top.jpg?1420512574)

![gaming_case_top_screw_2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/167/medium640/gaming_case_top_screw_2.jpg?1420512629)

## Install L & R shoulder buttons

Squeeze the L and R ninjaflex buttons into the shoulder openins near the top of the enclosure. Because its TPE material, you can squish it and pop it into place. The edge on the bottom of the print will&nbsp;keep the part from coming out of the enclosure.

![gaming_LR_ninjaflex_insert.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/168/medium640/gaming_LR_ninjaflex_insert.jpg?1420512720)

![gaming_LR_ninjaflex_inserted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/022/169/medium640/gaming_LR_ninjaflex_inserted.jpg?1420512752)

# Super Game Pi

## Final Test

![](https://cdn-learn.adafruit.com/assets/assets/000/022/328/medium800/gaming_hero-hands2.jpg?1420658287)

## Power Test

Turn the slide switch on and check if everything turns on. The 5" TFT&nbsp;screen&nbsp;should power on and display the Raspberry Pi boot screen. Emulationstation should automatically boot.&nbsp;

Move the analog&nbsp;joystick around to check up, down, left and right keys bindings. Press&nbsp;the action buttons to test them.

Run the input configuration through in emulationstation in the **menu** \> **configure** input option.

## Loading ROMs

SSH into Pi and drop rom files into dedicated directory.&nbsp;The directories for the ROM files are located in ~/RetroPie/roms/SYSTEMNAME, where SYSTEMNAME is the short name of the corresponding system.

## Sound

Audio is confirmed working for the port of Doom and Super Mario&nbsp;World for SNES. Most things should work!

Adjust audio volume in Emulationstation by using the option under menu \> settings \> audio. It can get pretty loud!


## Featured Products

### Type A Machines Series 1 Pro 3D Printer

[Type A Machines Series 1 Pro 3D Printer](https://www.adafruit.com/product/2412)
Built to last&nbsp;and better than ever. The **Series&nbsp;1&nbsp;Pro 3D** printers&nbsp;from Type A Machines offer&nbsp;durability, modularity and one of the largest build volumes in their&nbsp;class.

Featuring a streamlined aluminum and acrylic body, a glass build surface...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2412)
[Related Guides to the Product](https://learn.adafruit.com/products/2412/guides)
### PrintrBot Metal PLUS 3D Printer - Black Assembled

[PrintrBot Metal PLUS 3D Printer - Black Assembled](https://www.adafruit.com/product/2302)
New from Printrbot, the Metal Plus is a rock solid, all metal, fully-assembled beast of a printer!

The new **Printrbot Metal Plus w/ Heated Bed** is constructed of powder coated metal&nbsp;and machined aluminum with open platform for fabricating parts up to 10 x 10 x 10...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2302)
[Related Guides to the Product](https://learn.adafruit.com/products/2302/guides)
### Blue Masking Tape for 3D Printing Plates

[Blue Masking Tape for 3D Printing Plates](https://www.adafruit.com/product/2416)
OK yes, it's just masking tape. A big honkin' roll of I'm blue da-ba-dee-da-ba-die masking tape.

Removing 3D printed parts can be tough. Sometimes pieces get stuck to your 3D printing plate and their bottoms get stuck to your build plate. Over time, chiseling objects off can...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2416)
[Related Guides to the Product](https://learn.adafruit.com/products/2416/guides)
### Raspberry Pi Model A+ 512MB RAM

[Raspberry Pi Model A+ 512MB RAM](https://www.adafruit.com/product/2266)
 **Note:** As of August 10th, 2016 the Raspberry Pi A+ now includes 512 MB of RAM!

The Raspberry Pi Model A+ is the perfect board for the minimalist Pi fan. This low-cost Pi uses the same processor as the model B+, but does away with the Ethernet jack and three of the USB...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2266)
[Related Guides to the Product](https://learn.adafruit.com/products/2266/guides)
### TFP401 HDMI/DVI Decoder to 40-Pin TTL Breakout - Without Touch

[TFP401 HDMI/DVI Decoder to 40-Pin TTL Breakout - Without Touch](https://www.adafruit.com/product/2218)
It's a mini HDMI decoder board! So small and simple, you can use this board as an all-in-one display driver for TTL displays, or perhaps decoding HDMI/DVI video for some other project. This breakout features the TFP401 for decoding video, and for the touch...

In Stock
[Buy Now](https://www.adafruit.com/product/2218)
[Related Guides to the Product](https://learn.adafruit.com/products/2218/guides)
### 5.0" 40-pin 800x480 TFT Display without Touchscreen

[5.0" 40-pin 800x480 TFT Display without Touchscreen](https://www.adafruit.com/product/1680)
This 5.0" TFT screen has lots of pixels, 800x480 to be exact, and an LED backlight. Its great for when you need a lot of space for graphics. These screens are commonly seen in consumer electronics, such as miniature TV's, GPS's, handheld games car displays, etc. A 40-pin connector...

Out of Stock
[Buy Now](https://www.adafruit.com/product/1680)
[Related Guides to the Product](https://learn.adafruit.com/products/1680/guides)
### Analog 2-axis Thumb Joystick with Select Button + Breakout Board

[Analog 2-axis Thumb Joystick with Select Button + Breakout Board](https://www.adafruit.com/product/512)
This mini-kit makes it easy to mount a PSP/Xbox-like thumb joystick to your project. The thumbstick is an analog joystick - more accurate and sensitive than just 'directional' joysticks - with a 'press in to select' button. Since it's analog, you'll need two analog...

In Stock
[Buy Now](https://www.adafruit.com/product/512)
[Related Guides to the Product](https://learn.adafruit.com/products/512/guides)
### Cupcade V1 Adapter PCB + Parts Pack

[Cupcade V1 Adapter PCB + Parts Pack](https://www.adafruit.com/product/1916)
Discontinued - **you can grab our&nbsp;** [Cupcade: the Raspberry Pi-Powered Micro Arcade Cabinet Kit - Rev](https://www.adafruit.com/product/1783)3&nbsp; **instead!&nbsp;**

This is the PCB and small parts pack&nbsp;from **original V1** Cupcade **....**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1916)
[Related Guides to the Product](https://learn.adafruit.com/products/1916/guides)

## Related Guides

- [Adafruit PowerBoost 500 + Charger](https://learn.adafruit.com/adafruit-powerboost-500-plus-charger.md)
- [Adafruit TFP401 HDMI/DVI Decoder to 40-pin TTL Display](https://learn.adafruit.com/adafruit-tfp401-hdmi-slash-dvi-decoder-to-40-pin-ttl-display.md)
- [Printy Boost: Reimagining a Classic Adafruit Kit](https://learn.adafruit.com/printy-boost-reimagining-a-classic-adafruit-kit.md)
- [Portable 5in Monitor with HDMI](https://learn.adafruit.com/portable-5in-monitor-with-hdmi.md)
- [Freq Show: Raspberry Pi RTL-SDR Scanner](https://learn.adafruit.com/freq-show-raspberry-pi-rtl-sdr-scanner.md)
- [Raspberry Pi Wearable Time Lapse Camera](https://learn.adafruit.com/raspberry-pi-wearable-time-lapse-camera.md)
- [Adafruit TPA2016 2.8W AGC Stereo Audio Amplifier](https://learn.adafruit.com/adafruit-tpa2016-2-8w-agc-stereo-audio-amplifier.md)
- [Portable Apple Watch Charger](https://learn.adafruit.com/portable-apple-watch-charger.md)
- [JOY Controller for Adafruit Feather](https://learn.adafruit.com/joy-controller-feather.md)
- [UV Manicure Lamp](https://learn.adafruit.com/uv-manicure-lamp.md)
- [Unicorn Hat with Moving Ears](https://learn.adafruit.com/unicorn-hat-with-moving-ears.md)
- [Processing on the Raspberry Pi & PiTFT](https://learn.adafruit.com/processing-on-the-raspberry-pi-and-pitft.md)
- [I2C Addresses and Troublesome Chips](https://learn.adafruit.com/i2c-addresses.md)
- [Collin's Lab: Solar](https://learn.adafruit.com/collins-lab-solar.md)
- [Rumi Sword - KPop Demon Hunters](https://learn.adafruit.com/rumi-sword.md)
