[DUG] Chart Smoothing

Marshland Engineering marshland at marshland.co.nz
Mon May 10 10:03:08 NZST 2021


I'd get a better sensor ?

I reading speed to 4 decimal places with an encoder and ATMEGA. The data is
very accurate. The problem is that sampling at 30 hz means the rate of change
of speed between samples is quite small, ie the noisy signal. I can improve
the acceleration curve by taking fewer samples, ie the rate of change between
samples is bigger, but a run may only be 3 seconds long so 90 samples is not a
lot to start with.

The curve is definitely in the data, just need to smooth it out. What has
given me a better curve is take 10 or so readings and remove the highest and
lowest value and average the rest. Much cleaner plot. If I do that a second
time, it is quite clean. But still looking for the best solution. 

I tried ChartFX from withing Delphi as that has some other properties but that
component seems to be far from working correctly. 

Cheers Wallace




More information about the Delphi mailing list