Difference between revisions of "GamePi20"

From Waveshare Wiki
Jump to: navigation, search
(Created page with "{{Infobox item |img=link=https://www.waveshare.com/gamepi20.htm |caption= A mini game console based on Raspberry Pi |category=:Category:Game Ma...")
 
Line 31: Line 31:
 
|Recalbox || 6.0-DragonBlaze || Raspberry Pi 1/Zero/Zero W || root/recalboxroot || [https://drive.google.com/file/d/1Zb-OWGpumGvSh9xUUb2zIeURndKMqBwm/view?usp=sharing Google Drive]
 
|Recalbox || 6.0-DragonBlaze || Raspberry Pi 1/Zero/Zero W || root/recalboxroot || [https://drive.google.com/file/d/1Zb-OWGpumGvSh9xUUb2zIeURndKMqBwm/view?usp=sharing Google Drive]
 
|-
 
|-
|Retropie || v4.4 || Raspberry Pi 1/Zero/Zero W || pi/raspberry || [https://drive.google.com/open?id=1nBr7hbyeu3fB3Thc2PLKGbGX5KdZbiWf Google Drive]
+
|Retropie || v4.4 || Raspberry Pi 1/Zero/Zero W || pi/raspberry || [https://drive.google.com/file/d/1p0ZP9lnxIu-2mvGVU91y_Z_Z0VdJC7oV/view?usp=sharing Google Drive]
 
|}
 
|}
 
*Download image file, unzip and write it to SD card
 
*Download image file, unzip and write it to SD card
Line 104: Line 104:
 
:Add sentence fbcp& in the front of exit 0
 
:Add sentence fbcp& in the front of exit 0
 
[[File:1in3_lcd_fb5.png|400px]]
 
[[File:1in3_lcd_fb5.png|400px]]
*Long-press "A" button (GamePi15) to enter the configuration page, configure by pressing related buttons (GamePi15), you can also long-press to skip any button
+
:Configure /boot/config.txt file
[[File:GamePi15-Manual-01.jpg|400px]]
+
:Finally, configure /boot/config.txt file
+
 
<pre>
 
<pre>
 
sudo nano /boot/config.txt
 
sudo nano /boot/config.txt
Line 117: Line 115:
 
dtoverlay=pwm
 
dtoverlay=pwm
 
</pre>
 
</pre>
 
+
:Install driver for josytic
 +
<pre>
 +
git clone https://github.com/waveshare/mk_arcade_joystick_rpi.git
 +
cd mk_arcade_joystick_rpi
 +
sudo ./install.sh 3
 +
</pre>
 
<pre>
 
<pre>
 
# then reboot
 
# then reboot
 
sudo reboot
 
sudo reboot
 
</pre>
 
</pre>
 +
*Long-press "A" button (GamePi20) to enter the configuration page, configure by pressing related buttons (GamePi20), you can also long-press to skip any button
 +
[[File:GamePi15-Manual-01.jpg|400px]]
  
 
After configuring, you can press "A" (GamePi15) to save configured and exit, or press "B" or "Start" (GamePi15) to exit without saving.
 
After configuring, you can press "A" (GamePi15) to save configured and exit, or press "B" or "Start" (GamePi15) to exit without saving.

Revision as of 11:26, 11 September 2019

GamePi20
GamePi20-8.jpg

A mini game console based on Raspberry Pi
{{{name2}}}

{{{name3}}}

{{{name4}}}

{{{name5}}}

Primary Attribute
Category: Game Machines, Raspberry Pi, Expansions
{{{userDefinedInfo}}}: {{{userdefinedvalue}}}
Brand: Waveshare
Website
English: Website
Chinese:
Onboard Interfaces
RPi
Related Products

Support Raspberry Pi

  • Raspberry Pi Zero
  • Raspberry Pi Zero W
  • Raspberry Pi Zero WH

How to use it

Hardware connection

  • Attach Raspberry Pi Zero/Zero W to GamePi20 extension board. Note that you need to first set up SD card according to the instruction below, before you assemble it.
  • Mount the extension board to the metal box
  • Place conductive rubber mats and buttons on it, finally assemble the front panel.

To use the GamePi20, you can use the pre-configured image or install driver to a fresh image yourself.

Method 1: Pre-configured Images

  • Here we provide a pre-configured image, you can download and test
OS Version Raspberry Pi Default user/password Download link
Recalbox 6.0-DragonBlaze Raspberry Pi 1/Zero/Zero W root/recalboxroot Google Drive
Retropie v4.4 Raspberry Pi 1/Zero/Zero W pi/raspberry Google Drive
  • Download image file, unzip and write it to SD card
  • Insert the SD card to Raspberry Pi, assemble GamePi20 as #Hardware connection
  • turn the switch into ON. Generally, LCD is light on and Raspberry Pi is booting. It may cause about 2 minutes for Raspberry Pi 1/zero/zero W to starting.
    • Raspberry Pi is failed to start if the battery is low. In this case, you can connect 5V/2A power adapter to the Power interface for charging. Capacity indicators

Basic operations

  • Retropie
    1. After booting, you can select emulators by direction buttons on the left, then press "A" to confirm. For example, choose "A" and then "Start"
    2. Choose the games and press "A" to play
    3. Press "Start"+"HK" buttons to exit games
    4. You can adjust the potentiometer to adjust the volume. Or Press "Start" and choose "SOUND SETTINGS" to adjust volume
  • Recalbox
    1. After booting, you can select emulators by direction buttons on the left, then press "B" to confirm.
    2. Choose the games and press "A" to play, press "A" or "Start" to start games
    3. Press "Start"+"HK" buttons to exit games
    4. you can adjust the potentiometer to adjust volume. Or Press "Start" and choose "SOUND SETTINGS", press "B" confirm, then adjust "SYSTEM VOLUME" by direction buttons.

Method 2: Install driver

Install driver on Retropie

Download Retropie image from Retropie website

Game-HAT-Manual01.jpg

  • Write the image to SD card
  • Copy the driver (Do not unzip it) to root directory of the SD card (BOOT directory of the Raspbian)
  • Connect SD card, keyboard and a HDMI display to Raspberry Pi, Turn the switch into ON side to power on Raspberry Pi. Press F4 (Keyboard) after booting. You may require an ETH/USB HUB HAT in this steps
  • Install driver with commands below:
Configure modules file to enable fbtft module for displaying
sudo nano /etc/modules
#you will open a file, please add lines below to the file
spi-bcm2835 
flexfb
fbtft_device
Create a fbtft.conf file
sudo nano /etc/modprobe.d/fbtft.conf
Add two lines below to the fbtft.conf file
options fbtft_device name=flexfb gpios=reset:27,dc:25,cs:8,led:24 speed=96000000 bgr=1 fps=60 custom=1 height=240 width=320
options flexfb setaddrwin=0 width=320 height=240 init=-1,0x11,-2,120,-1,0x36,0xA0,-1,0x3A,0x05,-1,0x21,-1,0x2A,0x00,0x01,0x00,0x3F,-1,0x2B,0x00,0x00,0x00,0xEF,-1,0xB2,0x0C,0x0C,0x00,0x33,0x33,-1,0xB7,0x35,-1,0xBB,0x1F,-1,0xC0,0x2C,-1,0xC2,0x01,-1,0xC3,0x12,-1,0xC4,0x20,-1,0xC6,0x0F,-1,0xD0,0xA4,0xA1,-1,0xE0,0xD0,0x08,0x11,0x08,0x0C,0x15,0x39,0x33,0x50,0x36,0x13,0x14,0x29,0x2D,-1,0xE1,0xD0,0x08,0x10,0x08,0x06,0x06,0x39,0x44,0x51,0x0B,0x16,0x14,0x2F,0x31,-1,0x29,-3
Reboot Raspberry Pi
sudo reboot
</reboot>
:After reboot, enter terminal again. and check if you can find the fb1 device under /dev
:Install tools:
<pre>
sudo apt-get install cmake git
cd ~
git clone https://github.com/tasanakorn/rpi-fbcp
cd rpi-fbcp/
mkdir build
cd build/
cmake ..
make
sudo install fbcp /usr/local/bin/fbcp\
Set rc.local file
sudo nano /etc/rc.local
Add sentence fbcp& in the front of exit 0

1in3 lcd fb5.png

Configure /boot/config.txt file
sudo nano /boot/config.txt
#add lines below to config.txt file
hdmi_force_hotplug=1
hdmi_cvt=640 480 60 1 0 0 0
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
dtoverlay=pwm
Install driver for josytic
git clone https://github.com/waveshare/mk_arcade_joystick_rpi.git
cd mk_arcade_joystick_rpi
sudo ./install.sh 3
# then reboot
sudo reboot
  • Long-press "A" button (GamePi20) to enter the configuration page, configure by pressing related buttons (GamePi20), you can also long-press to skip any button

GamePi15-Manual-01.jpg

After configuring, you can press "A" (GamePi15) to save configured and exit, or press "B" or "Start" (GamePi15) to exit without saving.

Install driver on Recalbox

Download the latest image from Recalbox website

GamePi15-Manual-02.jpg

  • Unzip the files download to get the .img file
  • Write the .img file to SD card
  • Copy driver to root directory of SD card
  • Connect SD card, keyboard and a HDMI display to Raspberry Pi, Turn the switch into ON side to power on Raspberry Pi. Press F4 then Alt+F2(Keyboard) after booting. (user: root; password: recalboxroot)
  • Install driver with commands:
tar xzvf /boot/GamePi15-*.tar.gz
cd GamePi15/
./GamePi15
  • Reboot Raspberry Pi

Add new games (Retropie)

Maybe default games in test image are not those you want, you can also add games as you like.

  • Size of most games are always large, so we need to expand filesystem fist. Choose RASPI-CONFIG on configure page and press enter

600px-Game-HAT-Manual03.jpg

600px-Game-HAT-Manual04.jpg

  • Choose 7 Advanced Options -> A1 Expand Filesystem, Enter->Finish, (physical keyboard is required)

600px-Game-HAT-Manual05.jpg

  • Choose OK, and reboot.
  • Download ROMS of games you like

600px-Game-HAT-Manual08.png

  • Connect your Raspberry Pi to network (Make sure the network you connect is in the same LAN as your PC). Find SHOW IP in Retropie list, press “A” to query current IP address of your Raspberry Pi.

600px-Game-HAT-Manual09.jpg

  • Open it with the IP address on your PC

800px-Game-HAT-Manual10.png

600px-Game-HAT-Manual11.png

  • Then on emulator choose page, you can press “Start”->QUIT->RESTART EMULATIONSTAION, press “A” to confirm. Then restart emulator, you can find the game added.

For more operations, you can read Retropie Instructions

Interfaces

"NC" : No Connected

PIN Symbol Description PIN Symbol Description
1 3.3V 3.3V power input 2 5V 5V power input
3 NC NC 4 5V 5V power input
5 HOTKEY ENABLE BCM=3, WPI = 9 6 GND Ground
7 NC NC 8 RIGHT SHOULDER BCM=14, WPI=15
9 GND Ground 10 X BCM=15, WPI=16
11 NC NC 12 Audio BCM=18, WPI=1
13 LCD_Reset BCM=27, WPI=2 14 GND Ground
15 NC NC 16 LEFT SHOULDER BCM=23, WPI=4
17 3.3V 3.3V input 18 Backlight BCM=24, WPI=5
19 LCD_MOSI BCM=10, WPI=12 20 GND Ground
21 NC NC 22 LCD_DC BCM=25, WPI=6
23 LCD_SCK BCM=11, WPI=14 24 LCD_CS BCM=8, WPI=10
25 GND Ground 26 NC NC
27 NC NC 28 NC NC
29 UP BCM=5, WPI=21 30 GND Gound
31 DOWN BCM=6, WPI=22 32 Y BCM=12, WPI=26
33 RIGHT BCM=13, WPI=23 34 GND Ground
35 SELECT BCM=19, WPI=24 36 LEFT BCM=16, WPI=27
37 START BCM=26, WPI=25 38 B BCM=20, WPI=28
39 GND Ground 40 A BCM=21, WPI=29

Resources

Shared by Users

Here are some resources shared by user. Very thanks for all of your great jobs.

FAQ

Question:
Could PIC8-O works on GamePi15?
Answer:
Yes, it could, there is users who have succeeded in it. You can refer to it.



Support

Mail.png Contact your seller (fast response and most recommended)

or send emails to [email protected] (not fast enough but please be patient) for help.

Our working time: 09:00-18:00 (UTC+8 Monday to Saturday)