Part Number: DRV8312-69M-KIT
Hello,
-- >I would like to control my Nema 17 motor ( provided with the DRV8312 kit ) using hall sensors. So for that, I am folowing the 6 buildlevels of BLDC_sensored project explained in the folowing document (sprabz4.pdf) and I do not anderstand wich way I have to take for tuning the PI gains, increasing/decrecreasing the variable "CurrentSet" to adjust the torque command. It is no clear for me. Moreover, the output "speed1.Speed" does not move and is blocked to the value ( -8.163487077 (Q-Value(24) ), and when I put the flag IloopFlag to 1, the speed reaches a really high speed for an unknown reason.
-->Also, in level 6, when I set the flag " EnableFlag" to 1, the motor start spining slowly and then when the flag " SpeedLoopFlag" is hight, the speed goes suddenly at an almost maximum speed. And the "speed1.Speed" output is still the same value than above and does not changes.
-->Also, in the buildlevel 4, I want to rotate the motor clockwise and counterclockwise, what I have done with the code provided with the reference design inverting the sequence of commutation. But the problem is that in clockwise direction, the torque seems to be not enough ( less strong than the counterclockwise sequence). So, when I startup the motor in counterclockwise direction, the motor can easily move the load, whereas when I startup the motor in clockwise direction, the motor can not move the load until I give a manual impulsion.
Finally my last question would be, is it an obligation to follow the labs ( 20 ) from Motorware to use my BLDC_Sensored project ? If yes, wich ones ?
Thank you for reading me, and for paying attention to my questions.
Best regards.