simplyRetro Z5 ( RetroPie / Emulation handheld )
prusaprinters
<p><a href="https://github.com/geaz/simplyRetro-Z5">https://github.com/geaz/simplyRetro-Z5</a></p><p>This repository contains everything to rebuild the <i>simplyRetro Z5</i>.</p><p>The<i>Z5</i> is my first attempt to build a custom emulation handheld from scratch.</p><p>It runs a custom linux image for emulation to accomplish a fast boot time (10 seconds).</p><p>But you are also able to use Retropie or Lakka for example (in both case you will loose the on screen battery indicator).</p><p>You can find a small video of it in action on <a href="https://www.youtube.com/watch?v=HvgBQ3S0Ykw">Youtube</a>.</p><h3>Warning</h3><p>This is my first self designed retro handheld. So please be aware that it could contain some flaws. Furthermore you should be able to handle a soldering iron and you have to understand basic circuits, if you want to rebuild the Z5. Please make sure that you understand the steps in the build section, before you decide to rebuild the handheld.</p><h3>Features</h3><ul><li>Custom 3D printed shell</li><li>Custom linux distribution for fast boot (<a href="https://imgur.com/a/TFRGUFs">from button press to emulationstation in 10 seconds</a>)</li><li>Single press power on and long press power off</li><li>Battery Monitor icon and safe shutdown</li><li>Stereo Speakers, Audio Jack and Volume Control</li><li>12 Buttons</li><li>5 inch display</li><li>Raspberry Pi Zero powered</li></ul><p>The Pi Zero and the 5 inch display are the reason for the naming<i>Z5</i>.</p><h3>3D Model</h3><p>The model was designed in Fusion360. If you want to change the design, you can find the whole model <a href="https://a360.co/2GZACGc">here</a>. The STLs are in the Thingiverse downloads and the Github repository. Furthermore there are exported STEP and Fusion360 Archive Files ready to download.</p><h3>BOM</h3><ul><li>3D Printed Shell (STL folder for models)</li><li><a href="https://www.elecrow.com/5-inch-hdmi-800-x-480-capacitive-touch-lcd-display-for-raspberry-pi-pc-sony-ps4.html">Elecrow 5 inch Display</a> (If you want to use another display, make sure to adapt the shell)</li><li><a href="https://www.adafruit.com/product/3101">12x Adafruit Softbuttons</a></li><li>1x 5mm Tactile Button for the Power Button</li><li><a href="https://www.adafruit.com/product/2465">1x Powerboost 1000c</a></li><li><a href="https://www.reichelt.de/kleinlautsprecher-k-34-wp-1w-8ohm-vis-2981-p204642.html?&trstct=pos_0">2x Speaker</a> (or similar, just make sure they are 1W, 8Ohm and have a diameter of 3.4 cm)</li><li><a href="https://de.aliexpress.com/item/FPV-Micro-HDMI-Mini-HDMI-90-grad-Adapter-5-cm-100-cm-FPC-Band-Flache-Hdmi/32833580742.html?spm=a2g0x.search0104.3.1.562f67acdeKi5D&transAbTest=ae803_3&ws_ab_test=searchweb0_0%2Csearchweb201602_3_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103%2Csearchweb201603_53%2CppcSwitch_0&algo_pvid=6dcfe960-6b93-4bfb-8be8-ffbdc195707f&algo_expid=6dcfe960-6b93-4bfb-8be8-ffbdc195707f-0">FPV HDMI Adapter</a> (1xA1, 1xC1 and 1x5cm Cable)</li><li>1x MCP3008 ADC</li><li>1x Volume potentiometer (I took a GameBoy Color replacement part)</li><li><a href="https://de.aliexpress.com/item/Hot-10-Pcs-5-Pin-3-5mm-Weibliche-Audio-Stereo-Jack-Buchse-PJ-307-PJ307-3F07/32955627960.html?spm=a2g0x.search0104.3.47.2f06a574KeRuaT&transAbTest=ae803_3&ws_ab_test=searchweb0_0%2Csearchweb201602_3_10065_10068_10547_319_317_10548_10696_10084_453_10083_454_10618_10304_10307_10820_10821_537_10302_536_10843_10059_10884_10887_321_322_10103%2Csearchweb201603_53%2CppcSwitch_0&algo_pvid=bd63449e-32af-4e5b-b0f5-bb676c2d5100&algo_expid=bd63449e-32af-4e5b-b0f5-bb676c2d5100-6">1x Jack Plug PJ-307</a></li><li>1x PAM8403 (Audio AMP)</li><li>1x 2500 mAh LiPo (<a href="https://www.ebay.de/itm/LiPo-Akku-Lithium-Ion-Polymer-Batterie-3-7V-2500mAh-JST-PH-Connector-ZB07008/283213408497?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649">like this one</a>)</li><li>Stripboard (if you want to use the same circuits as me for the battery monitoring and safe shutdown)</li><li>Some M3x8mm screws (Mounts and Shell), M2.5x4mm screws (Electronics) and one M2.5x8mm screw (Top screw on the bottom shell, has to be smaller to get it fit)</li><li>Resistors (6,8K, 10K, 100K)</li><li>1N4001 Diodes</li><li>Velcro or double-faced adhesive tape to attach the PAM and circuits</li><li>Wire :)</li></ul><h3>Alternative BOMs</h3><p>Thanks to <a href="/AxelNobody/about">AxelNobody</a>! He created a <a href="https://github.com/geaz/simplyRetro-Z5/blob/master/BOM%20-%20US.md">alternative BOM</a> with shop links for US citizens.</p><h3>Build</h3><p>This chapter should help you to build the Z5. If you are missing something, or think it could be phrased better, you are free to create a<i>Pull Request</i> on Github. This way, together we can create a guide which is easy to understand! I will always keep the description on Thingiverse in sync to the<i>Readme</i> on Github.</p><p><strong>Again, please be aware, that you should have basic soldering skills and you should be able to understand basic circuits. Make sure that you understand the steps in the build section, before you decide to rebuild the handheld.</strong></p><p>I hope you got all your parts. Now it is time to assemble the Z5.</p><h3>Buttons</h3><p>This part is easy. Take all your printed button mounts and insert the<i>Adafruit SoftButtons</i> into them. It should be a tight fit. Use a pliers, if necessary and bend one of the four button pins to prevent it to fell out from the mount. Insert the printed DPad and buttons into the upper shell and screw the populated button mounts on top.<strong>On the DPad please don't insert the upper right screw, and on the button mount the upper left screw, yet. These holes will be used to fasten the bottom half of the shell.</strong> The<i>Shoulder Buttons</i> and<i>Shoulder Button Mounts</i> will be inserted into the shell before it gets closed.</p><h3>Display</h3><p><strong>You have to install the display rotated by 180°</strong>. Otherwise we will get space problems with the HDMI connectors.</p><p>To fit the display into the shell, you have to cut off half of the bottom display mounts.</p><p>Please use the following two pictures as a reference. <strong>Make sure you understand how to place the display, in the correct orientation, into the shell BEFORE you cut the mounts!</strong></p><p>If your display is fitting into the top shell, you can remove it to glue the<i>Display Frame</i> to the upper shell. I used super glue.<strong>Give it enough time to dry before you proceed. Otherwise you will ruin your display!</strong></p><h3>Electronic Mount</h3><p>Now take the<i>Electronic Mount</i> and use for example a bit felt at the edge without mount holes (see the following picture). The felt just acts as a spacer between the display PCB and the<i>Electronic Mount</i>.</p><p>Now take the printed spacers and two M3x8mm screws and attach the mount to the display.</p><h3>Power</h3><p>To power the Raspberry Pi Zero through the Powerboost 1000C, I soldered the PowerBoost to the USB test pads of the Raspberry Pi.</p><p>I used the same pads to solder a short Micro USB cable (I used the one which came with the display) to power the display. Unfortunately I don't have a picture of this.</p><p>Just search for the pinout of a micro USB adapter. You just need the<i>Vcc</i> and<i>GND</i>. If you are not sure which cable is which on your adapter, try to measure it with a multimeter.</p><p>Now you need to do your first little circuit for this project. The circuit to power the Pi on and off.</p><p>You will need a piece of the Stripboard, the single tactile switch, three diodes, 1x100k and 2x10k resistors.</p><p>Before you start soldering, you should do the needed cuts on the Stripboard.</p><p>The circuit needs a bit of explanation. If the switch is not pressed, the<i>Enable</i> pin of the<i>PowerBoost</i> gets pulled to ground. This way the<i>PowerBoost</i> will be disabled when a battery is connected. As soon as the switch gets pressed, the<i>Battery</i> pin of the<i>PowerBoost</i> gets connected to the<i>Enabled</i> pin. This will enable the<i>PowerBoost</i>. Because we connected GPIO 7 of the Pi to the board the<i>Enable</i> pin will stay<i>HIGH</i> when the switch gets released and the board will stay powered on. You are able to use another pin than GPIO 7, but you have to make sure that you use a pin which is<i>HIGH</i> per default.</p><p>GPIO 19 is used as the power off pin. The<i>simplyRetro Z5</i> custom distribution contains a small tool which listens to GPIO 19. If this pin gets<i>HIGH</i> and stays<i>HIGH</i> for a small amount of time a shutdown of the Pi gets initiated.</p><p>Because of the line</p><p><i>dtoverlay=gpio-poweroff,gpiopin=7,active_low=1</i></p><p>in the config.txt, GPIO 7 will go<i>LOW</i>, if the Pi is shutdown. This disables the<i>PowerBoost</i> again.</p><p>Attach the switch into the bottom of the top shell half. I took a little drop of super glue to fix it in place.</p><p>Because the battery monitor and the controller also need several ground wires, I cutted an additional piece of Stripboard of 1x5 in size and used this as a single ground to the Pi.</p><h3>Controls</h3><p>The<i>simplyRetro Z5</i> uses<i>Adafruits Retrogame</i> for its controller inputs.</p><p>To make the softbuttons work, each button has to be connected to ground and one pin on the Raspberry Pi.</p><p>I connected the ground pins on the DPad together and used just one ground pin on the Raspberry Pi for all four buttons.</p><p>I did the same for the four buttons on the right and the<i>Start</i>,<i>Select</i> button. You could also use a piece of Stripboard to just use one</p><p>ground pin of the Raspberry Pi and connect all ground wires of the buttons just to this Stripboard.</p><p>If you want to use the exact same configuration for<i>Retrogame</i> you can use the following pins.</p><p>LEFT 16 # Joypad left RIGHT 17 # Joypad right DOWN 4 # Joypad down UP 2 # Joypad up Z 23 # 'B' button X 24 # 'A' button A 0 # 'Y' button S 25 # 'X' button Q 26 # Left shoulder button W 5 # Right shoulder button SPACE 22 # 'Select' button ENTER 27 # 'Start' button</p><h3>Audio</h3><p>The<i>simyplRetro Z5</i> takes the audio source directly from the HDMI display. Use a piece of the Stripboard (1x4 in size) as the ground connection. <strong>Don't connect the ground of the PAM! Otherwise you will create a ground loop which will cause interferences in you audio circuit!</strong></p><p>I attached the potentiometer with a little drop of hot glue. The audio jack plug should be press fit.</p><h3>Battery Monitor</h3><p>For this step you will again need a bit of the Stripboard, the MCP3008, two 6.8k and two 10k resistors.</p><p>Again make sure to do the cuts on the Stripboard, before you start soldering. Solder everyhing as referenced in the following picture.</p><p>You should use the exact same pins, if you want the battery monitor tool in the custom distribution to work.</p><p>I attached the board with Velcro on top of the right speaker.</p><h3>Closing the shell</h3><p>Finally your internals may look something likes this (or not so messy...).</p><p>As soon as your SD card is flashed and everything is working, you are able to close the shell. Use five M3x8mm and one M2.5x8mm. Be careful, that the screw holes are free from wires. You don't want to damage them when you screw the shell halves together. After this last step is done, go and enjoy your<i>simplyRetro Z5</i>! Have fun :)</p><h3>Custom Distribution</h3><p>The custom distribution can be downloaded <a href="https://github.com/geaz/simplyRetro-Z5/releases">here</a>.</p><p>It is based on <a href="https://buildroot.org/">BuildRoot</a> and just contains the packages needed to play on the<i>Z5</i>.</p><p><strong>Please be aware, that the distribution was build for the Z5! It was not tested as a standalone distribution.</strong></p><p>The<i>Z5</i> uses Retroarch for all emulations. The following systems are supported at the moment (more can be added):</p><ul><li>Arcade (MAME2013-plus - BIOS needed)</li><li>Gameboy DMG / Color (Gambatte)</li><li>Gameboy Advance (gpsp - BIOS needed)</li><li>NES (quicknes)</li><li>SNES (snes9x2002)</li><li>Meda Drive / Master System / Sega CD (picodrive - BIOS needed for Sega CD)</li></ul><p>If you want to use the distribution just use Etcher to copy the img file to a SD Card.</p><h3>Boot Partition</h3><h4>config.txt</h4><p>Please be aware, that the default config.txt will rotate the screen. This is necessary, if you are you using the same screen as me.</p><h4>retrogame.cfg</h4><p>The Z5 uses RetroGame by Adafruit for the controller. In this file you are able to set the pins you used during the build.</p><h4>retropower.cfg</h4><p>If you used another GPIO than pin 19 for the power off button, you are able to set it in this file. Please be aware, that you have to use the WiringPi number of the GPIO pin.</p><p>Use for example <a href="https://de.pinout.xyz/">https://de.pinout.xyz/</a> to check the pin numbering. If you don't want to use the battery monitoring and/or power circuit, you are able to change the active features in this file.</p><h3>Login</h3><p>Start the system and login with:</p><p>User: root</p><p>Pass: simplyretro</p><h3>Resize Root</h3><p>To use the full size of you SD Card you should execute the following two scripts in order:</p><p>/root/reformat.sh (will reboot the system after execution)</p><p>/root/resize.sh</p><h3>WiFi, FTP & SSH</h3><p>You are able to set your WiFi SSID and PSK through the Emulationstation menu. Press 'Start' and go into the 'simplyRetro' menu.</p><p>After setting the WiFi, just enable any service you need.**I recommend to disable the services after usage to reduce battery load and</p><p>to speed up the boot process.**</p><h3>ROMs and BIOS folder</h3><p>The ROMs and BIOS folder are located at<i>/root/roms</i> and<i>/root/bios</i>. You are able to change the splash screen, if you want. It is also located at the<i>/root</i> folder.</p><h3>Controls</h3><p>EmulationStation will ask you to configure your controller on the first start.</p><p>Retro Arch is configured to exit a ROM, if you press<i>START + B</i>.</p><p>You are able to open the Retro Arch menu while playing a game, if you press<i>START + A</i>.</p><h3>Updates</h3><p>If there will be an update to the distribution, I will try to distribute the updated files together with the image. This way you are able to update just these files via FTP and don't have to flash the whole image again.</p><h3>Credits</h3><p>Thanks to <a href="https://github.com/NeonHorizon/lipopi">NeoHorizon</a> and <a href="https://github.com/craic/pi_power">Craic</a> for the work on the power circuits. I took their work and reworked the circuit a bit and created a custom battery monitor in C.</p><p>Thanks to <a href="https://buildroot.org/">BuildRoot</a> for the creation of this great system which enabled me to create a custom linux distribution.</p><p>Thanks to <a href="https://www.recalbox.com/">RecalBox</a> for their work on the packages for BuildRoot. I took the RetroArch and LibRetro packages and reworked them a bit to work on my distribution. Also thanks for the code of the on screen keyboard!</p><p>Thanks to <a href="https://retropie.org.uk/forum/topic/4611/runcommand-system-splashscreens">ehettervik</a> for the emulator splashscreens.</p><p>Thanks to <a href="https://progm.itch.io/doctor-how">ProGM</a> for the GB homebrew game.</p><h3>Print Settings</h3><p><strong>Printer:</strong></p><p>UltiCube</p><p><strong>Rafts:</strong></p><p>Doesn't Matter</p><p><strong>Supports:</strong></p><p>Yes</p><p><strong>Resolution:</strong></p><p>0.2</p><p><strong>Infill:</strong></p><p>20</p><p><strong>Filament:</strong> Filament PM PETG</p><p>Orange / Black</p><p><strong>Notes:</strong></p><p>I printed the shell with PETG on a 0.2 resolution and three loops for the outer shell and three top and bottom layers.</p><p>Only the top half of the shell needs a small support structure, because of the display frame mount.</p><p>Category: Video Games</p>
With this file you will be able to print simplyRetro Z5 ( RetroPie / Emulation handheld ) with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on simplyRetro Z5 ( RetroPie / Emulation handheld ).