<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random notes &#38; other stuff... &#187; zener</title>
	<atom:link href="http://leucos.lstilde.org/wp/tag/zener/feed/" rel="self" type="application/rss+xml" />
	<link>http://leucos.lstilde.org/wp</link>
	<description>...about Linux, electronics, digital photography, whatever...</description>
	<lastBuildDate>Wed, 16 Dec 2009 00:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Maximizing ADC range for decent battery voltage monitoring (with minimum parts)</title>
		<link>http://leucos.lstilde.org/wp/2009/05/maximizing-adc-range-for-decent-battery-voltage-monitoring-with-minimum-parts/</link>
		<comments>http://leucos.lstilde.org/wp/2009/05/maximizing-adc-range-for-decent-battery-voltage-monitoring-with-minimum-parts/#comments</comments>
		<pubDate>Fri, 29 May 2009 00:33:31 +0000</pubDate>
		<dc:creator>leucos</dc:creator>
				<category><![CDATA[electronics]]></category>
		<category><![CDATA[adc]]></category>
		<category><![CDATA[battery]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[zener]]></category>

		<guid isPermaLink="false">http://leucos.lstilde.org/wp/?p=329</guid>
		<description><![CDATA[How to make most of an anag to digital converter (ADC), using it's full bit range to measure circuit's battery voltage with a simple zener, two resistors and and I/O pin.]]></description>
			<content:encoded><![CDATA[<p>Tracking circuit&#8217;s battery voltage can be a nice addition to your project. Knowing what is the battery state can help designing a better, more clever circuit, and take appropriate actions depending on the battery state.</p>
<p><strong>Voltage reference</strong></p>
<p>In some project, I wanted to use my µcontroller ADC to get battery voltage. The first problem you encounter is : how can I measure on my ADC the circuit voltage since the top value of the ADC is the circuit voltage itself ? Yes, indeed, using the ADC this way you&#8217;ll always end up reading the maximum value (256 for 8 bits ones, 1024 for 10 bits ones, &#8230;), since the circuit voltage <strong>is</strong> the reference voltage.</p>
<p>This can be solved most of the time. For instance, in atmel microcontrollers, you just have to use the internal reference (most of the time 1.1v or 2.56v) by changing the ADMUX register bits. Atmel AVRs also let you provide your own reference at the AREF pin. The datasheet gives plenty of details about this.</p>
<p>When using Arduino, you can achieve the same ADMUX control by using the <a title="analogReference reference" href="http://www.arduino.cc/en/Reference/AnalogReference"><em>analogReference(ref)</em></a> command where <em>ref</em> can be one of :</p>
<ul>
<li>DEFAULT: use the circuit&#8217;s supply as reference (5 or 3.3 volts depending on the supply)</li>
<li>INTERNAL: use the built-in reference 1.1 volts on the <span class="wikiword">ATmega168</span> and 2.56 volts on the <span class="wikiword">ATmega8</span>.</li>
<li>EXTERNAL: the voltage applied to the AREF pin is used as the reference.</li>
</ul>
<p>This being said, we can start working, but the real challenges lies ahead.</p>
<p><strong>Gain</strong></p>
<div id="attachment_333" class="wp-caption alignleft" style="width: 101px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/voltagedivider.png"><img class="size-full wp-image-333" title="ADCVoltageDivider" src="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/voltagedivider.png" alt="Simple voltage divider" width="91" height="239" /></a><p class="wp-caption-text">Simple voltage divider</p></div>
<p>Now that we have our reference, how can we measure that battery (let&#8217;s say LiPo) voltage ? Let&#8217;s suppose the chosen reference is 1.1v. We can not compare the battery voltage directly. LiPo can go as high as 4.25v, much higher than our reference. So we have to scale it down. We can use a voltage divider (a pair of resistors) to make this easily. By doing so, we are applying a gain &lt; 1, to make the battery voltage range seen by the ADC fit below our voltage reference.</p>
<p>Now, what resistors values should we choose ?</p>
<p>We know that :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Since we want V to be 1.1v (same as our voltage reference) when battery is full (thus 4.25v), the equation can be written as :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Ok, we have our R1/R2 ratio. Since we don&#8217;t want this circuit to waste energy (after all, we&#8217;re measuring our own battery), we want R1 and R2 to be as high as reasonably possible so current flowing will be negligeable.</p>
<p>Let&#8217;s say we take 3MΩ for R2, we can use a 1MΩ resistor for R1.</p>
<p>Great, we now lowered the voltage in our circuit, so when the battery is full (4.25v), we read almost exactly the value given by our voltage reference (1.1 in this case), which is the max value that our ADC can report.</p>
<p>But wait, what happens when the battery is depleted ? Depleted batteries never show 0v. LiPos for instance, are depleted at 2.7v. What will 2.7v show in the ADC in our situation ? Remember :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a> (we&#8217;re basically dividing the battery voltage by 4 with the values choosen for the resistors)</p>
<p>Thus, when our LiPo is empty, we&#8217;ll read 0.675v, and since :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>So our 10bits ADC will tell us some number around 628. So, unfortunately, in this configuration, the only range used by our 10bits ADC is [628-1024], approximately 60% of it&#8217;s range. This is pretty bad. Now that we know how to make the voltage range fit below our voltage reference, it could be cool to extend this to the full range of our ADC. We now want our ADC to say 0 when battery is depleted, and not 628.</p>
<p><strong>Offsetting</strong></p>
<p>As you may have guessed, we can achieve that by offsetting. Offsetting means adjusting the range by using an offset value. And in our case, we just want to lower measured signal by the minimum value the battery can have : 2.7v.</p>
<p>Ok, but how can we do that ?</p>
<div id="attachment_351" class="wp-caption alignleft" style="width: 157px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/offsetting_diode.png"><img class="size-full wp-image-351" title="ADCOffsettingDiode" src="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/offsetting_diode.png" alt="Offsetting the signal with a simple diode" width="147" height="300" /></a><p class="wp-caption-text">Offsetting the signal with a simple diode</p></div>
<p>Well, everybody out there probaby know this way to go already. But being self taught in electronics, I just didn&#8217;t had the iden in the first place. I probably not very good at Googling too, so, I just searched for a way.</p>
<p>My initial idea was to use a rectifier diode. Let&#8217;s say we arrange the circuit on the left, with a diode between Vbat and R2. Voltage between the diode will be <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a>. This is fine, things are starting to take place. Yes we want to drop some voltage thru rectifiers until Vf is 2.7v (the minimum value we are interested in).</p>
<p>Unfortunately, this is not practical. First, Vf varies greatly according to the current in he circuit. Take a diode datasheet, find the <em>Vf vs. I</em> graph, you&#8217;ll get the idea. The other problem is to get the Vf we want. It varies, but it is usualy pretty low. This means that we would have to chain several diodes to get the desired effect, but might get surprised in the real achieved Vf, since it depends on diode bin, current, the way we read the graphs, etc&#8230;</p>
<p>Not very practical. After spending an hour browsing datasheets to find the holy grail having the good Vf, I slammed my head on thedesk : &laquo;&nbsp;<em>Just use a Zener stupid n00b!</em>&laquo;&nbsp;. Yes, Zener, that was the solution.</p>
<p>Instead of chaining diodes, I just had to put a Zener at the same place, reverse biased, with Vr being the lowest value I needed to measure in my circuit !</p>
<p>But there is still a problem : we are interested in the Zener&#8217;s have a reverse breakdown volatge value. But this voltage (usually noted Vr in their datasheets) is given for a certain current. If we use MegaOhm-style resistors, it simply won&#8217;t work : you&#8217;ll end up with a Vr completely different (around 0.7v, the classic N-P junction Vf with the Zener I tried). Again, we have to open the Zener&#8217;s datasheet, and look for the test current.</p>
<p>For instance BZX79 series have an Iztest current of 5mA. This means that we will have to make 5mA flow thru this branch to have the reverse breakdown voltage we are looking for.On the capture below, we can see the ideal situation. Yellow is Vbat, green is Vbat-Vz and purple is Vz (Vz is calculated by the scope, note the different scale).</p>
<div id="attachment_393" class="wp-caption aligncenter" style="width: 330px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/zenerbat.png"><img class="size-full wp-image-393" title="ADCZenerBattery" src="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/zenerbat.png" alt="Voltages in seen in circuit (yellow is Vbat, green is Vbat-Vz, purple is Vz)" width="320" height="240" /></a><p class="wp-caption-text">Voltages in seen in circuit (yellow is Vbat, green is Vbat-Vz, purple is Vz)</p></div>
<p>But the needed current for the Zener to work is pretty high, given we are running on batteries, and we want to be energy conservative. So, how can we do ?</p>
<p>After some more thoughts, the solution came : instead of plugging this circuitry to ground, we&#8217;ll plug it to a microcontroller pin. When we want to measure the battery voltage (which is something we son&#8217;t have to do very often), we just put the pin in OUTPUT mode, and set it to 0v (low). Despite the name, when a pin is in OUTPUT mode, it will sink current if it&#8217;s low. The rest of the time, the pin will be set to INPUT mode (Hi-z). It&#8217;s as easy as this.</p>
<div id="attachment_355" class="wp-caption alignleft" style="width: 154px"><a href="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/measure_circuit.png"><img class="size-full wp-image-355" title="ADCFinalMesauringCircuit" src="http://leucos.lstilde.org/wp/wp-content/uploads/2009/05/measure_circuit.png" alt="Final circuit for battery monitoring" width="144" height="302" /></a><p class="wp-caption-text">Final circuit for battery monitoring</p></div>
<p>The circuit now looks like this. With our ADC, we are measuring voltage V, between the &laquo;&nbsp;first&nbsp;&raquo; resistor and the reverse biased Zener.</p>
<p>How can we choose the component values to maximize ADC range now ? We&#8217;ll try to find this out with generic terms, so it can be applied to other power sources.</p>
<p>First, some facts. The maximum value that will be read by the ADC will be Vref when supply voltage is VbatMax &#8211; Vz.<br />
The minimum value read will be VbatMin-Vz, and should be equal to 0.</p>
<p>We already can deduce how we have to choose Vz (and thus, the Zener) :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Ok, the right Zener Vz should be equal to the minimum reading we&#8217;re interested in, just what we guessed above.</p>
<p>Now, let&#8217;s try to find the usual relationship between R1 and R2 in our voltage divider. As stated in the above facts, the maximum value that will be read by the ADC is VbatMax &#8211; Vz. Ideally, in the middle of our voltage divider, this value should be exactly equal (scaled) to Vref (let&#8217;s call it Vmax).</p>
<p>Thus, we can lay down the usual voltage divider equation stuff :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Since all the &laquo;&nbsp;<em>Vsomething</em>&nbsp;&raquo; are <em>known</em> values, we do have a relashionship between R1 and R2 to create our divider. The values used do not matter, only the ratio&#8230; err wait. Let&#8217;s not forgot about the Zener&#8217;s Iztest ! Remember that to get the reverse beakdown voltage we need, we have a constraint : we have to make the Iztest  current flow thru the circuit. So we need to scale R1 and R2 appropriately. Of course, since the battery voltage varies (why would we need to measure it if it wouldn&#8217;t ?), establishing a current based on the resistors values is an approximation. When the battery voltage will be low, the current will low too, and our measurement won&#8217;t be as accurate as with a full battery.</p>
<p>We have several ways to handle this : we can just ignore this, and assume some average voltage. This would be probably fine for LiPos, since most of the time, they hang around 3.7v. We could get the lowest voltage we want to measure, and take it as a base to calculate resistor values to achieve Iztest. But since this voltage is zero, we won&#8217;t go far. The best option is probably to take the microcontroller datasheet, and use the maximum sink current (let&#8217;s call it Isink, watch for typos <img src='http://leucos.lstilde.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) when Vbat is at maximum. This will suck the battery a bit during the ADC sampling, but again, we don&#8217;t need to check battery voltage every millisecond. Of course, we need Isink to be higher than Iztest. If Isink &gt; Iztest, no problem as long as we don&#8217;t go over the Zener&#8217;s power rating. If Isink &lt; Iztest, dump that crappy microcontroller, turn computer off, and have a walk.</p>
<p>Ok, let&#8217;s use this and calculate resistor values to get a correct current, and a good resistor ratio.</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Since VbatMax, Vz and Isink are known values, we know what R1+R2 is. And since we have a relashionship between R1 and R2, we have all we need to get R1 and R2 values. Let&#8217;s try it out.</p>
<p><strong>Pencil and paper test</strong></p>
<p>Let&#8217;s try a real life example. We want to measure our LiPo voltage. So we&#8217;ll use these values :</p>
<p style="text-align: center;"><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a><br />
<span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a><br />
<span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a><br />
<span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p style="text-align: left;">We already know that : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p style="text-align: left;">Let&#8217;s find the R1+R2 sum first : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Ok, now, we can use the R1-R2 relashionship : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>So, reusing the R1+R2 equation above, <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a> (we&#8217;ll use the closest standard value 56Ω).</p>
<p>Finally, <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a> (we&#8217;ll use the closest standard value 22Ω).</p>
<p><strong>Converting ADC reading to real voltage</strong></p>
<p>Now that we&#8217;ve been this far, let&#8217;s not forget what we came here for : get the battery voltage. we have to convert the ADC value back to some human reading.</p>
<p>A <em>n</em> bits ADC reads the voltage at V, and converts it linearly (supposedly) into a value between 0 (meaning 0v in our case) and <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a>  (meaning Vref in our case).</p>
<p>So to convert for an ADC value to battery voltage, we can use :</p>
<p><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p>Finally : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p><strong>Cheat sheet (a.k.a. fast forward mode)</strong></p>
<p><em>Known stuff :</em><strong><br />
</strong></p>
<ul>
<li>Maximum voltage to be measured : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></li>
<li>Minimum voltage to be measured : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></li>
<li>Voltage reference : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></li>
<li>Maximum sink current for µcontroller : <span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></li>
</ul>
<p><em>Stuff to calculate :</em></p>
<ul>
<li>Zener&#8217;s required reverse breakdown voltage :</li>
</ul>
<p style="text-align: center;"><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<ul>
<li> Resistor value R1 (low resistor) :</li>
</ul>
<p style="text-align: center;"><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<ul>
<li>Resistor value R2 (high resistor) :</li>
</ul>
<p style="text-align: center;"><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<ul>
<li><em>n</em> bits ADC to battery voltage conversion :</li>
</ul>
<p style="text-align: center;"><span style="color: red">Error:</span> http://leucos.lstilde.org/wp/wp-content/plugins/wpmathpub/phpmathpublisher/img/ must have write access <a href="http://wordpress.org/extend/plugins/wpmathpub/faq/" title="use 'chmod 755 img' to attempt to manually fix this problem on your server">Read the official wpmathpub plugin FAQ for more details</a></p>
<p style="text-align: left;">Now, I need to test this on the breadboard. Share your experiments if you use the above stuff. And doublecheck the math <img src='http://leucos.lstilde.org/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="?article2pdf=1">PDF version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://leucos.lstilde.org/wp/2009/05/maximizing-adc-range-for-decent-battery-voltage-monitoring-with-minimum-parts/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
