cancel
Showing results for 
Search instead for 
Did you mean: 

Encoder and MC Workbench

luke514
Senior

I want to drive the DJI2312 motor through the profiler and connect it to the STM32 B-G431B-ESC1 inverter.

Using MC Workbench to initialize the project (and Motor Pilot) the sensorless case works correctly, but when I use a quadrature encoder (fixed with screws behind the motor) the rotor does not rotate ... you can hear a noise as if it is trying to align but it does not move. There are no faults in the Motor Pilot.

I don't have the datasheet of the encoder because I got it a while ago, but I tried changing "Pulses for mechanical revolution" by setting 1, then 2,3 and 4 but it still doesn't work.

Should I set something here?

 

luke514_0-1729082801132.png

 

 

1 REPLY 1
GMA
ST Employee

Hello @luke514,

Generating a project with main sensor set to sensor less algo and auxiliary set to Encoder, you can run the motor. Plotting STOPLL_EL_ANGLE for example and ENCODER_EL_ANGLE, tunning your motor Encoder parameter both signals should be aligned.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA