<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67595/i-have-a-question-about-the-power-switch</link><description>Hello! 
 I&amp;#39;m doing the firmware that will be applied to the custom device. This device contains one button, which has two functions. (Function output according to button input time) 
 (This device is not yet manufactured.) 
 One of the two functions is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Oct 2020 00:03:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67595/i-have-a-question-about-the-power-switch" /><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276994?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 00:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2be34eef-e828-4335-992b-b33824a4f687</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Thank you for your help!&lt;br /&gt;I will refer to it and apply it&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276824?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:31:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6c9b655-45c3-402b-9020-53a46a0e4170</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Yes, it will work the same way as with Arduino. With 10k resistors, it will consume additional 600uA - replace them with 510-680k. If your device will be powered off most of the time, maybe this variant makes sense.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276800?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 09:51:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:000f1ae1-2beb-4790-bc2c-da063f997143</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for the good information!&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;I try to turn off the external switch using MOSFET instead of &amp;#39;System Off&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://circuitjournal.com/arduino-auto-power-off#read-push-button-status"&gt;https://circuitjournal.com/arduino-auto-power-off#read-push-button-status&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It tells about power on/off using a switch connected by MOSFET.&lt;br /&gt;This was tested with Arduino, but I think the principle is the same. If I connect the external switch to the two GPIO pins (input and output) and output the switch a LOW signal through the output pin, the device seems to turn off.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is what I thought right?&lt;br /&gt;For example, can I connect the switch to pin 7 and set it as an output and use &amp;#39;nrf_gpio_pin_clear&amp;#39; (7) to turn off the device?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="edit_box___1KtZ3 active___3VPGL" id="txtTarget"&gt;&lt;span&gt;Thank you for your help.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276793?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 08:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f0e16b-b665-4c89-8818-b209d24e8da0</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;&lt;span&gt;SYSTEM OFF is the most power-saving mode in nRF52 - you can configure system to turn off everything except a single GPIO that will be monitored for wake-up signal. Another way is to add an external MOSFET switch to power line, but it has no sense unless the device will be stored on the shelf for years and you need to save 2-3 uA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3-second delay can be implemented with software: device wakes up instantly on button event, then you can set a timer for 3 seconds - if a button is still held, it turns on, otherwise put to sleep again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276762?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 01:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f1cfb52-9d11-40d5-a377-3a727f3a68d8</guid><dc:creator>schosdas</dc:creator><description>&lt;p&gt;Hi, Dmitry.&lt;/p&gt;
&lt;p&gt;Thank you for helping me.&lt;/p&gt;
&lt;p&gt;I am about to turn the power on or off by pressing the button for 3 seconds. Is SYSTEM OFF mode the same as turning off the device completely? And can I turn it on again by pressing the button for 3 seconds?&lt;/p&gt;
&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I have a question about the power switch.</title><link>https://devzone.nordicsemi.com/thread/276757?ContentTypeID=1</link><pubDate>Sun, 25 Oct 2020 21:07:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:caa1f0a6-cc2a-4b9c-9446-9fc3e8d4c043</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure I understood your question right.. The common way is to connect a button with power-on functionality to some GPIO like any other button. The device will be powered on automatically when battery is connected, then you can configure wake-up from PORT event and put CPU into SYSTEM OFF mode (power consumption will be about 3uA).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>