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.

Sensorless motor controller development options

Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE

Hi Chris...??

I am doing a sensorless motor controller. I have an existing "sensored" motor controller in a completely "non-TI" platform. It seems to me I have three options.

1) Develop my own sensor-less estimator in our existing platform.

2) Somehow integrate some of my existing code into the TI environment - using TI's sensor-less estimator, maybe TI's SVM - but my own management software.

3) Use an "all TI" solution without using any of my existing code.

I am trying to assess the effort required in each case. I don't expect you to comment on options 1 or 2 - but only option 3.

The requirements are that we should be able to control motor speed - and torque limit of a PMSM over a CAN interface, and receive feedback on actual speed. I have a good feeling for what is entailed in the hardware development - but would appreciate you advice on how much software development I will need to do.

Does TI have software modules to do everything I need (including the CAN management) - and can I readily "glue them together"  into a "custom flash package". Will I need to do any more than "glue a few modules together"?  What software license do I need to achieve this? 

Thanks Chris.

Richard.



  • Hi Richard,

    1. I highly discourage this!  Plenty of work is being done in this area, leave this to others and focus on using the solutions available

    2. This could certainly be possible, especially if you have a known set of background tasks / host code, etc.

    3. What exists in MotorWare today will give you the following

    Near instant control and reporting of speed and torque, with all source code in user code besides the FAST observer and the overall controller/state machine for Motor ID.  The projects come in RAM and Flash configurations, so they are ready to adapt and release.

    There are APIs for the CAN peripheral, but there is not a full stack. You can create your own or purchase something for your use through some of our partners. For most I recommend www.simmasoftware.com , extremely reasonable.  Others include Port and Vector.

    You will essentially spend your time

    1. understanding the InstaSPIN solution, testing the torque control, tuning the speed control

    2. Creating your CAN interface

    3. Creating / re-using your background tasking / system functions

    4. Interfacing the system tasks to InstaSPIN-FOC (you will see how this is done in the Labs, using a background global update or specific get/set functions in the interrupt)

    There really isn't any licensing.  CCS is included free and unlimited if you use the XDS100 emulator (which all our controlCARDS do). If you want to use a different emulator there is a yearly CCS fee of like $399.

    If you want to purchase a CAN stack from a partner you pay for that.

    That's it!

    If one of evaluation kits fits your current/voltage range I'd invest and you'll see pretty quickly the effort involved.  To be honest if you are familiar with object oriented programming it's a breeze.

    Where we have seen people struggle the most isn't with the InstaSPIN-FOC capability but in moving from the controlSUITE style bit registers and MACRO based projects to MotorWare APIs and objects.  I still struggle with that change as it introduces a tremendous amount of flexibility (and the code actually functions faster and smaller footprint) but the references and having code split between so many files can be confusing to follow. Add in that some code - including the main state machine controller - is in ROM and you can sometimes feel lost (and the documentation is so extensive you feel like you have to read yourself to freedom!).  

    My honest take....

  • Thanks Chris....

    I have purchased and received the TI HV development kit. It doesn't really match my power requirements - but should allow me to evaluate the TI architecture. I will build something similar but with bigger IGBTs.

    On the licensing - I am still having some issues - or at least confusion:

    I removed the CCS 5.3 that I downloaded and installed some time ago - and installed the CCS_5.4 that came with my HV eval kit on CD. When it first runs - it still wants me to create a 90 day eval license. How do I get the permanent license that should come with the eval kit?

    Thanks Chris

    Richard.


  • Richard,

    regarding licensing, please see

    http://processors.wiki.ti.com/index.php/Licensing_-_CCS

    you should be able to select the Bundle License on install

     

  • Also, I understand choosing a license at install may be confusing. If you choose a timed license just let it expire and it will prompt you for a new license. At this point if you are still just using XDS100 emulators you can choose the free Bundle option.

     

  • Hello Chris, I am helping Richard out on this project, principally integrating the motor into our existing system. Specifically I need to write a CAN bus TX and RX entities in the Motorware/CCS project that Richard is building. These will decode and encode Richard's data to/from CAN packets that goes to the system.

    However, in my initial look at Motorware, I only find an ecan.h header file for the DSP2803x, and no C file that may have some sample initialization and TX and RX methods? Does TI provide any sample code on CAN bus usage?

    I know what to do with the CAN bus header and data portions, as that is already known. I just am not that familiar with the ECAN peripheral.

    Best regards

    Min

  •  if u want to make  3 phase BLDC motor driver without hall sensor ...

    go through the attachment

    Dharmendra Sharma

    INDIA5086.00885a.pdf