Hi Teja,
I understand that you want to smooth your array of voltage measurements using a Kalman Filter. The Kalman Filter is a powerful tool for smoothing because it combines prior knowledge (prediction) with noisy measurements to produce an optimal estimate. The general approach to achieve this is to:
- Initialize the state estimate and error covariance.
- At each sample, predict the next state based on the previous estimate.
- Update the estimate with the new measurement, balancing the uncertainty using the Kalman Gain.
K = P_pred / (P_pred + R);
x_est(k) = x_pred + K * (SensVolt(k) - x_pred);
Hence, following these steps, you can smoothen out the array of sensor voltages effectively using a Kalman Filter.
To know more about Kalman Filter, refer to the following MathWorks documentation link: