You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.sparkfun.com/products/27081)
4
+
[](https://www.sparkfun.com/products/27081)
5
5
6
-
[*SparkFun Soft Power Switch Mk2 (PRT-27081)*](https://www.sparkfun.com/products/27081)
6
+
[*SparkFun Soft Power Switch - USB-C (PRT-27081)*](https://www.sparkfun.com/products/27081)
7
7
8
8
9
9
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 ~7 seconds will force a power-down. If you're building something with an enclosed Thing Plus board and need a good power button, this is the board you need.
@@ -30,7 +30,7 @@ If needed, pads are provided for a larger, external button.
30
30
31
31
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.
32
32
33
-
<b>Heads up!</b> The Mk2 Soft Power Switch works up to 5.5V only. (Mk1 is good up to 12V.)
33
+
<b>Heads up!</b> The Soft Power Switch - USB-C works up to 5.5V only. (Mk1 is good up to 12V.)
34
34
35
35
Pros:
36
36
@@ -88,7 +88,7 @@ Product Versions
88
88
89
89
Version History
90
90
---------------
91
-
* v2.0 - Soft Power Switch Mk2 - USB (PRT-27081 and SPX-25366)
91
+
* v2.0 - Soft Power Switch - USB-C (PRT-27081 and SPX-25366)
92
92
* v1.0 - Soft Power Switch Mk1 (JST 2mm) (SPX-17870)
Copy file name to clipboardExpand all lines: docs/arduino_example.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,12 +235,12 @@ After uploading the code, disconnect the Arduino from your COM port. Then wire a
235
235
</table>
236
236
</div>
237
237
238
-
If you have not already, connect the Soft Power Switch Mk2's power, OFF, and PUSH to your Arduino's GPIO pins. In this case, we used the SparkFun IoT RedBoard - ESP32 Development Board. Depending on your microcontroller, you may need to adjust the pin connections and definitions with respect to the microcontroller's GPIO pins.
238
+
If you have not already, connect the Soft Power Switch's power, OFF, and PUSH to your Arduino's GPIO pins. In this case, we used the SparkFun IoT RedBoard - ESP32 Development Board. Depending on your microcontroller, you may need to adjust the pin connections and definitions with respect to the microcontroller's GPIO pins.
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Initial_Boot_No_Button_Press.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Initial_Boot_No_Button_Press.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch Mk2 with No Button Press on Startup"></a></td>
299
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Initial_Boot_No_Button_Press.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Initial_Boot_No_Button_Press.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch - USB-C with No Button Press on Startup"></a></td>
300
300
</tr>
301
301
<tr style="vertical-align:middle;">
302
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch Mk2 with No Button Press on Startup</i></td>
302
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch - USB-C with No Button Press on Startup</i></td>
303
303
</tr>
304
304
</table>
305
305
</div>
@@ -327,10 +327,10 @@ Power button released after ms: 300
327
327
<divstyle="text-align: center;">
328
328
<table>
329
329
<tr style="vertical-align:middle;">
330
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch Mk2 Normal Operation - Power On"></a></td>
330
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch - USB-C Normal Operation - Power On"></a></td>
331
331
</tr>
332
332
<tr style="vertical-align:middle;">
333
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch Mk2 Normal Operation - Power On</i></td>
333
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch - USB-C Normal Operation - Power On</i></td>
334
334
</tr>
335
335
</table>
336
336
</div>
@@ -354,10 +354,10 @@ Pulling OFF high
354
354
<divstyle="text-align: center;">
355
355
<table>
356
356
<tr style="vertical-align:middle;">
357
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation_Power_Down.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation_Power_Down.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch Mk2 Normal Operation Power Down"></a></td>
357
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation_Power_Down.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation_Power_Down.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch - USB-C Normal Operation Power Down"></a></td>
358
358
</tr>
359
359
<tr style="vertical-align:middle;">
360
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch Mk2 Normal Operation Power Down</i></td>
360
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch - USB-C Normal Operation Power Down</i></td>
361
361
</tr>
362
362
</table>
363
363
</div>
@@ -377,15 +377,15 @@ Remember the output from earlier? There were additional options to control the S
377
377
<divstyle="text-align: center;">
378
378
<table>
379
379
<tr style="vertical-align:middle;">
380
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch Mk2 Normal Operation - Power On"></a></td>
380
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_Button_Press_Normal_Operation.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch - USB-C Normal Operation - Power On"></a></td>
381
381
</tr>
382
382
<tr style="vertical-align:middle;">
383
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch Mk2 Normal Operation - Power On</i></td>
383
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch - USB-C Normal Operation - Power On</i></td>
384
384
</tr>
385
385
</table>
386
386
</div>
387
387
388
-
Let's send an <kbd>r</kbd> to lock the system to force the Soft Power Switch Mk2 to power down. Then press down on the power button for 7 seconds. You will receive the following message indicating that the system is locked. Once the power button is pressed down, an additional message on the next line will be output to indicate that we are waiting for the power override.
388
+
Let's send an <kbd>r</kbd> to lock the system to force the Soft Power Switch - USB-C to power down. Then press down on the power button for 7 seconds. You will receive the following message indicating that the system is locked. Once the power button is pressed down, an additional message on the next line will be output to indicate that we are waiting for the power override.
389
389
390
390
```bash
391
391
System locked. Now hold power button to force power down without using software
@@ -395,10 +395,10 @@ Doing nothing, waiting for power override to kick in
@@ -414,10 +414,10 @@ Doing nothing, waiting for power override to kick in
414
414
<div style="text-align: center;">
415
415
<table>
416
416
<tr style="vertical-align:middle;">
417
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_System_Locked.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_System_Locked.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch Mk2 Unable to Force Power Down"></a></td>
417
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><a href="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_System_Locked.JPG"><img src="../assets/img/Arduino_Output_Soft_Power_Switch_Serial_Basic_System_Locked.JPG" width="600px" height="600px" alt="Arduino Output Soft Power Switch - USB-C Unable to Force Power Down"></a></td>
418
418
</tr>
419
419
<tr style="vertical-align:middle;">
420
-
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch Mk2 Unable to Force Power Down</i></td>
420
+
<td style="text-align: center; vertical-align: middle; border: solid 1px #cccccc;"><i>Arduino Output Soft Power Switch - USB-C Unable to Force Power Down</i></td>
@@ -121,7 +121,7 @@ Of course, power can also be soldered directly to the PTH as well. Since we are
121
121
</div>
122
122
123
123
!!! note
124
-
The voltage range of the Soft Power Switch Mk2 is between 1.8V to 5.5V. Users can also connect a different power source and connect the output to VIN or 5V of their system. Just make that the voltage is within the operating range of the target device.
124
+
The voltage range of the Soft Power Switch - USB-C is between 1.8V to 5.5V. Users can also connect a different power source and connect the output to VIN or 5V of their system. Just make that the voltage is within the operating range of the target device.
125
125
126
126
127
127
@@ -143,7 +143,7 @@ For users that need to connect an external button, you will simply need to conne
0 commit comments