blapcb
Full Member level 3
- Joined
- Jan 7, 2007
- Messages
- 188
- Helped
- 2
- Reputation
- 4
- Reaction score
- 0
- Trophy points
- 1,296
- Location
- Planet earth (most of the time)
- Activity points
- 2,766
I want to detect the level of fuel in a cars fuel tank, taken from the voltage of the fuel sender. Granted, it will fluctuate when the car is moving since the fuel sloshes in tank.
I thought, I could do the following:
- Read a sample from the ADC
- Discard outlaying values (to get rid say of voltage spikes)
- Collect and average N samples over T time to get the reading
(I thought I could find the samples and time required by practical trial and error on a PC first)
My question is, would this method work or do I need something like a FIR filter? If so, why?
Thanks
I thought, I could do the following:
- Read a sample from the ADC
- Discard outlaying values (to get rid say of voltage spikes)
- Collect and average N samples over T time to get the reading
(I thought I could find the samples and time required by practical trial and error on a PC first)
My question is, would this method work or do I need something like a FIR filter? If so, why?
Thanks