This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OEM motor controller Hall current sensors LEM



Hi,

We made a high current driver based on the DRV8301-69-KIT trying to run lab2b.

The current sensors we have are LEM and everything seems to be working as it is supposed to from a purely electronical point of view. We use three current sensors of this kind in our setup. The problem is that when we put in our own values of;

#define USER_IQ_FULL_SCALE_CURRENT_A          (300)

and

#define USER_ADC_FULL_SCALE_CURRENT_A        (600)

And when trying to run lab2b we get the error below;

USER_ErrorCode_maxCurrentSlope_Low

Actually no matter what we set above the default 41.25 we get this error. What is going on here? I can see how the max current slope is calculated: USER_MOTOR_RES_EST_CURRENT/USER_IQ_FULL_SCALE_CURRENT_A/USER_TRAJ_FREQ_Hz, which in my case should be 12/300/40=0.001

But I still can't understand this. Is there something simple we have overlooked? Any way to work around this issue?

Thanks!

/Mikael