How to get the signal output of a PID controller as a voltage

15 次查看(过去 30 天)
So I am trying to closed-loop model a PMDC motor in Simulink, using a PID controller to control the voltage input through the angular speed of another motor's rotor. The motor has an input of 36V.
I am told that I need to use a motor driver to act as a bridge between the motor and the controller. However, in simscape I don't think that there is a driver for a PMDC motor (there are drivers for other motors BLDC, stepper, etc.). So I tried to make my own driver using a controllable voltage source block from simscape, however, the output from this block is the same as the output from the PID. So I fed this through a gain of 36/PID signal value.
But then I tried to check what would happen if a constant block was used with 36 as its value and the results are the same, therefore, this means that my makeshift driver doesn't work. Here is what I made:
I wasn't sure how to work with the controllable voltage source so I just put the resistance and the inductance of the motor acorss this voltage source.
Any help would be much appreciated. Thanks a lot!
  10 个评论

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 PID Controller Tuning 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by