- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Team,
We are using XMC1300 Kit (24V, 300W, 120W motor) and working on Current Control. Where Motor is running continuously in Current control scheme. He is taking POT as Reference current and DC_Current as Feedback Current.
Initially when we increment POT to increase RPM it is running. But when we decrement POT to reduce speed of the running motor it is not reducing. It is running with same speed (Running in open loop speed-maximum). How can we control speed (Increase/Decrease) here in current control scheme.
Assigning maximum amplitude and updating as duty cycle.
Any suggestions would be very thankful.
Solved! Go to Solution.
- Labels:
-
XMC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bond_007,
Could you please share the exact code version or the project if possible?
We assume you are using BLDC_SCALAR_HALL_XMC13_Power_Tool code based on your previous thread? Please confirm us.
You can try adopting Speed and current control mode which takes both current and speed feedback
#define BLDC_SCALAR_SPEEDCURRENT_CTRL (3U) /*!< Closed loop current control - duty is controlled as per speed and current feedback */
when we decrement POT to reduce the speed of the running motor it is not reducing. It is running with the same speed (Running in open-loop speed-maximum). How can we control speed (Increase/Decrease) here in current control scheme?
Please ensure if ADC value is changing if the POT is varied. Take the ADC values from the POT and convert them into suitable current values and vary set current using function.
Motor0_BLDC_SCALAR_SetCurrentVal(int32_t current).
Thanks,
Krupashankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bond_007,
Please check if the following AppNote is helpful:
Is there any minimal project which can be looked into for better insights into the issue?
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Bond_007,
Could you please share the exact code version or the project if possible?
We assume you are using BLDC_SCALAR_HALL_XMC13_Power_Tool code based on your previous thread? Please confirm us.
You can try adopting Speed and current control mode which takes both current and speed feedback
#define BLDC_SCALAR_SPEEDCURRENT_CTRL (3U) /*!< Closed loop current control - duty is controlled as per speed and current feedback */
when we decrement POT to reduce the speed of the running motor it is not reducing. It is running with the same speed (Running in open-loop speed-maximum). How can we control speed (Increase/Decrease) here in current control scheme?
Please ensure if ADC value is changing if the POT is varied. Take the ADC values from the POT and convert them into suitable current values and vary set current using function.
Motor0_BLDC_SCALAR_SetCurrentVal(int32_t current).
Thanks,
Krupashankar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Krupashankar ,
Yes, We are using "BLDC_SCALAR_HALL_XMC13_Power_Tool" code.
I tried with speed current control as you suggested it is working fine.
Now, my requirement is to run another motor (Golden Motor) as per our own design. we placed Current Transformer(CT) to sense current in the place of Rshunt. And its(CT) offset is 1.65 where, in example code offset is taken as 1.
we are not using current sense amplifier section as below.
I need to change the required parameters in the code and run the golden motor using SPEED_CURRENT Control scheme. Please see attached CT & Golden Motor pdfs and help me for below,
What are modifications we have to do in present "BLDC_SCALAR_HALL_XMC13_Power_Tool" code to run Golden motor ? Any help would be very thank full.