<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Monitoring Battery Voltage</title>
	<atom:link href="http://www.neufeld.newton.ks.us/electronics/?feed=rss2&#038;p=1235" rel="self" type="application/rss+xml" />
	<link>http://www.neufeld.newton.ks.us/electronics/?p=1235</link>
	<description></description>
	<lastBuildDate>Sun, 08 Dec 2024 17:19:24 -0600</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Jolly Logic</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-28307</link>
		<dc:creator>Jolly Logic</dc:creator>
		<pubDate>Wed, 07 Sep 2011 16:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-28307</guid>
		<description>Or this, three small resistors, two pins, and no residual drain: 
1. VBATT--&gt;5K ohm--&gt;(Pt A)--&gt;5K ohm--&gt;(Pt B)--&gt;100K ohm--&gt;VBATT
2. Connect (Pt A) to your A2D port
3. Connect (Pt B) to an open drain output (hopefully you have one) of your microcontroller.
If you drive (Pt B) low with your open drain output, you can read 1/2 VBATT at (Pt A). When (Pt B) is high impedance, no current flows (both ends of the chain are at VBATT.</description>
		<content:encoded><![CDATA[<p>Or this, three small resistors, two pins, and no residual drain:<br />
1. VBATT&#8211;&gt;5K ohm&#8211;&gt;(Pt A)&#8211;&gt;5K ohm&#8211;&gt;(Pt B)&#8211;&gt;100K ohm&#8211;&gt;VBATT<br />
2. Connect (Pt A) to your A2D port<br />
3. Connect (Pt B) to an open drain output (hopefully you have one) of your microcontroller.<br />
If you drive (Pt B) low with your open drain output, you can read 1/2 VBATT at (Pt A). When (Pt B) is high impedance, no current flows (both ends of the chain are at VBATT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jolly Logic</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-28304</link>
		<dc:creator>Jolly Logic</dc:creator>
		<pubDate>Wed, 07 Sep 2011 08:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-28304</guid>
		<description>Or rather, less is wasted (your micro&#039;s high isn&#039;t as high as the battery&#039;s)...</description>
		<content:encoded><![CDATA[<p>Or rather, less is wasted (your micro&#8217;s high isn&#8217;t as high as the battery&#8217;s)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jolly Logic</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-28303</link>
		<dc:creator>Jolly Logic</dc:creator>
		<pubDate>Wed, 07 Sep 2011 07:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-28303</guid>
		<description>Came to this late, but wanted to post one nugget now that I found it.
Use the voltage divider approach, but to minimize current when you&#039;re not measuring, ground the bottom of the divider using one of your micro pins (held low). When you&#039;re not using the divider, hold that pin high, and no current is wasted when not measuring. Voila!</description>
		<content:encoded><![CDATA[<p>Came to this late, but wanted to post one nugget now that I found it.<br />
Use the voltage divider approach, but to minimize current when you&#8217;re not measuring, ground the bottom of the divider using one of your micro pins (held low). When you&#8217;re not using the divider, hold that pin high, and no current is wasted when not measuring. Voila!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MoJo</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27791</link>
		<dc:creator>MoJo</dc:creator>
		<pubDate>Tue, 17 May 2011 22:22:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27791</guid>
		<description>I agree with Andrés, you should get adequate results with your system. I did some basic tests with a similar set up (lead acid battery, charged by solar) and it was accurate enough to give a rough estimate of available time left before shutdown.

Most cheap electronics use something similar but built into an IC. Might be worth looking for some battery monitoring chips.

You don&#039;t say what uproc you are using but AVRs have a couple of useful features. The first is protection diodes on the pins which will prevent damage to the AVR if the voltage is too high (assuming low enough current!) which can be handy when you want to charge the battery in circuit. Many also have an analogue comparator that you can use to measure voltage drop over a resistor to calculator current draw. If cost isn&#039;t an issue then a hall effect sensor and op-amp to scale it is a better option though.</description>
		<content:encoded><![CDATA[<p>I agree with Andrés, you should get adequate results with your system. I did some basic tests with a similar set up (lead acid battery, charged by solar) and it was accurate enough to give a rough estimate of available time left before shutdown.</p>
<p>Most cheap electronics use something similar but built into an IC. Might be worth looking for some battery monitoring chips.</p>
<p>You don&#8217;t say what uproc you are using but AVRs have a couple of useful features. The first is protection diodes on the pins which will prevent damage to the AVR if the voltage is too high (assuming low enough current!) which can be handy when you want to charge the battery in circuit. Many also have an analogue comparator that you can use to measure voltage drop over a resistor to calculator current draw. If cost isn&#8217;t an issue then a hall effect sensor and op-amp to scale it is a better option though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrés</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27789</link>
		<dc:creator>Andrés</dc:creator>
		<pubDate>Tue, 17 May 2011 20:15:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27789</guid>
		<description>In my opinion (not a EE) your circuit will work. If you consumption is repetitive and you can draw your discharge curve (easy with a mc: http://www.google.es/search?q=battery+discharge+curve&amp;tbm=isch), you only need to set the Idle-mode point in a voltage before the &quot;knee&quot; of the curve.
Regards.</description>
		<content:encoded><![CDATA[<p>In my opinion (not a EE) your circuit will work. If you consumption is repetitive and you can draw your discharge curve (easy with a mc: <a href="http://www.google.es/search?q=battery+discharge+curve&#038;tbm=isch" rel="nofollow">http://www.google.es/search?q=battery+discharge+curve&#038;tbm=isch</a>), you only need to set the Idle-mode point in a voltage before the &#8220;knee&#8221; of the curve.<br />
Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27210</link>
		<dc:creator>John</dc:creator>
		<pubDate>Sat, 26 Feb 2011 06:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27210</guid>
		<description>VRLA&#039;s are fairly well characterized - the open circuit voltage (Voc) correlates with the state-of-charge (SoC) and with temperature. There is a memory effect whereby Voc will be mis-read if the battery was previously under load - need to wait some time with no load. Keep in mind that the internal impedance increases with discharge (and Voc drops with discharge). If your load is well characterized, other than temp comp, you just need to know the terminal voltage. Lead Acid tempco is roughly -30 mV/°C. See: http://www.panasonic.com/industrial/includes/pdf/Panasonic_VRLA_LC-R127R2P.pdf and http://www.altestore.com/howto/Batteries-Measuring-State-of-Charge/a81/

Most gadgets these days either don&#039;t monitor SoC or use some type of coulomb counter (aka current integrator). This would require a low-value resistor (limit measurement loss) in the current return path and a jellybean opamp (with rail-to-rail capability... not so jellybean I guess) with some gain/lowpass for your ADC.</description>
		<content:encoded><![CDATA[<p>VRLA&#8217;s are fairly well characterized &#8211; the open circuit voltage (Voc) correlates with the state-of-charge (SoC) and with temperature. There is a memory effect whereby Voc will be mis-read if the battery was previously under load &#8211; need to wait some time with no load. Keep in mind that the internal impedance increases with discharge (and Voc drops with discharge). If your load is well characterized, other than temp comp, you just need to know the terminal voltage. Lead Acid tempco is roughly -30 mV/°C. See: <a href="http://www.panasonic.com/industrial/includes/pdf/Panasonic_VRLA_LC-R127R2P.pdf" rel="nofollow">http://www.panasonic.com/industrial/includes/pdf/Panasonic_VRLA_LC-R127R2P.pdf</a> and <a href="http://www.altestore.com/howto/Batteries-Measuring-State-of-Charge/a81/" rel="nofollow">http://www.altestore.com/howto/Batteries-Measuring-State-of-Charge/a81/</a></p>
<p>Most gadgets these days either don&#8217;t monitor SoC or use some type of coulomb counter (aka current integrator). This would require a low-value resistor (limit measurement loss) in the current return path and a jellybean opamp (with rail-to-rail capability&#8230; not so jellybean I guess) with some gain/lowpass for your ADC.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Merlin Skinner</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27162</link>
		<dc:creator>Merlin Skinner</dc:creator>
		<pubDate>Tue, 22 Feb 2011 07:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27162</guid>
		<description>Another thing to be careful of (as if you didn&#039;t have enough to consider) is that ADCs &quot;like&quot; a relatively low input impedance. If you are using a potential divider with high values to minimise current drain, you won&#039;t have that. This is particularly a problem if you are using a multiplexer so you can read several inputs. In this case, you have the capacitive load to consider as well. As mentioned above, a op-amp buffer will solve that for you but at the cost of more power and complexity.

I like Luke S&#039; idea of using a FET to turn off the divider when you are not using it. That way, you can have a &quot;stiff&quot; divider that doubles as a battery test load and still keep minimal (average) battery consumption.</description>
		<content:encoded><![CDATA[<p>Another thing to be careful of (as if you didn&#8217;t have enough to consider) is that ADCs &#8220;like&#8221; a relatively low input impedance. If you are using a potential divider with high values to minimise current drain, you won&#8217;t have that. This is particularly a problem if you are using a multiplexer so you can read several inputs. In this case, you have the capacitive load to consider as well. As mentioned above, a op-amp buffer will solve that for you but at the cost of more power and complexity.</p>
<p>I like Luke S&#8217; idea of using a FET to turn off the divider when you are not using it. That way, you can have a &#8220;stiff&#8221; divider that doubles as a battery test load and still keep minimal (average) battery consumption.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christioher Biggs</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27089</link>
		<dc:creator>Christioher Biggs</dc:creator>
		<pubDate>Tue, 15 Feb 2011 03:00:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27089</guid>
		<description>Some years back, I wrote the software for a solar/SLA powered installation desgined by a &quot;real EE&quot; that did exactly that.

Worked for us, and I&#039;ve always done it the same way since.</description>
		<content:encoded><![CDATA[<p>Some years back, I wrote the software for a solar/SLA powered installation desgined by a &#8220;real EE&#8221; that did exactly that.</p>
<p>Worked for us, and I&#8217;ve always done it the same way since.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27082</link>
		<dc:creator>Ian</dc:creator>
		<pubDate>Sun, 13 Feb 2011 20:15:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27082</guid>
		<description>Sounds like for what you are doing its a suitable solution (and obviously already been debated). The only consideration I will suggest is what kind of lead-acid you are planning on using? Most are only suggested to be discharged up to 50% of their capacity which with this topology would be quite difficult to predict. If you want to get really fancy you might be able to look into a coulomb counter (or add a differential across a small shunt). Assuming you aren&#039;t too worried about the depth of discharge I think you can reasonably approximate monitoring your ~C/360 point through trial and error (this could be affected by C1 depending on the magnitude). If you want to maximize your ADC range you can just buffer the output with a unity op-amp.</description>
		<content:encoded><![CDATA[<p>Sounds like for what you are doing its a suitable solution (and obviously already been debated). The only consideration I will suggest is what kind of lead-acid you are planning on using? Most are only suggested to be discharged up to 50% of their capacity which with this topology would be quite difficult to predict. If you want to get really fancy you might be able to look into a coulomb counter (or add a differential across a small shunt). Assuming you aren&#8217;t too worried about the depth of discharge I think you can reasonably approximate monitoring your ~C/360 point through trial and error (this could be affected by C1 depending on the magnitude). If you want to maximize your ADC range you can just buffer the output with a unity op-amp.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Vogel</title>
		<link>http://www.neufeld.newton.ks.us/electronics/?p=1235&#038;cpage=1#comment-27072</link>
		<dc:creator>Christian Vogel</dc:creator>
		<pubDate>Sun, 13 Feb 2011 12:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.neufeld.newton.ks.us/electronics/?p=1235#comment-27072</guid>
		<description>Ed Davies: A Zener in itself is not really &quot;stiff&quot;, so the zener-voltage will depend quite heavily on the current going through it. As you want to run as little current as possible through the zener, it will not regulate well. Also keep in mind the variations with temperature that also will be different for z-diodes with different nominal voltages.

(an exaggerated U-I-graph is on http://hyperphysics.phy-astr.gsu.edu/hbase/solids/zener.html )

Just use a voltage divider made up from precision resistors (and a trimpot to adjust away the remaining variations) and go into a differential ADC. If the remaining leakage current is too much cut the line with a simple mosfet when not in use.

Chris </description>
		<content:encoded><![CDATA[<p>Ed Davies: A Zener in itself is not really &#8220;stiff&#8221;, so the zener-voltage will depend quite heavily on the current going through it. As you want to run as little current as possible through the zener, it will not regulate well. Also keep in mind the variations with temperature that also will be different for z-diodes with different nominal voltages.</p>
<p>(an exaggerated U-I-graph is on <a href="http://hyperphysics.phy-astr.gsu.edu/hbase/solids/zener.html" rel="nofollow">http://hyperphysics.phy-astr.gsu.edu/hbase/solids/zener.html</a> )</p>
<p>Just use a voltage divider made up from precision resistors (and a trimpot to adjust away the remaining variations) and go into a differential ADC. If the remaining leakage current is too much cut the line with a simple mosfet when not in use.</p>
<p>Chris</p>
]]></content:encoded>
	</item>
</channel>
</rss>
