pocket depth: 5cm will house the arduino, the buttons, and the solder/lead pins connecting them (4cm is close, so 5 gives some wiggle) pocket height (Y): 60mm would clear the arduino and the buttons pocket width (X): tricky because of USB connector. minimum 60mm for the buttons 75mm for the arduino (no connector) top panel is 100mm X, 76.2mm Y make the wall 5mm, so that means pocket is 90mm X, 66.2mm Y, 50mm Z if bottom is also 5mm, then total Z is 55mm Next trick is to figure out the 15.7mm diameter hole for the USB connector if made square 12mm Y, 12mm Z