[PD] arduino problem with analog sensors

B. Bogart ben at ekran.org
Thu Nov 12 18:25:23 CET 2009


Try grounding all the unused analog ins(especially a few between the two 
ins that are cross-talking), ideally shielding the wires would help too. 
Indeed magnetic fields in those wires do move through space!

.b.

altern wrote:
> hi
> 
> not a PD question I guess...  i dont know much of electrical stuff. i am 
> connecting two analog sensors to the arduino. One is a pressure sensor 
> and the second a potentiometer, they are both from an old icube.
> 
> i noticed that when i raise the potentiometer (analog pin 5) the 
> pressure sensor (analog pin 2) reports values ranging 0 to ~0.16 
> increasing together as the potenciometer goes up. It is like some kind 
> of residual noise comming from pin 5 that goes into pin 0.
> 
> the power cables of both sensors go together to 5v inlet of the arduino 
> and the ground cables go to ground pin, each of the data cable goes to 
> its separate analog pin.
> 
> I am using arduino from Pure Data extended using latest Firmata, so i am 
> just filtering out any value smaller than 0.16 coming from analog pin 0.
> 
> is there anything I am doing wrong? or is this normal?
> 
> thanks
> 
> enrike
> 
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list