Skip to the content
2 layers25.4 × 25.4 mmSoft Power Switch, the printed circuit board in 3D

Documentation, example code, and hardware for the SparkFun Soft Power Switch - JST 2mm.

Size
25.4 × 25.4 mm
Copper layers
2
Thickness
1.6 mm
Parts
63
Nets
24
Pads
94
Tracks, vias
211, 47
Pours
1
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
30 Sep 2024
Updated
3 Jun 2026

Overview

Soft Power Switch is an open-source printed circuit board by sparkfun, from the sparkfun/SparkFun_Soft_Power_Switch_Mk2 repository on GitHub. It is a 2-layer board of 25.4 × 25.4 mm with 63 parts on 24 nets, routed with 211 tracks and 47 vias.

It is built around the SN74LVC1G17DCK, SN74LVC1G14DCK and SN74LVC1G175DCK, with the BSS138, BAS16J and SIL2308-TP among its other parts. Its parts include 10 resistors, 4 capacitors, 3 ICs, 3 diodes and 3 transistors.

Main components

6

README

README.md

SparkFun Soft Power Switch - JST 2mm

SparkFun Soft Power Switch - JST 2mm (PRT-26993)

SparkFun Soft Power Switch - JST 2mm (PRT-26993)

The Soft Power Switch - JST 2mm is a passive, hard on/off switch with software feedback and control. In other words, it's like the on/off switch on a laptop. A simple press will turn the system on. Another press can (with MCU intervention) turn off the system. And if things go really wrong, pressing and holding the button for ~7 seconds will force a power-down. If you're building something with an enclosed battery and need a good power button, this is the board you need.

The Mk1 Soft Power Switch is great, but we do see occasional issues caused by component tolerances or the operating temperature. Mk2 is based on an application note by Texas Instruments, and is a completely digital design. It is based around a 74LVC1G175 D-type flip-flop - remember those?! - and is insensitive to temperature and component variation. It also includes improvements like: an over-current self-resetting 2A fuse; input and output LEDs. This version has JST 2mm battery connectors.

The PUSH pin can act as an output to a microcontroller indicating the state of the power button (high = not pressed, low = user is pressing power button). This can be used as an input to your firmware to begin to shut down before power is lost. PUSH is an open-drain output and requires a pull-up. Alternatively, the OFF pin can be driven high by the system forcing fast power off via software. (For Mk1, the Fast Off pin was driven low.)

The most common use case is something like this:

  • Microcontroller begins running code and checks to see if the power button is still being pressed for X milliseconds.
  • If not, it's just a tap, go back to sleep.
  • If yes, power up and run normal program.

Later...

  • User presses power button in normal program
  • If power button is pressed for <X milliseconds, it's just a tap, ignore.
  • If power button is pressed for >X milliseconds, it's time to power down.

The wake-up and power-down times can be tweaked for your own user experience but we found 500ms for power up and 2s for power down work really well.

If needed, pads are provided for a larger, external button.

The Soft Power Switch supports battery charging. If the target device has onboard LiPo charging, current can be passed back through the switch circuit and charge the battery.

Heads up! The Soft Power Switch - JST 2mm works up to 5.5V only. (Mk1 is good up to 12V.)

Pros:

  • Very low µA quiescent current
  • Hard override power down in case your microcontroller loses its mind
  • PUSH and OFF pins can be connected to a microcontroller
  • Supports battery charging

Cons:

  • Limited to 2A continuous, 4A peak (fuse protected)
  • No AC loads

Features

  • Input voltage: 5.5V maximum, 1.8V minimum
    • Typically ~3.7V from a single cell LiPo Battery
  • Maximum current draw: 2A continuous, 4A peak (fuse protected)
  • SIL2308 N&P-Channel MOSFET
    • 70mΩ (0.070 Ohm) typical P-Channel on-resistance
  • Very low quiescent current: <1µA @ 3.75V, with VIN LED disabled
  • 2x 2-Pin JST Right-Angle Connectors
    • VIN
    • VOUT
  • Supports battery charging
  • Built-in momentary push button
    • Hard override: push and hold the button for ~10 seconds
  • Breakout PTH:
    • GND, VIN, VOUT
    • BTN: if desired, connect an external button between BTN and GND
    • PUSH: open-drain output, requires pull-up, low indicates button is pushed
    • OFF: drive high to turn the output off
  • LEDs: VIN and VOUT (can be disabled if desired)
  • Jumpers
    • Input power LED
    • Output power LED
  • Dimensions: 1.0in. x 1.0in. (25.4mm x 25.4mm)
  • Weight: 3.10g

