# DIY Bluetooth Gamepad

## Overview

https://www.youtube.com/watch?v=1k49VVNHvtU

In this project we’re building a DIY gamepad using the Bluefruit EZ-Key module and a 3D printed case.

The Bluefruit EZ-Key HID keyboard controller is a bluetooth breakout design for making DIY&nbsp;keyboards and game pads. It’s requires no&nbsp;programing and works with just about any trigger or push button. It takes up to 12 inputs and can be powered with any 3-16 VDC.

The Perma-Proto comes in different sizes which is perfect for making all sorts of projects. The ½ sized Perma-Proto breadboard is like a business card and which makes it perfect for making a small game controller **.**

![](https://cdn-learn.adafruit.com/assets/assets/000/023/068/medium800/gaming_hero-gamepad-two-1.jpg?1423856844)

## Prerequisite Guides

We recommend walking through the guides below - these will help you get familar with the components used in this project.

- [Introducing EZ-Key Bluefruit](../../../../introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard)
- [Adafruit Guide to Excelllent Soldering](../../../../adafruit-guide-excellent-soldering)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/274/medium800/gaming_two-pads-tab-b.jpg?1424193408)

## Expectations

This is a project that requires a bit of soldering and wiring - It's great for getting practice and well suited for makers with intermediate soldering skills. It's not the easiest 'first-time' beginners project, but it can be done if approached with patience, ambition and positivity. The 3D printing takes 2-3 hours and costs about $1.50 in material. If you don't have access to a 3D printer, check with your local hacker/maker space, library or community collage - they just might have one! Have fun, and happy making!

