[DUG] Chart Smoothing

David Moorhouse David.Moorhouse at pegasus.org.nz
Mon May 10 13:35:44 NZST 2021


Hi Wallace

I was observing the error in the signal was of a similar magnitude to the data being measured.
My approach to these types of issues is to address  hardware problems  before getting into the software.

Cheers

D

David Moorhouse (BCom) | Development Manager
Regional HealthOne Programme
P: 03 353 0871
E: david.moorhouse at pegasus.org.nz
401 Madras St, Christchurch 8013
PO Box 741, Christchurch 8140



-----Original Message-----
From: delphi-bounces at listserver.123.net.nz <delphi-bounces at listserver.123.net.nz> On Behalf Of Marshland Engineering
Sent: Monday, 10 May 2021 10:03 AM
To: delphi at listserver.123.net.nz
Subject: Re: [DUG] Chart Smoothing

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


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with Subject: unsubscribe



More information about the Delphi mailing list