Retro Game HAT

Abuout the Retro Game HAT

Retro Game HAT is a DIY handheld game console based on Raspberry Pi.

Equipped with 800*480 high-resolution screen and two 8ohm 4w stereo speakers, through simple assembly, you can have a retro game console.

It integrates battery charging circuit, powered by 18650 lithium battery (not included), you can play anytime and anywhere.

In addition, it is equipped with HDMI and Micro HDMI connectors, which can be compatible with almost all Raspberry Pi versions.

If you want to learn another projects which we don’t have, please feel free to send Email and we will update to our online tutorials as soon as possible, any suggestions are welcomed.

Here is the Email: cs@sunfounder.com.

Components List

_images/component_list.jpg

Note

You need to prepare an 18650 battery and a Type-C cable by yourself.

Assemble

step1

_images/assemble1.jpg

step2

_images/assemble2.jpg

Features

  • Screen Type: 5 inch IPS screen LVDS interface

  • Resolution: 800*480

  • Supply Voltage: 4.5V/2A-5.5V/2A

  • Port Type: Type-C

  • Speakers: 8ohm 4w

  • Earphone Holder: 3.5 round head earphone holder 6 feet

  • Battery: 18650 single-cell battery

_images/intro.JPG
  • Volume Button: Click it to enter the volume adjustment interface.

  • Brightness Button: Click it to enter the screen brightness adjustment interface.

  • Power Switch: Toggle to the left to turn off the power, and to the right to turn on the power.

  • Type-C Port: After connecting to 5V/2A power, the battery will start charging, if all 4 lights are on, it means it is full.

  • Audio Interface: You can plug in the earphones and enjoy the good game time alone. When an audio device is connected, Retro Game HAT will be muted.

  • Power Lights: There are four power indicator lights, each of which represents 25% of the power. When the power supply is insufficient, Retro Game HAT will have a flickering screen, and you should charge it at this time.

Note

When entering the volume adjustment interface/screen brightness adjustment interface, press the volume key to increase the volume level/screen brightness, and press the brightness key to decrease the volume level/screen brightness.

Note

When using it for the first time, you need to insert a 5V/2A Type-C into the Retro Game HAT to activate the battery power supply function.

You can use the battery to supply power later, and this Type-C cable can be used for charging.

Retropie

If you want to play games on Retro Game HAT, you need to install a game system, here we select RetroPie.

RetroPie allows you to turn your Raspberry Pi, ODroid C1/C2, or PC into a retro-gaming machine. It builds upon Raspbian OS, Emulation Station, RetroArch and many other projects to enable you to play your favorite Arcade, home-console, and classic PC games with the minimum set-up.

Install RetroPie

Required Components

Any Raspberry Pi

1 * Personal Computer

1 * Micro SD card

Step 1

Raspberry Pi have developed a graphical SD card writing tool that works on Mac OS, Ubuntu 18.04 and Windows, and is the easiest option for most users as it will download the retropie image and install it automatically to the SD card.

Visit the download page: https://www.raspberrypi.org/software/. Click on the link for the Raspberry Pi Imager that matches your operating system, when the download finishes, click it to launch the installer.

_images/install1.png

Step 2

When you launch the installer, your operating system may try to block you from running it. For example, on Windows I receive the following message:

If this pops up, click on More info and then Run anyway, then follow the instructions to install the Raspberry Pi Imager.

_images/install2.png

Step 3

Insert your SD card into the computer or laptop SD card slot.

Step 4

In the Raspberry Pi Imager, select the Emulation and game OS.

_images/install3.png

Select RetroPie.

_images/install4.png

Choose the corresponding version according to your Raspberry Pi model.

_images/install5.png

Step 5

Select the SD card you are using.

_images/install6.png

Step 6

Press Ctrl+Shift+X to open the Advanced options page to enable SSH and configure wifi, these 2 items must be set, the others depend on your choice . You can choose to always use this image customization options.

_images/install7.png

Then scroll down to complete the wifi configuration and click SAVE.

Note

wifi country should be set the two-letter ISO/IEC alpha2 code for the country in which you are using your Raspberry Pi, please refer to the following link: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

_images/install8.png

Step 7

Click the WRITE button.

_images/install9.png

Step 8

