Practical digital current regulator

In summary, the conversation discusses the issue of controlling a DC motor with an H bridge and a PI current regulator. It is mentioned that as long as the error between the set current and the actual current is positive, everything works well. However, when the error becomes negative, there is a problem as a negative duty cycle cannot be set. One solution suggested is using other transistors to reverse the current. Another approach of using solely an I regulator is mentioned, but it is noted that it performs poorly. It is also suggested to ignore the P part when overshooting the setpoint. The issue of controlling the motor's speed and its direction is also brought up, with the possibility of clamping the signal or redesigning the system mentioned as
  • #1
MechatronO
30
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
  • #2
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?
 
  • #3
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.
 
  • #4
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.
 
  • #5


I would suggest considering the use of a PID (Proportional-Integral-Derivative) controller instead of just a PI controller. This would take into account both the proportional and integral components of the error to provide a more robust and accurate control of the current. Additionally, using additional transistors to reverse the current may introduce complications and potential failure points, so it would be important to carefully consider the design and implementation of such a solution.

Furthermore, it may be beneficial to explore other control strategies or algorithms that are specifically designed for DC motor control, as they may provide better performance and stability than a generic PI controller. Additionally, incorporating feedback from motor speed or position sensors can also improve the accuracy and responsiveness of the current regulation.

In terms of handling negative error values, one approach could be to limit the error to zero when it becomes negative, instead of completely ignoring the P component. This would prevent any drastic changes in the duty cycle and help maintain stability of the system.

Overall, it is important to carefully consider the specific requirements and limitations of the application in order to select the most appropriate and effective digital current regulator. Experimenting with different control strategies and fine-tuning the parameters can also help improve the performance of the system.
 

1. What is a practical digital current regulator?

A practical digital current regulator is a device used in electronic circuits to control the flow of electric current. It uses digital signals to adjust the current to a desired level, providing more precise and accurate control compared to traditional analog current regulators.

2. How does a practical digital current regulator work?

A practical digital current regulator uses a microcontroller or digital signal processor (DSP) to measure the current flowing through a circuit and adjust it by controlling the switching of transistors. The microcontroller or DSP constantly monitors the current and makes adjustments to maintain a steady flow at the desired level.

3. What are the advantages of using a practical digital current regulator?

Compared to analog current regulators, practical digital current regulators offer higher precision and accuracy in controlling current. They also provide faster response times and are less affected by external factors such as temperature and component variations. Additionally, digital current regulators can be easily programmed and adjusted for different current levels.

4. In what applications are practical digital current regulators commonly used?

Practical digital current regulators are commonly used in various electronic devices that require precise and stable current control, such as power supplies, motor controllers, LED drivers, and battery chargers. They are also used in industrial applications, such as in welding machines and industrial process control systems.

5. Are there any limitations or downsides to using a practical digital current regulator?

One limitation of practical digital current regulators is that they require a power source to operate, which can add to the overall cost of the circuit. They also may be more complex to design and implement compared to analog current regulators. Additionally, they may be more susceptible to electromagnetic interference, which can affect their performance.

Similar threads

  • Electrical Engineering
Replies
11
Views
963
  • Electrical Engineering
Replies
5
Views
3K
  • Electrical Engineering
Replies
11
Views
1K
  • Electrical Engineering
Replies
14
Views
6K
  • Electrical Engineering
Replies
7
Views
3K
  • Electrical Engineering
Replies
12
Views
6K
Replies
31
Views
2K
  • Electrical Engineering
Replies
4
Views
3K
  • Electrical Engineering
Replies
7
Views
6K
Replies
9
Views
2K
Back
Top