This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-F28069M: InstaSPIN-FOC MotorWare Instrumentation

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: MOTORWARE, CCSTUDIO

Hello,

I have a LAUNCHXL-F28069M and a BoosterPack DRV8301-CB. I want to use InstaSPIN-FOC Motorware Instrumentation. I used the Quick Start Guide. It says that I have to open

C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\drv8301kit_revD\f28x\f2806xF\projects\ccs

and use proj_lab01 to identify the Motor parameters. I opened it with CCStudio, changed proj_lab01 into [Active - Flash] and build a binary for copying it into

C:\ti\guicomposer\webapps\InstaSPIN_F2806xM_UNIVERSAL

Then I changed the name into appProgram.out and opened the .exe. I am using the following motor: HIMAXX C 2212-1180 with about 3 amps and 10 volts. The problem is that the Motor can be identified but it doesn't start spinning when it is identified. I measured the voltage and it should work but I don't know why it doesn't start to spin. Also D9 (LED) on the LaunchPad is turning red and it says that Rx is not working. Can somebody help me why it doesn't work? I don't know where I make a mistake.

And you can also see that the current in the right (Isc) is very high. It should not be that high.

  • You need to run the lab02b or lab02c for motor parameters identification, not lab01.

    You may follow the lab user's guide as below, to run the lab02b or lab02c within CCS.

    C:\ti\motorware\motorware_1_01_00_18\docs\labs

     And please don't add any load on the motor for identification, and set the correct identification variables value in the file of user.h according to the specification of the motor, to make sure the motor spin smoothly during Flux measurement and Ls identification states.

    #define USER_MOTOR_RES_EST_CURRENT     (2.0)                               // A - 10-30% of rated current of the motor

    #define USER_MOTOR_IND_EST_CURRENT     (-1.5)                             // A - 10-30% of rated current of the motor, just enough to enable rotation

    #define USER_MOTOR_MAX_CURRENT           (20.0)                               // A - 30~150% of rated current of the motor

    #define USER_MOTOR_FLUX_EST_FREQ_Hz     (40.0)                           // Hz - 10~30% rated frequency of the motor

  • Good morning,

    at first I want to thank you for your time and help. In CCS - when I want to build the binary for lab02b or lab02c - the only options I have is to do right klick on the specified lab -> Build Configurations -> Set Active -> Flash or Release. There is no opportunity to set debug as they make it in the specified lab user's guide. Where can I find Build Configurations -> Set Active -> Debug? 

    And at what kind of place do I have to change the parameters in user.h? There are several parameters with the same name but different values. The only difference is in the if-statement (ex. #if (USER_MOTOR == Estun_EMJ_04APB22)  or #elif (USER_MOTOR == hobbywing_ezrun_8p5T and so on...) At what point do I have to set the correct identification variables?

    Thanks

  • THERE ARE SOME NEWS HERE:

    I changed the motor parameters in user.h and created a new variable for it.

    #elif (USER_MOTOR == Himax_HC22121180) // Name must match the motor #define
    #define USER_MOTOR_TYPE MOTOR_Type_Pm // Motor_Type_Pm (All Synchronous: BLDC, PMSM, SMPM, IPM) or Motor_Type_Induction (Asynchronous ACI)
    #define USER_MOTOR_NUM_POLE_PAIRS (6) // PAIRS, not total poles. Used to calculate user RPM from rotor Hz only
    #define USER_MOTOR_Rr (NULL) // Induction motors only, else NULL
    #define USER_MOTOR_Rs (0.1575127) // Identified phase to neutral resistance in a Y equivalent circuit (Ohms, float)
    #define USER_MOTOR_Ls_d (0.0065714437) // For PM, Identified average stator inductance (Henry, float)
    #define USER_MOTOR_Ls_q (0.0065714437) // For PM, Identified average stator inductance (Henry, float)
    #define USER_MOTOR_RATED_FLUX (0.0426666) // Identified TOTAL flux linkage between the rotor and the stator (V/Hz)
    #define USER_MOTOR_MAGNETIZING_CURRENT (NULL) // Induction motors only, else NULL
    #define USER_MOTOR_RES_EST_CURRENT (2.0) // During Motor ID, maximum current (Amperes, float) used for Rs estimation, 10-20% rated current
    #define USER_MOTOR_IND_EST_CURRENT (-1.5) // During Motor ID, maximum current (negative Amperes, float) used for Ls estimation, use just enough to enable rotation
    #define USER_MOTOR_MAX_CURRENT (20.0) // CRITICAL: Used during ID and run-time, sets a limit on the maximum current command output of the provided Speed PI Controller to the Iq controller
    #define USER_MOTOR_FLUX_EST_FREQ_Hz (40.0)

    Now the RX is working but I can't klick on enable system and the motor does not start spinning

  • You need to connect the JTAG emulator, and load the code to the device.

    You may take a look at the training material to know how to debug a code within CCS

    https://training.ti.com/c2000-motorcontrol-training-series

  • In this training video they only show how to use InstaSPIN but they don't show which parameters I have to change in user.h or how I run the different labs. I need a tutorial for this. Preferably with a motor that is not listed in the user.h parameters so that I know where I have to change things to keep it work. Is there anything?

    I only changed the parameters that I showed you here, is there anything else I have to change? Because it is still not spinning. 

  • Seems like you need to change any other parameters in user.h for running a motor with InstaSPIN-FOC. You just need to change or identify the motor parameters following the InstaSPIN lab's guide as below and follow the guides to set up the kits and run the lab.

    C:\ti\motorware\motorware_1_01_00_18\docs\labs\instaspin_labs.pdf

  • How can I change [Active - Release] or [Active - Flash] in [Active - Debug]? I only have these two options but I need [Active - Debug] to run lab01 to let LED2 on my inverter blink. Otherwise it won't work. Can you help me here? What should I do?

    I tried to do it as they explained in the instaspin_labs.pdf, but this doesn't work.

  • You can use [Active - Release] that's [Active - Debug].

    The LED is on the launchxl, not on the inverter board.

  • I used to follow the instructions in the quick start guide gui universal on page 13-14. Now the window in CCS looks like this. What am I doing wrong?

  • Try to run the lab within CCS, make sure that the lab works well, and then to use the GUI to run the motor.