swen_s
Member level 1
Hello
I need to calculate the slope of a temperature (Kelvin/s) from a temperature sensor.
The solution today is an Kalman filter with static kalman gain. This filter gives wery smooth derivative/slope. But it causes a phase shift of the derivative.
I don't know how to fine tune the Kalman gain.
Is there another method for calculating slope in real time?
I can't just take (T - T(n-1)) / sampletime. It gets too noisy. And if I filter the temperature first it gets a phase shift.
I need to calculate the slope of a temperature (Kelvin/s) from a temperature sensor.
The solution today is an Kalman filter with static kalman gain. This filter gives wery smooth derivative/slope. But it causes a phase shift of the derivative.
I don't know how to fine tune the Kalman gain.
Is there another method for calculating slope in real time?
I can't just take (T - T(n-1)) / sampletime. It gets too noisy. And if I filter the temperature first it gets a phase shift.