<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Seeed Studio XIAO nRF52840で、裏面のBATパッドに接続したLiPoバッテリーの電圧を計測する方法を調査した。 方法 バッテリー電圧(VBAT)は nRF52840 の P0.31(AIN7)に接続されている。ただし、下図のように1MΩと510kΩで分圧されており、P0.14 をLOWにしたときに計測可能になる。 サンプルスケッチ 1 (ボード設定: Seeed nRF52 Boards) ボードの設定は Seeed nRF52 Boards を選択する。 シリアルポートにバッテリー電圧値をmV単位で出力する。 #include &lt;Adafruit_TinyUSB.h&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F2023%2F01%2F03%2F091635&quot; title=&quot;XIAO nRF52840 のバッテリー電圧計測 - 滴了庵日録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/l/licheng/20230101/20230101170828.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-03 09:16:35</published>
  <title>XIAO nRF52840 のバッテリー電圧計測</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/2023/01/03/091635</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
