KevinRoach:
Why does it look better on the oscilloscope?
A scope looks at voltage, not at ratio.
A smoother scope voltage is therefore useless.
Better to take a bunch of readings for averaging.
unsigned int total = 0; // reset
for (int x = 0; x < 64; x++) total += analogRead(A0);
Leo..