Repository Contents

  • .github/workflows - YAML files used for GitHub Actions and GitHub Pages/mkdocs
  • /Examples - Example sketches demonstrating how to read and control the switch
  • /Hardware - KiCad design files (kicad_pro, .kicad_pcb, .kicad_sch)
    • /Production - Production panel files
  • /docs - Online documentation files
    • /assets - Folder containing all the file assets used for product documentation
      • /3d_model - Exported 3D models from KiCad
      • /board_files - Copy of design files used for product documentation
      • /component_documentation - Datasheets and manuals for hardware components
      • /img - Images for product documentation
    • /github - Files stating how to contribute and filing issues used for product documentation
    • /javascript - Folder containing custom javascript used for product documentation
    • /stylesheet - Folder containing CSS files used for product documentation
  • /overrides - Customization files used for product documentation
    • /.icons - Icons used for GitHub used for product documentation
    • ./partials - Used for product documentation
  • LICENSE.md contains the license information

Documentation

  • Hookup Guide - Basic hookup guide for the Soft Power Switch - JST 2mm.

Product Versions

  • PRT-26993 - SparkFun Red Release Soft Power Switch - JST 2mm
  • SPX-25365 - Original SparkX Release Soft Power Switch Mk2 - JST 2mm
  • SPX-17870 - Original SparkX Release Mk1

Version History

  • v1.0 - SparkFun Soft Power Switch - JST 2mm (PRT-26993)
  • v01 - Original SparkX Soft Power Switch MK2 - JST 2mm (SPX-25365)
  • v1.0 - Original SparkX Soft Power Switch Mk1 (SPX-17870)

License Information

This product is open source!

Please review the LICENSE.md file for license information.

If you have any questions or concerns on licensing, please contact technical support on our SparkFun forums.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

Parts

63
QtyValueFootprintReferences
41kSparkFun-Resistor:R_0603_1608MetricR1, R6, R8, R9
4Fiducial_0.5mmSparkFun-Aesthetic:Fiducial_0.5mm_Mask1mmFID1, FID2, FID3, FID4
4StandoffSparkFun-Hardware:StandoffST1, ST2, ST3, ST4
310kSparkFun-Resistor:R_0603_1608MetricR3, R4, R7
21.0uFSparkFun-Capacitor:C_0603_1608MetricC1, C3
2BSS138SparkFun-Semiconductor-Standard:SOT23-3Q1, Q2
2G***kibuzzard-65F04FCAkibuzzard-65F04FCA, kibuzzard-65F04FCA
2G***kibuzzard-65F04F60kibuzzard-65F04F60, kibuzzard-65F04F60
2G***kibuzzard-65F054C3kibuzzard-65F054C3, kibuzzard-65F054C3
2JST_2mm_LiPoSparkFun-Connector:JST_SMD_2.0mm-2J1, J2
2RedSparkFun-LED:LED_0603_1608Metric_RedD2, D3
2~SparkFun-Jumper:Jumper_2_NC_TraceJP1, JP2
10.1uFSparkFun-Capacitor:C_0603_1608MetricC4
1100SparkFun-Resistor:R_0603_1608MetricR5
1100kSparkFun-Resistor:R_0603_1608MetricR10
1200kSparkFun-Resistor:R_0603_1608MetricR2
147uFSparkFun-Capacitor:EIA-3528C2
16V/2.0A/4.0ASparkFun-Fuse:1210F1
1BAS16JSparkFun-Semiconductor-Standard:SOD-323D1
1Conn_01x06SparkFun-Connector:1x06J3
1FlameSparkFun-Aesthetic:SparkFun_Flame_2.5mmG***
1G***kibuzzard-65F0634Bkibuzzard-65F0634B
1G***kibuzzard-65F174FDkibuzzard-65F174FD
1G***kibuzzard-65F05628kibuzzard-65F05628
1G***kibuzzard-65F056B4kibuzzard-65F056B4
1G***kibuzzard-65F05604kibuzzard-65F05604
1G***kibuzzard-65F05495kibuzzard-65F05495
1G***kibuzzard-65F05644kibuzzard-65F05644
1G***kibuzzard-65F05472kibuzzard-65F05472
1G***kibuzzard-65F1758Ckibuzzard-65F1758C
1G***kibuzzard-65F0636Bkibuzzard-65F0636B
1G***kibuzzard-65F05416kibuzzard-65F05416
1G***kibuzzard-65F053F1kibuzzard-65F053F1
1G***kibuzzard-65F056F7kibuzzard-65F056F7
1G***kibuzzard-65F0543Akibuzzard-65F0543A
1G***kibuzzard-65F056D8kibuzzard-65F056D8
1LOGOSparkFun-Aesthetic:SparkFun_Logo_12.5mmG***
1OSHW_LogoSparkFun-Aesthetic:Creative_Commons_LicenseG3
1SIL2308SparkFun-Semiconductor-Standard:SOT23-6-TightQ3
1SMD_5.2x5.2mm_h2.5mmSparkFun-Switch:Push_SMD_5.2x5.2mm_h2.5mmSW1
1SN74LVC1G14DCKSparkFun-Semiconductor-Standard:SOT-353U2
1SN74LVC1G175DCKSparkFun-Semiconductor-Standard:SOT-323U4
1SN74LVC1G17DCKSparkFun-Semiconductor-Standard:SOT-353U3
1Val**SparkFun-Aesthetic:OSHW_Logo_2.5mmRef**

