Feb 27, 2019
11:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 27, 2019
11:15 AM
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.
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.
- Tags:
- IFX
8 Replies
Apr 02, 2019
02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 02, 2019
02:10 AM
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 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
Apr 03, 2019
07:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 03, 2019
07:10 AM
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
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
Jun 24, 2019
11:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 24, 2019
11:58 PM
Hi Eugene,
were you able to run the motor in reverse or can we still help you?
Best,
Fiz
were you able to run the motor in reverse or can we still help you?
Best,
Fiz
Jul 01, 2019
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 01, 2019
05:23 AM
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.
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.
Jul 03, 2019
06:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 03, 2019
06:47 AM
Hi Eugene,
we are currently working on this problem and will get back to you as soon as possible!
Best,
Fiz
we are currently working on this problem and will get back to you as soon as possible!
Best,
Fiz
Jul 09, 2019
06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 09, 2019
06:40 AM
Hi Fiz,
Thank you. You can also email me at eugene.ho@mcroiltools.com when you have a good working example.
Eugene Ho
Thank you. You can also email me at eugene.ho@mcroiltools.com when you have a good working example.
Eugene Ho
Jul 22, 2019
12:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 22, 2019
12:48 AM
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
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
Jul 25, 2019
04:33 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 25, 2019
04:33 AM
Hi Fiz,
Thank you for your suggestion. I was able to run the motor reverse after set EMO_RUN to 0.
Regards,
Eugene
Thank you for your suggestion. I was able to run the motor reverse after set EMO_RUN to 0.
Regards,
Eugene