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.

CCS/DRV8312-C2-KIT: Generating a custom position or velocity profile with the development kit

Part Number: DRV8312-C2-KIT
Other Parts Discussed in Thread: MOTORWARE

Tool/software: Code Composer Studio

Hi,

I'm working with the DRV8312-C2-KIT that comes with InstaSPIN and a GUI. I've got the kit working with the GUI, but the GUI is pretty limited in the way you can control the motor (only ramp up to a speed and vary the speed imprecisely). Is there a way to enter a custom motion (or velocity) profile to the control card so that I can create some more controlled paths? I have some code already that will output the desired position/velocity of the motor at a certain time stamp, but I can't seem to figure out how to program the board to use these inputs.

The only labs that I've seen to do this use the MotorWare software, but since the C2-KIT comes with a F28035 control card, I don't think I can use MotorWare. Using the InstaSPIN_BLDC project, I have found some code that looks like it sets the speed of the motor, but I'm having some difficulty understanding how to modify this or if this is the place that I should be modifying (BLDC_Int.c - in the MainISR function lines 632 to 651).

If there are any resources anywhere that will help me do what I'm looking to do, that would be very helpful. Everything I've seen is for higher level control cards (F2806x) which I don't have.

Thanks,

Matt

  • F28035 doesn't support the InstaSPIN-FOC and InstaSPIN motion.

    As you mentioned above, you need to modify the file and add the motion profile functions in the CCS project by manual yourself. You can add the functions in ISR or in the main loop that depends on the response speed requirement. Both should be ok for motion control.