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

A simple circuit for implementing a momentary power switch

Size
19 × 6.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
5
Nets
2
Pads
14
Tracks, vias
15, 2
Pours
3
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 × 6.8 mm with 5 parts on 2 nets, routed with 15 tracks and 2 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

5
QtyValueFootprintReferences
1Val**misc_footprints:AGB_Power_Switch2Ref**

The 1 most common of 5 parts.

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 × 12.4 mmPower switch, the printed circuit board in 3D

    Power switch

    makhowastaken/Soft-Latching-Power-Button

    A simple circuit for implementing a momentary power switch

    8 parts24GPL-3.0

Similar boards

  • 2 layers98 × 27 mmXy limit, the printed circuit board in 3D

    Xy limit

    opulo-inc/lumenpnp

    The LumenPnP is an open source pick and place machine.

    5 parts3.7k
  • 2 layers21 × 33 mm24g2usb pico2w, the printed circuit board in 3D

    24g2usb pico2w

    joypad-ai/joypad-os

    Universal controller firmware for building adapters, dongles, and custom controllers.

    5 parts1.7kApache-2.0
  • 2 layers53.2 × 59.6 mmA10 OLinuXino Lime Rev B SHIELD TEMPLATE, the printed circuit board in 3D

    A10 OLinuXino Lime Rev B SHIELD TEMPLATE

    OLIMEX/OLINUXINO

    OLINUXINO is Open Source / Open Hardware, low cost from EUR 24 Linux Industrial grade Single Board Computer capable to operate -25+85C

    5 parts1.5k
  • 2 layers30 × 11 mmMain control board servo tester, the printed circuit board in 3D

    Main control board servo tester

    jamro/tiny-engineer

    A small desktop robot that brings an AI coding assistant to life, physically acting out when it reads files, thinks, writes code, and finishes work.

    5 parts1.1k
  • 2 layers78.8 × 35.3 mmKiCadTest, the printed circuit board in 3D

    KiCadTest

    hackclub/OnBoard

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

    5 parts915
  • 2 layers50 × 23 mmMiniCircuits LTCC, the printed circuit board in 3D

    MiniCircuits LTCC

    VanceVagell/kv4p-ht

    Open source handheld ham radio project KV4P-HT

    5 parts828GPL-3.0
  • 2 layers20.3 × 15.2 mmL0 light sensor, the printed circuit board in 3D

    L0 light sensor

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    5 parts546MIT

Questions

How big is the Power switch PCB?

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

What parts does the Power switch use?

5 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(ds_lite)/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).