Skip to content

Commit

Permalink
Version 1.7
Browse files Browse the repository at this point in the history
 - Rebranding
 - Fix AA negative battery contact
 - Add charger pads
 - Made the power switch footprint compatible with a 3rd party switch
 - Add experimental JACK board
 - PCBWaaaaaaaaaaaaaaaaaaay
  • Loading branch information
kamicane committed Jan 4, 2023
1 parent c637525 commit 1eb448b
Show file tree
Hide file tree
Showing 25 changed files with 59,353 additions and 43,767 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ fp-info-cache
*.kicad_prl
_*
gerbers/*
*gerbers.zip
*-rounded.kicad_*
*.wrl
67 changes: 19 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,67 +1,38 @@
# DMG-01-B
# Super DMG-01

A KiCAD 6.0 recreation of the original Game Boy motherboard, with a few modern twists.
A [KiCad](https://www.kicad.org/) 6.0 recreation of the original Game Boy, with a few modern twists.

This board works with both modern IPS and original dot matrix LCDs.
The only original part required to build a Super DMG-01 is a DMG CPU or a SGB CPU.

<img src="images/pcb-front.png?raw=true" alt="pcb-front" width="512"/>
<img src="images/photo-cpu-top-v1.7-alpha2.jpg?raw=true" alt="pcb-v1.3" width="48%"/> <img src="images/photo-cpu-bottom-v1.7-alpha2.jpg?raw=true" alt="usb-v1.3" width="48%"/>

The schematic is largely based on [the work done by bit 9](https://chipmusic.org/forums/post/215957/#p215957).
[<img src="images/pcbway-cpu.png?raw=true" alt="pcbw" width="256px"/>](https://www.pcbway.com/QuickOrderOnline.aspx?projectid=13266&issmt=0)
[<img src="images/pcbway-referral.png?raw=true" alt="pcbway" width="256px"/>](https://pcbway.com/g/Gw03Yt)

I used [Gekkio KiCAD libs](https://github.com/Gekkio/gekkio-kicad-libs) for a few symbols (cpu, ram, cart connector, link port). The specialized footprints were traced by me using fusion 360, using these [scans by bit 9](https://imgur.com/a/X5qKI) as a reference.
## Credits

## Features
- bit9 for the [DMG schematics](https://imgur.com/a/X5qKI) and [board scans](https://chipmusic.org/forums/post/215957/#p215957)
- [Gekkio](https://github.com/Gekkio) for the CPU, RAM, CART symbols from [Gekkio KiCad libs](https://github.com/Gekkio/gekkio-kicad-libs)

### USB Type-C
## Compatibility

I got rid of the round power connector in favor of an USB-C port. The port is only connected to a pad on the motherboard, you need to add your own battery charger. The port is optional.
Except for the CPU, the Super DMG-01 can be built using new components only. This means that technically a Super Game Boy CPU is all that's needed to make a working Game Boy. It is also possible to use components harvested from a DMG.

## Power distribution switch
## Available boards

A power distribution IC takes the system load away from the power switch, so the game boy remains fully operational even if the switch is not in an optimal condition. This circuit can potentially be bypassed with a jumper.
- CPU Board: [Super DMG CPU](super-dmg-cpu)
- JACK Board: [Super DMG JACK](super-dmg-jack) (experimental), [DMG Prosound PAK](https://oshpark.com/shared_projects/IECpD72C), or use one from a DMG

### Internal ProSound
## 3rd party boards

The headphone output does not pass through the amplifier, only the volume potentiometer.

## Required specialized components

- DMG CPU || SGB CPU
- DMG Power Switch
- 2x DMG S-RAM || 2x SGB S-RAM || [replacement](https://lcsc.com/product-detail/SRAM_Alliance-Memory-AS6C6264-55SCN_C1351073.html) (untested)
- DMG Cart Connector || [replacement](https://www.aliexpress.com/item/1005002719771295.html)
- DMG Screen Connector || [replacement](https://www.aliexpress.com/item/1005004824507106.html)
- DMG Crystal || [TH replacement](https://lcsc.com/product-detail/Crystals_Suzhou-Liming-Elec-49SS-4-194304-20-10-10-B_C718646.html) (untested) || [SMD replacement](https://lcsc.com/product-detail/Crystals_JYJE-S1T41943ZWJAC_C2149317.html) (untested)
- DMG AMP (optional if you plan to use an external amplifier)
- DMG Link connector
- DMG Volume Potentiometer || [replacement](https://www.aliexpress.com/item/32840044311.html)
- DC CONV Board: [MouseBiteLabs](https://github.com/MouseBiteLabs)' [DMGC-PWR-01](https://github.com/MouseBiteLabs/Game-Boy-DMG-Color/tree/main/DMGC-PWR-01) or use one from a DMG
- LCD Board: Use any of the available IPS kits or use one from a DMG

## Disclaimer

Version 1.3 was fully operational, albeit with a few silly mistakes (reversed battery connectors and a reversed capacitor polarity). Releases marked as pre-release are sent to fab, but not yet received and / or built.

I am not an electronics expert. This board might fry your games, set your house on fire and kill your pets.

## WIP Instructions

### Ordering

Download the gerbers from the [releases](https://github.com/kamicane/DMG-01-B/releases) page. Order in 1.0mm thickness. The provided gerbers are made to be ordered on JLCPCB. Make sure you select "specify a location" on the "remove order number" option. HASL is fine.

Alternatively feel free to generate your own gerbers for your fab house of choice using the provided KiCAD files.

### Assembly

- Solder all SMD components on the front side. Refer to the [BOM](KiCad/dmg-01-b.csv).
- If using a power board with an integrated power distribution close ```J5``` and do not install ```U5```, ```C24```, ```C25```, ```R9```.
- If using an external amplifier do not install ```U4```, ```C5``` to ```C9```, ```C23```.
- Solder the through hole components and the screen connector.
- (Optional) solder the usb connector and cut an opening for the usb port in the front shell using the provided [rudimentary jig](3d_models/dmg_usbc_jig.stl).
- Solder the auxiliary boards DMG-JACK and DMG-DC-CONV (or use modern replacements).
- The original DC jack hole can be plugged with this simple [3d printed plug](3d_models/dmg_dc_plug.stl).
I am not an electronics expert. Super DMG-01 might fry your games, set your house on fire and kill your pets.

<img src="images/pcb-v1.3.jpg?raw=true" alt="pcb-v1.3" width="512"/>
<img src="images/usb-v1.3.jpg?raw=true" alt="usb-v1.3" width="512"/>
<img src="images/photo-usb.jpg?raw=true" alt="bottom" width="100%"/>

## License

Expand Down
7 changes: 7 additions & 0 deletions images/cpu-bottom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions images/cpu-top.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed images/pcb-back.png
Binary file not shown.
Binary file removed images/pcb-front.png
Binary file not shown.
Binary file added images/pcbway-cpu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pcbway-referral.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/photo-cpu-bottom-v1.7-alpha2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/photo-cpu-top-v1.7-alpha2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/photo-usb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions jlc-purple.json

This file was deleted.

92 changes: 92 additions & 0 deletions super-dmg-cpu/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Super DMG CPU

Super DMG CPU works with both IPS and DOT MATRIX LCD boards.

<img src="../images/cpu-top.svg?raw=true" alt="top" width="48%"/> <img src="../images/cpu-bottom.svg?raw=true" alt="bottom" width="48%"/>

[<img src="../images/pcbway-cpu.png?raw=true" alt="pcbway" width="256px"/>](https://www.pcbway.com/QuickOrderOnline.aspx?projectid=13266&issmt=0)
[<img src="../images/pcbway-referral.png?raw=true" alt="pcbway" width="256px"/>](https://pcbway.com/g/Gw03Yt)

Make sure you order with 1.0mm thickness. Other default options are fine.

## Credits

The schematic is largely based on [the work done by bit 9](https://imgur.com/a/X5qKI).

I used [Gekkio KiCAD libs](https://github.com/Gekkio/gekkio-kicad-libs) for a few symbols (cpu, ram, cart connector, link port). The specialized footprints were traced by me using fusion 360, using these [scans by bit 9](https://chipmusic.org/forums/topic/13608/dmg-main-board-schematic-circuit-arduinoboy/) as a reference.

## Features

### Compatibility

Super DMG CPU can be built using new components only, except for the CPU itself. It is also possible to use components harvested from a DMG. It still requires a link connector from a DMG (if you want the functionality), but I'm working on alternatives / adapter boards.

### USB Type-C

The round power connector is replaced with an USB Type-C port. The port is only connected to a pad on the motherboard, you need to add your own battery charger and/or power regulator if you want to make use of it. This port is optional.

### Power distribution IC

A power distribution IC takes the system load away from the power switch, so the game boy remains fully operational even if the switch is not in an optimal condition. This circuit can be bypassed with a jumper.

### Internal ProSound

The headphone output does not pass through the amplifier, only the volume potentiometer.

## BOM

| Designator | Package | Qty | Value / Description | Source |
|------------|---------|-----|---------------------|--------|
| U1 | QFP-80 14x20 p0.8 | 1 | CPU | DMG, SGB
| U2 | SOP-28 17.5x8.4 p1.27 | 1 | VRAM | DMG, SGB, [LCSC](https://lcsc.com/product-detail/C1351073.html)
| U3 | SOP-28 17.5x8.4 p1.27 | 1 | RAM | DMG, SGB, [LCSC](https://lcsc.com/product-detail/C1351073.html)
| U4 | SSOP-18 6x7.4 p0.8 | 1 | Audio Amplifier | DMG
| EXT1 | | 1 | Link Connector | DMG
| DA1, DA2, DA3, DA4 | SOT-23-3 | 4 | BAV99-7-F | [LCSC](https://www.lcsc.com/product-detail/C106919.html)
| C1, C23 | 3528 | 2 | 100µf tantalum | [LCSC](https://lcsc.com/product-detail/C122271.html)
| SW1 | | 1 | Power Switch | DMG, [LCSC](https://www.lcsc.com/product-detail/C2848866.html)
| U5 | SOT-23-5 | 1 | Power Distribution | [LCSC](https://lcsc.com/product-detail/C517266.html)
| D2 | SOD-123 | 1 | 1N414 | [LCSC](https://lcsc.com/product-detail/C83528.html)
| X1 | HC-49S | 1 | 4.194304 MHz | DMG, [LCSC (TH)](https://lcsc.com/product-detail/C718646.html), [LCSC (SMD)](https://lcsc.com/product-detail/C2149317.html)
| USB1 | USB_C_16p | 1 | Charge Connector | [LCSC](https://lcsc.com/product-detail/C2931472.html)
| VR1 | | 1 | Volume Pot | DMG, [AliExpress](https://www.aliexpress.com/item/32840044311.html)
| CN1 | 1.25 x 21 SMD | 1 | LCD Board Connector | DMG, [AliExpress](https://www.aliexpress.com/item/1005004824507106.html)
| CN2 | | 1 | Cart Connector | DMG, [AliExpress](https://www.aliexpress.com/item/1005002719771295.html)
| CN3 | | 1 | AA Battery Contacts | DMG, [AliExpress](https://www.aliexpress.com/item/32801068366.html)
| CN4 | 1.25 TH | 1 | Lipo Battery Connector | [LCSC](https://www.lcsc.com/product-detail/C722595.html)
| C3, C4 | 0805 | 2 | 1µF |
| C5, C6 | 0805 | 2 | 10µF |
| C7, C8, C9 | 0805 | 3 | 47nF |
| C10, C24, C25 | 0805 | 3 | 100nF |
| C12, C13, C14 | 0805 | 3 | 10nF |
| C16, C17, C18, C19 | 0805| 4 | 100pF |
| C21, C22 | 0805 | 2 | 27pF |
| R1, R2, R3, R4 | 0805 | 4 | 220Ω|
| R5, R6 | 0805 | 2 | 510Ω |
| R7 | 0805 | 1 | 180kΩ |
| R8 | 0805 | 1 | 1MΩ |
| R9 | 0805 | 1 | 10kΩ |
| R10, R11 | 0805 | 2 | 5.1kΩ |

## Assembly

- Solder all SMD components on the front side
- If using a power board with integrated power distribution close ```J5``` and do not install ```U5```, ```C24```, ```C25```, ```R9```
- If using an external amplifier, such as [Super DMG JACK](../super-dmg-jack) do not install ```U4```, ```C5-C9```, ```C23```
- If you do not need link functionality you can omit ```EXT1```, ```DA1-DA4```, ```R1-R4```, ```C16-C19```, ```D2```
- Solder the through hole components and the LCD board connector
- (Optional) solder the usb connector and cut an opening for the usb port in the front shell using the provided [rudimentary jig](../3d_models/dmg_usbc_jig.stl)
- The original DC jack hole can be covered with this simple [3d printed plug](../3d_models/dmg_dc_plug.stl)

## Notes

I have not tested the replacement power switch yet, but the footprint is compatible with an original DMG power switch.
The replacement power switch will likely need a new plastic part to work properly.

If using an original LCD board you need an original *DMG DC CONV* voltage regulator, as acceptable modern replacements that also include the -18v rail *do not exist yet*.

This pcb cannot be easily biverted yet.

## License

This work is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License.](http://creativecommons.org/licenses/by-sa/4.0/)
File renamed without changes.
3 changes: 2 additions & 1 deletion KiCad/dmg-01-b.csv → super-dmg-cpu/super-dmg-cpu.csv
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Comment,Designator,Footprint,LCSC
"180kΩ","R7","Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder","C17501"
"1MΩ","R8","Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder","C17514"
"10kΩ","R9","Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder","C17414"
"DPDT","SW1","kmc_lib:DMGB_POWER_SWITCH","C2848866"
"LPW5209B5F-21","U5","easyeda2kicad:SOT-23-5_L2.9-W1.6-P0.95-LS2.8-BL","C517266"
"CHARGE_PORT","USB1","kmc_lib:USB_C_16p","C319148"
"4.194304 MHz","X1","dmg_lib:HC-49S","C2149317"
"4.194304 MHz","X1","dmg_lib:HC-49S","C2149317"
Loading

0 comments on commit 1eb448b

Please sign in to comment.