<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Some questions about power]]></title><description><![CDATA[<p dir="auto">I've nearly completed my project on M5Paper, with thanks to the people on this forum who've helped me over many hurdles. The crucial last aspect is to get it running as long as possible on battery.</p>
<p dir="auto">Basically my project loads about 5 days worth of data from an internet resource; and then should update a display based on this data every 10 minutes or so.</p>
<p dir="auto">My original intention (based on this line in the product description "battery life can be further preserved by using the RTC to set the device into deep sleep and wake it up again when needed") was that it could shut down completely, leaving the display intact; wake up every 10 minutes to update just a bit of the display; and every 4-5 days refresh the data feed.</p>
<p dir="auto">However, it now appears that using the shutdown function with a time delay actually reboots the device when the time expires, rather than just waking up.</p>
<p dir="auto">Q1: Is that correct, or have I missed an option that will to shut down everything except the RTC, but preserve state so that it doesn't reboot on wake up?</p>
<p dir="auto">The second issue is that I don't want the display flashing every 10 minutes; it's an essential aspect of this project that the display should be discreet. Hence I only want to make small updates to the display every 10 minutes; larger updates every six hours or so.</p>
<p dir="auto">From experiments, it's evident that the basic arduino 'delay' function makes little or no difference to power consumption.</p>
<p dir="auto">I understand from the data on <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/4037">@felmue</a>'s <a href="https://www.gwendesign.ch/kb/m5stack/" target="_blank" rel="noopener noreferrer nofollow ugc">info page</a> and from <a href="https://community.m5stack.com/topic/2892/m5paper-shutdown-deep-sleep-wakeup">this forum post</a> that it should be possible to use either "light sleep" or "deep sleep". But (a) I've not been able to figure out the code for this and (b) I'm not clear from these sources whether I need to make a hardware modification before it is safe (and effective?) to use these functions. (I'm using an M5Paper V1.1.)</p>
<p dir="auto">Q2: Is deep sleep my next best option to conserve power between updates, without causing massive screen blink?</p>
<p dir="auto">Q3: Do I need to make a hardware modification in order to access this?</p>
<p dir="auto">Finally, if I indeed I can get somewhere with the rest of this, I'm thinking that I'll do a completely shutdown for six hours or so in the middle of the night. That will probably mean reloading the data every 24 hours instead of every 4-5 days.</p>
<p dir="auto">Q4:  If I shut down the wifi immediately after loading data; is the power required to start up the wifi, find the access point, load the data etc more often significant? Or is the power draw of the device as a whole remain fairly steady regardless of whether the wifi is on? If I do shutdown every night, is it worth writing the data to SPIFFS so that it can recover it locally after rebooting, rather than getting it from the internet each time?</p>
<p dir="auto">TIA for answers to any or all of these questions!</p>
]]></description><link>https://community.m5stack.com/topic/4566/some-questions-about-power</link><generator>RSS for Node</generator><lastBuildDate>Mon, 16 Mar 2026 20:49:06 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/4566.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Aug 2022 10:32:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Some questions about power on Sun, 11 Sep 2022 08:42:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello felix,</p>
<p dir="auto">seems to work, thanks.<br />
Will see how long m5paper could work without charge.</p>
<p dir="auto">Fred</p>
]]></description><link>https://community.m5stack.com/post/18583</link><guid isPermaLink="true">https://community.m5stack.com/post/18583</guid><dc:creator><![CDATA[democrazia]]></dc:creator><pubDate>Sun, 11 Sep 2022 08:42:07 GMT</pubDate></item><item><title><![CDATA[Reply to Some questions about power on Thu, 08 Sep 2022 20:47:33 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/25118">@democrazia</a></p>
<p dir="auto">check out my solution <a href="https://github.com/felmue/MyM5StackExamples/blob/main/M5Paper/Lightsleep.py" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18572</link><guid isPermaLink="true">https://community.m5stack.com/post/18572</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 08 Sep 2022 20:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to Some questions about power on Wed, 07 Sep 2022 08:13:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi, do you know the exact command in Micropython ?<br />
Seems that machine.lightspleep(60000) works only if battery is charging and doesn't when the M5paper is away from USB....</p>
<p dir="auto">Have you ever encountered this problem, and how did you solve it?</p>
]]></description><link>https://community.m5stack.com/post/18565</link><guid isPermaLink="true">https://community.m5stack.com/post/18565</guid><dc:creator><![CDATA[democrazia]]></dc:creator><pubDate>Wed, 07 Sep 2022 08:13:12 GMT</pubDate></item><item><title><![CDATA[Reply to Some questions about power on Tue, 30 Aug 2022 05:58:11 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/23937">@Hamnet</a></p>
<p dir="auto">the M5Paper doesn't have an AXP chip therefore we need to call the ESP sleep functions directly like this:</p>
<pre><code> esp_sleep_enable_timer_wakeup(5 * 1000 * 1000);
 esp_light_sleep_start();
