Running BLDC Motor continuously in Current Control Scheme

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Bond_007
Level 3
Level 3
10 questions asked 25 sign-ins 10 replies posted

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.

0 Likes
1 Solution
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

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

View solution in original post

3 Replies
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @Bond_007,

Please check if the following AppNote is helpful:

AP32359: https://www.infineon.com/dgdl/Infineon-AP32359_BLDC_Motor_Control_Software-AN-v01_00-EN.pdf?fileId=5...

 

Is there any minimal project which can be looked into for better insights into the issue?

Regards,
Nikhil

0 Likes
Krupashankar
Moderator
Moderator
Moderator
500 replies posted 50 likes received 25 likes received

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

lock attach
Attachments are accessible only for community members.
Bond_007
Level 3
Level 3
10 questions asked 25 sign-ins 10 replies posted

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.
Current Sense Amp.PNG

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.

0 Likes