I am using Arduino duemilanove and a Sharp gp2yoa21 sensor for proximity sensing.
Now i will be using it to calculate the distance as well so i need pretty consistent and smooth data. But i observe this periodic spikes (ignore the big spike) in my data. I even tried to used electrolytic capacitor to remove the spikes, still i can observe the same on screen (though this time its smoother)
I am using laptop to monitor the values(not connected to charging). Assembly is on breadboard.
Any guidance would be of great value. Thank you.