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.

Newbie to InstaSPIN

Other Parts Discussed in Thread: MOTORWARE

Dears,

I am curious about TI InstaSPIN solution. I wonder if this InstaSPIN is somehow editable since I would like to add/modified parts and use it. So question is:

Is InstaSPIN accessible for edit (source code level) for user to be able to modify it?

Thanks!


Best regards,

Peter

  • Hello, Peter.

    Yes, the vast majority of the InsaSPIN-FOC and -MOTION solutions allow customization of much of the forward control and you are completely responsible for all system level logic, communication, etc.

    What is "fixed"

    • The overal control system regarding the CTRL_run/EST_run/TRAJ_run functions. You can change the contents of CTRL_run, but much of the system level timing and variable scaling interface between these functions (that you set-up through user.h) must be maintained. There is tremendous flexibility, but you must work within the confines of the structure we define
    • FAST estimator, if you use our sensorless software solution
    • SpinTAC Identify, Control, and Move libraries, if you use this Motion Control Suite

    This is all documented, though I know there is a tremendous amount of material to look through.

    Recommend you start with:

    • Software Architectures for InstaSPIN-FOC and for InstaSPIN-MOTION
    • Install MotorWare, run MotorWare.exe, and browse, paying attention to the links for:
      • TRM for FOC and TRM for MOTION
      • User's Guide for FOC and MOTION
      • Lab & Projects User's Guide
      • structure of the proj_lab##.c, where you can see how much flexibility is allowed
  • Yes, I understand that there is a lot of customization possibilities, but if I want add my own "module" e.g. sw handler for dead-time compensation I need to do out of InstaSPIN? How to incorporated into InstaSPIN control?  

    Since I guess it should be part of motor control so the point is how to handle sw issues where I need to add/modify already implemented control?

    Thanks for you quick response!

    Best regards,

    Peter

  • You have complete ownership of the forward control.

    On the F2806x we put the entire control loop in ROM, but that's completely optional. If you look at our proj_lab you will notice that starting in proj_lab03x we run the same conrol system that is fully in ROM now with the forward control in user code.

    All the following labs build functionality in user code.

    You can completely write your own control system, or just modify our example as needed. For instance you can take the Ta, Tb, Tc generated by the svgen and modify them for dead-time before you update the PWM function.

     

  • Hi Pete!  It is great to hear from you again.  Are you still working at Freescale, or have you moved on?

    As Chris stated, the InstaSPIN-FOC code (FAST observer, Automatic motor ID, and PowerWarp technology) are ROMed software, and are considered proprietary algorithms.  Also in ROM is an example control loop consisting of standard library calls like Clarke, Park, PI, etc.  These routines ARE available to the public through MotorWare, and can be modified or replaced with user equivalent functions.  Then you can recompile the code including YOUR functions instead of ours, and still utilize InstaSPIN-FOC.

    I'm curious if you don't mind me asking, what is your interest in InstaSPIN-FOC?  Is this for a product, a research study, or other? 

    I hope all is well.  Please let me know if I can help further.

    Thanks,

    Dave

  • Hello Dave,

    I am really happy to hear you, Dave. I hope you are doing fine! 

    I am out of previous job for a while and now with EMSPIN and yes, we are building a product.

    I like this InstaSPIN-FOC and looking for more info on customization (modification) level of this. TI development-ecosystem is more mature than your competitors and has "better-to-fit" portfolio of MCUs.  

    I am looking forward to hearing from you!

    Best regards,

    Peter

    P.S.  If you find a spare time just drop me an email at balazovic.peter@gmail.com to offline this communication!