Skip to the content
2 layers19 × 12.4 mmPower switch, the printed circuit board in 3D

A simple circuit for implementing a momentary power switch

Size
19 × 12.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
8
Nets
3
Pads
21
Tracks, vias
60, 4
Pours
4
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
21 Aug 2020
Updated
19 Feb 2024

Overview

Power switch is an open-source printed circuit board by makhowastaken, from the makhowastaken/Soft-Latching-Power-Button repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 19 × 12.4 mm with 8 parts on 3 nets, routed with 60 tracks and 4 vias.

README

README.md

Soft Latching Power Button

A simple circuit for implementing a momentary power switch

THIS TESTED AND WORKING

Update 2023-01-11: I did lots of cleanup in this repository. I made a minor update to the main board file to take advantage of newer kicad features but otherwise it should be unchanged.

This circuit is intended to replace the power switch in a Game Boy Advance or Game Boy Advance SP but should be usuable in any Game Boy console or other similar device if wired up properly. All labelling is GBA-centric but should be easy enough to translate if you understand what it's doing. The circuit is based around the IRF7317TRPBF – Mosfet Array N and P-Channel chip and should be usuable between 1.5v and 7.5v. Any lower and it will not reliably switch and any higher and it won't switch at all. See this page from Mosaic Industries for more info.

There is a small quirk with this circuit and I'm not quite sure how to fix it without using a more complex circuit or without wasting power. The Game Boy cannot be restarted as this replacement bypasses the drain resistor installed on the original power switch. The purpose of this resistor is quickly drain all the power from the circuits and fully switch off the GB. Without this resistor, it can take up to 5 seconds for the GB fully switch off, depending on the model and condition. If you try and restart the Game Boy too quickly, it will refuse to power up so it is possible to enter a scenario where the power switch is "on" but the console is "off" and it will not matter how long you wait to try powering it up again, it will not boot unless you switch the MOSFET off again by holding the power switch for 10 seconds or by interrupting power entirely (remove batteries).


SCHEMATIC:

schematic

Operation: Press button once to turn on the circuit, press and hold for three seconds to turn the circuit off.

Install: Remove the original power switch. This cannot be installed in parallel. GND pad needs to get soldered to any console ground (or negative battery pad), 2 pad gets soldered to the power input (ideally after the fuse), and C gets soldered to pad C from the GBA power switch (or other power input). Place PCB where there is room and place button where it's accessable and wire the button to GND and SW_C pad on the mod board. See below for button options. This video covers full assembly and testing.


ORDERING THE MAIN BOARD:

BOM:

Digikey cart *.csv Note: for the passives (caps, resistors, and diode), there may be better alternatives or even discounts for higher quantities (so ten resistors may literally be cheaper than just three). This cart contains exactly enough parts (except the switch) to build three units.

You need the main board (thinner is better than thicker -- default 1.6mm is fine but thinner or flex allows for tucking it away inside the console more easily)


ORDERING THE SWITCH BOARD:

And for a GBA, I have also made two power switch board files. These are to replace the power switch itself on the GAME BOY ADVANCE ONLY. You still need the main board to use with either of these boards. See video link below for a quick demo.

Momentary Soft-Latching Power Switch Design for Game Boy Advance

The rotary style switch board has been tested and does work great but ONLY with "one chip" backlight kits. It will NOT work with funnyplaying backlight kits to control the brightness (they don't like the select button pad being stuck low indefinitely) and it will not work with cloud game store kits either due to the lack of button based controls in their current iterations. Here is the the switch you need for this switch board. Board tested working at 1.6mm thickness. Thicker is better than thinner here but thinner boards can work (albeit may have some flex when pressing the button).

The DS Lite style switch board can be made to work with shell cuts but the plastic power switch slider in the housing itself won't line up. I'll keep the board in the repo for now but you have been warned. Can possibly be made to work as a flex PCB with this momentary switch and then some modifications to the plastic slider (or even a custom slider) but I do not plan to pursue this.

Otherwise, any SPST switch will work. Very little current is passed through the switch itself (just a few mA and at whatever source voltage you're using) so anything can be made to work. One side goes to ground, the other goes SW-C on the main board.

Parts

8
QtyValueFootprintReferences
6TestPoint_Pad_1.5x1.5mmTestPoint:TestPoint_Pad_1.5x1.5mm2, C, C, GND, L, R
1SW-SMD_TM-2023_v2misc_footprints:SW-SMD_TM-2023_v2TM-2023
1Val**misc_footprints:AGB_Power_Switch2Ref**

More from makhowastaken/Soft-Latching-Power-Button

2
  • 2 layers12.9 × 9 mmMomentary Power Toggle, the printed circuit board in 3D

    Momentary Power Toggle

    makhowastaken/Soft-Latching-Power-Button

    A simple circuit for implementing a momentary power switch

    13 parts24GPL-3.0
  • 2 layers19 × 6.8 mmPower switch, the printed circuit board in 3D

    Power switch

    makhowastaken/Soft-Latching-Power-Button

    A simple circuit for implementing a momentary power switch

    5 parts24GPL-3.0

Similar boards

  • 2 layers20.5 × 24.8 mmPi interface, the printed circuit board in 3D

    Pi interface

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    8 parts3.7k
  • 2 layers59.9 × 25.7 mmBuffer, the printed circuit board in 3D

    Buffer

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    8 parts1kGPL-3.0
  • 2 layers52 × 12.6 mmUSB, the printed circuit board in 3D

    USB

    shanteacontrols/OpenDeck

    A platform for building interactive control and sensing devices using MIDI and OSC built with Zephyr RTOS.

    8 parts960Apache-2.0
  • 2 layers87.5 × 48.5 mm7 input macropad, the printed circuit board in 3D

    7 input macropad

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    8 parts915
  • 2 layers36.2 × 63.1 mmPicoMemcard pico, the printed circuit board in 3D

    PicoMemcard pico

    dangiu/PicoMemcard

    Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico

    8 parts694GPL-3.0
  • 2 layers36 × 10 mmPCB4-PWR BTN Rev.A, the printed circuit board in 3D

    PCB4-PWR BTN Rev.A

    OLIMEX/DIY-LAPTOP

    Do It Yourself Open Source Hardware and Software Modular Hacker's Friendly Laptop

    8 parts578Apache-2.0

Questions

How big is the Power switch PCB?

It measures 19 × 12.4 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Power switch use?

8 parts. 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 Power switch KiCad files?

From the makhowastaken/Soft-Latching-Power-Button repository on GitHub, at the commit this page was made from: the board is power-switch(rotary)/power-switch.kicad_pcb and its schematic Momentary-Power-Toggle.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Power switch design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).