If your SD card currently has any files on it, you may wish to back up these files first to prevent you from permanently losing them. If there is no file to be backed up, click Yes.

_images/install10.png

Step 9

After waiting for a period of time, the following window will appear to represent the completion of writing.

_images/install11.png

After the image is burned, open the config.text file of the SD card to configure the screen resolution.

_images/install12.png

Add the following at the end of the file.

hdmi_cvt=800 480 60 6
hdmi_group=2
hdmi_mode=87
hdmi_drive=2
_images/install13.png

After adding, save the file and you will be able to eject the card reader.

Install the Button Driver

You need to install the button driver before you can use the buttons on the Retro Game HAT.

Insert the SD card into Retro Game HAT, turn the power switch to ON.

_images/setup1.png

Note

When using it for the first time, you need to insert a 5V/2A Type-C into the Retro Game HAT to activate the battery power supply function.

You can use the battery to supply power later, and this Type-C cable can be used for charging.

Get the IP Address

After the Retro Game HAT is connected to WIFI, we need to get the IP address of it. There are many ways to know the IP address, and two of them are listed as follows.

  1. Checking via the router

If you have permission to log in the router(such as a home network), you can check the addresses assigned to Raspberry Pi on the admin interface of router.

The default hostname of the Retro Game HAT is raspberrypi, and you need to find it. (If you are using ArchLinuxARM system, please find alarmpi.)

  1. Network Segment Scanning

You can also use network scanning to look up the IP address of Raspberry Pi. You can apply the software, Advanced IP scanner and so on.

Scan the IP range set, and the name of all connected devices will be displayed. Similarly, the default hostname of the Retro Game HAT is raspberrypi, if you haven’t modified it.

Use the SSH Remote Control

We can open the Bash Shell of RetroPie by applying SSH. Bash is the standard default shell of Linux. The Shell itself is a program written in C that is the bridge linking the customers and Unix/Linux. Moreover, it can help to complete most of the work needed.

For Linux or/Mac OS X Users

Step 1

Go to Applications->Utilities, find the Terminal, and open it.

_images/setup2.png

Step 2

Type in ssh pi@ip_address . “pi”is your username and “ip_address” is your IP address. For example:

ssh pi@192.168.18.197

Step 3

Input”yes”.

_images/setup3.png

Step 4

Input the passcode and the default password is raspberry.

_images/setup4.png

Step 5

We now get the Raspberry Pi connected and are ready to go to the next step.

_images/setup5.png

Note

When you input the password, the characters do not display on window accordingly, which is normal. What you need is to input the correct password.

For Windows Users

If you’re a Windows user, you can use SSH with the application of some software. Here, we recommend PuTTY.

Step 1

Download PuTTY.

Step 2

Open PuTTY and click Session on the left tree-alike structure. Enter the IP address of the RPi in the text box under Host Name (or IP address) and 22 under Port (by default it is 22).

_images/setup6.png

Step 3

Click Open. Note that when you first log in to the Raspberry Pi with the IP address, there prompts a security reminder. Just click Yes.

Step 4

When the PuTTY window prompts “login as:”, type in “pi”(the user name of the RPi), and password: “raspberry” (the default one, if you haven’t changed it).

_images/setup7.png

Step 5

Here, we get the Raspberry Pi connected and it is time to conduct the next steps.

Note

When you input the password, the characters do not display on window accordingly, which is normal. What you need is to input the correct password.

Install Key Drive

When you enter the RetroPie terminal via ssh, enter the following command to download the source code of the button driver.

git clone https://github.com/sunfounder/retro-game-hat

cd retro-game-hat/game-hat-button-driver

Install the button driver.

sudo python3 install.py

After the installation is complete, it is prompted whether to restart, enter Y to confirm.

Installation finished, do you want to reboot? (y/N) Y

Configure Retro Game HAT

After you install the button driver and restart, RetroPie needs you to perform button configuration again (long press any button to enter the configuration mode), the specific configuration method can refer to RetroPie First-Installation .

Here we provide a configuration method, you can refer to this method to configure your RetroPie buttons.

_images/set.JPG

Note

If there is an unconfigured key position, long press any key to skip the key position configuration.

RetroPie’s official website not only provides detailed tutorials on button configuration, but also provides specific methods for adding games. If you still have questions about RetroPie, you can find the answers in the official tutorial.