Closed Thread
Results 1 to 9 of 9

Thread: [SOLVED] TLE9879 Demo Kits BLDC_BEMF

  1. #1
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    5
    Points
    62.5

    [SOLVED] TLE9879 Demo Kits BLDC_BEMF

    Can anyone help me?

    I am trying to modify the code for BLDC_BEMF as below
    1) Run the motor forward and reverse.
    2) Run to 2 A current limit and stop the motor

    I did look into the code but not able to understand where to change the code or which function do the direction and limit the current.

    Thanks.

  2. #2

    Infineon Employee
    Infineon Employee
    Mc-Key will become famous soon enough
    Join Date
    Jan 2018
    Location
    Germany
    Posts
    28
    Hi,
    The example code is capable to run in reverse direction.

    You can change line 101 in the main.c file.
    Emo_setspeedreferenz(-2000);

    The direction control is selected in Emo.c line 151-158

    Easiest way to reverse the direction is to stop the motor, reverse refspeed and start again.

    According to your second question.
    There is no current limitation implemented to the democode.
    The current sense amplifier (CSA) is connected to ADC1/CH1.
    If you use one of the TLE9879 Evalkits, you will have a 5mOhm Shunt connected to the CSA.
    This results in a current range of +/- 30A at a Gain of 10.

    I hope this hints will help you,

    Best Regards,
    Mc-Key
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  3. #3
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    5
    Points
    62.5
    Hi Mc-Key,

    I am using KEIL uVision with TLE9879 Evalkits demo code.
    I did what you suggested changing Emo_setspeedreferenz(-2000);. The motor run for 0.5 s and stop. Is there anywhere else I need to modify?
    When I run forward with load, the motor stop running after heavy load. Is there a overload current set in the demo code?
    I wish who write this code create function for speed and current so that user can test the hardware by simply changing the value from positive to negative for speed and integer value for current limit.

    Please let me know if you have any other suggestion.

    Thank you,
    Eugene Ho

  4. #4
    Moderator
    Infineon Employee
    Infineon Employee
    Fiz is on a distinguished road
    Join Date
    Jun 2019
    Posts
    25
    Hi Eugene,

    were you able to run the motor in reverse or can we still help you?
    Best,
    Fiz
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  5. #5
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    5
    Points
    62.5
    Hi Fiz,
    I did try to changed Emo_setspeedreferenz(-2000); but the motor runs for a second and stop. I think may be the direction error. Can you please help me how to get this working? I am trying to figure how to use the button to run forward for 10 seconds and press the button to run reverse for 10 seconds.

    Thanks.

  6. #6
    Moderator
    Infineon Employee
    Infineon Employee
    Fiz is on a distinguished road
    Join Date
    Jun 2019
    Posts
    25
    Hi Eugene,

    we are currently working on this problem and will get back to you as soon as possible!

    Best,
    Fiz
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  7. #7
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    5
    Points
    62.5
    Hi Fiz,
    Thank you. You can also email me at eugene.ho@mcroiltools.com when you have a good working example.
    Eugene Ho

  8. #8
    Moderator
    Infineon Employee
    Infineon Employee
    Fiz is on a distinguished road
    Join Date
    Jun 2019
    Posts
    25
    Hi Eugene,

    try decreasing the reference speed and adding a small load to the motor. This will will improve the performance of the closed loop.
    When this does not work or is not possible for your setup, you can try to set EMO_RUN to 0 in EMO_BEMF.h.
    This way the regulator will stay in open-loop.
    Let me know if one of this solutions worked for you.

    Best,
    Fiz
    Last edited by Fiz; Jul 26th, 2019 at 05:23 AM.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

  9. #9
    Beginner Beginner x94ho2 is on a distinguished road
    Join Date
    Feb 2019
    Posts
    5
    Points
    62.5
    Hi Fiz,
    Thank you for your suggestion. I was able to run the motor reverse after set EMO_RUN to 0.

    Regards,
    Eugene

Closed Thread
Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.