![](https://cdn-learn.adafruit.com/assets/assets/000/023/067/medium800/gaming_parts-comps-sm.jpg?1423856336)

## Parts

The parts are available in the Adafruit shop and listed on&nbsp;the right sidebar. Take a moment to look over each&nbsp;components.

- [Adafruit Perma-Proto Half-size breadboard PCB](https://www.adafruit.com/product/1535)
- [Bluefruit EZ-Key](https://www.adafruit.com/product/1535)
- [Micro Lipo w/Micro USB&nbsp;](https://www.adafruit.com/product/1904)
- [500mAh Lithium Polymer Battery](https://www.adafruit.com/product/1578)
- [6mm Buttons](https://www.adafruit.com/product/367)
- [12mm Buttons](https://www.adafruit.com/products/1119)
- [Slide switch](https://www.adafruit.com/product/805)

## Tools & Supplies

You'll need some hand tools, a soldering iron, 3D printer, wires and other maker tools and suppilies.&nbsp;

- [3D Printer](http://www.adafruit.com/category/128)
- [Soldering Iron](https://www.adafruit.com/categories/84)
- Wire [cutters](http://adafruit.com/products/152)&nbsp;+&nbsp;[strippers](https://adafruit.com/products/527)
- [30AWG Silicone Coated wire](https://adafruit.com/products/2051)
- [PLA](http://adafruit.com/products/2080)+[Semiflex](https://www.adafruit.com/products/2321) filament (3mm/1.75mm)
- [Panavise Jr](https://www.adafruit.com/product/151). +&nbsp;[Helping third hands](https://www.adafruit.com/product/291)
- [Heat Shrink Pack](https://adafruit.com/products/1649)
- Blue painters tape
- #4-40 3/8 flat Phillips machine screws

![](https://cdn-learn.adafruit.com/assets/assets/000/023/273/medium800/gaming_two-pads-a.jpg?1424193250)

# DIY Bluetooth Gamepad

## Circuit Diagram

![](https://cdn-learn.adafruit.com/assets/assets/000/022/879/medium800/gaming_circuit-diagram.png?1423077548)

Take a moment to review the components in the circuit diagram. This illustration is meant for&nbsp;referencing wired connections - The length of wire,&nbsp;position and size of components are not exact.&nbsp;

The 500mAh lithium polymer battery is connected to the microUSB lipo charger via JST cable. The Bluefruit EZ-Key&nbsp;has **VIN** pin connected to a slide switch. The **BAT** pin on the micro lipo charger is wired to the slide switch. The **ground** pin on the Bluefruit EZ-Key is wired to the **GND** &nbsp;pin on the micro lipo charger.&nbsp;

A 6mm tactile switch is wired to pins **3V** and **PB** on the Bluefruit EZ-Key to serve as a bluetooth pair button.

The 6mm and 12mm tactile button inputs are wired to input pins **0-7** on the Bluefruit EZ-Key. Each tactile button has ground connected to ground rails on the Perma-Proto PCB.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/072/medium800/gaming_gmaepad-button-pcb.jpg?1423858582)

The 1/2 sized Perma-proto breadboard PCB will house the 8 momentary push buttons. The right-side of each buttons will act as the ground connection. Each of the buttons right terminal are wired to the&nbsp;ground rail. The two ground rails are wired together. A single wire for the ground connection is wired to the Bluefruit EZ-Key. Each botton left terminal has a wired&nbsp;connection to the input pins.

The input connections on the Perma-Proto&nbsp;should&nbsp;preferably be made on the back of the PCB and close-to to terminal, not actually on the same through-hole.&nbsp;

Be very aware and cautious when wiring these connections. It's easy to get lost and loose your place/spot while soldering. Always double check your connections before you solder!

# DIY Bluetooth Gamepad

## 3D Printing

![](https://cdn-learn.adafruit.com/assets/assets/000/023/070/medium800/gaming_3d-parts-wider.jpg?1423857084)

## Parts & Settings
[Thingiverse Download](http://www.thingiverse.com/thing:686275)
[YouMagine Download](https://www.youmagine.com/designs/diy-bluetooth-gamepad)
[Cults3D Download](https://cults3d.com/en/game/diy-bluetooth-gamepad)
## Printing Parts

The enclosure parts can be printed in&nbsp;PLA or ABS filament. PLA material tends to have less warped corners. We printed out the controller buttons in TPE filament, which makes them&nbsp;flexible and rubbery. No support material is required for the parts.

STLs&nbsp;are oriented to "print-as-is". Our recommend slice settings work well with Printrbots and Orion delta machines.

# DIY Bluetooth Gamepad

## Power Circuit

![](https://cdn-learn.adafruit.com/assets/assets/000/023/093/medium800/gaming_switch-wires.jpg?1423874672)

## Prep Slide Switch Wires

Start off by prepairing the wiring for the slide switch. You'll need to measure two pieces of 30AWG silicone-coated stranded wires to about 10cm long. Strip both ends of the wires and apply solder to 'tin' the tips - This helps&nbsp;prevent&nbsp;the stranded wires from coming apart.&nbsp;

## Solder Wires to Slide switch

Secure the slide switch to a Panavise Jr. Secure&nbsp;one wire to the little grabber on the&nbsp;helping third hands with the end of the wire overlapping a&nbsp;terminal on the slide switch. With the wire and switch secured in place, apply solder to join them together. Lightly tug the wire and&nbsp;inspect for a good connection.&nbsp;Repeat this process for the next wire.&nbsp;Add pieces of heat shrink tubing to insultate the exposed connection.

![gaming_switch-secure.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/094/medium640/gaming_switch-secure.jpg?1423874756)

![gaming_switch-wire-soldered-a.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/095/medium640/gaming_switch-wire-soldered-a.jpg?1423874797)

![gaming_switch-wire-soldered-b.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/096/medium640/gaming_switch-wire-soldered-b.jpg?1423874828)

![gaming_switch-soldered_heatshrunk.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/097/medium640/gaming_switch-soldered_heatshrunk.jpg?1423874879)

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/023/270/medium800/gaming_jump-500mAh.jpg?1424187118)

## 500mAh Charging Rate

You'll want to up&nbsp;the charging rate on the&nbsp;Micro Lipo charger.&nbsp;To make it safe for all our batteries, we set the default rate to 100mA. You can easy up the charge rate to 500mA by connecting the solder jumper&nbsp;. This will allow the 500mAh lithium polymer battery to charge faster.&nbsp;Melt some solder onto the jumper to close it and set the new charge rate.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/100/medium800/gaming_power-circuit-switch-soldered.jpg?1423876260)

## Wire Slide Switch to Lipo Charger & Bluefruit EZ-Key

Secure the micro lipo charger PCB to panavise Jr. Apply solder to the **BAT** and **GND** pins. Now&nbsp;solder one of the wires from the slide switch to the **BAT** pin by heating up the pin and inserting the wire while the solder is hot and molten. Repeace this process for the **VIN** pin on the Bluefruit EZ-Key.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/101/medium800/gaming_power-circuit-ground-wire.jpg?1423876329)

## Prep Ground Wire

We'll need a wire to connect ground to the Micro Lipo charger. Measure and cut a piece of 30AWG silicone-coated stranded wire to about 5cm long. Strip and tin both ends of the wire.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/098/medium800/gaming_charger-ground_bat-soldered.jpg?1423875064)

## Wire Ground to Micro USB Lipo Charger

Secure the lipo charger&nbsp;PCB to the Panavise jr. Solder the ground wire into the **GND** pin. Double check connection by tugging on the wire, ensuring a solid connection. Remove from Panavise jr. when complete.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/099/medium800/gaming_ezkey-ground-soldered.jpg?1423876235)

## Wire Ground to Bluefruit EZ-Key

Secure the Bluefruit EZ-Key to the Panavise jr. Apply solder to the **G** pin and insert the remaining end of the ground wire while the solder is moltent. Double check connection is solid. Remove from Panavise jr. when complete.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/102/medium800/gaming_power-components-soldered.jpg?1423876412)

## Wired Power Circuit

Double check your work. The power circuit is now complete! Next step is to plug in the JST cable from the lithium polymer to the lipo charger.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/103/medium800/gaming_power-circuit-tested.jpg?1423876512)

## Test Power Circuit

Plug in the JST cable from the 500mAh battery to the JST port on the lipo charger. The slide switch will power on the circuit&nbsp;when&nbsp;the switch is set&nbsp;to the farthest terminal&nbsp;with the wire connection. If the LED lights on the Bluefruit EZ-Key, everything is good!

If the LED doesn't power on, double check your wiring. The battery may be drained, so check that too!

# DIY Bluetooth Gamepad

## Button Layout

![](https://cdn-learn.adafruit.com/assets/assets/000/023/089/medium800/gaming_permaproto-button-parts.jpg?1423874466)

## Prep Perma-Proto Half-size PCB

In this project, we're using the half-size perma-proto PCB. We'll add the buttons with the PCB oriented with the labels right-side up.&nbsp;&nbsp;

## Install tactile buttons

Add 6mm buttons to the Perma-Proto by inserting them into place with the terminals going into the through-holes.

If the terminals don't insert all the way, try bending them slightly until they fit into place.

Ensure the oriention of the buttons are correct - terminals should be pointing **up/down** as opposed to left/right. Polarity will matter&nbsp;once the ground and inputs are wired.

Two 12mm buttons go on the far right,&nbsp;acting as the "A" and "B" buttons.

![gaming_perma-add-buttons.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/080/medium640/gaming_perma-add-buttons.jpg?1423873454)

![gaming_perma-button-detail-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/081/medium640/gaming_perma-button-detail-2.jpg?1423873477)

![gaming_perma-add-buttons-terminals.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/082/medium640/gaming_perma-add-buttons-terminals.jpg?1423873495)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/083/medium800/gaming_perma-buttons-added.jpg?1423873604)

## Installed buttons

Double check your buttons are properly oriented and exactly in the right spot! You can follow the photo and circuit diagram to cross reference the button placement.

## Solder buttons to Perma-Proto

Once the buttons are installed, you'll need to solder them in place. Secure the Perma-Proto PCB to a Panavise Jr. and apply solder to the button terminals.

![gaming_soldered-buttons---front.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/086/medium640/gaming_soldered-buttons---front.jpg?1423874150)

![gaming_soldered-buttons---back.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/087/medium640/gaming_soldered-buttons---back.jpg?1423874147)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/085/medium800/gaming_saw-tools.jpg?1423873999)

## Saw bottom corners from Perma-Proto PCB

Next up, we'll need to remove the bottom left and right corners&nbsp;from the Perma-Proto PCB. I recommend using a rotary power tool like a DREMEL. You're going to&nbsp;need to do this in a well ventilated area. You're also going to need to wear safety glasses. I recommend using a 'thin cut' attachment.

![](https://cdn-learn.adafruit.com/assets/assets/000/023/088/medium800/gaming_sawed-pcb.jpg?1423874353)

## Trimmed Perma-Proto&nbsp;PCB

You're going to want to trim off the power+ground rails from pins **1-2** and **29-30**. We won't be using these in this project, so it's OK to remove them.&nbsp;

Info: 

# DIY Bluetooth Gamepad

## Wiring Buttons Ground

## Prep Ground Wires

Next up, we need create short wires that will connect all the buttons ground together in series. We'll need 8 pieces of 30AWG silicone-coated stranded wire that are about 5-10mm long. Strip both ends of each wire using wire strippers. Use the helping third hands to secure wires&nbsp;while tinning.

![gaming_button-ground-wire-length.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/107/medium640/gaming_button-ground-wire-length.jpg?1423881157)

![gaming_button-ground-wire-cut.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/108/medium640/gaming_button-ground-wire-cut.jpg?1423881171)

![gaming_button-ground-wire-strip.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/109/medium640/gaming_button-ground-wire-strip.jpg?1423881217)

![gaming_button-ground-wire-tin.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/111/medium640/gaming_button-ground-wire-tin.jpg?1423881320)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/106/medium800/gaming_but-ground-wire-set.jpg?1423880927)

## Ground Wires

Here's the full set of 30AWG silicone-coated wires all cut and tinned. They're short and thin!

![](https://cdn-learn.adafruit.com/assets/assets/000/023/112/medium800/gaming_button-ground-placement.jpg?1423881402)

## Button Ground Placement

Insert each ground wire into the through-holes before soldering into place. You'll want to assess the placement and double check the front and back of the PCB. In this project, I'm using the right side of the buttons terminals as the ground - so all of them need to be this way. Note, once the PCB is flipped over, the 'right-side' becomes the 'left-side'. Take this in consideration, as it can start getting confusing. I myself had to resolder a few times!

## Solder Ground Wires

Apply solder to the designated button input through-holes. Ensure the wire is soldered to the correct through-hole on the power/ground rail. Use tweezers to assist you while heating up solder and inserting wires. You'll need to connect the top and bottom ground rails together by wiring&nbsp;up a piece of wire.&nbsp;

When you've completed soldering ground wires, snip off any excess terminals/wires with flush&nbsp;diagonal cutters.

![gaming_button-ground-wire-tweezers.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/115/medium640/gaming_button-ground-wire-tweezers.jpg?1423881633)

![gaming_button-ground-wire-single-solder.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/116/medium640/gaming_button-ground-wire-single-solder.jpg?1423881650)

![gaming_snip-button-terminals.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/117/medium640/gaming_snip-button-terminals.jpg?1423881768)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/113/medium800/gaming_button-ground-wires-FINAL.jpg?1423881483)

## Soldered Ground Wires

And now we have ground wires! Double check your connections and ensure the polarity of each button is correct. If you managed to miss one, go back and heat up the pin, remove wire and try again. The Perma-Proto PCB has a high quality solder mask and copper through-holes, so you can do several attemps.&nbsp;

# DIY Bluetooth Gamepad

## Wiring Buttons Input

## Wire Perma-Proto&nbsp;PCB ground to Bluefruit EZ-Key ground

Next up, we're going to wire up a main ground connection from Perma-Proto&nbsp;to the Bluefruit EZ-Key. Secure the Perma-Proto to Panavise jr. Secure the Bluefruit EZ-Key to one of the grabbers on the helping third hands.

Measure up a wire to about 5cm, long enough to connect both components together. This wire will go into one of the available ground pins on the Perma-Proto.

![gaming_perma-ground-output.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/119/medium640/gaming_perma-ground-output.jpg?1423882776)

![gaming_ezkey-ground-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/120/medium640/gaming_ezkey-ground-soldered.jpg?1423882799)

## Wire Buttons to EZ-Key Inputs

Now we need to wire each button from the Perma-Proto to the input pins on the Bluefruit EZ-Key.

Measure and cut wires for the button inputs. These wires&nbsp;can be 5cm long. You'll need to do the same song and dance - strip both ends, apply solder to tin the tips. Apply solder to the pin and then insert the wire while solder is molten. You'll need to do this for all 8 buttons. Double check each pin and wire connection before soldering.&nbsp;You should be constaintly checking the back and front of the PCB, making sure you're soldering the correct pin.

![gaming_ezkey-first-input.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/121/medium640/gaming_ezkey-first-input.jpg?1423884027)

![gaming_perma-first-input.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/122/medium640/gaming_perma-first-input.jpg?1423884073)

![gaming_first-input.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/123/medium640/gaming_first-input.jpg?1423884105)

![gaming_2nd-input.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/124/medium640/gaming_2nd-input.jpg?1423884182)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/126/medium800/gaming_button-inputs-wired.jpg?1423884287)

## Wired Buttons to Bluefruit EZ-Key

And now we have the button inputs wired to the Bluefruit EZ-Key, yay! You'll want to, yet again, double check your connections&nbsp;to ensure everything is right.

## Wire BlueTooth Pair button to EZ-Key

We'll need an extra 6mm tactile button to serve as the bluetooth pair button. This will help you pair the Bluefruit EZ-Key&nbsp;to different devices. You'll need to measure and cut two piecess of 30AWG silicone-coated stranded wire. Apply heat shrink tubing to the exposed terminals to insulate the connections.

The two wires will need to connect to the **3V** and **BT** labeled pins on the Bluefruit EZ-Key.

![gaming_bt-button-pos-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/128/medium640/gaming_bt-button-pos-wire.jpg?1423884550)

![gaming_bt-button-neg-wire.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/129/medium640/gaming_bt-button-neg-wire.jpg?1423884541)

![gaming_bt-button-heatshrunk.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/130/medium640/gaming_bt-button-heatshrunk.jpg?1423884559)

![gaming_ezkey-bt-soldered.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/131/medium640/gaming_ezkey-bt-soldered.jpg?1423884602)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/133/medium800/gaming_finished-circuit.jpg?1423884644)

## Soldered Inputs to Bluefruit EZ-Key

And now we have a complete circuit!&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/023/136/medium800/gaming_bf-input-wires-shrunk.jpg?1423884741)

## Heat Shrink Input Wires

Let's go ahead and make the wiring from the button inputs a bit more organized. Cut&nbsp;a piece of heat shrink tubing and split it down the middle. Bundle up all of the input wires and&nbsp;wrap the piece of heat shrink around the wires. Apply a bit of heat to seal the heat shrink tubing.

Now we can mount the components to the enclosure!

# DIY Bluetooth Gamepad

## Assembly

## Add screws to bottom cover

Let's start by fastening two #4-40 3/8 flat Phillips machine screws into the two holes on the bottom cover part [not the holes in the corners]. Fasten until you see the screw thread slightly protrude the top of the stand-off - so, not all the way.

![gaming_pre-screw-bottom.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/137/medium640/gaming_pre-screw-bottom.jpg?1423885138)

![gaming_insert-first-two-screws.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/138/medium640/gaming_insert-first-two-screws.jpg?1423885157)

## Mount&nbsp;Micro USB Lipo Charger to bottom cover

Let's mount the micro USB lipo charger to the bottom cover. Place it over the stand-offs with the machine screw lined up with the mounting hole on the lipo charger PCB. Make sure the USB charging port is facing the outter edge. &nbsp;Hold the component firmly in place while you fasten the machine screw, all the way.

![gaming_fasten-charger.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/139/medium640/gaming_fasten-charger.jpg?1423885381)

![gaming_charger-mounted.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/140/medium640/gaming_charger-mounted.jpg?1423885397)

![gaming_charger-placement.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/141/medium640/gaming_charger-placement.jpg?1423885421)

## Mount Bluefruit EZ-Key to bottom cover

Next up, we'll need to mount the Bluefruit EZ-Key to the bottom cover. Let's do the same song and dace we just did for the lipo charger to the Bluefruit EZ-Key. Note, the mounting holes on the Bluefruit EZ-Key are just a bit smaller than the micro lipo charger, so you'll need to loosen the hole&nbsp;if the #4-40 machine screw doesn't go in. I used a sharp and pointy #4-40 screw to tap the hole - it just barely broke&nbsp;the PCB because the mounting hole is small, so do it&nbsp;slowly and carefully.

![gaming_fasten-ezkey.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/148/medium640/gaming_fasten-ezkey.jpg?1423885887)

![gaming_ezkey-placement.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/149/medium640/gaming_ezkey-placement.jpg?1423885915)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/150/medium800/gaming_ezkey_charger-mounted.jpg?1423886002)

## Mount Bluefruit EZ-Key to bottom cover

Now we have both components mounted to the bottom cover.

## Mount Bluetooth Pair button to bottom cover

There's a small platform for the bluetooth pair button to rest on. You may want to bend the leads apart. Add a dap of super glue to the top surface of the platform and then quickly place the button on top, with the button facing the outter edge. Allow glue to&nbsp;dry before proceeding.

&nbsp;

![gaming_glue-bt-part.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/144/medium640/gaming_glue-bt-part.jpg?1423885760)

![gaming_glue-bt-button.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/145/medium640/gaming_glue-bt-button.jpg?1423885780)

![gaming_glue-bt-finished.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/146/medium640/gaming_glue-bt-finished.jpg?1423885786)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/151/medium800/gaming_plug-in-battery.jpg?1423886970)

## Plug in 500mAh Lithium Polymer Battery

OK, now is a good time to&nbsp;plug in the JST cable from the battery to the JST port on the micro USB lipo charger.

## Mount Perma-Proto to bottom cover

Now we need to&nbsp;mount the Perma-Proto PCB to the bottom cover. Carefully coil the input wires underneath the PCB and place it on top of the two tall stand-offs. Line up the mount holes with the stand-offs and hold the PCB in place. Insert two #4-40 3/8 flat Phillips machine screws into the Perma-Proto until it's fastened to the stand offs. Fasten all the way until the PCB is&nbsp;completely secured.

![gaming_place-perma-ontop.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/152/medium640/gaming_place-perma-ontop.jpg?1423887267)

![gaming_fasten-perma.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/153/medium640/gaming_fasten-perma.jpg?1423887279)

![gaming_parts-mounted-to-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/154/medium640/gaming_parts-mounted-to-cover.jpg?1423887300)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/155/medium800/gaming_fit-battery-in-cover.jpg?1423887352)

## Insert 500mAh battery

We need to insert&nbsp;the lithium polymer in between the Perma-Proto PCB and the bottom cover. There should be enough clearance for the battery. You'll want to arrange the wires so that they aren't being kinked or scrunched up.

Danger: 

![](https://cdn-learn.adafruit.com/assets/assets/000/023/156/medium800/gaming_case-insert-rubbers.jpg?1423887647)

## Install Ninjaflex buttons into case

Before we insert the&nbsp;circuit into the top enclosure, add the ninjaflex rubbery buttons to the enclosure. These need to be in place before the circuit is installed.

## Insert circuit into case

Place the circuit into the enclosure&nbsp;at a 45-ish degree angle so that the Perma-Proto PCB goes underneath the clips on the inside fo the enclosure. Ensure the micro USB port on the&nbsp;lipo charger is facing the cut out on the encosure. Carefully slide it into the enclosure, but don't close it completely, yet!

![gaming_insert-circuit-into-case-1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/157/medium640/gaming_insert-circuit-into-case-1.jpg?1423887827)

![gaming_insert-circuit-into-case-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/158/medium640/gaming_insert-circuit-into-case-2.jpg?1423887862)

## Install slide switch into case

With the circuit half-way&nbsp;inserted, pull out the slide switch from the circuit and press it down into the cut out for the slide switch. The clips will hold the switch and prevent it from being pushed all the way inside the enclosure.

Once the slide switch is inserted in place, close up the bottom cover!

![gaming_install-switch-1.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/159/medium640/gaming_install-switch-1.jpg?1423887921)

![gaming_install-switch-2.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/160/medium640/gaming_install-switch-2.jpg?1423887956)

![gaming_install-switch-3.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/161/medium640/gaming_install-switch-3.jpg?1423887950)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/162/medium800/gaming_fasten-last-four-screws.jpg?1423888055)

## Fasten bottom cover to case

Insert four #4-40 3/8 flat Phillips machine screws to the corners of the bottom cover. Fasten all the way to tighten and completely close the enclosure.

## Add cover to top case

To finish off this project, you can add a cover to the front of the enclosure to change up color scheme. In this project I used a black color to add contrast to the pink enclosure. You can apply adhesives like E600 to the parts for a perminent seal, or you can use funtac like I did.

![gaming_add-tac-to-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/163/medium640/gaming_add-tac-to-cover.jpg?1423888210)

![gaming_add-colored-cover.jpg](https://cdn-learn.adafruit.com/assets/assets/000/023/164/medium640/gaming_add-colored-cover.jpg?1423888227)

![](https://cdn-learn.adafruit.com/assets/assets/000/023/168/medium800/gaming_hero_gamepad_4.jpg?1423951421)

## Charge Battery and Play!

And thats about it! The circuit is finished, project assembled and ready to play! Or is it? I recommend fully charging the 500mAh battery before playing. Plug in&nbsp;a micro USB cable to the lipo charger. The charger has an on-board LED indicator that lights&nbsp;green when the battery is fully charged. Red LED indicates the battery is charging.

## Changing Button Mapping

[Check the EZ-Key introduction guide](../../../../introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/pairing-to-bluefruit) for button mapping details!

![](https://cdn-learn.adafruit.com/assets/assets/000/023/271/medium800/gaming_two-pads-tab-a.jpg?1424193161)

## Pairing with Devices

A freshly baked, 'never-been-used' Bluefruit EZ-Key will automatically start searching for a device to pair with. Your bluetooth enabled device should pick up the EZ-Key within a minute. If you're having issues with pairing, or unfamiliar with&nbsp;pairing bluetooth devices, you should check out the pairing page on the [EZ-Key introduction guide](../../../../introducing-bluefruit-ez-key-diy-bluetooth-hid-keyboard/pairing-to-bluefruit).


## Featured Products

### PrintrBot Simple Metal 3D Printer - Black - Assembled

[PrintrBot Simple Metal 3D Printer - Black - Assembled](https://www.adafruit.com/product/1760)
New from Printrbot, the Metal Simple is a brand new rock solid, all metal, fully-assembled Printrbot Simple! As opposed to the [Printrbot Simple Kit](http://www.adafruit.com/products/1735), all of the laser cut wood parts have been replaced by rock solid metal and assembled. In...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1760)
[Related Guides to the Product](https://learn.adafruit.com/products/1760/guides)
### Adafruit Perma-Proto Half-sized Breadboard PCB - 3 Pack!

[Adafruit Perma-Proto Half-sized Breadboard PCB - 3 Pack!](https://www.adafruit.com/product/571)
Customers have asked us to carry basic perf-board, but we never liked the look of most basic perf: its always crummy quality, with pads that flake off and no labeling. Then we thought about how people **actually** prototype - usually starting with a solderless breadboard and then...

In Stock
[Buy Now](https://www.adafruit.com/product/571)
[Related Guides to the Product](https://learn.adafruit.com/products/571/guides)
### Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack

[Tactile Switch Buttons (12mm square, 6mm tall) x 10 pack](https://www.adafruit.com/product/1119)
Medium-sized clicky momentary switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The...

In Stock
[Buy Now](https://www.adafruit.com/product/1119)
[Related Guides to the Product](https://learn.adafruit.com/products/1119/guides)
### Tactile Button switch (6mm) x 20 pack

[Tactile Button switch (6mm) x 20 pack](https://www.adafruit.com/product/367)
Little clicky switches are standard input "buttons" on electronic projects. These work best in a PCB but [can be used on a solderless breadboard as shown in this tutorial](https://learn.adafruit.com/adafruit-arduino-lesson-6-digital-inputs?view=all). The pins are normally...

In Stock
[Buy Now](https://www.adafruit.com/product/367)
[Related Guides to the Product](https://learn.adafruit.com/products/367/guides)
### Breadboard-friendly SPDT Slide Switch

[Breadboard-friendly SPDT Slide Switch](https://www.adafruit.com/product/805)
These nice switches are perfect for use with breadboard and perfboard projects. They have 0.1" spacing and snap in nicely into a solderless breadboard. They're easy to switch no matter what size fingers you have, but not so easy that they'll get flipped by accident. Work great as...

In Stock
[Buy Now](https://www.adafruit.com/product/805)
[Related Guides to the Product](https://learn.adafruit.com/products/805/guides)
### SemiFlex - 1.75mm Diameter - Midnight Black - 0.5Kg

[SemiFlex - 1.75mm Diameter - Midnight Black - 0.5Kg](https://www.adafruit.com/product/2321)
Announcing the newest addition to the NinjaFlex family, **SemiFlex 3D Filament**! Just like the original NinjaFlex 3D Filament, SemiFlex material boasts flexibility, strength and reliability for your 3D printing projects. &nbsp;It's also slightly more rigid so you...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/2321)
[Related Guides to the Product](https://learn.adafruit.com/products/2321/guides)
### Filament for 3D Printers in Various Colors and Types

[Filament for 3D Printers in Various Colors and Types](https://www.adafruit.com/product/2080)
Having a 3D printer without filament is sort of like having a regular printer without paper or ink. &nbsp;And while a lot of printers come with some filament there's a good chance you've been printing up a storm and need something new. &nbsp;That's why we've started carrying a...

Out of Stock
[Buy Now](https://www.adafruit.com/product/2080)
[Related Guides to the Product](https://learn.adafruit.com/products/2080/guides)
### Bluefruit EZ-Key - 12 Input Bluetooth HID Keyboard Controller

[Bluefruit EZ-Key - 12 Input Bluetooth HID Keyboard Controller](https://www.adafruit.com/product/1535)
Create your own wireless Bluetooth keyboard controller in an hour with the Bluefruit EZ-Key: it's the fastest, easiest and bestest Bluetooth controller. We spent years learning how to develop our own custom Bluetooth firmware, and coupled with our own BT module hardware, we've created...

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

## Related Guides

- [SpaceX Helmet](https://learn.adafruit.com/spacex-helmet.md)
- [Fix-It Felix Jr. Hammer with Sound FX](https://learn.adafruit.com/fix-it-felix-jr-hammer.md)
- [3D Printed Glowing Mace Prop](https://learn.adafruit.com/3d-printed-glowing-mace-prop.md)
- [Ninja Timer: Giant 7-Segment Display](https://learn.adafruit.com/ninja-timer-giant-7-segment-display.md)
- [NeoPixel Flame Torch](https://learn.adafruit.com/neopixel-flame-torch.md)
- [Pro Trinket as a USB HID Mouse](https://learn.adafruit.com/pro-trinket-usb-hid-mouse.md)
- [Breadboards for Beginners](https://learn.adafruit.com/breadboards-for-beginners.md)
- [Collin's Lab: Breadboards & Perfboards](https://learn.adafruit.com/collins-lab-breadboards-and-perfboards.md)
- [Green Goblin Pumpkin CPB Ornament](https://learn.adafruit.com/green-goblin-pumpkin-cpb-ornament.md)
- [Overwatch Prop Gun: Lucio's Blaster Pt. 3](https://learn.adafruit.com/overwatch-prop-gun-lucios-blaster-pt-3.md)
- [Reverse Geocache Box](https://learn.adafruit.com/reverse-geocache-engagement-box.md)
- [Battery Powering Wearable Electronics](https://learn.adafruit.com/battery-powering-wearable-electronics.md)
- [PiGRRL - Raspberry Pi Gameboy](https://learn.adafruit.com/pigrrl-raspberry-pi-gameboy.md)
- [Secret Knock Activated Drawer Lock](https://learn.adafruit.com/secret-knock-activated-drawer-lock.md)
- [Energy Budgets](https://learn.adafruit.com/energy-budgets.md)
