Wall's Corners Wall's Corners Author
Title: Make a portable Raspberry Pi 2 game console
Author: Wall's Corners
Rating 5 of 5 Des:
Overview by Raspberry Pi Raspberry Pi Retro Game Console This project takes the original concept of the PiGRRL  and makes it more powerfu...

Overview

by Raspberry Pi

Raspberry Pi Retro Game Console

This project takes the original concept of the PiGRRL and makes it more powerful, using a Pi 2 (or Model B+). It’s about the same size but features more buttons (D-Pad, A,B,X,Y, L, R, pause and start.) and four extra buttons on the PiTFT. It’s sporting a small audio amplifier and speaker, so you can enjoy the crispy sounds of 8-bit goodness.

Easier to build!

With this update, we really wanted to make it easier to build. We’ve dramatically cut the build time in half by making a custom gamepad PCB. Just solder in the buttons and an IDC box header to the gamepad PCB – No more tedious button wiring!

Project Expectations

This project is geared towards beginners, but is still a big project to take on. This guide will walk you through all the necessary steps to wire, assemble and build your very first Raspberry Pi game console. It does require a good amount of soldering, wire tinning and good ol’ elbow grease, but don’t be discouraged! If your dedicated to take on this project, it’ll only take a weekend to make.

Adafruit Parts

Tools and Supplies

  • Circuit Diagram
  • by Raspberry Pi
  • Wired Connections
  • The diagram above depicts the connections for the power, audio and gamepad. Use this as a reference for wiring the components. Note, the length of wires and position of components are not exactly how the circuit will be – it’s just a diagram to show connections.
  • The 2.8″ PiTFT connects to the Raspberry Pi’s GPIO header. A GPIO ribbon cable plugs into the GPIO breakout of the PiTFT and connects to the PiGRRL gamepad PCB.
PowerBoost 1000c PAM8302 Amp
5V VIN
GND GND

 

3D Printing

by Raspberry Pi

Material Options

The top case, bottom case and shoulder mount should be printed in hard plastic like PLA, ABS or other. We recommend using PLA to minimize warping. ABS and other filaments requires a heated bed.

Parts

Download the parts and print them out accordingly – referencing the table below for material suggestions. If you don’t have access to a 3D printer, use a service like 3DHubs.com to send them to you.

Download STLs

Download Source

pigrrl2-top.stl Top part of case PLA/ABS
pigrrl2-bot.stl Bottom of case PLA/ABS
pitft-buttons.stl Buttons for PiTFT display Ninjaflex/TPE
dpad.stl D-Pad for gamepad Ninjaflex/TPE
action-btns.stl A,B,X and Y buttons for gamepad Ninjaflex/TPE
pause-start.stl Pause and Start buttons for gamepad Ninjaflex/TPE
shoulder-btns.stl Buttons for L and R shoulder buttons Ninjaflex/TPE
shoulder-mount.stl Mounting plate for L and R shoulder buttons. PLA/ABS
Tap Screw Holes

After the parts are finished printing, you’ll need to tap the standoffs with screw holes to create the threads for mounting the components. Use a #4-40 and #2-56 sized tap or use machine screws.

Be careful tapping the standoffs from the top -To prevent puncturing the surface, DO NOT tap all the way through the standoff. Be careful not to tap too fast or forcefully to avoid damanging the standoffs.

Test Fit Openings

Use a hobby knife to remove any excess bits from printing. Lay the components over the standoffs to see if mounting holes line up. See if the port cutouts are in the right place. If they don’t, use a filing tool to open them up.

Finishing Parts

You can smooth the parts by applying epoxy resin like Smooth-On’s XTC-3D. To finish the surface, wait for it to dry and sand it down. Apply a filler primer paint and a colored top coat of spray paint to make it extra smooth.

Software

by Raspberry Pi

PiGRRL2 Image

Download the PiGRRL2 image and burn it to a (4GB minimum) microSD card using a image burner.  This is a ready-to-go image featuring Retropie 3.3 and preconfigured button controls. There are no ROMs included (for licensing/legal reasons) so you’ll have to upload your own. However, Doom, Duke Nukem 3D, Quake and Quake 3 are peinstalled.

Download PiGRRL2 Img

Setting Up WiFi

Retropie v3.3 has a built-in WiFi configuration tool that makes it easy to add your Pi to your network. First, make sure to insert a USB WiFi dongle into the USB port of the Pi. You will also need a USB connected to type in your networks password.

