[quote="hammy, post:4, topic:1344533"]
don’t think we have the full story !
Look at analog read examples , analogs don’t need setting up in setup .
-Ok, but it does not change anything.
Is the pi powering the nano ?
-Yes, by the usb cable
How does it connect to the nano ever ?
By usb cable
The pi power supply could be noisey or not upto supplying power .
Yes but it is an official rp power supply
Check voltage requirements in the spec for the nano every .
The 3v pin is not a great reference source , use the internal reference or leave as default if measuring ratio relative to the supply .
-Oh, I have been advised here at the forum that the 3v pin is more stable than the 5v.
Often worth taking multiple analog readings and averaging .
-yes but averaging does not really work when there are cyclic extreme noise.
For example on a scale 0-1023 the range to read is between 400 and
600. Then the cyclic noise come as a peak of 1020-ish each second.
Your layout with high impedance inputs will be prone to noise pickup , especially with significant lead lengths .
-yes that I know, but it has to be very sensitive.
Some filtering may also help
-like capacitors?
You say something about “ water “ are you detecting it or trying to make some analysis of it ?
-yes I am measuring the water level in an interactive sculpture. The values are translated to sound. Its comparable with a musical instrument.
Thanks!