<?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[Core2 deep sleep with wakeup by PIR sensor]]></title><description><![CDATA[<p dir="auto">Hello everyone!<br />
I'm new to M5Stack products, and just bought Core2 with Axp2101, stacked with expander M5Stack M123. Using M5Unified library.</p>
<p dir="auto">What I'm trying to achieve:<br />
Use PIR sensor (currently connected to GPIO 36, via groove portB) to wake the unit from deep sleep, whenever it detects movement. I'm using</p>
<pre><code>esp_sleep_enable_ext0_wakeup(GPIO_NUM_36, 1);
</code></pre>
<p dir="auto">And it kinda works, but the problem is Core2 still uses 30mA in deep sleep. I've tried disabling LCD, speaker, mic, etc., but the only way I was able to really drop it down was to use</p>
<pre><code>M5.Power.Axp2101.setBLDO2(0);
</code></pre>
<p dir="auto">however, the PIR doesn't wake the unit anymore then. (it works great with just a sleep timer though, but I really need that PIR sensor wake up... )</p>
<p dir="auto">Disabling other stuff from Axp2101 leaving only BLDO2 enabled:</p>
<pre><code>M5.Power.Axp2101.setALDO1(0);
M5.Power.Axp2101.setALDO2(0);
M5.Power.Axp2101.setALDO3(0);
M5.Power.Axp2101.setALDO4(0);
M5.Power.Axp2101.setBLDO1(0); 
M5.Power.Axp2101.setDLDO1(0);
M5.Power.Axp2101.setDLDO2(0);
</code></pre>
<p dir="auto">helped a bit, got down to about 25mA. But that is still way too high.<br />
Is there some way to have true deep sleep, but be able to wake up with PIR sensor (which really should use a fraction of mA, if I'm not mistaken)?<br />
Should I connect it in a different way maybe?</p>
]]></description><link>https://community.m5stack.com/topic/8069/core2-deep-sleep-with-wakeup-by-pir-sensor</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 01:47:23 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/8069.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Feb 2026 19:14:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 deep sleep with wakeup by PIR sensor on Tue, 10 Feb 2026 08:56:08 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/drvval" aria-label="Profile: drvval">@<bdi>drvval</bdi></a></p>
<p dir="auto">when I run M5Core2 v1.1 from battery, power consumption gets down to about 5.2 mA @ 4.2 V in ESP32 deep sleep.</p>
<p dir="auto">BTW: Interestingly when running from battery I can turn off the boost circuit.</p>
<p dir="auto">In my test I now only turn LCD backlight to zero and turn off boost circuit. When I turn LCD and/or TP off things start to go wrong. My guess is that ESP32 SPI / I2C bus gets confused if devices are suddenly disappearing.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/30619</link><guid isPermaLink="true">https://community.m5stack.com/post/30619</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Tue, 10 Feb 2026 08:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 deep sleep with wakeup by PIR sensor on Mon, 09 Feb 2026 10:58:45 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a>  !<br />
Thank you for your answer!<br />
Ultimately, I want to power core2 from the battery, so if I understand correctly, it is not possible to avoid 30mA current because of the 5V boost circuit, which needs to stay on in order to power ESP32?</p>
<p dir="auto">Do you think the situation would be any better on Core1 (Fire) which uses axp192?</p>
<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/30610">Core2 deep sleep with wakeup by PIR sensor</a>:</p>
<blockquote>
<p dir="auto">Using external power via M5Bus (but without PIR connected) my M5Core2 v1.1 in deep sleep only consumes about 2.9 mA.</p>
</blockquote>
<p dir="auto">Is there a simple way to connect external power from like a battery pack or something like that, so that the unit is still portable?</p>
<p dir="auto">In the end, I just want to turn some LEDs on, whenever there is movement detected by PIR, but charging the battery every 2 days defeats the purpose of such setup</p>
<p dir="auto">Thank you so much for your input!</p>
]]></description><link>https://community.m5stack.com/post/30613</link><guid isPermaLink="true">https://community.m5stack.com/post/30613</guid><dc:creator><![CDATA[drvval]]></dc:creator><pubDate>Mon, 09 Feb 2026 10:58:45 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 deep sleep with wakeup by PIR sensor on Sun, 08 Feb 2026 10:49:07 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/drvval" aria-label="Profile: drvval">@<bdi>drvval</bdi></a></p>
<p dir="auto">BLDO2 controls the 5 V boost circuit.</p>
<p dir="auto">When M5Core2 v1.1 is powered on, code in M5Unified library checks whether there is external 5 V power available (from M5Bus or Grove port).</p>
<p dir="auto">If yes, the boost circuit is turned off, and M5Core2 is running from external power.</p>
<p dir="auto">If no, the boost circuit is turned on (and consumes power) and M5Core2 is running from battery or USB.</p>
<p dir="auto">Note: why, when running from USB or battery, turning the boost circuit off manually prevents ESP32 from waking up from deep sleep is not entirely clear to me.</p>
<p dir="auto">In order to go lower you could try to power M5Core2 via 5V on the M5Bus or Grove port. And without USB connection.</p>
<p dir="auto">(Testing gets a bit tedious this way, as one constantly needs to switch between USB for programming and external power for testing.)</p>
<p dir="auto">Using external power via M5Bus (but without PIR connected) my M5Core2 v1.1 in deep sleep only consumes about 2.9 mA.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/30610</link><guid isPermaLink="true">https://community.m5stack.com/post/30610</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Sun, 08 Feb 2026 10:49:07 GMT</pubDate></item></channel></rss>