<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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">
	<channel>
		<title>LeafLabs Garden &#187; Topic: Voltage Dividers and Linearity</title>
		<link>http://forums.leaflabs.com/topic.php?id=476</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:18:38 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=476" rel="self" type="application/rss+xml" />

		<item>
			<title>Silntknight on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2661</link>
			<pubDate>Tue, 16 Nov 2010 20:59:33 +0000</pubDate>
			<dc:creator>Silntknight</dc:creator>
			<guid isPermaLink="false">2661@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;The very same project. The details of my project seem to be scattered everywhere. Maybe one day, when I get it all together, I'll also create a new thread to discuss it.&#60;/p&#62;
&#60;p&#62;Also, I added a new level of complexity to my project. To avoid the hassles of stroke timing, I just decided to let the Maple control the valve timing also. I'm modifying fuel injectors to be fast-acting solenoid valve operators. This creates some VERY interesting possibilities.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2632</link>
			<pubDate>Tue, 16 Nov 2010 15:32:02 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">2632@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;optoisolator? you doing some MIDI work?
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I believe the project is the one described in several other threads.&#60;br /&#62;
It connects to an internal combustion engine, and controls the spark!&#60;br /&#62;
I'd use an optoisolator too :-)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2625</link>
			<pubDate>Tue, 16 Nov 2010 14:50:28 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">2625@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;optoisolator? you doing some MIDI work?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Silntknight on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2594</link>
			<pubDate>Mon, 15 Nov 2010 21:56:22 +0000</pubDate>
			<dc:creator>Silntknight</dc:creator>
			<guid isPermaLink="false">2594@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Gbulmer, the equation I used is the equation in the program, not the divider ratio. The 4096 is the maximum value of any analog input. Basically, my equation works off the principle that the voltage in is &#34;x.&#34; My voltage divider has R1 as 1 and R2 as 2 (I guess kilohms). The divider is, thus, a 5 to 3.3 divider.&#60;/p&#62;
&#60;p&#62;I think when I said &#34;voltage&#34; in that quote, I meant temperature.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2587</link>
			<pubDate>Mon, 15 Nov 2010 19:12:31 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">2587@http://forums.leaflabs.com/</guid>
			<description>&#60;blockquote&#62;&#60;p&#62;Now, if I scale this down using a voltage divider (5V to 3V), does this change the 10mV/K to 6.6mV/K?&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;To be accurate, a voltage divider could scale by that ratio, it depends on the selection of values. It also depends on the characteristics of the device; poslathians warning about impedence needs to be considered.&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;If it doesn't change, I can get the voltage by K = (330/4096)*x
&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I don't think that is the ideal ratio.&#60;/p&#62;
&#60;p&#62;say the temperature is about 20C, about 292K&#60;br /&#62;
292K * 10mV = 2.92V * (330/4096) = 0.235V&#60;br /&#62;
Even if the LM335 was at its maxium of 150C (about 422 K) the scale you quote of 10mV/K&#60;br /&#62;
would only be a voltage drop of&#60;br /&#62;
422 * 10mv/K = 4.22V * (330/4096) = 0.34V&#60;br /&#62;
That is wasting more almost 90% of the ADC's dynamic range (or the top 3+ bits)&#60;/p&#62;
&#60;p&#62;I think a factor of 1/10 has crept in.&#60;/p&#62;
&#60;p&#62;Also, there is no resitor standard that includes the value of 4096, 3 sig. fig. is all you get AFAIK.&#60;/p&#62;
&#60;p&#62;I think it needs something closer to 3.3/5.0, not 0.33/5.0&#60;/p&#62;
&#60;p&#62;1% resistors are only a few cents, so you can use a wider range of values than E24 standard values to get closer to the computation you want to do. You need to calibrate it anyway, to ensure their are no mistakes that have crept in.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Silntknight on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2574</link>
			<pubDate>Mon, 15 Nov 2010 16:54:51 +0000</pubDate>
			<dc:creator>Silntknight</dc:creator>
			<guid isPermaLink="false">2574@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;I'm not sure I have enough space in my project to add an opamp. Recently, I had to add two 16-pin DIPs because I needed an optoisolator and a MOSFET gate driver. As long as every voltage is affected equally, I can simply change my program to compensate for the readings. If a 5V output becomes 3.3V but a 4V output becomes 2.5 instead of 2.6, then I'll have a real problem. Even then, there should be a mathematical workaround. From what you posted, I inferred that the equation that gives me the output based on the output voltage is then scaled by k as well. Thanks, that was really helpful.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>poslathian on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2548</link>
			<pubDate>Mon, 15 Nov 2010 15:17:40 +0000</pubDate>
			<dc:creator>poslathian</dc:creator>
			<guid isPermaLink="false">2548@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Voltage dividers will give you a linear divisor, so your output voltage becomes k*Vin, where k is (R2/(R1+R2)). However, be careful that the added impedance of your voltage divider doesn't effect your sensor output. You may want to buffer the output with an opamp follower before dividing it down. Of course, in that case, you might as well just divide the voltage down with the opamp, give it a gain of 3.3/5  by adjusting the feedback and input resistors.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Silntknight on "Voltage Dividers and Linearity"</title>
			<link>http://forums.leaflabs.com/topic.php?id=476#post-2523</link>
			<pubDate>Sun, 14 Nov 2010 19:36:35 +0000</pubDate>
			<dc:creator>Silntknight</dc:creator>
			<guid isPermaLink="false">2523@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello again, this time I have a LM335A temperature sensor. It usually runs a good 5V, but I need to scale the output voltage down to 3.3V. The problem is that the output range is limited from 2.33V to 3.73V, because it is calibrated directly in Kelvin and the output is 10mV/K. Now, if I scale this down using a voltage divider (5V to 3V), does this change the 10mV/K to 6.6mV/K? If it doesn't change, I can get the voltage by K = (330/4096)*x. Otherwise, it becomes a different equation (which I haven't bothered to derive).&#60;/p&#62;
&#60;p&#62;On the same note, would this then affect all such devices whose outputs are based on a linear scale (ex. my pressure sensor)?&#60;/p&#62;
&#60;p&#62;EDIT: I derived the second equation and it is K = (500/4096)*x. What makes this interesting is that it is the same equation as if I didn't have a voltage divider at all. This may be due to the fact that I divided by the same ratio that I multiplied by earlier.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
