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.

TMS570LS1227: Hysteresis controller / bang-bang controller

Part Number: TMS570LS1227

Hello,

I'm working on TMS570ls1227. I've to compare ref. and measured  torque and flux values. I don't know how to implement Hysteresis controller in TMS 570. Can any one help me how could I implement this part of algortihm ? 

Regards,

Suyog

  • Suyog,

    I am not familiar enough with the application to provide guidance here. This is somewhat outside the scope of the forum since our focus is primarily on device related issues not applications. How are you planning to measure the torque and flux? What hysteresis are you concerned with? Is it hysteresis introduced from your sensors? How do you interface to the sensors? What data is returned from the sensors? Is it simply measure the speed of a motor and applied current and then calculate the torque and flux? Are these values returned directly by some external sensor?

    Again, we are not experts at your application so we would need all the information you can provide relative to your system and we can then help with how to use the MCU with the given inputs provided by your system.
  • Hello Chuck,

    Thank you for speedy reply.

    It is direct torque control algorithm to be implemented on PMSM. Here's in detail -

    How are you planning to measure the torque and flux?

    Both of these will be calculated from current flowing in d-q frame. In short, current is the only variable in this equation.

    What hysteresis are you concerned with?

    It will be related to flux and torque values. 

    Is it hysteresis introduced from your sensors?

    Sorry, I didn't get you.

    Basically, I've to  implement 2 and 3 levels of hysteresis.

    How do you interface to the sensors?

    Sorry, I didn't get you.

    What data is returned from the sensors?

    ADC data

    Is it simply measure the speed of a motor and applied current and then calculate the torque and flux?

    Here, I'm not using speed sensor. 

    Are these values returned directly by some external sensor?

    There is only current sensor.

     

    Regards,

    Suyog

     

  • Hello Suyog,

    It seems from the information provided, that this information is brought into the MCU as a voltage on the ADC input and the resulting value can be converted to a flux and/or torque value? Unfortunately, I am unable to help with the algorithms since this is outside my area of expertise and too application specific. Certainly, if there are any questions relative to the MCU and how to use the MCU I can offer help but I can only suggest you try discussing this with the sensor manufacturers who would probably have better guidance on their use and any associated algorithms than I would.