Gameboy Zero 4 buttons PCB wiring

General GBZ-related chat goes here. Share ideas, tips and tricks, or ask questions that don't fit into the hardware/software help forums.
Post Reply
Tarmin01
Posts: 4
Joined: Fri Feb 16, 2018 3:36 am

Gameboy Zero 4 buttons PCB wiring

Post by Tarmin01 » Sat Feb 17, 2018 12:01 am

Hi guys,

I've just recieved this pcb with some gameboys buttons buth without any wiring indications.
Does someone know how should I wire it to my RPi zero? I'm new to this stuff and all I've found are PCB with chip on it. Do I need an arduino between the pcb and the pi zero?

Thanks
Attachments
1518850649477-2114433726.jpg
1518850649477-2114433726.jpg (800.22 KiB) Viewed 7199 times
15188506223811098351859.jpg
15188506223811098351859.jpg (943.92 KiB) Viewed 7199 times

snoek09
Posts: 145
Joined: Sat May 20, 2017 3:06 am
Location: Amsterdam, The Netherlands
Has thanked: 48 times
Been thanked: 43 times

Re: Gameboy Zero 4 buttons PCB wiring

Post by snoek09 » Sat Feb 17, 2018 3:11 am

I have the same board and use this pinout:

Image

Left Trigger button is on BCM14. You can see all pi zero pins on https://pinout.xyz

In /boot/retrogame.cfg you need to add this:

Code: Select all

UP		0	# 'UP' button
DOWN		5	# 'DOWN' button
LEFT		1	# 'LEFT' Button
RIGHT		12	# 'RIGHT' button
A		19	# 'A' Button
B		16	# 'B' button
X		26	# 'X' button
Y		20	# 'Y' button
ENTER		13	# 'ENTER' button
SPACE		6	# 'SELECT' button
L		14	# 'Left' Shoulder button
R		21	# 'Right' Shoulder button

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Gameboy Zero 4 buttons PCB wiring

Post by rodocop » Sat Feb 17, 2018 7:07 pm

I always follow this guide. Similar to what is seen above

https://sudomod.com/forum/viewtopic.php?t=57

Tarmin01
Posts: 4
Joined: Fri Feb 16, 2018 3:36 am

Re: Gameboy Zero 4 buttons PCB wiring

Post by Tarmin01 » Tue Feb 20, 2018 8:30 am

Thanks

By the way I've bought one Teensy in order to help the Pi with the buttons. I hope I will do the right things to do to have a working GBZ

User avatar
rodocop
Posts: 1723
Joined: Mon Aug 22, 2016 3:14 pm
Location: Saskatchewan
Has thanked: 606 times
Been thanked: 608 times

Re: Gameboy Zero 4 buttons PCB wiring

Post by rodocop » Tue Feb 20, 2018 8:54 pm

Yeah. You can use a teensy if you want. But the guide I linked is to be used instead of the teensy.

Wermy wired up a teensy in part 2 of his guide. Check it out here.

https://www.sudomod.com/game-boy-zero-guide-part-2/

Hunter Miller-Moreno
Posts: 3
Joined: Sat Sep 15, 2018 12:59 pm
Been thanked: 2 times

Re: Gameboy Zero 4 buttons PCB wiring

Post by Hunter Miller-Moreno » Sat Sep 15, 2018 1:39 pm

I am also planning on doing this project, but what pins are for the left and right trigger? and do I just ground the buttons to the ground pin right? Also after I wire it up will retropie automatically recognize the controller?

User avatar
FlashyFrank
Posts: 133
Joined: Tue Feb 13, 2018 3:22 pm
Location: Portland, Oregon
Has thanked: 42 times
Been thanked: 24 times

Re: Gameboy Zero 4 buttons PCB wiring

Post by FlashyFrank » Mon Jan 07, 2019 5:08 pm

Hunter Miller-Moreno wrote:
Sat Sep 15, 2018 1:39 pm
I am also planning on doing this project, but what pins are for the left and right trigger? and do I just ground the buttons to the ground pin right? Also after I wire it up will retropie automatically recognize the controller?
In the example given above by snoek09 L is 14 and R is 21.

For grounding the buttons you should just need to connect the ground on the pcb to one of the grounds on your pi.

Retropie will not automatically know to accept controller inputs through the gpio pins. So you will need to install Retrogame (https://learn.adafruit.com/retro-gaming ... s-software) You might need to edit the Retrogame configuration file in order to make sure all your buttons work with the gpio's you chose.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest