Other Parts Discussed in Thread: MOTORWARE
Hello,
I am attempting to rotate a BLDC motor with the 28069M Launchpad and the DRV8305N Boosterpack.
I am in need of assistance to get the motor to spin.
I mounted the DRV8305N Boosterpack onto the the 28069M Launchpad where the J1 pins on the Boosterpack are above the J1 pins on the 28069M Launchpad.
The terminal blocks are facing the usb plug.
1) I am confused on which labs I may use to detect the motor parameters (page 2 of the InstaSpin Labs states that Lab2a does not work with 28069 processors)
2) I assumed that I needed to change the motor parameters to start the Identifying Feature.
I am not sure that I had to do this (procedure from Lab2a)
I changed the Motor Parameters by adding the MY_MOTOR parameters to the user_j1.h file:
user_j1.h file location: \motorware\motorware_1_01_00_16\sw\solutions\instaspin_motion\boards\boostxldrv8305_revA\f28x\f2806xM\src
#define MY_MOTOR 113
#define USER_MOTOR MY_MOTOR
//The motor parameters for testing the initial motor
//Motor is SunnySkyX2208-7KV:2600II
//Initial Guessed parameters were copied from instaspin labs (lab2a,page 35)
#if (USER_MOTOR == MY_MOTOR)
#define USER_MOTOR_TYPE MOTOR_Type_Pm
#define USER_MOTOR_NUM_POLE_PAIRS (14)
#define USER_MOTOR_Rr (NULL)
#define USER_MOTOR_Rs (NULL)
#define USER_MOTOR_Ls_d (NULL)
#define USER_MOTOR_Ls_q (NULL)
#define USER_MOTOR_RATED_FLUX (NULL)
#define USER_MOTOR_MAGNETIZING_CURRENT (NULL)
#define USER_MOTOR_RES_EST_CURRENT (10.0)
#define USER_MOTOR_IND_EST_CURRENT (-10.0)
#define USER_MOTOR_MAX_CURRENT (3.0)
#define USER_MOTOR_FLUX_EST_FREQ_Hz (20.0)
//END of my parameters
3) When I start Lab2b using the Lab2a procedure:
Lab2b location: \motorware\motorware_1_01_00_16\sw\solutions\instaspin_foc\boards\boostxldrv8305_revA\f28x\f2806xF\projects\ccs5\proj_lab02b
(page 35 of InstaSpin Labs)
I proceed to edit the “gMotorVars.Flag_enableSys” variable to enable the motor in software.
I click on “View->Scripting Console” then open the file: sw\solutions\instaspin_foc\src\proj_lab02b.js
(page 36 of InstaSpin Labs)
I clicked on the Realtime Debugger Button and acknowledged the popup.
I then click on the “continuous refresh button in the watch window
I then clicked the “Run” button to start the project.
When I attempt to edit the variable, I changed the field to “1”, but when I pressed enter on my keyboard, the value stayed “0”.
The value I tried to change is the highlighted value in red below.
See Below for the Watch Window/ Expressions readout:
gMotorVars struct _MOTOR_Vars_t_ {...} 0x00B280@Program
gMotorVars.UserErrorCode enum <unnamed> USER_ErrorCode_maxCurrent_indEst_Low 0x00B28C@Program
gMotorVars.CtrlVersion struct _CTRL_Version_ {...} 0x00B28D@Program
gMotorVars.Flag_enableSys unsigned char 0 (Decimal) 0x00B280@Program
gMotorVars.Flag_Run_Identify unsigned char 0 (Decimal) 0x00B281@Program
gMotorVars.Flag_enableForceAngle unsigned char 1 (Decimal) 0x00B283@Program
gMotorVars.Flag_enablePowerWarp unsigned char 0 (Decimal) 0x00B288@Program
gMotorVars.CtrlState enum <unnamed> CTRL_State_Idle 0x00B28A@Program
gMotorVars.EstState enum <unnamed> EST_State_Idle 0x00B28B@Program
gMotorVars.SpeedRef_krpm long 0.09999996424 (Q-Value(24)) 0x00B298@Program
gMotorVars.MaxAccel_krpmps long 0.1999999881 (Q-Value(24)) 0x00B29C@Program
gMotorVars.Speed_krpm long 0.0 (Q-Value(24)) 0x00B29E@Program
gMotorVars.MagnCurr_A float 0.0 0x00B2AA@Program
gMotorVars.Rr_Ohm float 0.0 0x00B2AC@Program
gMotorVars.Rs_Ohm float 0.0 0x00B2AE@Program
gMotorVars.Lsd_H float 0.0 0x00B2B2@Program
gMotorVars.Lsq_H float 0.0 0x00B2B4@Program
gMotorVars.Flux_VpHz float 0.0 0x00B2B6@Program
gMotorVars.I_bias struct _MATH_vec3_ {...} 0x00B2DC@Program
gMotorVars.V_bias struct _MATH_vec3_ {...} 0x00B2E2@Program
gMotorVars.VdcBus_kV long 0.0 (Q-Value(24)) 0x00B2D4@Program
gDrvSpi8301Vars unknown Error: identifier not found: gDrvSpi8301Vars
gDrvSpi8305Vars struct _DRV_SPI_8305_Vars_t_ {...} 0x00B200@Program
Please let me know if anyone else has similar issues or can help in any way.
I need to get the motor spinning as soon as possible.
-Keith
