<?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[Unexpected Vbus readings for M5StickC-Plus]]></title><description><![CDATA[<p dir="auto">I came across a mystery (well, at least a mystery to me) while porting some code to the M5Unified API. In trying to see if the USB power was unplugged, I came across the undocumented M5.Power.getVBUSVoltage() method. In following the source code all they way down, I can see that it's reading the VBus voltage from the AXP192 and then scaling it to return a value in millivolts.</p>
<p dir="auto">I expected to be able to compare that result against 0 to decide if the USB cable was plugged in. When it is plugged in, I get readings a little above 5000 mV. However, when  the cable is unplugged, I get readings around 830 mV. That's with the internal battery nearly fully charged. I don't know if the unplugged reading changes with the internal battery charge or with the M5StickC-Plus workload or whatever.</p>
<p dir="auto">As a workaround, I'm comparing against 2000 mV instead of 0 mV to decide if the device is unplugged.</p>
<p dir="auto">Where do those 830 mV come from?</p>
]]></description><link>https://community.m5stack.com/topic/7640/unexpected-vbus-readings-for-m5stickc-plus</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:12:59 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7640.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Jun 2025 18:56:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unexpected Vbus readings for M5StickC-Plus on Thu, 03 Jul 2025 01:09:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ajb2k3" aria-label="Profile: ajb2k3">@<bdi>ajb2k3</bdi></a> Thanks for the reply. Maybe I'm misunderstanding what the Vbus is supposed to be. I thought it was the power coming in from the USB port. Even if there is a trickle of stuff draining the battery, there shouldn't be any input from USB. I suppose something is just leaking over somehow.</p>
]]></description><link>https://community.m5stack.com/post/29372</link><guid isPermaLink="true">https://community.m5stack.com/post/29372</guid><dc:creator><![CDATA[wjcarpenter]]></dc:creator><pubDate>Thu, 03 Jul 2025 01:09:52 GMT</pubDate></item><item><title><![CDATA[Reply to Unexpected Vbus readings for M5StickC-Plus on Fri, 27 Jun 2025 04:27:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/wjcarpenter" aria-label="Profile: wjcarpenter">@<bdi>wjcarpenter</bdi></a> Standby voltage. the stick doesn't truly power off and there is always a small voltage present in the stick which is why the battery always runs out.<br />
The voltage increasing with a cable plugged in is normal and thank you for pointing out this function.</p>
]]></description><link>https://community.m5stack.com/post/29344</link><guid isPermaLink="true">https://community.m5stack.com/post/29344</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 27 Jun 2025 04:27:25 GMT</pubDate></item><item><title><![CDATA[Reply to Unexpected Vbus readings for M5StickC-Plus on Wed, 25 Jun 2025 19:02:43 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps I should mention what I was doing before porting to the M5Unified API. I was using the M5.Axp API to read the input power status register and decoding it. That told me directly what I wanted to know, but it doesn't seem to be available in the current iteration of the M5Unified API.</p>
]]></description><link>https://community.m5stack.com/post/29334</link><guid isPermaLink="true">https://community.m5stack.com/post/29334</guid><dc:creator><![CDATA[wjcarpenter]]></dc:creator><pubDate>Wed, 25 Jun 2025 19:02:43 GMT</pubDate></item></channel></rss>