Click here to Skip to main content
15,895,142 members
Articles / Web Development / ASP.NET

Fuel Level Stabilization

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
9 Nov 2016CPOL 2.6K  
Hi,I am working on Fuel Level Sensor module. We have a Fuel Level Sensor which is dipped into the fuel tank. The sensor sends the update in each 10 seconds. The volt varies from 0 to 5, wherein 0 means 'Fuel tank is Empty' and 5 means 'Fuel tank is Full'.Currently I am working on to...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
4 Feb 2013OriginalGriff
Use a moving average: it sums the last "N" points and gives the average of those, rather than using the datapoints directly. You will still get some fluctuation, but it should be minimised, and you will probably need to play with the sample size to get the right "damping" factor.BTW: If you...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Unknown
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions