Part Number: TMS320F280049
Other Parts Discussed in Thread: MOTORWARE
Hi,
I was wondering if there is a variable in InstaSpin which counts the turns of the motor. Or can anyone give me a hint how to implement a feature like this.
I started on my own to count the angle when it reaches 2pi (or pi if it goes from -pi to pi). But I recognized, that the angle reached 2pi more often as the motor turns one cycle. I implement this function in the mainISR and I tried to scale this down to the real motor turns but this doesn't work.
Kind Regards
Jonas