sbright33:
My goal is similar, but my code is quite different. The noise in my hardware configuration comes from the USB power coming to the Uno. When I use batteries the noise is gone. I can literally detect a pin drop. I have noticed that it is much more sensitive to low frequency noise. A heater rumble in the basement or truck driving by miles away completely overpowers anyone talking in the next room. I know how to write a high pass filter, but I think it's pretty cool the way it is!
Interesting. I remember I tried the same program with batteries, and noticed that it wasn't working correctly, so I suppose that in my case the noise comes from somewhere else.
Still, I don't have a solution for this noise... The program is fine by itself, but I feel it could be a bit more accurate.
And by the way, would you share your program? I find it interesting to see how other people program.
Thank you.