Dear TI Community,
I have recently tried to add a step and a dir signal pin using interrupt vectors in the DRV8301-69M-KIT.
My goal is to used that Evaluation Kit as my BLDC driver to drive one axis of my CNC machine.
I have successfully drive them using LinuxCNC as my machine operator, based on the project lab. 13b. - taken from InstaSPIN Projects and Labs User's Guide.
But, it runs very slow, compared to my commercial DC brushed motor driver. It seems that the SPIN-TAC Position Move, does not respond as fast as the incoming Step signal. So synchronization with the other axis (Y-axis in this case) can not be met, hence the result is incorrect.
I only count up the incoming step signal and fetch it to the correct value of gMotorVars.PosStepInt_MRev and gMotorVars.PosStepFrac_MRev.
Question: What is the better idea to program it in order to have a faster respond?
I am not familiar with the motor control theory, but here are some thought that crossed into my mind:
a. Using eQEP instead of interrupt
b. Instead of using STPOSMOVE_run, I should somehow fixed the velocity and acceleration ref. input of the STPOSCTL_run to the maximum value, and used the step signal as a tracking signal input for "the angle reference input" of the STPOSCTL_run.
Thank you in advanced for reading on my questions.
Looking forward for your insight about this.
best regards,
Linggar