Other Parts Discussed in Thread: DRV8301, MOTORWARE
hi,
We have the DRV8301-69M-KIT (DRV8301 and F28069M) and I've been following the InstaSPIN-FOC projects/labs included in motorware with a Anaheim BLY172S motor.
Proj_lab4 demonstrates a basic torque controller which seems to take it's direction cue from gMotorVars.IqRef_A. There is some code which looks at the sign of this value and sets a +ve or -ve speed using CTRL_setSpd_ref_krpm().
This seems to work ok for +ve currents, the motor spins up correctly. However, if a -ve value is entered (even from stationary) the motor does absolutely nothing.
The signed reference current is passed directly into CTRL_setIq_ref_pu() which doesn''t feel right - this means that a -ve current gets entered despite the direction being set by the CTRL_setSpd_ref_krpm() call? Anyway, if I labs() the value going into this, negative current demands now get the motor to turn but not to spin properly - it moves like a very slow stepper motor?
Can someone give me some pointers on;
a) Was this demonstration meant to work out of the box?
b) Regardless of point a, how do I get it to work!? :-)
regards
ian