Soft Power Switch Mk2 - JST 2mm

Added to your shopping cart

The Soft Power Switch Mk2 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 ~10 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 connector.

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. 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 Mk2 Soft Power Switch works up to 5.5V only. (Mk1 is good up to 12V.)

Pros:

  • Very low quiescent current: <1µA @ 3.75V, with VIN LED disabled
  • 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

We do not plan to regularly produce SparkX products so get them while they’re hot!

Experimental Product: SparkX products are rapidly produced to bring you the most cutting edge technology as it becomes available. These products are tested but come with no guarantees. Live technical support is not available for SparkX products. Head on over to our forum for support or to ask a question.

  • Input voltage: 5.5V maximum, 1.8V minimum
  • 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
  • Hard override: push and hold the button for ~10 seconds
  • Supports battery charging
  • 1" x 1" PCB
  • LEDs: VIN and VOUT (can be disabled if desired)
  • Breakouts:
    • 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

Comments

Looking for answers to technical questions?

We welcome your comments and suggestions below. However, if you are looking for solutions to technical questions please see our Technical Assistance page.

  • Hi, how would I connect it to a PC to reprogram it? Thanks

    • PaulZC, THANKS 1000000!!!!!!!! Sparkfun Team, you are the best. Regards from Asturias!

    • PaulZC / about 2 weeks ago / 1

      Hi. You can't reprogram the switch itself. It's a discrete circuit based around a flip-flop. There are no programmable components on the board. But we have written an example sketch showing how you can control the switch from a microcontroller board. Please see the Documents tab for more details. I hope this helps, Paul

      • Thanks a lot PaulZC, you guys are the best friends ;). As you can see I'm a real newbie. A routing diagram with a microcontroller, Arduino or ESP32 would be very helpful. Again, thanks a thousand!!!

  • erff / about 2 months ago / 1

    Are VIN and VOUT isolated from the other pins? Can a microcontroller be independently powered and just connected to the control pinsm

    • PaulZC / about 2 months ago / 2

      Hi. VIN and VOUT are not isolated, but you should have no problem using this with an independent microcontroller. GND is common between the JST connectors (battery negative) and the GND breakout pad. There needs to be a connection from GND to the GND / 0V on your microcontroller board. You can then: read the PUSH signal using any GPIO input with INPUT_PULLUP (PUSH is an open-drain output); control the OFF signal using any GPIO output (3.3V works well, the board is 5V tolerant, 1.8V may work but I haven't tested it). I hope this helps, Paul

      • Member #478181 / about 2 weeks ago / 1

        Why not I ask? The output switch has level shifting. The board would be much more useful if logic voltage were derived from VIN, i.e. regulated, and VIN could handle higher voltage as I and probably many others power things off 12V/24V batteries.

Customer Reviews

No reviews yet.