<?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: Using the Analog To Digital Converter.</title>
	<atom:link href="http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/feed/" rel="self" type="application/rss+xml" />
	<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/</link>
	<description></description>
	<lastBuildDate>Mon, 08 Mar 2010 20:45:51 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3549</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Wed, 10 Feb 2010 13:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3549</guid>
		<description>@Samuel,

good question. I recommend using the other pins of ADC PORT as INPUT only. And use some other I/O port for OUTPUT purpose. Once I tried to do the same thing. One ADC was used as ANALOG IN while the other pins carried medium frequency DIGITAL OUTPUT signal (to switch seven segment displays). In this configuration the ADC result were not constant, it was fluctuating. When I made the other PINs of ADC free and used some other PORts the problem was solved!
:)
So this info may be useful for you.</description>
		<content:encoded><![CDATA[<p>@Samuel,</p>
<p>good question. I recommend using the other pins of ADC PORT as INPUT only. And use some other I/O port for OUTPUT purpose. Once I tried to do the same thing. One ADC was used as ANALOG IN while the other pins carried medium frequency DIGITAL OUTPUT signal (to switch seven segment displays). In this configuration the ADC result were not constant, it was fluctuating. When I made the other PINs of ADC free and used some other PORts the problem was solved! <img src='http://extremeelectronics.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
So this info may be useful for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Skånberg</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3548</link>
		<dc:creator>Samuel Skånberg</dc:creator>
		<pubDate>Wed, 10 Feb 2010 13:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3548</guid>
		<description>Very nice tutorial!

I have one question, is it possible to use the other pins to other stuff (like lighting LEDs) if I only use one pin for the AD conversion? Or will the AD conversion use the whole port?

I use an AT Mega 16 and the port A is used for AD conversion as well. Can I use port A both to do AD conversion on pin 0 and light a LED on port 1?

Kind regards</description>
		<content:encoded><![CDATA[<p>Very nice tutorial!</p>
<p>I have one question, is it possible to use the other pins to other stuff (like lighting LEDs) if I only use one pin for the AD conversion? Or will the AD conversion use the whole port?</p>
<p>I use an AT Mega 16 and the port A is used for AD conversion as well. Can I use port A both to do AD conversion on pin 0 and light a LED on port 1?</p>
<p>Kind regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3547</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Wed, 10 Feb 2010 10:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3547</guid>
		<description>@ABY
please see article on LCD interfacing first. their you will get details on lcd connections</description>
		<content:encoded><![CDATA[<p>@ABY<br />
please see article on LCD interfacing first. their you will get details on lcd connections</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ABY</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3546</link>
		<dc:creator>ABY</dc:creator>
		<pubDate>Wed, 10 Feb 2010 10:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3546</guid>
		<description>i have gone through the program.its so simple and quickly understood, but only confusion is that which port is assigned to take output,and how to connect that port to LCD...?</description>
		<content:encoded><![CDATA[<p>i have gone through the program.its so simple and quickly understood, but only confusion is that which port is assigned to take output,and how to connect that port to LCD&#8230;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3222</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 18 Dec 2009 15:23:57 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3222</guid>
		<description>yeah tryed it and then noticed some mistakes in a code l wrote it works nicely thx :)</description>
		<content:encoded><![CDATA[<p>yeah tryed it and then noticed some mistakes in a code l wrote it works nicely thx <img src='http://extremeelectronics.co.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3220</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Fri, 18 Dec 2009 13:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3220</guid>
		<description>@Andrew

Please disconnect everything from the ADC port. The value now should show random value. Now connect it directly to Vcc the value should be 1023 and then connect (ADC0) to the GND pin it should show 0.</description>
		<content:encoded><![CDATA[<p>@Andrew</p>
<p>Please disconnect everything from the ADC port. The value now should show random value. Now connect it directly to Vcc the value should be 1023 and then connect (ADC0) to the GND pin it should show 0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3218</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 18 Dec 2009 12:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3218</guid>
		<description>Hi 
l am just starting to work with atmega16 controller and got a hang first tutorials and desided to try this one to but then l connect everything together but then l start a program a result l get is always 1023 and l tryed hooking up a pontiometer insted a LRD and turning it but always l get only 1023 is there something l do wrong with my software? maybe with registers? l used exactly a same code as your posted in this tutorial and l got nothing. Connections is ok</description>
		<content:encoded><![CDATA[<p>Hi<br />
l am just starting to work with atmega16 controller and got a hang first tutorials and desided to try this one to but then l connect everything together but then l start a program a result l get is always 1023 and l tryed hooking up a pontiometer insted a LRD and turning it but always l get only 1023 is there something l do wrong with my software? maybe with registers? l used exactly a same code as your posted in this tutorial and l got nothing. Connections is ok</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mohan</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3206</link>
		<dc:creator>mohan</dc:creator>
		<pubDate>Tue, 15 Dec 2009 10:39:43 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3206</guid>
		<description>hi avinash, good work.
hi i am very poor in basic electronics and also in practicle(circuit designing)....
hi can u sugest me some good websites that gives some idea on basics and circuit design..</description>
		<content:encoded><![CDATA[<p>hi avinash, good work.<br />
hi i am very poor in basic electronics and also in practicle(circuit designing)&#8230;.<br />
hi can u sugest me some good websites that gives some idea on basics and circuit design..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phill</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-3178</link>
		<dc:creator>Phill</dc:creator>
		<pubDate>Fri, 11 Dec 2009 14:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-3178</guid>
		<description>Hi, I&#039;ve build a filtering ciruit and attached it to the adc, connected to the adc is a resistor, on one side of this i&#039;m getting 2.5v on the micro side im getting 0v. if I remove the micro, this goes up to 2.5v. The signal is at approx 0.2mA is this enough? What do i need to set the DDR to for the adc port? I want to use some of the other portbits as digital inputs. Thanks for any help!</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;ve build a filtering ciruit and attached it to the adc, connected to the adc is a resistor, on one side of this i&#8217;m getting 2.5v on the micro side im getting 0v. if I remove the micro, this goes up to 2.5v. The signal is at approx 0.2mA is this enough? What do i need to set the DDR to for the adc port? I want to use some of the other portbits as digital inputs. Thanks for any help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saif ullah khalid</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2887</link>
		<dc:creator>Saif ullah khalid</dc:creator>
		<pubDate>Wed, 21 Oct 2009 16:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2887</guid>
		<description>hi pranav,
U better visit delhi,s lajpat rai market for required stuff ass you can found every thing required there...and that cheaper then any where else u will get</description>
		<content:encoded><![CDATA[<p>hi pranav,<br />
U better visit delhi,s lajpat rai market for required stuff ass you can found every thing required there&#8230;and that cheaper then any where else u will get</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2878</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Tue, 20 Oct 2009 10:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2878</guid>
		<description>Hello Pranav,
Many people in India face same problem. Thats why I started a Online Shop. You can visit it here
http://shop.extremeelectronics.co.in/

I was very angry by local dealers not giving correct parts and also charge so high.</description>
		<content:encoded><![CDATA[<p>Hello Pranav,<br />
Many people in India face same problem. Thats why I started a Online Shop. You can visit it here<br />
<a href="http://shop.extremeelectronics.co.in/" rel="nofollow">http://shop.extremeelectronics.co.in/</a></p>
<p>I was very angry by local dealers not giving correct parts and also charge so high.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pranav</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2877</link>
		<dc:creator>Pranav</dc:creator>
		<pubDate>Tue, 20 Oct 2009 08:25:29 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2877</guid>
		<description>Hey Avinash,
Where do you buy all your electronics stuff in India? I live near Dehradun and for me it seems impossible to get any stuff, no hobby shops around!! Is there any safe online shop which deals with it and do you know any place around Delhi or preferably Lucknow? 
I was able to get in touch with ATmega16 there in Lucknow for my surprise!! :p</description>
		<content:encoded><![CDATA[<p>Hey Avinash,<br />
Where do you buy all your electronics stuff in India? I live near Dehradun and for me it seems impossible to get any stuff, no hobby shops around!! Is there any safe online shop which deals with it and do you know any place around Delhi or preferably Lucknow?<br />
I was able to get in touch with ATmega16 there in Lucknow for my surprise!! :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2773</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Mon, 28 Sep 2009 07:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2773</guid>
		<description>&lt;strong&gt;@Jing

3v is 60% of 5v (Ref Voltage) so 60% of 1024 (Max Value for 10BIT A/D) is required value. 60% of 1024 is 614.4 = 614 and its HEX equivalent is 266. You must write 0x266 (prefix by 0x) in &#039;C&#039; so that compiler knows it is a HEX and not decimal.&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p><strong>@Jing</p>
<p>3v is 60% of 5v (Ref Voltage) so 60% of 1024 (Max Value for 10BIT A/D) is required value. 60% of 1024 is 614.4 = 614 and its HEX equivalent is 266. You must write 0&#215;266 (prefix by 0x) in &#8216;C&#8217; so that compiler knows it is a HEX and not decimal.</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jing jie</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2772</link>
		<dc:creator>jing jie</dc:creator>
		<pubDate>Mon, 28 Sep 2009 06:58:45 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2772</guid>
		<description>i am connecting a LDR to a PIC. i want to compare the value that the LDR to the preset value. how do i represent this preset value in hex? for example, if the value of LDR is less than 3V, then do the following commands. how to concert the 3V to hex value? thanks.</description>
		<content:encoded><![CDATA[<p>i am connecting a LDR to a PIC. i want to compare the value that the LDR to the preset value. how do i represent this preset value in hex? for example, if the value of LDR is less than 3V, then do the following commands. how to concert the 3V to hex value? thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thiru</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2667</link>
		<dc:creator>thiru</dc:creator>
		<pubDate>Fri, 11 Sep 2009 11:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2667</guid>
		<description>thanks for your help</description>
		<content:encoded><![CDATA[<p>thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sanjay</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-2216</link>
		<dc:creator>sanjay</dc:creator>
		<pubDate>Sun, 26 Jul 2009 19:31:02 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-2216</guid>
		<description>hi avinash 
my question is how to get ADC from multiple channels simultaneously.i used to get but the result of all the channel was same .</description>
		<content:encoded><![CDATA[<p>hi avinash<br />
my question is how to get ADC from multiple channels simultaneously.i used to get but the result of all the channel was same .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-1838</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Thu, 04 Jun 2009 03:01:33 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-1838</guid>
		<description>@Johan

here LDR is changing resistance according to light but ADC can measure Voltage only. To convert RESISTANCE to VOLTAGE we have used a Voltage Divider.</description>
		<content:encoded><![CDATA[<p>@Johan</p>
<p>here LDR is changing resistance according to light but ADC can measure Voltage only. To convert RESISTANCE to VOLTAGE we have used a Voltage Divider.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-1837</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Thu, 04 Jun 2009 02:58:10 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-1837</guid>
		<description>@Johan

Here LDR and R(100K) froms a Voltage Divider. More info here http://en.wikipedia.org/wiki/Voltage_divider</description>
		<content:encoded><![CDATA[<p>@Johan</p>
<p>Here LDR and R(100K) froms a Voltage Divider. More info here <a href="http://en.wikipedia.org/wiki/Voltage_divider" rel="nofollow">http://en.wikipedia.org/wiki/Voltage_divider</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-1831</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Wed, 03 Jun 2009 08:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-1831</guid>
		<description>Hello Avinash!
Great tutorials! A question regarding &quot;Fig: LDR Connected to ADC of AVR&quot;. What I see there is 100 kohm resitor going to ground. Is that a standard resitor value for all types of ADC connections? I have seen 10 kohm resitor values as well in schematics. What I try to say is: should it always be a resistor placed (to ground) like that when using AVR adc?

Regards
Johan</description>
		<content:encoded><![CDATA[<p>Hello Avinash!<br />
Great tutorials! A question regarding &#8220;Fig: LDR Connected to ADC of AVR&#8221;. What I see there is 100 kohm resitor going to ground. Is that a standard resitor value for all types of ADC connections? I have seen 10 kohm resitor values as well in schematics. What I try to say is: should it always be a resistor placed (to ground) like that when using AVR adc?</p>
<p>Regards<br />
Johan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Avinash</title>
		<link>http://extremeelectronics.co.in/avr-tutorials/using-the-analog-to-digital-converter/comment-page-1/#comment-1823</link>
		<dc:creator>Avinash</dc:creator>
		<pubDate>Tue, 02 Jun 2009 00:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://extremeelectronics.co.in/?p=17#comment-1823</guid>
		<description>Conver the binary no to a string say if ADC read out is 792 (stored in int) break it to &#039;7&#039;, &#039;9&#039;,  &#039;2&#039; ij ASCII and sent to LCD

The algo would be

&lt;code&gt;
int a;

a=ReadADC();

while(a)
{
    char ch;
    ch=a%10; // divide by 10 and strore remainder in ch, 792%10=2 so u get the last digit
    ch=ch=10; // remove last digit, 792/10= 79
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Conver the binary no to a string say if ADC read out is 792 (stored in int) break it to &#8216;7&#8242;, &#8216;9&#8242;,  &#8216;2&#8242; ij ASCII and sent to LCD</p>
<p>The algo would be</p>
<p><code><br />
int a;</p>
<p>a=ReadADC();</p>
<p>while(a)<br />
{<br />
    char ch;<br />
    ch=a%10; // divide by 10 and strore remainder in ch, 792%10=2 so u get the last digit<br />
    ch=ch=10; // remove last digit, 792/10= 79<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
