Other Parts Discussed in Thread: DRV8301, MOTORWARE
Hello there,
I am trying to spin a bldc with medium inductance on LAUNCHXLF28069M and DRV8301(developed on boostxl reference).
I tried with the previous motorware lab11e(motorware16) which didn't work on the transition ; I was able to run only on the Trapezoidal commutation mode.
But It wasn't transiting to FAST .
So, I went on to motorware18 ; but here I followed the instaspin_labs manual.pdf
The following were the steps I performed:
-> Updated the ADC channels corresponding to the Current and Voltage feedback according to the hardware developed.
-> Updated the User Motor Parameters
Step 2.
In user.h, make sure motor parameters are known and correctly set. Lab 11e only works on PM motors with 3 hall sensors.
Step 3.
In Code Composer, build proj_lab11e, connect to the target and load the .out file.
Open the command file “sw\solutions\instaspin_foc\src\proj_lab11e.js” via the Scripting Console
o This will add the variables that we will be using for this project into the watch window
271
Enable the realtime debugger
o This will let the debugger update the watch window variables
Click the run button.
o This will run the program on the microcontroller
Enable continuous refresh on the watch window.
o This will continuously update the variables in the watch window
Step 4.
To run the motor with Hall sensors
To start the project, set the variable “gMotorVars.Flag_enableSys” equal to 1.
Set low and high speed for changing the control method in “gHall_speed_FastToBldc_low_pu” and “gHall_speed_BldcToFast_high_pu”.
To turn on the pwms to the motor, set the variable “gMotorVars.Flag_Run_Identify” equal to 1.
The acceleration can be modified by adjusting the value in “gMotorVars.MaxAccel_krpmps”.
Set a reference speed to “gMotorVars.SpeedRef_krpm” in order to run the motor at a target speed.
Step 5.
When finished experimenting to stop the motor
Set the variable “gMotorVars.Flag_Run_Identify” to 0 to shut down the motor.
Turn off real-time control and stop the debugger.
Turn off power supply of drive kit.
The results were:
After I enable the gMotorVars.Flag_enableSys,
I enable the gMotorVars.Flag_enableRsRecalc ; after it is calculated the flag turns false.
Now setting gHall_speed_FastToBldc_low_pu = 0.007999956608
and gHall_speed_BldcToFast_high_pu = 0.02499997616
Then I enable gMotorVars.Flag_Run_Identify and set the gMotorVars.SpeedRef_krpm =0.60-2.0 (varying the values)
also found that 0.60 is the minimum value in which my motor spins
& gMotorVars.MaxAccel_krpmps =1.0
The motor spins but shows wrong Krpm values.
Also It dont start at zero speed ; I need to move the rotor a bit for startup.
Looking forward for a guidance.