<?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: ADC and/or analogRead()  does not work properly</title>
		<link>http://forums.leaflabs.com/topic.php?id=74360</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:08:44 +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=74360" rel="self" type="application/rss+xml" />

		<item>
			<title>okie on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105467</link>
			<pubDate>Fri, 18 Jul 2014 17:41:28 +0000</pubDate>
			<dc:creator>okie</dc:creator>
			<guid isPermaLink="false">105467@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;To avoid the problems caused by ground loops, which is having induced voltages across and currents through a conductor that is suppose to be equipotential, make good, solid connections between grounds or any conductors that are suppose to be equipotential. A good connection can mean many connections so that there's lower resistance in some situations, while in others, it's better if connections are made in a hierarchical way so that there are little islands of non-interacting peace. If there's fairly low resistance connection between EITHER the GND net or the 3.3V net on the Maple and one of the potentials involved in the the voltage measurement you would like to make, then you probably won't get what you like. For me, the most enlightening resource on ground planes, return currents, impedance lines, high-speed or high-power and/or low-noise PCB layout, and more, was and is a book called Electromagnetic Compatibility Engineering by Henry Ott.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fullback on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105463</link>
			<pubDate>Fri, 18 Jul 2014 02:36:58 +0000</pubDate>
			<dc:creator>Fullback</dc:creator>
			<guid isPermaLink="false">105463@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;@ gbulmer: &#34;SerialUSB.println(reading;)&#34; it is a typing error sorry.&#60;/p&#62;
&#60;p&#62;I do not connect the analog ground, to the ground  of the stabilized voltage source, in order to avoid ground loop. But i just tried and it works. THANKS
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105462</link>
			<pubDate>Thu, 17 Jul 2014 15:30:17 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105462@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ah, good point manitou.&#60;/p&#62;
&#60;p&#62;Fullback:&#60;br /&#62;
Have you connected the stabilised power supply to the Ain pin and AV- (analogue ground)?&#60;br /&#62;
Could you measure from a battery source (to the analogue pin and analogue ground), to avoid any other ground influence?&#60;/p&#62;
&#60;p&#62;When you say &#60;em&#62;&#34;even if I use a stabilezed voltage source, the maple board is not able to properly sample it&#34;&#60;/em&#62;&#60;br /&#62;
What values do you get?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>manitou on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105461</link>
			<pubDate>Thu, 17 Jul 2014 13:50:04 +0000</pubDate>
			<dc:creator>manitou</dc:creator>
			<guid isPermaLink="false">105461@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;common ground?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>gbulmer on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105460</link>
			<pubDate>Thu, 17 Jul 2014 10:46:06 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">105460@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Fullback - is this &#60;em&#62;exactly&#60;/em&#62; the code that you are using?&#60;/p&#62;
&#60;p&#62;If so, it contains a syntax error, and does not compile.&#60;/p&#62;
&#60;p&#62;This line has the ';' in an incorrect place:&#60;br /&#62;
&#60;code&#62;SerialUSB.println(reading;)&#60;/code&#62;&#60;br /&#62;
the ';' should be after the ')'&#60;br /&#62;
&#60;code&#62;SerialUSB.println(reading);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Fullback on "ADC and/or analogRead()  does not work properly"</title>
			<link>http://forums.leaflabs.com/topic.php?id=74360#post-105459</link>
			<pubDate>Thu, 17 Jul 2014 07:16:12 +0000</pubDate>
			<dc:creator>Fullback</dc:creator>
			<guid isPermaLink="false">105459@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hello everybody&#60;/p&#62;
&#60;p&#62;I have got many maple mini rev3 boards as logic units for a wireless sensor network. I have got a problem with the ADC; even if I use a stabilezed voltage source, the maple board is not able to properly sample it. I provide  2.7 V, and i have tried to sample it with different maple mini boards and with all the analog input pin, but I have got different reading for every sampling.&#60;/p&#62;
&#60;p&#62;The configuration is has follows: a maple mini connected via USB to my laptop ( I have used both  a mac and win XP pc ), a stabilezd and constant voltage connected on one of the ain pin of the board.&#60;/p&#62;
&#60;p&#62;The code is has follows:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;const int sensorPin =7;
  int  reading;

  void setup() {
        pinMode(sensorPin, INPUT_ANALOG);
}

void loop(){
        reading=analogRead(sensorPin);
        SerialUSB.println(reading;)
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I have used this simple code in order to understand whats wrong..&#60;/p&#62;
&#60;p&#62;additional info:&#60;br /&#62;
     I have measured the voltage across ground pin and sensor pin, with a kehitley potentiometer (it is a precision instrument) and i have got the right reading.&#60;/p&#62;
&#60;p&#62;     maple IDE v 0.0.12&#60;/p&#62;
&#60;p&#62;Any suggestions?&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
