After watching [Makers Muse's video](https://www.youtube.com/watch?v=MeYuIWGqquE) I decided, that I want to experiment with this too.
So I designed the box
...Show more from scratch in [OnShape](https://cad.onshape.com/documents/fbb72adfc2ac9efca3d3c3e9/w/ac9656d8fc39326f02a92bb0/e/cef2392ae5c7a1a47e7b5ea6).
____________
#The Design
I designed it parametric and and made the dimensions easily editable.
You can customize [it](https://cad.onshape.com/documents/fbb72adfc2ac9efca3d3c3e9/w/ac9656d8fc39326f02a92bb0/e/cef2392ae5c7a1a47e7b5ea6) yourself, if you use onshape:
* Hight
* Size of the buttons
* Tolerance between the cover and the bottom part
Also there are a few different versions, I added after printing it. It includes rounded corners, a higher bottom for more space and different tolerances.
__________
#Electronics
I used an cheap [Arduino Pro Micro ATmega 32U4](https://www.ebay.de/itm/Arduino-Pro-Micro-USB-komp-ATmega-32U4-5V-3-3V-16MHz-Leonardo-Mini-Entwicklu/253050640080?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649) , as these can act as a keyboard. (Links are in German)
**Edit**: _seanrhinehart_ over on [Reddit](https://www.reddit.com/r/3Dprinting/comments/9mre0f/customizable_arcade_button_box_copied_inspired_by/e7k9axo) recommended using
_"Teensy family of products, as they have integration into the Arduino IDE, and specific project types and examples for USB MIDI, keyboard, joystick and other HID applications. https://www.pjrc.com/store/teensy32.html"_
So, depending on your intended use, these might be a better choice.
The arcade buttons I used are [Sanwa OBSF-24](https://www.amazon.de/gp/product/B075DCB7LT/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1), wich have such a great feeling and sound to them!
__________
#Programm Code
I did the best I could and made it customizable. You can edit the keys / combinations / commands that should be send to your PC. Writing sentences is also possible. For that see the [Arduino Keyboard reference](https://www.arduino.cc/reference/en/language/functions/usb/keyboard/)
Also the used pins can be changed. Its a rather simple piece of code, so check it out and edit it :D
I added the program code to the files here in thingiverse.
In the current state pins 2,3,4,5,6,7,8,9 and 15 are assigned to *LEFT_ALT + * *1* to *9* as I did not have and shortcuts assigned to this combination yet. (If you do not want to edit anything just upload this file with the arduino IDE)
#UPDATE:
I now used my [tolerance test](https://www.thingiverse.com/thing:3169210) to figure out the best tolerance for a press-fit and its 0mm to 0.05mm. So it seems the Prusa MK3 prints really precise. If you own a good 3DP, just use the smallest tolerance and it should fit well.
________
##Edit / Commentary
* I now added a 4x4 version with 0.15mm and 0.05 tolerance. 0.15 seem to be to wide. ~~I hope~~ 0.05 fits well.
* ~~As I only printed the 0.2 tolerance version,~~ It would be great,