Hello @General_motor_control ,
It may be several factors can explain why the observer speed does not converge to the sensor speed.
The most common is wrong observer inputs. The BEMF observer in DRM148 expects actual applied voltage and measured currents, not references (Udq*, Idq*). The model explicitly relies on the motor voltage equation (incl. Rs·I + dψ/dt), so any mismatch between commanded and real voltage (dead-time, DC-bus ripple, saturation) introduces steady error.
And sometimes parameter mismatch (Rs, Ld/Lq, Ke) may occur. The observer is model-based, it uses an RL current observer + BEMF estimation. Even small Rs or inductance errors cause bias in estimated BEMF resulting in wrong speed.
Also pay attention to scaling / unit inconsistency. DRM148 uses fixed-point fractional scaling for all quantities. Any mismatch (voltage, current, speed normalization) leads to slow drift or offset. Double-check scaling and pole-pair conversion is necessary.
Hope it help you.
BR
Celeste