Skip to content

Introduction, Task 1,2

W(s)=Y(s)U(s)=kmTms+1

Y:output, which actually present the speed the motor rotates. U:input, for this lab, it actually is a constant.

To build the model up in MATLAB, there are two ways we can use:

  • one in the form of input-output differential equation
  • one in the way of the transfer function

Input-Output Differential Equation

So we firstly need to change the transfer function into the differential equation, using the method mentioned in Lecture 2

We have one operator s in the denominator, indicates that the differential equation is in the first order at the side of output. And we can note:

TmsY(s)+Y(s)=kmU(s)Tmy+y=kmU

So, replace y with ω, we get:

ω=kmtmU1Tmω

When beginning, the speed is 0 and we can take ω out of our consider, we just give the system an input U, and as the motor starts to rotate, the speed ω starts to increase and then be put into the circuit.

So, at first we only have one input U, and the feedback 1Tmω is generated by the input U.

Finally the flow chart is just like below.

![[Pasted image 20250923163306.png]]

Transfer Function

It is simpler than the input-output differential equation, since it comes from the Laplace-transformed input-output differential equation, with the input and out put variables out of consideration, it just depict the inherent properties of the system(depends on the type of input, like step, impulse etc.).

P-control, Task 3