<?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[16340リチウムバッテリー残量の取得]]></title><description><![CDATA[<p dir="auto">「M5StampS3 Grove Breakout」 で16340リチウムバッテリーで動かしているのですが、16340リチウムバッテリー電池のバッテリー残量を取得するには、どうすればよいでしょうか？</p>
<p dir="auto">たぶん、全然間違ってると思いますが、M5.Power.getBatteryLevel()　だと -2 が返ってきてダメでした。</p>
<p dir="auto">よろしくお願いいたします。</p>
]]></description><link>https://community.m5stack.com/topic/7562/16340リチウムバッテリー残量の取得</link><generator>RSS for Node</generator><lastBuildDate>Thu, 07 May 2026 15:05:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7562.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 May 2025 05:30:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 16340リチウムバッテリー残量の取得 on Fri, 22 Aug 2025 12:20:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/somesome" aria-label="Profile: SOMESOME">@<bdi>SOMESOME</bdi></a></p>
<p dir="auto">GPIOの8から、ADCを通した電圧がとれるようです。<br />
analogRead(8);</p>
<p dir="auto">当方では取れた値と計算値で以下のような値が取れてます。</p>
<p dir="auto">実測値<br />
4.16 V ADC 2440	満充電<br />
3.80 V ADC 2325<br />
3.71 V ADC 2222<br />
3.50 V ADC 2100<br />
3.00 V ADC 1800<br />
計算値<br />
3.4 V（警告） ≒ ADC 2036<br />
3.2 V（機能制限） ≒ ADC 1916<br />
3.0 V（強制停止） ≒ ADC 1796</p>
<p dir="auto">ざっくり実装でよければ<br />
100%	4.150V<br />
90&amp;	4.035V<br />
80%	3.920V	<br />
70%	3.805V<br />
60%	3.690V<br />
50%	3.575V<br />
40%	3.460V<br />
30%	3.345V<br />
20%	3.230V<br />
10%	3.115V</p>
<p dir="auto">くらいを見積もればよいのでは、と思われます。</p>
]]></description><link>https://community.m5stack.com/post/29828</link><guid isPermaLink="true">https://community.m5stack.com/post/29828</guid><dc:creator><![CDATA[wat_nor]]></dc:creator><pubDate>Fri, 22 Aug 2025 12:20:47 GMT</pubDate></item></channel></rss>