Skip to the content
2 layers93 × 75 mmGameboyReader, the printed circuit board in 3D

This is a little PCB connecting an arduino to a GBA cardtrige connector

Size
93 × 75 mm
Copper layers
2
Thickness
1.6 mm
Parts
13
Nets
37
Pads
110
Tracks, vias
161, 15
Pours
2
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
24 Oct 2021
Updated
5 May 2023

Overview

GameboyReader is an open-source printed circuit board by Clotildelevou, from the Clotildelevou/GB-Arduino-Reader repository on GitHub. It is a 2-layer board of 93 × 75 mm with 13 parts on 37 nets, routed with 161 tracks and 15 vias.

It is built around the 74HC595. Its parts include 4 resistors, 2 ICs and 1 connector. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

GB-Arduino-Reader

This is a little PCB connecting an arduino to a GBA cardtrige connector. The final aim of this project is to dump the cartdrige's ROM and enevtually write on the RAM.

Progress

Hardware :

▰▰▰▰▰▰▰▰▰▰ 100%

The PCB first version exists and is functionnal. A wild second version may appear !

Microcontroller's code :

▰▱▱▱▱▱▱▱▱▱ 10%

A POC exists and it is actually possible to fetch some code !

Executor code :

▰▰▰▰▰▰▰▰▰▱ 90%

The ROM dumper is ready ! Different types of MBC are not supported yet tho

Principles

The Cartdridge

The cartdrige has 32 pins and this is their usage :

PinNameDescription
1VCC+5VDC
2PHICPU Clock
3WRWrite
4RDRead
5CSSRAM select
6A0Address 0
7A1Address 1
8A2Address 2
9A3Address 3
10A4Address 4
11A5Address 5
12A6Address 6
13A7Address 7
14A8Address 8
15A9Address 9
16A10Address 10
17A11Address 11
18A12Address 12
19A13Address 13
20A14Address 14
21A15Address 15
22D0Data 0
23D1Data 1
24D2Data 2
25D3Data 3
26D4Data 4
27D5Data 5
28D6Data 6
29D7Data 7
30RSTReset
31AUDIOINUsed by MP3 player
32GNDGround

The Shift Registers

The arduino we use (Arduino Nano V3.X) only has 22 digital pins. Shift registers become handy. Shift registers are often used for the purpose of saving pins on the microcontroller, as every microcontroller has a limited number of I/O pins (GPIO).

The logic

The 595 has two registers (which can be thought of as “memory containers”), each with just 8 bits of data. The first one is called the Shift Register. The Shift Register lies deep within the IC circuits, quietly accepting input.

Whenever we apply a clock pulse to a 595, two things happen:

The bits in the Shift Register move one step to the left. For example, Bit 7 accepts the value that was previously in bit 6, bit 6 gets the value of bit 5 etc. Bit 0 in the Shift Register accepts the current value on DATA pin. At the rising edge of the pulse, if the data pin is high, then a 1 gets pushed into the shift register. Otherwise, it is a 0. On enabling the Latch pin, the contents of Shift Register are copied into the second register, called the Storage/Latch Register. Each bit of the Storage Register is connected to one of the output pins QA–QH of the IC, so in general, when the value in the Storage Register changes, so do the outputs.

Shift Register animation

Pinout

pinout

GND should be connected to the ground of Arduino.

VCC is the power supply for 74HC595 shift register which we connect the 5V pin on the Arduino.

SER (Serial Input) pin is used to feed data into the shift register a bit at a time.

SRCLK (Shift Register Clock) is the clock for the shift register. The 595 is clock-driven on the rising edge. This means that in order to shift bits into the shift register, the clock must be HIGH. And bits are transferred in on the rising edge of the clock.

RCLK (Register Clock / Latch) is a very important pin. When driven HIGH, the contents of Shift Register are copied into the Storage/Latch Register; which ultimately shows up at the output. So the latch pin can be seen as like the final step in the process to seeing our results at the output, which in this case are LEDs.

