Raspberry Pi Inside Pandora's Box Arcade SuperGun System




Introduction: Raspberry Pi Inside Pandora's Box Arcade SuperGun System

** NOTE: I have another Instructable HERE, that shows you how to remove the PB circuit board and replace RPi entirely if you don't want to have both installed. It's simpler, depends what you want. **

These Pandora's Box arcade systems are great in that they have hundreds of arcade games builtin but they are missing a lot of games for home consoles. Using the Pandora's Box controls as a USB controller for the RaspberryPi, allows access to more emulators and games.

In this instructable, I'm going to show you how I installed a Raspberry Pi inside the Pandora's Box arcade system while still keeping the Pandora's Box arcade board with the 800 builtin games functional. Essentially, they will be 2 separate systems with their own power and video output but sharing the same controls. Please watch the youtube video for more details.

800 in 1 Backlit Arcade Console


Step 1: Stuff Needed

800 in 1 Backlit Arcade Console

Raspberry Pi 3

HDMI/USB Mount Cable

USB/3.5mm Mount cable

USB OTG cable

USB A male to male (short)

USB A male to male (long)

USB power adapter

Step 2: Drilling Holes

Drill two 30mm for the HDMI, USB, and power.. The extension cables are designed for fitting into 29-30mm holes.

One of the extensions has an HDMI and USB socket which is for video output to the monitor and connecting power for the RPi. Another extension will ahve the headphone jack and a USB to connect the PB controls to the RPi.

The metal is pretty thin, so it shouldn't be too hard to drill. Make sure you find a good place to drill your holes. Test fit and mark where the extension mounts should go to ensure It's not blocking anything or preventing you from closing the lid.

Use a center punch to mark the start of the hole so your drill bit doesn't wander. Then drill a small pilot hole. You can then use the hole saw. The hole doesn't have to be perfect or exactly 30mm since there is a lip on the extensions that should cover up any inperfections. Remember to always wear safety goggles when using any power tools. When drilling go at a slower speed and pulsate drill and it'll cut through easily.

It's also a good idea to vacuum the shavings as you go

Use a file to remove any burrs

Step 3: Installing Recalbox

Download the latest release of Recalbox and write to a 8GB-16GB microSD card with either Etcher or Win32DiskImager.

Recalbox for Raspberry Pi 1 / 2 / 3

Win32 Disk Imager


Step 4: Mounting Raspberry Pi

To mount the raspberry pi into the enclosure, use some 3M dual lock. It's basically like velcro in that it helps keep the RPi place and at the same time, it prevents the metal from the enclosure from shorting the contacts under the RPi board.

Step 5: Installing Extensions

1st extension cable

