<?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>Power optimisation help</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88693/power-optimisation-help</link><description>Hi Nordic Community 
 
 I am very new to Nordic products and the Zephyr RTOS so please forgive any silly questions. 
 
 I am trying to get a better understanding on how to obtain very low power usage and indeed, what low power measurements are actually</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Jun 2022 14:34:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88693/power-optimisation-help" /><item><title>RE: Power optimisation help</title><link>https://devzone.nordicsemi.com/thread/371940?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 14:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996db509-9010-41ac-8bbe-0ccd9be58012</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power optimisation help</title><link>https://devzone.nordicsemi.com/thread/371851?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 11:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30df8d1d-9e97-4171-9cdf-895ecbddad8d</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Gary T"]Now I am achieving an average power usage of 20µA and a sleep power usage of 3.4µA which is fine for its intended purpose.[/quote]
&lt;p&gt;Great!&lt;/p&gt;
[quote user="Gary T"]I haven&amp;#39;t yet found any default settings for the external crystals.&amp;nbsp;Can someone let me know what the default settings are and whether I need to specifically enable them myself?[/quote]
&lt;p&gt;Default setting is to use the LF crystal.&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1/drivers/clock_control/Kconfig.nrf#L31"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/v2.7.99-ncs1/drivers/clock_control/Kconfig.nrf#L31&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;For boards that does not have LF crystal, set&amp;nbsp;&lt;span&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power optimisation help</title><link>https://devzone.nordicsemi.com/thread/371843?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 11:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3991b498-3ad5-4936-aa1f-e75c912579d6</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is another update on my project.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am very happy to let you know that I managed to get the power levels on the dongle much lower.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The culprit was the SHT31 temperature/humidity sensor, or more specifically, the Zephyr driver for that sensor. Turns out the sensor has 2 modes of operation which include &amp;quot;single shot mode&amp;quot; or &amp;quot;periodic acquisition mode&amp;quot;. The Zephyr driver defaults to the &amp;quot;periodic&amp;quot; mode and this creates a constant current draw of around 45&amp;micro;A. When I changed it to &amp;quot;Single Shot&amp;quot; mode that constant 45&amp;micro;A goes away.&lt;/p&gt;
&lt;p&gt;Now I am achieving an average power usage of 20&amp;micro;A and a sleep power usage of 3.4&amp;micro;A which is fine for its intended purpose.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I can also see that the DC/DC is defaulted &amp;quot;On&amp;quot; in the Kconfig file located in the Zephyr Boards directory.&lt;/p&gt;
&lt;p&gt;# nRF52840 DK NRF52840 board configuration&lt;/p&gt;
&lt;p&gt;# Copyright (c) 2016 Nordic Semiconductor ASA&lt;br /&gt;# SPDX-License-Identifier: Apache-2.0&lt;/p&gt;
&lt;p&gt;if BOARD_NRF52840DK_NRF52840&lt;/p&gt;
&lt;p&gt;config BOARD_ENABLE_DCDC&lt;br /&gt; bool &amp;quot;Enable DCDC mode&amp;quot;&lt;br /&gt; select SOC_DCDC_NRF52X&lt;br /&gt; default y&lt;/p&gt;
&lt;p&gt;config BOARD_ENABLE_DCDC_HV&lt;br /&gt; bool &amp;quot;Enable High Voltage DCDC converter&amp;quot;&lt;br /&gt; select SOC_DCDC_NRF52X_HV&lt;br /&gt; default y&lt;/p&gt;
&lt;p&gt;endif # BOARD_NRF52840DK_NRF52840&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t yet found any default settings for the external crystals.&amp;nbsp;Can someone let me know what the default settings are and whether I need to specifically enable them myself?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Gary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power optimisation help</title><link>https://devzone.nordicsemi.com/thread/371399?ContentTypeID=1</link><pubDate>Wed, 08 Jun 2022 12:29:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5e4db72-fef0-4696-9ff0-8fd05b32dc58</guid><dc:creator>Gary T</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Quick update on my progress with this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have managed to find the following blog post which contains a lot of good info around power optimisation on Zephyr&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also used the attached project to a comment on that post to further see how to implement some of the steps. (The project no longer compiles as some of the functions/API&amp;#39;s have changed but I managed to get it working. You may want to consider updating it.)&lt;/p&gt;
&lt;p&gt;I am still working my way though all the steps detailed in the blog post but I managed to get the Blinky App on the nRF52840 Dongle into a very low power state.&lt;/p&gt;
&lt;p&gt;To start with I cut SB2 and soldered SB1 on the dongle and&amp;nbsp;I then added&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;pm/pm.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;#include&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;&amp;lt;pm/device.h&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;to the main.c file and this reduced the sleep power usage to 3.27&amp;micro;A.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;If I then add&amp;nbsp;&lt;/span&gt;&lt;span&gt;pm_power_state_force&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, (&lt;/span&gt;&lt;span&gt;struct&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;pm_state_info&lt;/span&gt;&lt;span&gt;){&lt;/span&gt;&lt;span&gt;PM_STATE_SOFT_OFF&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;}); after a few repetitions of the blink then the power usage goes down to 0.39&amp;micro;A. This clearly shows me how low power the dongle is cable of going.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;This answers the &amp;quot;Scenario 1&amp;quot; in my post above.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I tested the dongle with my custom BT Beacon app and the power usage went down to 66&amp;micro;A average and 41&amp;micro;A when &amp;quot;sleeping&amp;quot;. This is 20&amp;micro;A lower than my previous measurements. I haven&amp;#39;t managed to get it lower yet. I would like to get the sleep current to around the 3.3&amp;micro;A (same as the Blinky App) or lower.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I am still confused about why the sleep current on the DK is 4.6&amp;micro;A but 41&amp;micro;A on the dongle? Since I now know that the dongle is capable of very low power usage what could be running on the dongle that isn&amp;#39;t being measured on the DK?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I will continue to apply the steps from the blog post and see if they make any difference. I would still appreciate&amp;nbsp;feedback to my questions above please.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Gary&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>