In the main menu go to the “RetroPie” option, and select “Configure WiFi“. Select “1 Connect to WiFi Network” by pressing enter (The start button on the gamepad). Scroll through the list of available networks and press start to select your desired network. Now you can use a to enter your networks password – press start to enter.

Your Pi’s IP address will be listed below the Configure WiFi title. Select cancle to exit the WiFi configuration tool.

Uploading ROMs

The PiGRRL2 image is preinstalled a few games but you can remotely SSH into the Pi and upload ROMs.

Then, check out the Wiki on the RetroPie Setup page for how to upload ROMs:

Retropie – Uploading ROMs

Exiting ROMs

Retropie V3 changed how to exit out of ROMs/Emulators. Hold down the Pause & Start buttons at the same time to exit.

Remapping Controls

The buttons are premapped to work with NES and SNES emulators. If you’d like to remap the controls, you’ll need to modify the retrogame.c file.

Make sure the Raspberry Pi is configured for Wifi. Open up terminal and ssh into the Pi. (Default username: pi password:raspberry) Get into the Adafruit-Retrogame directory and edit the retrogame.c file.

Copy Code

ssh pi@10.1.10.XXX

cd Adafruit-Retrogame

sudo nano retrogame.c

  1. ssh pi@10.1.10.XXX
  2. cd Adafruit-Retrogame
  3. sudo nano retrogame.c

Modify ioTFT table

Scroll down to the part where you see the table called ioStandard (not the ioTFT table — that’s for other projects). Each line in brackets represents one pin on the GPIO header and a corresponding key code.

You can map the controls to any keyboard characters you’d like. The full list of available keycodes can be found in /usr/include/linux/input.h

Copy Code