More from sparkfun/SparkFun_Soft_Power_Switch_Mk2

1
  • 2 layers142.7 × 194.5 mmSoft Power Switch panelized, the printed circuit board in 3D

    Soft Power Switch panelized

    sparkfun/SparkFun_Soft_Power_Switch_Mk2

    Documentation, example code, and hardware for the SparkFun Soft Power Switch - JST 2mm.

    2,177 parts2

Similar boards

  • 2 layers25.4 × 25.4 mmSoft Power Switch USB C, the printed circuit board in 3D

    Soft Power Switch USB C

    sparkfun/SparkFun_Soft_Power_Switch_USB-C

    Documentation, example code, and hardware for the SparkFun Soft Power Switch - USB-C.

    61 parts2
  • 4 layers28.6 × 80.6 mmPmodADC, the printed circuit board in 3D

    PmodADC

    schilkp/PmodADC

    A fully discrete 14bit, 41kHz, FPGA-controlled Successive-Approximation Audio ADC and R2R Audio DAC.

    137 parts6MIT
  • 2 layers41 × 87 mmDif pressure meter, the printed circuit board in 3D

    Dif pressure meter

    ardiloot/dif-pressure-meter

    ESP32 based differential pressure (and air flow) meter. Handheld, battery powered DIY device for measuring small pressure differences (Sensirion SDP810-500Pa).

    68 parts23MIT
  • 4 layers133.2 × 187.2 mmSparkFun RTK Facet mosaic panelized, the printed circuit board in 3D

    SparkFun RTK Facet mosaic panelized

    sparkfun/SparkFun_RTK_Facet_mosaic

    The hardware repository for the designs of the PCBs in the SparkPNT RTK Facet mosaic. This repo also includes the design files for the display and connector boards utilized in our next-generation of Facet GNSS products.

    1,383 parts
  • 2 layers228.9 × 5.5 mmTMP117 section 5cm, the printed circuit board in 3D

    TMP117 section 5cm

    BerkeleyLab/DxP-sensor-probes

    Hardware design for the DxP (Distributed sensor Profiling) sensor probe.

    38 parts1
  • 4 layers46.5 × 67.8 mmLoggerhw v5.0, the printed circuit board in 3D

    Loggerhw v5.0

    BerkeleyLab/DxP-data-logger

    Hardware design for the DxP (Distributed sensor Profiling) data logger that connects to a DxP sensor probe.

    62 parts
  • 2 layers75 × 65 mmMotormodul, the printed circuit board in 3D

    Motormodul

    Meo98/picostack

    Stackable, contract-driven module system for the Raspberry Pi Pico — open hardware, built by code

    63 partsGPL-3.0

Questions

How big is the Soft Power Switch PCB?

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

What parts does the Soft Power Switch use?

63 parts, built around the SN74LVC1G17DCK, SN74LVC1G14DCK, SN74LVC1G175DCK and BSS138. 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 Soft Power Switch KiCad files?

From the sparkfun/SparkFun_Soft_Power_Switch_Mk2 repository on GitHub, at the commit this page was made from: the board is Hardware/Soft_Power_Switch.kicad_pcb and its schematic Hardware/Soft_Power_Switch.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Soft Power Switch design in my own project?

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