Practical digital current regulator

Click For Summary

Discussion Overview

The discussion revolves around the challenges of implementing a digital current regulator for a DC motor controlled by an H bridge, particularly focusing on the behavior of the regulator when the error between the set current and actual current becomes negative. The scope includes technical explanations and potential solutions for current regulation in motor control systems.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant notes that when the error (SetCurrent - Current) is positive, the PI current regulator functions well, but issues arise when the error becomes negative, as negative duty cycles cannot be set.
  • Another participant questions how this issue is typically resolved in practice, suggesting the use of other transistors to reverse the current.
  • A participant mentions that using solely an I regulator yields poor performance and proposes the idea of ignoring the P part of the regulator when overshooting the setpoint.
  • One participant emphasizes that the duty cycle must be clamped between zero and one, indicating that values below zero should be clamped at zero.
  • Another participant suggests either clamping the signal, conditioning it to remain within range, or redesigning the system to accommodate reverse directions if necessary.

Areas of Agreement / Disagreement

Participants express differing views on how to handle negative duty cycles and the implications for current regulation. There is no consensus on a single solution, and multiple approaches are proposed.

Contextual Notes

The discussion does not resolve the limitations of the proposed solutions, such as the assumptions regarding the motor's intended directionality and the specific design constraints of the current regulator.

MechatronO
Messages
30
Reaction score
1
Consider a DC motor, being switched by a H bridge that is controlled by a PI current regulator.

As long as the error (SetCurrent-Current) is positive everything is good. However, when this goes negative we have a problem as you couldn't set a negative duty cycle.

How is this solved in practice? Using the other transistors to reverse the current?

I tried using solely an I regulator which off course works kind of, but as expected performs very poor.

Maybe it could be solved by ignoring the P part when we overshoot the setpoint?
 
Engineering news on Phys.org
MechatronO said:
Consider a DC motor, being switched by a H bridge that is controlled by a PI current regulator.

As long as the error (SetCurrent-Current) is positive everything is good. However, when this goes negative we have a problem as you couldn't set a negative duty cycle.

How is this solved in practice? Using the other transistors to reverse the current?

I tried using solely an I regulator which off course works kind of, but as expected performs very poor.

Maybe it could be solved by ignoring the P part when we overshoot the setpoint?

What are you controlling? The motor's speed? That is usually done with PWM on the drive voltage. Is the motor intended to be uni-directional?
 
MechatronO, as you point out, duty cycle can only range between zero and one.
Anything below zero must clamp at zero.
Anything above one must clamp at one.
 
You either have to clamp the signal as Baluncore suggested, or condition the signal to remain in range, or redesign the system to allow reverse directions if that is what you need.
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 14 ·
Replies
14
Views
8K
  • · Replies 12 ·
Replies
12
Views
10K
  • · Replies 7 ·
Replies
7
Views
6K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 31 ·
2
Replies
31
Views
5K