Skip to content

Actuator Parameters

Internal Control Loop of Motor Driver

motor_circuit

Current Limit and Current Limit Margin

You can understand current limit and current limit margin as:

"Target current limit" + "protective redundancy margin"

Together, they define the safe operating range of the current controller.


๐Ÿ“Œ Basic Concepts

Current Limit

๐Ÿ‘‰ The maximum current that the controller is allowed to output under normal operation

Current Limit Margin

๐Ÿ‘‰ A reserved "buffer space" for the controller to handle transient fluctuations / control errors

Actual Hard Limit (Absolute Upper Bound)

current_lim + current_lim_margin

๐Ÿ‘‰ Exceeding this limit will trigger protection (e.g., error / current limit violation)


Block Diagram (Logical Structure)

current_lim

๐Ÿงฉ Detailed Explanation

1๏ธโƒฃ Role of current_lim (Soft Limit)

In the control loop (FOC):

Iq_cmd = clamp(Iq_target, -current_lim, +current_lim)

๐Ÿ‘‰ The Iq setpoint is constrained within ยฑcurrent_lim


2๏ธโƒฃ Role of current_lim_margin

Used to detect whether the "actual measured current" is abnormal

Possible sources of error: - ADC error - PWM delay - Back EMF - Dynamic disturbances

๐Ÿ‘‰ Therefore, short-term exceeding of current_lim is allowed


3๏ธโƒฃ Protection Trigger Condition

|Iq_measured| > current_lim + current_lim_margin

๐Ÿ‘‰ This will trigger:

ERROR_CURRENT_LIMIT_VIOLATION

๐Ÿ“Š Example

Assume:

  • current_lim = 40 A
  • current_lim_margin = 8 A
Range Meaning
0 ~ 40A Normal operation
40 ~ 48A Transient allowed (margin zone)
>48A โŒ Protection triggered

โš ๏ธ Engineering Significance

current_lim determines

๐Ÿ‘‰ Maximum motor output torque

Torque โˆ Iq

current_lim_margin determines

๐Ÿ‘‰ System stability / robustness

  • Too small: prone to false protection triggers
  • Too large: may cause overcurrent damage to MOSFETs or motor

๐Ÿง  Summary

  • current_lim โ†’ "desired maximum current"
  • current_lim_margin โ†’ "allowed transient overshoot range"

๐Ÿš€ Engineering Recommendations

Applicable for:

  • High dynamic motion (jumping / locomotion)
  • Strong nonlinear control (RL control)

Recommended configuration:

  • Set margin to 20% ~ 30%
  • Combine with:
    • Bus current limit
    • Temperature protection
    • Torque limiter