ioStandard[] = {

// This pin/key table is used when the PiTFT isn’t found

// (using HDMI or composite instead), as with our original

// retro gaming guide.

// Input Output (from /usr/include/linux/input.h)

{ 4,  KEY_LEFT     }, // Joystick (4 pins)

{ 19, KEY_RIGHT    },

{ 16, KEY_UP       },

{ 26, KEY_DOWN     },

{ 14, KEY_LEFTCTRL }, // A/Fire/jump/primary/RED

{ 15, KEY_LEFTALT  }, // B/Bomb/secondary/YELLOW

{ 20, KEY_Z        }, // X/BLUE

{ 18, KEY_X        }, // Y/GREEN

{  5, KEY_SPACE    }, // Select

{  6, KEY_ENTER    }, // Start

{ 12, KEY_A        }, // L Shoulder

{ 13, KEY_S        }, // R Shoulder

{ 17, KEY_ESC      }, // Exit ROM PiTFT Button 1

{ 22, KEY_1        }, // PiTFT Button 2

{ 23, KEY_2        }, // PiTFT Button 3

{ 27, KEY_3        }, // PiTFT Button 4

  1. ioStandard[] = {
  2. // This pin/key table is used when the PiTFT isn’t found
  3. // (using HDMI or composite instead), as with our original
  4. // retro gaming guide.
  5. // Input Output (from /usr/include/linux/input.h)
  6. { 4, KEY_LEFT     }, // Joystick (4 pins)
  7. { 19, KEY_RIGHT },
  8. { 16, KEY_UP },
  9. { 26, KEY_DOWN },

10.{ 14, KEY_LEFTCTRL }, // A/Fire/jump/primary/RED

11.{ 15, KEY_LEFTALT  }, // B/Bomb/secondary/YELLOW

12.{ 20, KEY_Z        }, // X/BLUE

13.{ 18, KEY_X        }, // Y/GREEN

14.{  5, KEY_SPACE    }, // Select

15.{  6, KEY_ENTER    }, // Start

16.{ 12, KEY_A        }, // L Shoulder

17.{ 13, KEY_S        }, // R Shoulder

18.{ 17, KEY_ESC      }, // Exit ROM PiTFT Button 1

19.{ 22, KEY_1        }, // PiTFT Button 2

20.{ 23, KEY_2        }, // PiTFT Button 3

21.{ 27, KEY_3        }, // PiTFT Button 4

After editing, close and savet he file with the ctrl+x command. Then, compile, install the code and reboot with:

Copy Code

make retrogame

sudo mv retrogame /usr/local/bin

sudo reboot

  1. make retrogame
  2. sudo mv retrogame /usr/local/bin
  3. sudo reboot

Default Controls

Below is a table of the controls set to the GPIO. Use this as a reference if you ever need to revert when changing something.

 

LEFT Pin 7 GPIO 4
UP Pin 36 GPIO 16
RIGHT Pin 35 GPIO 19
DOWN Pin 37 GPIO 26
SELECT Pin 29 GPIO 5
START Pin 31 GPIO 6
A Pin 8 GPIO 14
B Pin 10 GPIO 15
X Pin 38 GPIO 20
Y Pin 12 GPIO 18
L Pin 32 GPIO 12
R Pin 33 GPIO 13

Gamepad

by Raspberry Pi

PiGRRL Gamepad Design

The gamepad was designed in EagleCAD and available to download and modify. It’s also a shared project on Oshpark.

PiGRRL Gamepad PCB Now In Stock!

PiGRRL-ButtonPCB.zip

Oshpark Project

PiGRRL Gamepad PCB

Let’s start assembly by putting the gamepad together. Gather up 10x 6mm tactile buttons and a 40pin IC box header.

Install IC Box Header

Insert the box header into the header labeled pin on the back of the gamepad PCB. Make sure the “notch” opening is pointing towards the “header” label. Secure it in place by adding mounting tack to the sides. Now we can secure the PCB to a Panavise to assist while soldering.

Solder IC Box Header

Flip the gamepad PCB over so the header pins are facing up. Now heat up the soldering iron and apply solder to each of the 40 pins on the header. Ensure the solder joints are clean with no cold solder joints or blobs. They should look like Hershey’s Kisses.

Prep 6mm Tactile Buttons

To make it easier to insert the buttons to the PCB, use a pair of flat plier to straighten out the four leads of each button.

Install 6mm Tactile Buttons

Insert each button into the through-hole spots on the gamepad PCB. Once installed, place your hand over the buttons and bend each of the leads inward so they “bite” onto the PCB – This will help hold them in place.

Solder Buttons to Gamepad PCB

Secure the gamepad PCB to a Panavise and solder up the buttons. Make sure solder joints are clean like you did on the pins of the IC box header.

Soldered Gamepad PCB

Here’s what the soldered gamepad will look like. Clean and Shiny!

Tap Gamepad PCB Mounting Holes

Now is a good time to tap the mounting holes of the gamepad PCB. We need to create threads on each hole so that it’s easier to mount to the case. You can use a #4-40 sized tap tool, or a #4-40 machine screw to do this, just make sure to fasten as straight as you can.

PiTFT Display

by Raspberry Pi

GPIO #18 – Backlighting

Flip the 2.8″ PiTFT display over and locate the pad with label #18. We need to cut this trace in order to properly use GPIO 18 (The Y Button is wired to this GPIO). By default, when GPIO 18 is triggered to ground, it will disable the LED backlighting on the display – Cutting the trace here will disable that feature.

Cut Trace #18

Use a hobby knife to mark in between the two pads and make sure it is deep enough to fullly break the trace.

That’s pretty much all we need to do to the PiTFT display!

PiCable

by Raspberry Pi

PiCable Resizing

In this section, we’ll resize the PiCable so it’s more manageable once installed inside the case. Its some what optional – you can skip it but if you find space too tight when closing the case, you may want to resize the PiCable.

The stock ribbon cable is 152.4mm(6″) in length, but I’ve found shortening it down to 108mm is just the right fit for the length we need.

Measure, Mark and Cut Ribbon Cable

Use a pair of calipers or measuring tape to get the desired length and mark the ribbon cable – Tape, marker or otherwise.

Cut Cable

With the cable split in two, set aside the longer end and keep the short end handy – we need to remove the connector from the end of it.

Removing Connector

Take a close look at the bottom of the connector. You’ll see two tiny holes near each side. Now take a look at the side. You’ll see the connector has a clip that is held in place with a notch. The goal here is to push that clip away from the notch so we can fit the top from the connector. You can fit something small and pointy such as a needle into the holes and push the clip away from the notch while pulling the top from the connector. When the clip is free, carefully pull the top part out. You’ll need to do this for both sides.

DO THIS SLOWLY – Be very careful not to break the clips off!

Peel Cable from Connector

With the top removed from the connector, carefully peel the ribbon cable from the connector. You should be left with the top part and the female connector. You can discard the ribbon cable.

Slowly peel the ribbon cable off – If any metal bits come out, carefully push them back into the connector.

Install Connector to Shortened Ribbon Cable

Grab the longer piece of the ribbon cable from earlier and lay the cut end over the top piece – The ribbon cable should nicely fit into the grooves of the top piece. Now grab the female connector and insert the top piece into back onto the connector. Make sure the arrow/triangle marking lines up with the side of the ribbon cable with the single white colored wire. Press the two pieces together and make sure the clips nicely fit into the sides of the connector.

Mash Top Piece to Connector

Unless you’re incredibly strong, you won’t be able to press the top piece back onto the connector because it’s hard to puncture the wire with the pointy teeth. The easiest way to do this is to use a rubber mallet to smash the pieces together. I recommend doing this on a hard surface (like on the floor) while holding the connector in place. Tap the top piece in sessions as straight as you can and be careful not to mash your fingers in the process.  If all goes well, the teeth from the connector will puncture the ribbon cable and close the two pieces back together.

Shortened Pi Ribbon Cable

And there you have it! A shortened Raspberry Pi Ribbon Cable. Bit of a hack, I know – But it really does make closing the case much easier in when we’re all done.

Amp & Speaker

by Raspberry Pi

Prep PAM8302 Amp

Secure the amp to a pair of helping third hands. Use the tip of the soldering iron to heat up solder and apply to the VIN, GND, A+, A–, + and pins. This will make it easier to solder wires to the pins.

Measure Wires for Amp and Speaker

We’ll need two pieces of 30AWG wires to connect the speaker to the amp. We recommend using silicone-coated stranded wire. Measure about 9cm in length for each wire. You don’t have to use different colored wires, but we recommend it to help tell them apart.

Strip and Tin Wires

Use a pair of wire strippers to remove about 4mm of insulation from the tips of each wire. To keep the tips of wires from fraying, use the tip of the soldering iron to apply solder. You can bundle the tips of wires together and use a pair of helping third hands to tin the tips at the same time.

Connect Wires to Speaker

Remove the wires connected to the speaker, they’re too short. We’ll need to connect the new pieces of wire we just prepped onto the solder pads of the speaker. Secure the speaker to the helping third hands – Since there’s a magnet on it, we can stick it to one of the grabber arms. Reference the photo to see which is positive (right pad) and negative (left pad). Next, slip on a piece of heat shrink tubing to group the two wires.

Connect Wires to Amp

Secure the amp back onto the helping third hands. Solder the positive wire from the speaker to the positive output pin on the amp, then, solder the negative wire to the negative output pin. Now we can proceed to work on the power circuit.

Power Circuit

by Raspberry Pi

Prep PowerBoost 1000C

Secure the PowerBoost to the pair of helping third hands. Apply solder to the following pins: Positive(+) out, Negative(–) out, EN, GND, G and 5V.

Measure Wires for PowerBoost and Amp

We’ll need about 3cm in length of 30AWG wire to connect the Amp to the PowerBoost 1000C. Use wire strippers to remove about 4mm of insulation from each tip and apply solder to tin them. Now secure the amp to the helping third hands and solder the wires to the Vin and Gnd pins.

Connect Amp to PowerBoost 1000C

Slip on a piece of heat shrink tubing to the wires connected to the Vin and Gnd pins. Next, secure the PowerBoost 1000C to the helping third hands. Solder the VIN wire from the amp to the 5V pin on the PowerBoost. Then, solder the Gnd wire from the amp to the G pin on the PowerBoost 1000C.

Connected Amp, Speaker and PowerBoost 1000C

Now our amplifier and speaker are wired up the PowerBoost 1000C.

Test fit Power Switch

Next up we need to connect our slide switch to the PowerBoost 1000C. First, we should do a test fit and see if our switch can fit into the case. Insert the switch into the switch cutout of the bottom case. Press it all the way through. If it’s too tight, you can use a filing tool to open it up.

Prep Slide Switch

Remove one of the legs from the slide switch. Secure the switch to the helping third hands and apply solder to the two remaining legs. Now we’ll need two new 30AWG wires that measure abot 7cm in length. Strip and tin the tips of each wire.

Connect Wires to Switch

Solder the two wires to the two leads of the slide switch. Add pieces of heat shrink tubing to each terminal to insulate them.

Connect Switch to PowerBoost 1000C

Now we need to solder the two wires to the EN and GND pins of the PowerBoost. The polarity doesn’t matter that much here. The switch can be installed in your prefered position later (ie. Up position is ON, Down position if OFF, it’s up too you!).

Wired Power Circuit

Now we have our amp, speaker, PowerBoost and slide switch all wired up and connected. Now’s a good time to take a break or continue!

Pi Audio

by Raspberry Pi

Prep Wires for Rasp Pi Audio

To connect the amp to the Raspberry Pi 2, we’ll need two wires. Cut two pieces of 30AWG wires to about 10cm in length. Strip and tin the tips of each wire.

Prep Raspberry Pi Audio Pins

On the bottom of the Raspberry Pi 2 PCB, locate the audio jack and inspect the three pin connected to the component.

Take note of the two circles highlighting the pins. The left pin (blue) will connect to the negative pin on the amp, while the right pin (red) connects to the positive pin. The middle pin does not need to be tinned (disregard the tinning in the photo).

Place the tip of the soldering iron over the pin and apply a small amount of solder. This will make connecting wires to the audio amp much easier.

Connect Wires to Raspberry Pi

Solder the new wires to the pins on the bottom of the Raspberry Pi. The negative(blue) wire connects to the left pin, while the positive(ed) wire connects to the right pin.

Connect Wires to Amp

Solder the negative (blue) wire to the A– pin on the amp, and the positive (red) wire to the A+ pin on the amp.

Shoulder Buttons

by Raspberry Pi

Prep 12mm Tactile Buttons

Next up we need to prepare two 12mm buttons for our shoulder L and R buttons.

Start by clipping two of the four legs from each button. Use a pair of flat pliers to flatten out the legs so they point out like in the photo. Secure the button to a pair of helping third hands and apply solder to each leg to tin them.

Prep Wires for Shoulder Buttons

We’ll need two sets of wires (four total) to measure about 14cm in length. Strip and tin the tips from each wire and thread them through one big piece of heat shrink tubing. This will keep the wires together in a neat bundle.

Connect Wires to Buttons

Solder wires to the legs of each button – Like before, use a pair of helping third hands to assist you. Polarity doesn’t matter too much on these buttons, but you can reference the photo.

Shoulder Buttons

OK, now we have our shoulder buttons prepped and ready to wire into our gamepad PCB. The next page will go through the final connections for our build.

Final Connections

by Raspberry Pi

Prep Wires for Gamepad PCB

Now we need to connect our gamepad PCB to the PowerBoost 1000C. We’ll need two 26AWG (which is thicker than the 30AWG we’ve been using so far) that’s about 14cm in length. Like before, strip and tin the ends of each wire. Then, let’s slip on a long piece of heat shrink tubing to keep the two wires together.

Prep Power Pins on Gamepad PCB

Locate the power label on the gamepad PCB and take note of the 5V and GND pins. Flip the gamepad PCB over and secure it to a Panavise to hold it in place. Apply solder to the two pins and solder in our two 26AWG wires. Use the photo to reference which wires goes were (red right, white left).

Connect Shoulder Buttons to Gamepad PCB

Locate the bumper labeled pins on the opposite side of the gamepad PCB. Referencing the photo, from the bottom up, the order of pins are: L button, R button, Ground, Ground. Once you’re familiar with the pin order, solder in the wires from the 12mm tactile buttons.

Connect Gamepad PCB to PowerBoost 1000C

Now we can solder in the two wires connected to the power pins of the gamepad PCB to the power output pin on the PowerBoost. The 5V wire from the gamepad connects to the positive pin on the PowerBoost, and the Ground wire from the gamepad connects to the negative pin on the PowerBoost.

Final Wired Components

OK, now all of our wires are connected, yay! Our components are connected and we’re ready to mount them to the case. In the next page, we’ll finish up our build!

Test Components

Its good practice to test all of our components before we start mounting things to the enclosure. Just as a sanity check, this ensures our components and wiring is all good and working. Go ahead and insert your microSD card into the Raspberry Pi – make sure the software is already installed and loaded.

Once thats sorted, plug in the JST connector from our battery into the PowerBoost 1000C. Next, plug the Pi ribbon cable into the PiTFT GPIO breakout and connect the other end to the PiGRRL Gamepad. Then, lay the PiTFT over the Raspberry Pi and press it down to connect together the GPIOs until they’re fully seated.

Now you can flip the slide switch to power on the circuit. The PiTFT should display the boot up scripts and launch RetroPi Emulationstation. Test out the DPad and buttons to see if everything works as expected. You should hear audio once a ROM is loaded. If you don’t have any loaded, reference the software page for uploading ROMs (You should be able to launch Quake from the Ports section).

If the audio isn’t working, or the buttons aren’t triggering, you’ll want to double check your wiring. If you are not sure how to use a multi-meter to check for any shorts and continuity, you may want to post up any specific issues in the Adafruit Forums, where our dedicated engineering support team can help you trouble shoot.

If everything works during your test, you should be safe to power down the Raspberry Pi and move onto the next page.

Mount Components

by Raspberry Pi

Install 2.8″ PiTFT

The first component we need mount to the case is the display screen. Before we do that, we’ll need to insert the PiTFT rubber buttons into the case. Place them over the cutouts from the inside of the top case and press them into place.

Now that the PiTFT button actuators are in place, lay the PiTFT screen over the case. Line up the mounting holes with the standoffs. Then, insert #4-40 3/8 sized machine screws into each mounting hole and fasten them into place. Be careful not to apply excess force, and fasten slowly.

 

DO NOT insert screws all the way through standoffs! Reference the photo to see required depth.

Install Gamepad PCB

Next up, let’s fasten #4-40 3/8 sized machine screws into the mounting holes on the corners of the gamepad PCB. Insert them from the top of the PCB so that they’re just barely protruding from the back side. This makes it easier to mount it to the standoffs in the case.

Now, insert the rubber D-Pad, Action Buttons and Pause/Start actuators into the cutouts of the top case part. Place the gamepad PCB over the standoffs and line them up with screws. Slowly (and carefully) fasten the screws into the standoffs. However, DO NOT fasten them all the way through! Only fasten them down until they’re deep enough to be lower than the height of the case. Please reference the photo – if screws are inserted too far, they could protrude through the surface of the case.

Connect Pi Cable

Next, we can install the Pi Cable to conenct the Gamepad PCB to the PiTFT display. The orientation of the Pi cable is important, so reference the photo and follow the markings.

Connected PiTFT and Gamepad

Now our PiTFT display and Gamepad PCB are mounted to the case. Press the buttons on the PiTFT and Gamepad to test them and see they feel good. If the buttons get stuck, the gamepad isn’t flush with the standoffs.

Install Speaker

Let’s go ahead and pop the speaker into the case. Lay the speaker over the cavity with the grill and press it down to snap it into place. The wire should be oriented in a position so it’s not in the way of the corner standoff.

Shoulder Button Mount

Next up we need to mount our two shoulder buttons to the shoulder mounting piece. To do that, we can use adhesives such as E600 or hotglue – But I’ve found using mounting tack works just fine (plus, it makes it adjustable if we don’t position it correctly the first time around). Add the tack to the back of the 12mm button and position them over the two recessed square spots on the mounting part. Press them down to stick them into place.

Shoulder Button (cont.)

Fasten four #2-56 3/8  into the standoffs of the shoulder mount. Screw them in until the barely protrude the standoff – this is going to make it easier to mount it to the case. Next, insert the rubber shoulder button actuator into the cutout of the bottom case part.

Install Shoulder Button Mount

Place the shoulder mount over the standoffs on the bottom case. Make sure the screws line up with the standoffs – they’re position / orientation specific. Once they’re lined up, carefully fasten the screws down. Here, you can fasten them all the way.

Install Switch

Now if a good time to insert the slide switch into the bottom case. Take note of the OFF position of the slide and install it to your liking (I prefer down is OFF, up is ON).

Install Raspberry Pi 2

Next up, lets mount the Pi to the bottom case. First, let’s fasten #4-40 3/8 sized machine screws to the two mount holes on the back of the bottom case part. Like the previous mounting standoffs, fasten the screws so they’re just barely protuding through the top of the standoffs. Then, lay the Pi over the standoffs and line up the screws with the mounting holes. Once in place, fasten the screws all the way until they’re flush with the surface of the case.

Mount PowerBoost 1000C

We’ll need two #4-40 3/8 machine screws to install the PowerBoost to the case. Fasten the screws to the two mounting holes of the PowerBoost – This will create threads. Once they’re made, lay the PowerBoost over the standoffs (close to the center bottom). Hold the PCB in place while fastening the screws to the standoffs. Don’t fasten these screws all the way through, just deep enough they go past the heigh of the case – similar to the other components.

Mount Amp

Insert and fasten a single #4-40 3/8 machine screw into the mounting hole of the amp PCB (should be the hole closest to the Adafruit logo) – This will help create the screw threads. Then, place the PCB over the standoffs and hole it down to fasten the screw into the standoff.

Test PowerBoost Circuit

Grab the lipo battery and plug in the JST connector to the JST port on the PowerBoost 1000C. Flip the slide switch on, and see if the circuit works! The blue LED indicates the battery is charged and the circuit is powered on.

If the LED doesn’t light up, you either have a defective PowerBoost, or a short. You’ll have to double check your wiring for short using a a multi-meter. If you have any issues or questions, please post it on support forums at http://ift.tt/KyleOV

Install Lipo Battery

Now we can install the 2000mAh lipo battery. A good spot for it is right behind the PiTFT display. To keep it in place, we can use a piece of gaffers tape. Try to keep it up closely against PiCable. Position it like in the photo, closer to the right side to avoid intersecting with some of the components from the Pi.

Almost Done!

In the next page, we’ll close up the case and finish the build!

Close It Up!

Join Parts

Now its time to close it all up. Before that, make sure all of the wires are inside the case. Wires should be neaty tucked and away of kinking from any of the components. Bring the top and bottom parts together and press the bottom part together. They should snap together. Then, inspect the edges and see if everything is in place – no wires hanging out. If it looks good, start pressing the top area close together – Slowly. If you can’t squeeze the top together, the battery could be in the way – be sure to check that and ensure its not in the way of any of the components.

Screw Bottom Portion

There’s two spots on the bottom that feature counter bore standoffs – insert a #2-56 3/8 machine screw and fasten them all the way. This will keep the bottom from coming part.

Insert microSD Card

Lastly, insert the microSD card if you haven’t already. You should have already burnt the PiGRRL image to the SD card. If not, go ahead and do that now!

Completed Build!

Hazzah! The PiGRRL 2 game console is finally finished and ready to play! Turn it on and RetroPie / Emulationstation should boot. The buttons are premapped to the expected controls. Reference the Software page for uploading ROMs and remapping controls.

Share Your Creation With Us!

If you built PiGRRL 2, we’d love to see it and share it with the community! Post a make on the thingiverse project page, share it on Instagram or twitter with hashtag #PiGRRL2.

Trouble Shooting

Audio Issues

Are you hearing a strange sound when powering up the Pi? The battery might be in a bad spot where it’s causing interference noise with the audio jack. If you remove the mounting screws from the Pi on the back of the bottom case, you can separate the two parts while it’s still powered.

Once they’re separated, reposition the battery and listen carefully to the noise. Position the battery in a spot where the noise is less prominent and mount it in place with tape or mounting tack.

The best location for the battery I’ve found is directly tucked inbetween the Raspberry Pi and the PiTFT display.

No Audio

Retropie has sound options built into the software. It may be muted or set to really low. To adjust it, press the “Start” button to bring up the Menu. Then, use the D-Pad to highlight “Sound Settings”. Use the “A” button to select and D-Pad to increase volume. Press the “B” button to exit.

Pressing Button Turns Off Screen

If the PiTFT display turns black when you press one of the gamepad buttons, the trace that controls the backlighting might need to be cut deeper. The label #18 on the back of the PiTFT is active by default – triggering it turns the display off. Make sure this trace is cut to deactivate this feature.

PiTFT Shows Only White Screen

If the PiTFT display only display a white screen, chances are the img wasn’t properly burnt to the SDcard. Be sure to follow the steps Easy SD Card Setup guide to correctly burn the image.

Custom Mute Function

If you’re interested in making one of the PiTFT buttons mute the audio, Martin O’Hanlon made a function.

Mute Function

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 assist you there.

Adafruit Forums

Extras

Safely Shutdown via Tactile Switch

Its a good idea to safely turn off your Pi with a good sudo shutdown -h now but that often means pulling out a keyboard or connecting to the console. With our kernel we added a cool module that will let you turn any GPIO into a power button. Since there’s a couple of tactile switches right there on the front, lets turn one into a power button. Press once to properly turn off the pi, press again to start it up. Isn’t that nice?

Read Tutorial

 

 

Share This:

View more at: http://yoursmart.mobi

About Author

Advertisement

Post a Comment

 
Top