<?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[M5stack Timer Camera F: advice on using power.isCharging()]]></title><description><![CDATA[<p dir="auto">Hello everyone,</p>
<p dir="auto">I'm currently working on a project using the M5Stack Timer Camera F board with the ESP-IDF (Espressif IoT Development Framework) environment. I need to determine whether the device is currently charging or not, and I came across the <code>power.isCharging()</code> function provided by the M5Stack library.</p>
<p dir="auto">However, since I'm using the ESP-IDF and there is no mention of the timer camera in the library documentation, I'm unsure how to correctly use this function within my project or if it is possible at all.</p>
<p dir="auto">Could someone please guide me on how to use the <code>power.isCharging()</code> function in the M5Stack Timer Camera F with the ESP-IDF environment? Specifically, I'm interested in understanding the necessary setup and any additional configurations or code snippets required to access this functionality.</p>
<p dir="auto">Any advice, examples, or insights would be greatly appreciated.</p>
<p dir="auto">Thank you in advance for your help!</p>
<p dir="auto">Best regards,<br />
Simone</p>
]]></description><link>https://community.m5stack.com/topic/5310/m5stack-timer-camera-f-advice-on-using-power-ischarging</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 11:03:04 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5310.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 May 2023 10:17:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to M5stack Timer Camera F: advice on using power.isCharging() on Wed, 24 May 2023 14:45:07 GMT]]></title><description><![CDATA[<p dir="auto">Dear <a class="plugin-mentions-user plugin-mentions-a" href="/user/felmue" aria-label="Profile: felmue">@<bdi>felmue</bdi></a></p>
<p dir="auto">Thank you very much for your quick response!</p>
<p dir="auto">Unfortunately, it is what I expected, but you were very kind!</p>
<p dir="auto">Best,<br />
Simoc</p>
]]></description><link>https://community.m5stack.com/post/20957</link><guid isPermaLink="true">https://community.m5stack.com/post/20957</guid><dc:creator><![CDATA[simoc]]></dc:creator><pubDate>Wed, 24 May 2023 14:45:07 GMT</pubDate></item><item><title><![CDATA[Reply to M5stack Timer Camera F: advice on using power.isCharging() on Thu, 18 May 2023 08:12:34 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/simoc" aria-label="Profile: simoc">@<bdi>simoc</bdi></a></p>
<p dir="auto">AFAIK <code>power.isCharging()</code> is a function from M5Stack devices (Base, Fire, etc.) which use a power management chip (IP5306) which allows to read this information via software (I2C).</p>
<p dir="auto">In Timer Camera F a different solution is used to charge the battery which doesn't have I2C and therefore doesn't allow to check whether the battery is being charged via software.</p>
<p dir="auto">As you can see from below picture (taken from this <a href="https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/schematic/TimerCAM/TimerCAM_A2-PMS_UART.pdf" target="_blank" rel="noopener noreferrer nofollow ugc">schematic</a>), the charger IC doesn't have I2C and also the CHRG pin is not connected to anything.</p>
<p dir="auto"><img src="/assets/uploads/files/1684396851088-m5stacktimercamfbatcharger20230518.png" alt="0_1684396853931_M5StackTimerCamFBatCharger20230518.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I see two possibilities:</p>
<ul>
<li>you could try to read the battery voltage via ADC as there is a connection from the battery through a voltage divider to GPIO38. However it will be difficult to determine from that whether the battery is actually being charged or not.</li>
<li>you could modify the hardware and connect the CHRG output to a free GPIO of the ESP32.</li>
</ul>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/20880</link><guid isPermaLink="true">https://community.m5stack.com/post/20880</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Thu, 18 May 2023 08:12:34 GMT</pubDate></item></channel></rss>