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/LAUNCHXL-F28069M: Should I use InstaSPIN-FOC or use Matlab generated code?

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

Tool/software: Code Composer Studio

Hi all,

I have laid out some details in the attachment (would help to read first). Also, Design/Part recommendations just from reading the attachment is also appreciated.

I am having issues using the MotorWare software due to most designs revolving around all in one motor inverter kits that are significantly different than what I am trying to do and my inexperience with C2000 controllers and TI software in general. Currently I am attempting to use the LaunchXL-F28069M to start off with to set up a bench test. I have been looking through the labs provided with the motorware package in the "...projects and labs user's guide" document. I was recommended to start with reading the first few labs to get an idea of how it works, and then use lab 11 to develop my solution. This is proving to be slow and difficult for my specific situation, and I have a deadline coming up soonish.

Given my situation, would it be quicker to continue down the path of trying to convert the provided labs to fit my situation, or to use Matlab and Simulink to generate code? I am knowledgeable of control theory and have some experience using Simulink. My goals as of now are to have a solution that can start an engine. Or rephrased, I don't need a super robust/efficient/optimal solution until later on.

As little or as much insight and/or recommendations is extremely appreciated.

Please let me know if there is any other information I need to provide, or if there are any questions.

Thanks!!

P1ControllerOverview.docx

  • I cant provide much guidance here, but I think you could likely get either path to work out. I don t know which would be easiest to get up and running, as that depends on your expertise with the various tools and workflows.

    Here is a link with more info on the MathWorks approach and support for C2000:

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/484814

    -Brian

  • Yeah, I have looked through link earlier actually, and it seemed to be pretty straight forward. 

    Thanks for the thoughts.

    More insight would be appreciated.

  • Logan,

    Unfortunately, I cannot say which path will lead to a shorter development time for you, as there are too many variables involved honestly. Additionally, I am not well experienced with Matlab generated code, and am not familiar with the knowledge needed to develop an application this way.

    One thing I have noticed though was that you were given an incorrect way to approach your design using Motorware. For your system, you have position information from the resolver+PGA411; therefore, you should be using the libraries and examples for InstaSPIN-MOTION, not InstaSPIN-FOC. Instead of lab11, which is really a stripped down version of our other labs, you should be exploring labs 12 and 13, as they use position information to correctly drive the three phases of the motor. Please take some time to read through the corresponding InstaSPIN-MOTION labs, as they are more relevant to your design.

    I was also able to find a TI reference design that looks to fit your application (in fact, it looks nearly identical). The link is www.ti.com/.../TIDA-00796

    Have you looked at this TI design? There appears to even be a software package available for download. You may find that software to be easy to deploy for a proof of concept.

    Sean