How to run BLDC motor in closed loop with quadrature encoder?
I am using the p-nucleo-ihm03 package but with a different motor and a quadrature encoder (AMT-103).
The motor runs perfectly fine in sensorless mode but I need a way to switch the direction very fast which does not work with sensorless as there is at least a 500ms delay between running a speed ramp, stopping the motor and reversing the direction.
Well, I had the bright idea maybe a closed loop control with an encoder might help but the motor does not move. It does move, but MAYBE once for whatever reason and is otherwise locked the entire time. While it's locked it's pretty noisy so there is current flowing in I guess. Changing PID gains just changes how loud the noises are so I have absolutely ZERO clue why the motor is not moving. I really need a way to switch directions as fast as possible and I can't seem to get the encoder work.
I did not find anything in the documentation. Can someone help here? I am also limited with the tech here as I don't have an oscilloscope at home (just a broke student here). I tried another encoder and read both values out and the encoder seems to work perfectly fine.
