We want the signal to pass through but not the noise (hiss in a sound system). So we want a lopass filter to attenuate (decrease the volume) of the frequencies above the cutoff point (the hiss/noise).

Hope this helps us earthlings keep up
Moderators: daxtojeiro, muythaibxr, jsmcortina

Greg G wrote:...(Jason) approach it from a more scientific perspective.
Greg G wrote: we stumbled upon the tps over sampling and the immense improvement it gave
Greg G wrote:hopefully steer everything in the right direction.
robs wrote: Perhaps my graph didn't get it across. Here it is in numbers. Imagine 100 samples which simply go from 1-100. If you average all 100 you'll get 50.5. If you average just the last 4 you'll get 98.5, a much better estimate of where the throttle has got to. That shows how much signal you can lose through excessive oversampling. The graph will be beautifully smooth, but inaccurate.
robs wrote:I think this thread has got to the point of flogging a dead horse. Grant has gone his way. I have gone my way. More to the point for the non-programmer MS user, what are Ken and James making of it?


gslender wrote:robs wrote: Perhaps my graph didn't get it across. Here it is in numbers. Imagine 100 samples which simply go from 1-100. If you average all 100 you'll get 50.5. If you average just the last 4 you'll get 98.5, a much better estimate of where the throttle has got to. That shows how much signal you can lose through excessive oversampling. The graph will be beautifully smooth, but inaccurate.
That has grossly over dramatised the imapct of oversampling on the real values seen in use. We are talking about the 80 samples taken over a 10ms period VS a single sample taken every 10ms. There is going to be a significantly different quality outcome in terms of an approximation of the needed value at that time. A single sample taken precisely every 10ms will, with no doubt, contain noise. Noise that can by 50% chance push you in the wrong direction, or further to far in the right direction (both a wrong value) - and fairly there is also a chance that this single sample is absolutely correct (for that time only).
In comparison, the oversampling ensures that the samples taken over the 10ms approximate (fairly well in fact) the average position of the throttle for that period, and continue with that level of consistency for the next period, and the next and so on...
gslender wrote:
I've not gone my way? I've implemented both your solution and my solution and users can try either, both or neither.
gslender wrote:I think Ken and James don't have anything to answer for ... the point of this thread and the firmware mods is to try alternatives, seek feedback and validate solutions.
robs wrote: If they aren't enthused about oversampling they won't include it.

robs wrote:
No matter how it turns out, I have enjoyed the journey in this thread and it has definitely helped my understanding of the issues involved. I do regret how I responded to Greg's careless wording. Again, my apologies.
Have fun,
Rob.
Peter Florance wrote:I have to weigh in here. In the cars I've tuned over the years, I have absolutely no issue with the way TPS is read on MegaSquirt's. It seems like a solution that has no problem.
Am I wrong here?

gslender wrote:Peter Florance wrote:I have to weigh in here. In the cars I've tuned over the years, I have absolutely no issue with the way TPS is read on MegaSquirt's. It seems like a solution that has no problem.
Am I wrong here?
What AE threshold have you generally been able to manage?
G
Peter Florance wrote:I have to weigh in here. In the cars I've tuned over the years, I have absolutely no issue with the way TPS is read on MegaSquirt's. It seems like a solution that has no problem.
Am I wrong here?
robs wrote:-- perhaps reusing the old wiring for the throttle switch, which was never intended to carry an analog signal. But I don't think it can be just me. There has been a fair bit of interest in this thread -- and not just amongst nerds -- so it seems there may be many pitfalls in getting a really useful TPS signal.

gslender wrote:I just wished I could afford a cheap Osciliscope so that maybe I'd be able to track down where this nosie is coming from....
JasonC SBB wrote:I’d like to point out again that in theory a 2-pole (done twice) lag filter with the proper “lag %” will provide superior filtering to a simple running average filter.
racingmini_mtl wrote:gslender wrote:I just wished I could afford a cheap Osciliscope so that maybe I'd be able to track down where this nosie is coming from....
viewtopic.php?f=94&t=38560
Return to MS2/Extra Development
Users browsing this forum: onteera and 3 guests