I'm using etape to monitor the depth in a water tank. The sensor output is absolutely stable out to a millivolt on
my meter. The arduino analog values drift from +/- 10 units out of the 1023.
I saw a post with a similar problem and they used a capacitor on the analog input. I tried that (.33uF capacitor) and it helped but
the value still drifts +/- 3 units.
Any idea how to get completely stable arduino readings when the input is stable?
arduino analog input instability with etape
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jimbarstow
- Posts: 25
- Joined: Wed Jan 29, 2014 3:28 am
- haroldl
- Posts: 16
- Joined: Sun May 12, 2013 4:11 pm
- adafruit_support_bill
- Posts: 88093
- Joined: Sat Feb 07, 2009 10:11 am
Re: arduino analog input instability with etape
Most multimeters will display an average of many readings sampled over a fairly long time (typically about 500ms). This functions as a low-pass filter to eliminate much of the sample-to-sample noise that you are seeing.
The code in the link posted by haroldl is doing much the same thing.
The code in the link posted by haroldl is doing much the same thing.
Please be positive and constructive with your questions and comments.