Plug the HDMI into the RPi Plug USB into RPi (this will be used to connect to the pandora's box)

2nd extension cable Plug 3.5mm cable into RPi
Plug USB into OTG cable which converts the USB A down to a microUSB plug which can then be plugged into the RPi and used as power

Label all the ports to avoid confusion.

Step 6: Power Button for Raspberry Pi

Next we'll configure the P2 pause button to used as power button,. To do this, we're going to wire the pause button to GPIO pins 5 &6 on the RPi. I'm using a couple of bread board wires and extending them so they can reach the RPi. I also put on some quick disconnects at the ends to plug up to the buttons. Plug the breadboard end to pins 5/6 on the RPi GPIO ports.

We have to make a change in Recalbox to shutdown/turn on RPi when the button is pressed. Go to the WEBUI of Recalbox, you can find the IP from the network settings of Recalbox. Go to the configuration settings.

Uncomment this line:


Now when you push the pause button, it'll make cause the RPi to shutdown. Pressing the button when it's off will power it up gracefully.

Step 7: Dual Input From Single USB Cable

When you plug the PB controls to the RPi, it'll show up as 1 gamepad. This is because the OS doesn't know they are actually separate gamepads coming from the single USB cable.

You have to modify the /boot/cmdline.txt and add an usbhid.quirks entry to let the OS know to treat the PB controls as 2 separate controllers. You have to add usbhid.quirks=0x16c0:0x05e0:0x040 to the end of cmdline.txt file. This could be different for you if you don't have the same arcade system as mine.

If you have the exact same PB arcade system as mine, you can just add this usbhid.quirks=0x16c0:0x05e0:0x040

If not:

ssh into the RPi,

- ssh root@
- log in as root / recalboxroot
- Don't plug in the pandora's box up to the RPi yet
- run LSUSB to list the current USB devices - plug in your PB, then run LSUSB again, now you'll see a new entry - Write down those # and put them in the /boot/cmdline.txt of the RPi

After adding the usbhid.quirks entry, you can configure controls again and the RPi should see 2 gamepads now.

Step 8: Testing

You can now test it out. Plug HDMI from monitor into HDMI port connect the USB from RPi to Pandora's box bottom USB port with a USBA male2male, preferrably a short one.

To power the RPI, we'll use another USB A male2male and plug it in the other USB port. Then plug that into a 5V usb adapter. This is what powers the RPi

Step 9: Finale

It's really nice to be able to have both the Raspberry Pi with Recalbox and the Pandora's Box arcade games in the same enclosure. Watch my youtube video to get more details since it's hard to explain everything in words.

800 in 1 Backlit Arcade Console

Be the First to Share


    • Back to School: Student Design Challenge

      Back to School: Student Design Challenge
    • Crayons Challenge

      Crayons Challenge
    • Halloween Contest

      Halloween Contest



    1 year ago


    Thank you very much for your tutorial!

    I have a Pandora Box 3d that I use as a controllers for my RetroPie installation, in "game pad mode" through the USB cable.
    Initially I used this on my Raspberry Pi 4 on the Recall Box, and it was detected very fast, out of the box, as two controllers "MBX n200" configured (I do not know what this means)
    When I moved to Retro Pi, as I want this to be my main installation, it detected only one MBX n200 for the two Pandora box joysticks and buttons.
    After searching on the net, I found your trick to add in /boot/cmdline.txt the Pandora Box ID
    Step 7 in your guide.

    It did the trick, worked to have this recognized as two controllers, I configured them, but they work only in the menu, not in the games :(!

    Could you give me some directions, what should I try ?

    I am very surprised that Recall Box is recognizing this flawlessly out of the box and RetroPie, NOT :(

    Hey there, been following this project for awhile but only just got round to actually doing it. I hope you see this as id like to ask 2 things,
    1. Using your connections did you ever get the low power lighting bolt logo whilst using recalbox? (not sure if its the length of the 3 power cables attached causing this) and..
    2. Did your fightstick automatically work with recalbox (player 1) or did you have to do all that script for it to recognis the fightsick? (or was the script just to recognise player 2 controls)

    Thanks x (a fan of yours!)


    3 years ago

    I had the same question as marco


    Reply 3 years ago

    The USB device from lbusb will be two 4-digit hex codes, and you add the :0x040 as the 'quirk' to use for that device. So if lbusb returns 0314:0119 then use usbhid.quirks=0x0314:0x0119:0x040


    Question 4 years ago on Step 7

    Hi I tried to modify the quirks. After the lbusb command the output is 0314:0119.
    I only have 2 numbers and you use 3. Do I have to translate them into HEX? And what is the third number? By the way my recalbox is already sensing 2 different gamepads but it won’t let me configure them (no response while I keep a button pressed). Thank you for any help you should provide. Best regards. Marco


    Question 4 years ago

    I already have Retropie set up on my raspberry pi. I haven't heard of recalbox before, but after some research it looks like they are very similar. Do you know if the code for the power button and dual controllers on a single usb will be the same? If not, and I know this is probably a stretch, but would you happen to know what code I would need to add to do that?


    Answer 4 years ago

    Recalbox and Retropi is similar however, from some people have tried this modification, some of them ran into issues when using RetroPi and the Pandora's boxes as USB controllers. Recalbox works fine though.

    You may look at my other instructable/video where it uses GPIO instead which will work regardless of Recalbox or RetroPi. Both of them will support GPIO properly.

    Here's my other instructable:


    5 years ago

    why not make tke controlls from a wireless keybord... place the RPI behind the screen of your choice, with the wireless dongle...
    you can then transport your games to any screen with hdmi and have wireless remotes...
    just a thought...


    Reply 5 years ago

    That's definitely an option. This RPi inside Pandora box mod is so everything is contained in one single box.