<?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[Light &#x2F; Deep sleep example]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">I took a stab at fixing light / deep sleep for M5Core2 and created an example showing how light / deep sleep works. <a href="https://github.com/m5stack/M5Core2/pull/19" target="_blank" rel="noopener noreferrer nofollow ugc">link to pull-request</a></p>
<p dir="auto">Happy Stacking<br />
Felix</p>
]]></description><link>https://community.m5stack.com/topic/2505/light-deep-sleep-example</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 02:26:15 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2505.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Nov 2020 09:46:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Wed, 06 Dec 2023 19:20:58 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/happyuser" aria-label="Profile: HappyUser">@<bdi>HappyUser</bdi></a></p>
<p dir="auto">I think you are mistaken. AFAIK the M5Atom Lite / Matrix doesn't contain an AXP.</p>
<p dir="auto">BTW: With M5Atom Lite / Matrix you will never get a really low power consumption as even when ESP32 is sleeping there still is the USB/Serial chip which cannot be turned off I think.</p>
<p dir="auto">For the M5AtomS3 you can find a deep sleep example <a href="https://github.com/felmue/MyM5StackExamples/tree/main/M5AtomS3/DeepSleepTest" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22988</link><guid isPermaLink="true">https://community.m5stack.com/post/22988</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 06 Dec 2023 19:20:58 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Wed, 06 Dec 2023 13:26:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> I just read this post. I am also facing high current during deep sleep om the M5Atom.<br />
I am curious : could you give an example code how to power down (expect for AXP and RTC).<br />
Thanks</p>
]]></description><link>https://community.m5stack.com/post/22982</link><guid isPermaLink="true">https://community.m5stack.com/post/22982</guid><dc:creator><![CDATA[HappyUser]]></dc:creator><pubDate>Wed, 06 Dec 2023 13:26:31 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Fri, 15 Oct 2021 13:46:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> Thanks for the sample code !<br />
For rumble part yes it was shaken it.. i have read your kb about Core2 and see not possible without hardware modification...</p>
<p dir="auto">Thanks again for you quick answer !</p>
]]></description><link>https://community.m5stack.com/post/15136</link><guid isPermaLink="true">https://community.m5stack.com/post/15136</guid><dc:creator><![CDATA[todely]]></dc:creator><pubDate>Fri, 15 Oct 2021 13:46:25 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Fri, 15 Oct 2021 11:26:49 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/todely" aria-label="Profile: todely">@<bdi>todely</bdi></a></p>
<p dir="auto">have a look at this <a href="https://github.com/felmue/M5Core2/blob/fm-experimental-sleep-test-1/examples/experimental/sleep_test.ino" target="_blank" rel="noopener noreferrer nofollow ugc">example</a> I've put together a while ago. It shows how to go into light sleep and deep sleep and how to wake up by timer or touch.</p>
<p dir="auto">What do you exactly mean by 'rumble detection'? If you mean waking M5Core2 when it is shaken then I am afraid that's not possible without a hardware modification. The reason being that the interrupt line of the motion detection IC (MPU6886) is not connected to anything. See <a href="https://www.gwendesign.ch/kb/m5stack/m5core2/#wake-on-motion-wom-using-mpu6886-interrupt" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> for how I modified my M5Core2.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/15135</link><guid isPermaLink="true">https://community.m5stack.com/post/15135</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 15 Oct 2021 11:26:49 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Fri, 15 Oct 2021 09:53:24 GMT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/jesse-schein" aria-label="Profile: jesse-schein">@<bdi>jesse-schein</bdi></a> for your contribution !</p>
<p dir="auto">Could you please add a sample code to wake up from light ou deep sleep ? i can't find à way to go in light or deep sleep and wake up by CORE2 touch or rumble detection.</p>
<p dir="auto">Thanks !</p>
]]></description><link>https://community.m5stack.com/post/15134</link><guid isPermaLink="true">https://community.m5stack.com/post/15134</guid><dc:creator><![CDATA[todely]]></dc:creator><pubDate>Fri, 15 Oct 2021 09:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Tue, 15 Dec 2020 14:21:32 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jesse-schein" aria-label="Profile: jesse-schein">@<bdi>jesse-schein</bdi></a></p>
<p dir="auto">you are very welcome and thank you for your kind words - much appreciated.</p>
<p dir="auto">Happy Stacking!<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11219</link><guid isPermaLink="true">https://community.m5stack.com/post/11219</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 15 Dec 2020 14:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Tue, 15 Dec 2020 12:53:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/11210">Light / Deep sleep example</a>:</p>
<blockquote>
<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jesse-schein" aria-label="Profile: jesse-schein">@<bdi>jesse-schein</bdi></a></p>
<p dir="auto">When everything is powered down except for AXP and RTC (e.g. shutdown mode / RTC sleep mode) I measure a current at the battery of about 0.263 mA = 263 uA.</p>
<p dir="auto">Thanks<br />
Felix</p>
</blockquote>
<p dir="auto">Thanks so much! Thanks for all your contributions around the m5stack details, m5stack team does a pretty good job at describing the products but you really help out! Thanks again!</p>
]]></description><link>https://community.m5stack.com/post/11214</link><guid isPermaLink="true">https://community.m5stack.com/post/11214</guid><dc:creator><![CDATA[jesse-schein]]></dc:creator><pubDate>Tue, 15 Dec 2020 12:53:57 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Tue, 15 Dec 2020 09:20:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jesse-schein" aria-label="Profile: jesse-schein">@<bdi>jesse-schein</bdi></a></p>
<p dir="auto">When everything is powered down except for AXP and RTC (e.g. shutdown mode / RTC sleep mode) I measure a current at the battery of about 0.263 mA = 263 uA.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11210</link><guid isPermaLink="true">https://community.m5stack.com/post/11210</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 15 Dec 2020 09:20:14 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Mon, 14 Dec 2020 21:31:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a><br />
With your recent commits to the github library, will RTC sleep mode with the IRQ actually turn off everything (ESP, AXP, LDO2,LDO3, DC boosts)? It will just leave the RTC on since its connected to LDO1?</p>
<p dir="auto">Does this result in super low deep sleep current in the microamp range? I tried to look at the AXP192 data sheet to see what the LDO1 quiescent current is but didnt see anything listed. I'd imagine just external RTC on is basically no power? And I can use that to wake the ESP32/AXP192 backup since the AXP192 is in powermode A since LDO1 is tied to Sys_en on the AXP192?</p>
<p dir="auto">Or does this completely stop the current since the RTC has its own battery it looks like?</p>
]]></description><link>https://community.m5stack.com/post/11207</link><guid isPermaLink="true">https://community.m5stack.com/post/11207</guid><dc:creator><![CDATA[jesse-schein]]></dc:creator><pubDate>Mon, 14 Dec 2020 21:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sun, 06 Dec 2020 14:52:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">I finally figured out how to lower deep sleep current below light sleep current.</p>
<p dir="auto">Function <code>gpio_deep_sleep_hold_en()</code> needs to be called before going into deep sleep.</p>
<p dir="auto">With that deep sleep current goes down to 2.6 mA (timer and touch enabled as wake source). Or even lower to 1.8 mA if only timer is enabled as wake source.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11064</link><guid isPermaLink="true">https://community.m5stack.com/post/11064</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 06 Dec 2020 14:52:59 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sun, 06 Dec 2020 13:48:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi Rop</p>
<p dir="auto">it just occurred to me that the behaviour you're describing is exactly how the system reacted with the original M5Core2 library and before my pull-request which fixed light / deep sleep was merged.</p>
<p dir="auto">So, please make sure you have the latest M5Core2 library from github.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11063</link><guid isPermaLink="true">https://community.m5stack.com/post/11063</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 06 Dec 2020 13:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sun, 06 Dec 2020 13:49:10 GMT]]></title><description><![CDATA[<p dir="auto">Hello Rop</p>
<p dir="auto">hmm, never waking up normally means that for some reason ESP32 lost power completely somehow.</p>
<p dir="auto">You could try to comment out the five code lines before going to light sleep to see if that helps in regard of waking up. If yes, try to uncomment line by line to find the culprit.</p>
<p dir="auto">BTW: with those five code lines commented out I get 11.1 mA in light sleep (again, measured at the battery).</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11051</link><guid isPermaLink="true">https://community.m5stack.com/post/11051</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 06 Dec 2020 13:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sat, 05 Dec 2020 16:52:27 GMT]]></title><description><![CDATA[<p dir="auto">Hi Felix!</p>
<p dir="auto">Strange... With me that code, using Arduino IDE, just says "<code>Going to light sleep for 50 seconds.</code>" and then it never wakes up again. I measure 19.7 mA at the USB input when it does that.</p>
<p dir="auto">Have to powercycle and then start uploading code before it goes to sleep again to get out of it...</p>
]]></description><link>https://community.m5stack.com/post/11047</link><guid isPermaLink="true">https://community.m5stack.com/post/11047</guid><dc:creator><![CDATA[Rop]]></dc:creator><pubDate>Sat, 05 Dec 2020 16:52:27 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sat, 05 Dec 2020 15:05:16 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/rop" aria-label="Profile: Rop">@<bdi>Rop</bdi></a></p>
<p dir="auto">the lowest power consumption, with timer and touch screen wakeup, I've managed to achieve so far is about 3.2 mA in light sleep (measured at the battery).</p>
<p dir="auto">An experimental example with the relevant part and pieces can be found <a href="https://github.com/felmue/M5Core2/blob/fm-experimental-sleep-test-1/examples/experimental/sleep_test.ino" target="_blank" rel="noopener noreferrer nofollow ugc">here</a>.</p>
<p dir="auto">Interestingly the power consumption in deep sleep is slightly higher (about 4.5 mA) and I have not yet been able to figure out why.</p>
<p dir="auto">Please let me know if you happen to figure out how to get even lower power consumption in either sleep mode.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11044</link><guid isPermaLink="true">https://community.m5stack.com/post/11044</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sat, 05 Dec 2020 15:05:16 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Sat, 05 Dec 2020 08:41:44 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> ,</p>
<p dir="auto">Question: do you know how many mA the system uses in it's most power-saving sleep state where it is still able to wake up on a timer as well as when the touch screen is pressed? Is there code somewhere to accomplish this?</p>
]]></description><link>https://community.m5stack.com/post/11036</link><guid isPermaLink="true">https://community.m5stack.com/post/11036</guid><dc:creator><![CDATA[Rop]]></dc:creator><pubDate>Sat, 05 Dec 2020 08:41:44 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Thu, 26 Nov 2020 09:00:38 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/zontex" aria-label="Profile: Zontex">@<bdi>Zontex</bdi></a></p>
<p dir="auto">cool, you are welcome and thank you for taking the time to test and merge.</p>
<p dir="auto">Cheers<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/10875</link><guid isPermaLink="true">https://community.m5stack.com/post/10875</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 26 Nov 2020 09:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to Light &#x2F; Deep sleep example on Thu, 26 Nov 2020 02:29:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a> said in <a href="/post/10856">Light / Deep sleep example</a>:</p>
<blockquote>
<p dir="auto">link to pull-request</p>
</blockquote>
<p dir="auto">Pull request merged into master, thanks for the contribution <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a>  !</p>
]]></description><link>https://community.m5stack.com/post/10868</link><guid isPermaLink="true">https://community.m5stack.com/post/10868</guid><dc:creator><![CDATA[Zontex]]></dc:creator><pubDate>Thu, 26 Nov 2020 02:29:41 GMT</pubDate></item></channel></rss>