SRCLR (Shift Register Clear) pin allows us to reset the entire Shift Register, making all its bits 0, at once. This is a negative logic pin, so to perform this reset; we need to set the SRCLR pin LOW. When no reset is required, this pin should be HIGH.

OE (Output Enable) is negative logic too: When the voltage on it is HIGH, the output pins are disabled/set to high impedance state and don’t allow current to flow. When OE gets low voltage, the output pins work normally.

QA–QH (Output Enable) are the output pins and should be connected to some type of output like LEDs, 7 Segments etc.

QH’ Pin outputs bit 7 of the ShiftRegister. It is there so that we may daisychain 595s: if you connect this QH’ to the SER pin of another 595, and give both ICs the same clock signal, they will behave like a single IC with 16 outputs. Of course, this technique is not limited to two ICs – you can daisychain as many as you like, if you have enough power for all of them.

3D View

This is currently the result of my work : FRONT BACK

Gerber view

This is the gerber view : TOP BOTTOM

Result

Pictures

The PCB i got looks like this : FRONT BACK SOLDERED

Problems on the PCB

I had a little problem on the card. The GBA pads were a bit hidden the pins of the cartdrigde reader. To solve this problem I just removed the little plastic guides (see image below) with a plier and i glued it directly on the PCB. It is quite solid but i'll change the guides position for the next version !

GUIDES

Sources

Inside Gadgets

lastminuteengineers

Parts

13
QtyValueFootprintReferences
410KResistor_SMD:R_0603_1608MetricR17, R18, R19, R20
274HC595Package_DIP:DIP-16_W10.16mmU1, U2
1Arduino_Nano_v3.xModule:Arduino_NanoA1
1CLOUGameboyReader:gengarG***
1Conn_01x32_MaleGameboyReader:GameboyConnectorJ1

The 9 most common of 13 parts.

Similar boards

  • 2 layers45.7 × 31.8 mmLEDx16 board, the printed circuit board in 3D

    LEDx16 board

    tardate/LittleArduinoProjects

    a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

    36 parts803MIT
  • 2 layers228.6 × 100 mmMongus48, the printed circuit board in 3D

    Mongus48

    ChrisChrisLoLo/beyblock20

    The magnetic, modular, 20-key macropad that can join together to form an ortholinear board

    124 parts335GPL-3.0
  • 2 layers245.1 × 160 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-64x4-Home-Computer

    My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

    139 parts326
  • 2 layers100 × 95.1 mmProtoboard-6x4-breakout, the printed circuit board in 3D

    Protoboard-6x4-breakout

    electroniceel/protoboard

    Advanced protoboard layout with 1.27mm pitch for smd parts

    4,745 parts311CC-BY-4.0
  • 4 layers140 × 100 mmDc usv, the printed circuit board in 3D

    Dc usv

    TobleMiner/DC-UPS

    A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages

    351 parts223CERN-OHL-P-2.0
  • 2 layers100.5 × 218.3 mmTraktorino, the printed circuit board in 3D

    Traktorino

    silveirago/traktorino

    The open-source DIY MIDI Controller for DJs.

    96 parts220
  • 2 layers287.8 × 126.7 mmNoName, the printed circuit board in 3D

    NoName

    AlaaSaadAbdo/battoota

    Keyboards

    267 parts188
  • 2 layers100 × 100 mmTommyPROM32-595, the printed circuit board in 3D

    TommyPROM32-595

    TomNisbet/TommyPROM

    Simple Arduino-based EEPROM programmer

    36 parts187

Questions

How big is the GameboyReader PCB?

It measures 93 × 75 mm and has 2 copper layers, 1.6 mm thick.

What parts does the GameboyReader use?

13 parts, built around the 74HC595. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the GameboyReader KiCad files?

From the Clotildelevou/GB-Arduino-Reader repository on GitHub, at the commit this page was made from: the board is GameboyReaderPBC/GameboyReader.kicad_pcb and its schematic GameboyReaderPBC/GameboyReader.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the GameboyReader design in my own project?

Its repository states no licence, so its author keeps all rights: ask Clotildelevou before reusing the design.