</code></pre>
<p dir="auto">And no, for light sleep no extra GPIO settings should be needed. AFAIK those are only required for deep sleep.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18497</link><guid isPermaLink="true">https://community.m5stack.com/post/18497</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 30 Aug 2022 05:58:11 GMT</pubDate></item><item><title><![CDATA[Reply to Some questions about power on Mon, 29 Aug 2022 21:49:33 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Felix. Disappointing that all the substantial sleep modes cause a reboot!</p>
<p dir="auto">My remaining question then is about how to enter light sleep.</p>
<p dir="auto">I found <a href="https://community.m5stack.com/topic/2505/light-deep-sleep-example/12">your post here</a> from two years ago. And <a href="https://community.m5stack.com/topic/3831/m5paper-power-consumption-in-light-sleep/3">this post</a>. There was also <a href="https://www.mischianti.org/2021/03/10/esp32-power-saving-modem-and-light-sleep-2/" target="_blank" rel="noopener noreferrer nofollow ugc">this</a>, which is not M5 specific.</p>
<p dir="auto">From these I <em>think</em> that I need to do something like this:</p>
<pre><code>  M5.disableEPDPower();
  M5.disableEXTPower();

  // then this??
  M5.Axp.LightSleep(SLEEP_SEC(5));
  
 // or this??
 esp_sleep_enable_timer_wakeup(5 * 1000 * 1000);
 esp_light_sleep_start();
</code></pre>
<p dir="auto">Can you clear up my confusion? And (for light sleep) do I need to do anything special with GPIO settings, which I can see from some of your earlier notes?</p>
<p dir="auto">thanks again.</p>
]]></description><link>https://community.m5stack.com/post/18490</link><guid isPermaLink="true">https://community.m5stack.com/post/18490</guid><dc:creator><![CDATA[Hamnet]]></dc:creator><pubDate>Mon, 29 Aug 2022 21:49:33 GMT</pubDate></item><item><title><![CDATA[Reply to Some questions about power on Mon, 29 Aug 2022 14:49:29 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/23937">@Hamnet</a></p>
<p dir="auto">A1: that is correct, after a shutdown, M5Paper always reboots</p>
<p dir="auto">A2: after deep sleep, M5Paper always reboots (only after light sleep the code continues to execute, e.g. no reboot)</p>
<p dir="auto">A3: no, the best option to conserve power is using the shutdown function</p>
<p dir="auto">A4: hard to tell, you probably have to try out different scenarios and observe for each how long a full battery charge lasts</p>
<p dir="auto">I found this <a href="https://github.com/Bastelschlumpf/M5PaperWeather" target="_blank" rel="noopener noreferrer nofollow ugc">Weather Station example</a> which uses the shutdown mode, downloads data using WiFi from time to time with a full screen refresh and does a partly screen update with local data in a shorter interval.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/18486</link><guid isPermaLink="true">https://community.m5stack.com/post/18486</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 29 Aug 2022 14:49:29 GMT</pubDate></item></channel></rss>