MakeCode Arcade Shoebox Controller
Want to create your very own DIY Arcade Video Game experience with fun joysticks and buttons? It’s easier than you think! Follow these instructions to use a shoebox as your controller for Arcade games that you play on a computer. Note that these instructions will also work if you want to create a full Arcade cabinet, but instead of using a Raspberry Pi, use a computer to power it.
Materials
- Computer – 1 USB port (or 2 USB ports for 2-player games), internet connection
- Shoebox
- 2nd Shoebox (optional) – if you want to be able to support 2-player games
- 1 joystick, 4 buttons (or 2 joysticks, 6 buttons for 2 shoeboxes) with JST cables and USB – note that you usually order these in an Arcade Game Kit. We used the Hikig 2-Player LED Arcade DIY Kit for USB which is $45 on Amazon.
- Pen knife
- 4 small zip ties (8 for 2 shoeboxes)
- Pen or Pencil
- Decorating materials – paint, markers, glitter, stickers, etc.
Instructions
Map out the Controls
- With a Pen or Pencil, draw out where you would like to place the Joystick and buttons on the top of the shoebox.
- You will need space for:
- Joystick
- A button
- B button
- Menu button
- Reset button
- Here is how we mapped out our controller panel:
Determine orientation of your Joystick
- Connect the JST cable between the Joystick and the USB encoder board – you may want to refer to the documentation in your kit to figure out which port to connect to. For our kit, there was only 1 port the right size for the joystick cable.
- Attach the USB cable between the encoder board and your computer.
- Open up a MakeCode Arcade game in the browser – i.e. https://makecode.com/_XsCCsy5L1eXr.
- Use the Joystick to move the player around the screen and mark the correct directions on the Joystick.
Install Joystick and buttons on shoebox
- Disconnect the Joystick from the cable and make sure the black plastic washer and Joystick knob handle are removed.
- Using the pen knife cut out a small hole in the top of the shoebox to fit the Joystick handle through.
- From inside the box, push the Joystick handle through the hole.
- From outside the box, drop the large washer and twist the top ball onto the Joystick handle threads.
- On the inside of the box, use the pen knife to cut 2 holes in each of the 4 corners of the Joystick mount plate – one through the plate opening, and one on the outside edge of the plate.
- Make sure the orientation of the Joystick is correct (up is at the top).
- Thread a zip tie through each of these holes securing the Joystick plate to the top of the box.
- Using the pen knife, cut holes for the buttons in the top of the box – make sure you don’t cut the holes too big so the buttons don’t fall through.
- Push the buttons through the top of the box.
- Then from the inside of the box, turn the black nuts onto the threads at the bottom of the buttons to secure them.
Install USB Encoder Board in shoebox
- Using the pen knife, make a small hole in the front side of the Shoebox and thread the USB cable through it.
- Place the USB encoder board inside the shoebox.
- Connect the USB encoder board to the USB cable.
Wire the Joystick and buttons to the USB Encoder Board
Different kits may have different ports, so you should check the wiring diagram that comes with your kit. We used the following connection diagram for the Hikig 2-Player Arcade Kit:
- Connect the Joystick JST cable between the Joystick and the USB encoder board.
- Connect a JST cable between button A and the first pin (K1 in our kit) on the USB encoder board.
- Connect a JST cable between button B and the second pin (K2 in our kit) on the USB encoder board.
- Connect a JST cable between the Reset button and the K11 pin (2nd port from the end in our kit) on the USB encoder board.
- Connect a JST cable between the Menu button and the Start pin (3rd port from the end in our kit) on the USB encoder board.
Test
- Connect the USB cable to your computer and open up a MakeCode Arcade game in the browser – i.e. https://makecode.com/_XsCCsy5L1eXr.
- Make sure the Joystick and the buttons all work as expected. If not, troubleshoot by attaching different wires to different pins on the USB encoder board.
Decorate!
- Use Paint, Markers, Glitter, Tin Foil, Stickers or anything else to really customize your Arcade controller and make it your own!
Player Two Shoebox Controller (optional):
If you want to use 2 Arcade controllers for 2-player games, create a second shoebox controller. You will follow the same directions as above for the single player controller, but don’t include a Reset or Menu button. Connect both shoebox controller USB cables to your computer and open a 2-Player MakeCode Arcade game in the browser. Note that whichever controller is connected to the computer first will be the Player 1 controller.