<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
The microcontroller in the Arduino has a single sampling capacitor that can be connected to any one of the analog pins.<br>It will charge up to the voltage on the pin if enough charged particles are available on the pin (or a path less than about 10kohm exists to a source of current).<br>The cap is not discharged by the analog-to-digital conversion process or between samples except through leakage.<br>If no charge is available on the pin the capacitor will continue to slowly drain its charge from the previous sample.<br>It's normal and harmless unless you are in a high-voltage environment like a thunderstorm or a nylon carpet, where much more than 5V could accumulate on an open pin. Then it's best to ground unused inputs.<br><br>Martin<br><br><br>&gt; Date: Thu, 12 Nov 2009 18:02:05 +0100<br>&gt; From: altern2@gmail.com<br>&gt; To: pd-list@iem.at<br>&gt; Subject: [PD] arduino problem with analog sensors<br>&gt; <br>&gt; hi<br>&gt; <br>&gt; not a PD question I guess...  i dont know much of electrical stuff. i am <br>&gt; connecting two analog sensors to the arduino. One is a pressure sensor <br>&gt; and the second a potentiometer, they are both from an old icube.<br>&gt; <br>&gt; i noticed that when i raise the potentiometer (analog pin 5) the <br>&gt; pressure sensor (analog pin 2) reports values ranging 0 to ~0.16 <br>&gt; increasing together as the potenciometer goes up. It is like some kind <br>&gt; of residual noise comming from pin 5 that goes into pin 0.<br>&gt; <br>&gt; the power cables of both sensors go together to 5v inlet of the arduino <br>&gt; and the ground cables go to ground pin, each of the data cable goes to <br>&gt; its separate analog pin.<br>&gt; <br>&gt; I am using arduino from Pure Data extended using latest Firmata, so i am <br>&gt; just filtering out any value smaller than 0.16 coming from analog pin 0.<br>&gt; <br>&gt; is there anything I am doing wrong? or is this normal?<br>&gt; <br>&gt; thanks<br>&gt; <br>&gt; enrike<br>&gt; <br>&gt; _______________________________________________<br>&gt; Pd-list@iem.at mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt; http://lists.puredata.info/listinfo/pd-list<br>                                               </body>
</html>