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.

How to ID new motor for TMS570ls31 using DRV8301 , ccsv5 and motorware v1.00.03.03

Other Parts Discussed in Thread: MOTORWARE, TMS570LS3137, DRV8301

Hello Anthony,

I am Roy ... Thanks for your help last time. I am very happy and satisfied with my KIT.

I want to use a new motor now but I don't know where and how to ID it.

I am using DRV8301-ls31 (TMS570ls31 uc) , Motorware v1.00.03.03 and CCS V5.3 ..

I would very much appreciate your help to fix this problem using the above platform.

Best regards,

roy

ps... I have seen discussions (forum) about the subject but using different environments .

        I need one that address the subject using what I have.

        Thanks !

        same 

.

  • Hello Roy,

    if I've requested Anthony to see if he can offer some help here. Thanks.
  • Hi Roy,
    Do you mean how to identify the motor's electrical parameters?
  • Hi Anthony ,
    Yes , I want to use a new motor other than what came with my DRV8301-Revd-ls31 kit.
    My original motor works fine . Now I want to use a real world motor that can do something.
    From my understanding reading from other platforms , there is file called USER.h which
    defines the electrical parameters that need to be changed when using a new motor.
    So , I need one that is applicable to my environment as mentioned on my inquiry.

    Thanks Again !
    roy
  • Hi Roy,

    So I don't think that Motorware for Hercules has any way to automatically identify the motor like some of the more advanced algos. Best case is if you can find a datasheet for your motor. Also probably want to get a datasheet for any sensor that you're using with the motor.
  • Hi Anthony ,

    I have both data sheets of the new motor and it's encoder.
    Chris Clearman had many discussions (forum) about it but
    with C000 family controllers. Perhaps he can help us to ID
    my three phase (psm bldc) motor using Motorware v1.00.
    03.03 , CCSv5.3 on a DRV8301-ls31 platform.

    Thank you much !

    roy
  • Hello Anthony ,

    I am here again .... roy.
    I think I am not communicating my need very well.
    In C2000 family of Microcontrollers they have a file
    (users.h) where to change the ID of a motor.
    Now where is this equivalent file in Hercules Microcontrollres
    located using the platform I have.

    Thanks !

    roy
  • Hi Roy,

    I'm not sure of the answer to this. I haven't used the motorware pkg.
    One of my colleagues has been working with it so pulling him in for advice.

    From what it looks to me - there is /sw/modules/motor/src/32b/motor.h header but I don't see it referenced by any of the source files. So I don't think this is it.

    It looks like the parameters are set at a high level (PID constants, etc) in the drv.c file in your particular project. But I'm not completely sure of this.

    Which of the LS3137 projects are you working with? the one under instaspin_bldc or the one under foc_encoder_speed?
  • Hi Anthony ,

    I need to ID my new motor on Instaspin_bldc first  since I think it is less complicated .

    When I am confident that everything works well on this platform  , then I will test the

    new motor on foc_encoder_speed . So, I will be needing to ID on both configuration.

    I am grateful  for all your efforts in assisting me fix my problem. 

    And I would  deeply appreciate any help from your colleague  who

    have expertise on this subject.

    Best regards ,

    roy

  • Hi Roy,

    The motor identification feature was added to the InstaSPIN-FOC much later than when the Hercules Motorware example codes were released. This feature requires the FAST estimator, which is only released in an object library format and is only available on MCUs with secure non-debuggable on-chip ROMs.

    Hercules MCUs do not have such a ROM on-chip, hence this estimator is not available for use on these MCUs.

    Regards,

    Sunil

  • Hi Sunil ,

    Thanks for your advice on my inquiry.
    I have more questions to ask , I hope you don't mind.
    But first this quick one. Running InstaSpin_bldc using Hercules TMS570ls3137 ,
    is it necessary to ID motor in ccsv5 environment ? And also my new motor
    has temp sensor. Where in the Drv8301-revD driver board input should I hard wire
    and connect.

    Best Regards ,

    roy
  • Hi Roy,

    The InstaSPIN_BLDC code example for Hercules uses hard-coded numbers for the motor characteristics (number of poles, etc) which will need to be modified as per the motor you are using. There are also some other constants used in the calculations that may need to be tuned.

    What is the temp sensor output? If it is an analog signal, you can wire it to an available ADC input channel. You need the control card schematic and the DRV8301 EVM schematic to identify an available unused ADC input channel, and then wire the temp sensor output to this input.

    Regards,
    Sunil
  • Hi Anthony , Sunil ,
    I am going to order the Control Board that have the features I need
    as suggested.

    I very grateful for all your help and assistance.

    Best Regards ,

    roy