<?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[Vmeter only reads upto 3v and then the ADC value loops]]></title><description><![CDATA[<p dir="auto">The ADC value at 0v volts is approx 65,536 and then decreases to 0 as the voltage is increased until approx 3v, and then will reset again to 65,536 then decrease again to 0 for 3-6V.  So I can only measure over the 3v range.<br />
Trying to change the gain has no affect.<br />
I am using a raspberrypi.<br />
ie<br />
i2cget -y 1 0x49 0x00 w</p>
]]></description><link>https://community.m5stack.com/topic/7179/vmeter-only-reads-upto-3v-and-then-the-adc-value-loops</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 19:13:17 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7179.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 Jan 2025 15:34:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Sun, 12 Jan 2025 08:42:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/erkel" aria-label="Profile: erkel">@<bdi>erkel</bdi></a><br />
It is working now.<br />
Just a noob issue.<br />
It was the endianesse of the values.  it gives the output as expected when converted to little endian, rather naturally reading the value.,</p>
]]></description><link>https://community.m5stack.com/post/27861</link><guid isPermaLink="true">https://community.m5stack.com/post/27861</guid><dc:creator><![CDATA[erkel]]></dc:creator><pubDate>Sun, 12 Jan 2025 08:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Sat, 11 Jan 2025 22:08:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/teastain" aria-label="Profile: teastain">@<bdi>teastain</bdi></a></p>
<p dir="auto">Not using any drivers / library abstraction.<br />
Just reading the registers over the I2C bus.</p>
<p dir="auto">Have tried both Python, C and simply i2cget -y 1 0x49 0x00 w on the command line etc.<br />
Just one layer above bit banging sort of thing.</p>
<p dir="auto">Does the E2PROM calibration data look correct?</p>
]]></description><link>https://community.m5stack.com/post/27856</link><guid isPermaLink="true">https://community.m5stack.com/post/27856</guid><dc:creator><![CDATA[erkel]]></dc:creator><pubDate>Sat, 11 Jan 2025 22:08:45 GMT</pubDate></item><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Sat, 11 Jan 2025 20:49:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/erkel" aria-label="Profile: erkel">@<bdi>erkel</bdi></a> Well, seeing as how you are not connecting it to a M5Stack product, but a RPi, what library (driver) are you using?<br />
Also: What language are you programming it in?</p>
]]></description><link>https://community.m5stack.com/post/27855</link><guid isPermaLink="true">https://community.m5stack.com/post/27855</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Sat, 11 Jan 2025 20:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Sat, 11 Jan 2025 19:24:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/erkel" aria-label="Profile: erkel">@<bdi>erkel</bdi></a><br />
Here is the E2prom data</p>
<p dir="auto">root@raspberrypi:/projects/battery_blancer/battery_balancer# ./c6<br />
Address 0x00 - 0x0f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x10 - 0x1f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x20 - 0x2f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x30 - 0x3f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x40 - 0x4f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x50 - 0x5f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x60 - 0x6f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x70 - 0x7f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x80 - 0x8f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0x90 - 0x9f: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0xa0 - 0xaf: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0xb0 - 0xbf: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0xc0 - 0xcf: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0xd0 - 0xdf: ff ff ff ff ff ff ff ff 01 1d d9 1d d8 00 00 00<br />
Address 0xe0 - 0xef: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff<br />
Address 0xf0 - 0xff: 04 13 e6 13 e2 00 00 00 ff ff ff ff ff ff ff ff</p>
<p dir="auto">Or is the calibration data wrong and that is why the reading it simply rolling over every 3 volts.</p>
<p dir="auto">The voltage divider seems ok.<br />
I get ~0.4v at the mid point between the resistors with a 24V supply.</p>
]]></description><link>https://community.m5stack.com/post/27854</link><guid isPermaLink="true">https://community.m5stack.com/post/27854</guid><dc:creator><![CDATA[erkel]]></dc:creator><pubDate>Sat, 11 Jan 2025 19:24:35 GMT</pubDate></item><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Sat, 11 Jan 2025 17:51:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/holofloh" aria-label="Profile: holofloh">@<bdi>holofloh</bdi></a><br />
I have three of them and they are all the same.</p>
]]></description><link>https://community.m5stack.com/post/27853</link><guid isPermaLink="true">https://community.m5stack.com/post/27853</guid><dc:creator><![CDATA[erkel]]></dc:creator><pubDate>Sat, 11 Jan 2025 17:51:56 GMT</pubDate></item><item><title><![CDATA[Reply to Vmeter only reads upto 3v and then the ADC value loops on Fri, 10 Jan 2025 06:17:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/erkel" aria-label="Profile: erkel">@<bdi>erkel</bdi></a><br />
This sounds like a poor solder joint at the internal voltage divider (the 11k and 680k resistors).</p>
]]></description><link>https://community.m5stack.com/post/27836</link><guid isPermaLink="true">https://community.m5stack.com/post/27836</guid><dc:creator><![CDATA[holofloh]]></dc:creator><pubDate>Fri, 10 Jan 2025 06:17:24 GMT</pubDate></item></channel></rss>