Soft Power Switch Application Help - JST 2mm

Hello. I would like to use the Soft Power Switch - JST 2mm with the Bluetooth transmitter TSA5001

It has the following functions when button is pressed:

Pair button:

Long press 3 seconds into searching mode

Long press 5 seconds clear the pairing info.

I would like to use one button and on a short press to power on / off the device and when the device is on to still be able to access the pairing function using the long press function without turning off the device because of the button press. Would that be possible with this board? Thank you.

Hi @ApicoNamaco ,

Welcome! Thank you for your interest in our products.

Sorry, no, I don’t think the Soft Power Switch will do what you need it to do. Let me explain:

The Soft Power Switch turns the power output on with a short press of the button. A long press (around 10 seconds) will force the power off again. A microcontroller can turn the power off sooner by pulling the OFF breakout pin high.

The PUSH breakout pin goes low when the button is pressed. You could connect that to the TSA5001 pair button. It would work IF the pair button is also active low (pulls a pin to GND). I can not confirm this from the information on the TinySine site.

But, to turn the power off again, you would need to hold the button for 10 seconds. PUSH would also be low for 10 seconds and that would clear the pairing information each time… So, sorry, no, I do not think it will do what you need - unless you are happy to lose the pairing information each time you power off?

Best wishes,
Paul

You could add a microcontroller board and program it to:

  • Detect a short press of the button, say 1 second
  • If it detects that short press, it turns the Soft Power Switch off via the OFF breakout pin
  • It would need to ignore longer presses (> 1 second), to allow PUSH to control the pairing

It is possible, but you would need to write some code to do this. You could use the example in the hook up guide as your starting point.

I hope this helps,
Paul