Salta al contenuto
Note per Studenti Modeling a DC Servomotor Report

Modeling a DC Servomotor

In questa pagina 4

This note follows the lecture on DC motor modeling: first the physical laws that couple electrical and mechanical quantities, then the DC motor with an inertial load, then the gearmotor, and finally the complete model of the experimental unit used in the laboratory (a servomotor unit with a voltage driver, a planetary gearbox, external gears and an extra inertia disc). Modeling tools used here are the ones of System ModelingA mathematical model (parameters, variables, relations) describes a system quantitatively; models are classified as static or dynamic, causal, linear, time-invariant, SISO or MIMO, and the course focuses on SISO continuous-time causal dynamic LTI systems described by a constant-coefficient input-output ODE.System Modeling →, Mathematical Models of Mechanical SystemsThe lumped elements of mechanical systems (mass, spring, damper and their rotational versions, force and displacement sources, lever and gearbox) and the procedure that turns a free-body diagram into a linear ODE, worked on the mass-spring-damper system.Mathematical Models of Mechanical Systems →, Mathematical Models of Electrical SystemsThe lumped elements of electrical circuits (resistor, capacitor, inductor, ideal sources, ideal transformer), Kirchhoff's laws and the derivation of the second-order ODE of a series RLC circuit.Mathematical Models of Electrical Systems → and The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →.

1. Laws of electromechanical systems

Two laws couple the electrical and the mechanical side of a motor.

Law of motors. A conductor of length ll carrying a current ii in a magnetic flux density BB is subject to the electromagnetic force

F=i l×B=(B l i) ux\boldsymbol{F} = i\,\boldsymbol{l}\times\boldsymbol{B} = (B\,l\,i)\,\boldsymbol{u}_x

with FF the electromagnetic force in newton, BB the magnetic flux density in tesla, ii the electric current in ampere. In the slide the loop lies in the xx-yy plane with BB entering the page, a sliding bar of length ll carries the current, and the force on the bar points along xx.

Law of generators (Faraday-Lenz law). When the bar moves with velocity vv, the flux linkage λ\lambda through the loop changes and a back-electromotive force (BEMF) ebe_b appears:

eb=−dλdt=−ddt(B l x)=−B l ve_b = -\frac{d\lambda}{dt} = -\frac{d}{dt}\big(B\,l\,x\big) = -B\,l\,v

with ebe_b in volt, λ\lambda the flux linkage in weber and v=dx/dtv = dx/dt the velocity in m/s.

Example: a linear electric motor

The bar slides on rails; the loop is closed on a series circuit made of a voltage source ee, a resistance RR and an inductance LL. The current ii circulates in the loop, the bar of length ll is at position xx and the force FF acts on it. In the equivalent circuit the magnetic part is a voltage source ebe_b in series with RR and LL.

Kirchhoff voltage law on the loop and the two laws give

{e−R i−Ldidt+eb=0eb=−ke v ,F=kf i⇒{Ldidt+R i+ke v=eF=kf i\begin{cases} e - R\,i - L\dfrac{di}{dt} + e_b = 0\\[2mm] e_b = -k_e\,v\,,\qquad F = k_f\,i\end{cases} \quad\Rightarrow\quad \begin{cases} L\dfrac{di}{dt} + R\,i + k_e\,v = e\\[2mm] F = k_f\,i\end{cases}

with the definitions

  • kf≜B lk_f \triangleq B\,l: force constant
  • ke≜B lk_e \triangleq B\,l: electric constant

2. The DC motor with an inertial load

2.1 Single-turn motor with permanent magnet excitation

The motor in the slides has these parts: a permanent magnet (stator, poles N and S) that produces the field BB; a single turn (the rotor circuit) free to rotate around an axis; a commutator (also called collector) fixed to the rotor and two fixed brushes touching it, through which the voltage ee is applied. Let ϑ\vartheta be the angle between the normal nn to the turn and the field BB, dd the width of the turn and ll its length.

Case 1, without commutator and brushes (the turn is directly connected to the supply). The force on each side of the turn is F=B l iF = B\,l\,i and the motor torque is

τ=F d sin⁡ϑ⇒τ=A B i sin⁡ϑ,A≜l d (loop area, m2)\tau = F\,d\,\sin\vartheta\quad\Rightarrow\quad \tau = A\,B\,i\,\sin\vartheta,\qquad A \triangleq l\,d\ \text{(loop area, m}^2\text{)}

For the BEMF, the flux linkage is λ=B l dcos⁡ϑ\lambda = B\,l\,d\cos\vartheta, hence

eb=−dλdt⇒eb=A B sin⁡(ϑ) ω,ω≜dϑdt (angular velocity, rad/s)e_b = -\frac{d\lambda}{dt} \quad\Rightarrow\quad e_b = A\,B\,\sin(\vartheta)\,\omega,\qquad \omega \triangleq \frac{d\vartheta}{dt}\ \text{(angular velocity, rad/s)}

The torque τ\tau is proportional to sin⁡ϑ\sin\vartheta: it changes sign when ϑ\vartheta goes past π\pi (the force on each side reverses its effect on the rotation). Over a full rotation the torque has positive and negative lobes, so continuous rotation is not possible.

Case 2, with commutator and brushes. The commutator reverses the connection of the turn to the supply every half turn, so that the current in the side facing the north pole is always in the same direction. The torque then is

τ={A B i sin⁡ϑ0≤ϑ<π−A B i sin⁡ϑπ≤ϑ<2π⇒τ=A B i ∣sin⁡ϑ∣\tau=\begin{cases} A\,B\,i\,\sin\vartheta & 0\le\vartheta<\pi\\ -A\,B\,i\,\sin\vartheta & \pi\le\vartheta<2\pi\end{cases} \quad\Rightarrow\quad \tau = A\,B\,i\,|\sin\vartheta|

and similarly

eb=A B ∣sin⁡ϑ∣ ωe_b = A\,B\,|\sin\vartheta|\,\omega

The torque now keeps the same sign over a full rotation, so continuous rotation can be achieved (the torque is a sequence of positive lobes with zeros at ϑ=0,π,2π\vartheta = 0,\pi,2\pi).

tau (Case 1)                     tau (Case 2)
   ^   ___                          ^   ___       ___
   |  /   \                         |  /   \     /   \
---+-/-----\----/---> theta      ---+-/-----\---/-----\--> theta
   |        \__/                    0   pi/2  pi  3pi/2  2pi

Case 3, rotor winding with multiple turns. With NN turns placed at angles shifted from each other, each turn contributes its own ∣sin⁡∣|\sin| lobe, and the torque and the BEMF follow the envelope (the maximum) of the single contributions.

  • N=2N=2 (second turn shifted by π/2\pi/2):

τ=A B max⁡{∣sin⁡ϑ∣, ∣sin⁡ ⁣(ϑ−π2)∣} i,eb=A B max⁡{∣sin⁡ϑ∣, ∣sin⁡ ⁣(ϑ−π2)∣} ω\tau = A\,B\,\max\Big\{|\sin\vartheta|,\ \big|\sin\!\big(\vartheta-\tfrac{\pi}{2}\big)\big|\Big\}\,i,\qquad e_b = A\,B\,\max\Big\{|\sin\vartheta|,\ \big|\sin\!\big(\vartheta-\tfrac{\pi}{2}\big)\big|\Big\}\,\omega

  • N=4N=4 (turns shifted by π/4\pi/4, π/2\pi/2, 3π/43\pi/4):

τ=A B max⁡{∣sin⁡ϑ∣, ∣sin⁡ ⁣(ϑ−π4)∣, ∣sin⁡ ⁣(ϑ−π2)∣, ∣sin⁡ ⁣(ϑ−3π4)∣} i\tau = A\,B\,\max\Big\{|\sin\vartheta|,\ \big|\sin\!\big(\vartheta-\tfrac{\pi}{4}\big)\big|,\ \big|\sin\!\big(\vartheta-\tfrac{\pi}{2}\big)\big|,\ \big|\sin\!\big(\vartheta-\tfrac{3\pi}{4}\big)\big|\Big\}\,i

and the same expression with ω\omega in place of ii for ebe_b.

  • N≫1N\gg 1: the ripple of τ\tau and ebe_b (visible for N=2,4,8N=2,4,8 in the slide) becomes negligible, the envelope is essentially constant and

τ=kt i ,eb=ke ωkt≜A B (torque constant),ke≜A B (electric constant)\boxed{\tau = k_t\,i\,,\qquad e_b = k_e\,\omega}\qquad k_t \triangleq A\,B\ \text{(torque constant)},\quad k_e \triangleq A\,B\ \text{(electric constant)}

Note: in the ideal case kt=kek_t = k_e numerically, but the measurement units are different (N m/A for ktk_t, V s/rad for kek_e).

2.2 Electrical model of the DC motor

The rotor winding is represented by a resistance RR and an inductance LL in series with a controlled voltage source ebe_b (the BEMF). The motor shaft has angle ϑ\vartheta and delivers the torque τ\tau. With eb=−keωe_b = -k_e\omega in the loop equation:

{e−R i−Ldidt+eb=0eb=−ke ω ,τ=kt i⇒{Ldidt+R i+ke ω=eτ=kt i\begin{cases} e - R\,i - L\dfrac{di}{dt} + e_b = 0\\[2mm] e_b = -k_e\,\omega\,,\quad \tau = k_t\,i\end{cases} \quad\Rightarrow\quad \begin{cases} L\dfrac{di}{dt} + R\,i + k_e\,\omega = e\\[2mm] \tau = k_t\,i\end{cases}

2.3 Adding the mechanical dynamics

The model is extended with the mechanical dynamics of the rotor: an inertia JJ and a viscous friction bb connected to a fixed frame. The torque τ\tau is the torque delivered by the electromagnetic subsystem and, at the same time, the torque applied to the mechanical subsystem (the system is split in two blocks, 1 electrical and 2 mechanical, which exchange ϑ\vartheta, ω\omega and τ\tau).

  1. Electrical subsystem:   Ldidt+R i+ke ω=e\;L\dfrac{di}{dt} + R\,i + k_e\,\omega = e,   τ=kt i\;\tau = k_t\,i
  2. Mechanical subsystem:   Jdωdt+b ω=τ\;J\dfrac{d\omega}{dt} + b\,\omega = \tau

Substituting τ\tau gives the complete DC motor model:

{Ldidt+R i+ke ω=e(electrical dynamics)Jdωdt+b ω=kt i(mechanical dynamics)\boxed{\begin{cases} L\dfrac{di}{dt} + R\,i + k_e\,\omega = e & \text{(electrical dynamics)}\\[2mm] J\dfrac{d\omega}{dt} + b\,\omega = k_t\,i & \text{(mechanical dynamics)}\end{cases}}

3. The DC gearmotor with an inertial load

The motor (rotor inertia JmJ_m, viscous friction bmb_m) is connected through a gearbox of ratio 1:N1:N to a load with inertia JlJ_l and viscous friction blb_l. Subscript mm means motor side, subscript ll load side. The system is split into four blocks, each with its own equation:

  1. electrical block (with τm\tau_m, ϑm\vartheta_m):   Ldidt+R i+ke ωm=e\;L\dfrac{di}{dt} + R\,i + k_e\,\omega_m = e,   τm=kt i\;\tau_m = k_t\,i
  2. rotor mechanics, where τl′\tau'_l is the torque that the load exerts on the rotor (seen at the gearbox input) and τvm=bmωm\tau_{v_m} = b_m\omega_m is the viscous friction torque: Jmdωmdt=τm−τvm−τl′→Jmdωmdt+bm ωm=τm−τl′J_m\frac{d\omega_m}{dt} = \tau_m - \tau_{v_m} - \tau'_l\quad\rightarrow\quad J_m\frac{d\omega_m}{dt} + b_m\,\omega_m = \tau_m - \tau'_l (on the slide the right-hand side of the second form is printed as τm−τvm\tau_m-\tau_{v_m}, which is a misprint: the next slide uses τm−τl′\tau_m-\tau'_l, the form given here)
  3. gearbox (ideal): τl=N τl′ ,ωl=1N ωm\tau_l = N\,\tau'_l\,,\qquad \omega_l = \frac{1}{N}\,\omega_m
  4. load mechanics, with τvl=bl ωl\tau_{v_l} = b_l\,\omega_l: Jldωldt=τl−τvl→Jldωldt+bl ωl=τlJ_l\frac{d\omega_l}{dt} = \tau_l - \tau_{v_l}\quad\rightarrow\quad J_l\frac{d\omega_l}{dt} + b_l\,\omega_l = \tau_l

Reduction to the motor side

Start from 2 and 4 and use 3 (τl′=τl/N\tau'_l = \tau_l/N, ωl=ωm/N\omega_l=\omega_m/N, hence dωl/dt=1Ndωm/dtd\omega_l/dt = \frac1N d\omega_m/dt):

Jmdωmdt+bm ωm=τm−1N τl,JlNdωmdt+blN ωm=τlJ_m\frac{d\omega_m}{dt} + b_m\,\omega_m = \tau_m - \frac{1}{N}\,\tau_l,\qquad \frac{J_l}{N}\frac{d\omega_m}{dt} + \frac{b_l}{N}\,\omega_m = \tau_l

Adding the two equations eliminates τl\tau_l:

(Jm+JlN2)dωmdt+(bm+blN2)ωm=τm\Big(J_m + \frac{J_l}{N^2}\Big)\frac{d\omega_m}{dt} + \Big(b_m + \frac{b_l}{N^2}\Big)\omega_m = \tau_m

which defines

Jeq≜Jm+JlN2 (equivalent moment of inertia, motor side),beq≜bm+blN2 (equivalent viscous friction, motor side)\boxed{J_{eq} \triangleq J_m + \frac{J_l}{N^2}\ \text{(equivalent moment of inertia, motor side)},\qquad b_{eq} \triangleq b_m + \frac{b_l}{N^2}\ \text{(equivalent viscous friction, motor side)}}

The gearmotor model becomes the same as the motor model, with JeqJ_{eq} and beqb_{eq}:

{Ldidt+R i+ke ωm=e(electrical dynamics)Jeqdωmdt+beq ωm=kt i(mechanical dynamics)\begin{cases} L\dfrac{di}{dt} + R\,i + k_e\,\omega_m = e & \text{(electrical dynamics)}\\[2mm] J_{eq}\dfrac{d\omega_m}{dt} + b_{eq}\,\omega_m = k_t\,i & \text{(mechanical dynamics)}\end{cases}

Note: a DC motor with a gearbox is equivalent to a motor without gearbox but with increased inertia and friction, due to the contribution of the load applied at the gearbox output.

4. The experimental unit

The unit used in the laboratory is a servomotor unit (Quanser SRV-02, customized). Its lumped-element diagram has two parts: a voltage driver and a DC gearmotor.

 u --R1(7.5k)--+--------+ (+)\
               |        |     >----+---- u_drv --Rs--(ua)--[ DC motor: ue, La, Ra, Jm ]
              C1(100nF) R2(1.6k)  /  |                                |
               |        | (-)/    R3(1.2k)                   planetary gearbox 1:14
              GND      GND   +---+--+                              |
                             R4(500 ohm)               external gears 1:1 (J72)
                              |                                     |
                             GND                          extra disc inertia Jd
   supply of the op-amp: +12 V / -12 V
  • Voltage driver: a non-inverting op-amp circuit with a first-order RC filter at its input (R1=7.5 kΩR_1=7.5\,\text{k}\Omega, C1=100 nFC_1=100\,\text{nF}, R2=1.6 kΩR_2=1.6\,\text{k}\Omega, feedback R3=1.2 kΩR_3=1.2\,\text{k}\Omega, R4=500 ΩR_4=500\,\Omega, supply ±12 V\pm 12\,\text{V}). Its output udrvu_{drv} goes through the shunt resistor RsR_s to the armature voltage uau_a.
  • DC gearmotor: armature resistance RaR_a, inductance LaL_a, BEMF source ueu_e, rotor inertia JmJ_m, motor torque τm\tau_m and angle ϑm\vartheta_m, a planetary gearbox 1÷141\div14, external gears 1÷11\div1 (with moment of inertia J72J_{72} for the 72-tooth gear), and the extra disc with inertia JdJ_d. The load side has torque τl\tau_l, angle ϑl\vartheta_l, and the disturbance torque τd\tau_d is applied on the disc.

4.1 Free-body diagram and equations

The free-body diagram splits the unit into three bodies exchanging the internal torque τl′\tau'_l (rotor/gearbox) and τl\tau_l (gearbox/load).

Electrical and rotor mechanical dynamics, with laws of generators and motors:

{Ladiadt+(Ra+Rs)⏟≜Req ia=udrv−ue(electrical dynamics)Jmdωmdt+Bm ωm=τm−τl′(rotor mechanical dynamics)ue=ke ωm ,τm=kt ia(law of generators, law of motors)\begin{cases} L_a\dfrac{di_a}{dt} + \underbrace{(R_a+R_s)}_{\triangleq R_{eq}}\,i_a = u_{drv} - u_e & \text{(electrical dynamics)}\\[3mm] J_m\dfrac{d\omega_m}{dt} + B_m\,\omega_m = \tau_m - \tau'_l & \text{(rotor mechanical dynamics)}\\[3mm] u_e = k_e\,\omega_m\,,\quad \tau_m = k_t\,i_a & \text{(law of generators, law of motors)}\end{cases}

Load mechanical dynamics, with a Coulomb (static) friction on the load side:

{Jldωldt+Bl ωl=τl−τd(load mechanical dynamics)τd=τsf sign(ωl) ,τsf>0(Coulomb friction at load side)\begin{cases} J_l\dfrac{d\omega_l}{dt} + B_l\,\omega_l = \tau_l - \tau_d & \text{(load mechanical dynamics)}\\[2mm] \tau_d = \tau_{sf}\,\mathrm{sign}(\omega_l)\,,\quad \tau_{sf}>0 & \text{(Coulomb friction at load side)}\end{cases}

Gearbox (speed and torque transformation):

ωl=ωmN,τl=N τl′\omega_l = \frac{\omega_m}{N},\qquad \tau_l = N\,\tau'_l

Combining as in section 3 (now with the load equation containing τd\tau_d):

JlNdωmdt+BlN ωm=τl−τd,(Jm+JlN2)⏟≜Jeqdωmdt+(Bm+BlN2)⏟≜Beqωm=τm−1N τd\frac{J_l}{N}\frac{d\omega_m}{dt} + \frac{B_l}{N}\,\omega_m = \tau_l - \tau_d,\qquad \underbrace{\Big(J_m+\frac{J_l}{N^2}\Big)}_{\triangleq J_{eq}}\frac{d\omega_m}{dt} + \underbrace{\Big(B_m+\frac{B_l}{N^2}\Big)}_{\triangleq B_{eq}}\omega_m = \tau_m - \frac1N\,\tau_d

The last is the overall mechanical dynamics at the motor side. The disturbance torque is seen by the motor divided by NN.

4.2 Complete model of the gearmotor and Laplace transform

{Ladiadt+Req ia=udrv−ke ωmJeqdωmdt+Beq ωm=kt ia−1N τd\begin{cases} L_a\dfrac{di_a}{dt} + R_{eq}\,i_a = u_{drv} - k_e\,\omega_m\\[2mm] J_{eq}\dfrac{d\omega_m}{dt} + B_{eq}\,\omega_m = k_t\,i_a - \dfrac1N\,\tau_d\end{cases}

Applying the Laplace transform (see The Laplace Transform and Transfer FunctionsThe unilateral Laplace transform turns a linear constant-coefficient ODE into an algebraic equation Y(s) = C(s)/A(s) + B(s)/A(s) U(s), whose second term defines the rational transfer function H(s) = B(s)/A(s).The Laplace Transform and Transfer Functions →), with zero initial conditions:

{(Las+Req) Ia(s)=Udrv(s)−ke Ωm(s)(Jeqs+Beq) Ωm(s)=kt Ia(s)−1N Td(s)\begin{cases} (L_a s + R_{eq})\,I_a(s) = U_{drv}(s) - k_e\,\Omega_m(s)\\[2mm] (J_{eq} s + B_{eq})\,\Omega_m(s) = k_t\,I_a(s) - \dfrac1N\,T_d(s)\end{cases}

4.3 Block diagram

The two equations give a block diagram with a feedback loop through the BEMF constant kek_e:

                                        tau_d
                                          |
                                         [1/N]
                                          |
u_drv -->(+)--[ 1/(La s+Ra+Rs) ]--ia--[kt]--tau_m-->(+)--[ 1/((Jm+Jl/N^2)s+(Bm+Bl/N^2)) ]--+--> omega_m --[1/s]--> theta_m
          ^-                                          -                                    |
          |                                                                                 +--[1/N]--> omega_l --[1/s]--> theta_l
          +-------------------------- ue <-- [ke] <------------------------------------------+

4.4 Transfer functions

From the block diagram (with τd=0\tau_d = 0) the transfer functions from the driver voltage udrvu_{drv} to the motor speed and to the load angle are

Pudrv→ωm(s)=Ωm(s)Udrv(s)=kt(Las+Req)(Jeqs+Beq)+ktkeP_{u_{drv}\to\omega_m}(s) = \frac{\Omega_m(s)}{U_{drv}(s)} = \frac{k_t}{(L_a s + R_{eq})(J_{eq}s + B_{eq}) + k_t k_e}

Pudrv→ϑl(s)=Θl(s)Udrv(s)=kt(Las+Req)(Jeqs+Beq)+ktke⋅1NsP_{u_{drv}\to\vartheta_l}(s) = \frac{\Theta_l(s)}{U_{drv}(s)} = \frac{k_t}{(L_a s + R_{eq})(J_{eq}s + B_{eq}) + k_t k_e}\cdot\frac{1}{N s}

The extra factor 1/(Ns)1/(Ns) comes from ωl=ωm/N\omega_l=\omega_m/N and from the integration ϑl=∫ωl dt\vartheta_l = \int\omega_l\,dt.

Reduction to first order. The electrical time constant La/ReqL_a/R_{eq} is typically much smaller than the mechanical time constant Jeq/BeqJ_{eq}/B_{eq}. With La/Req≪Jeq/BeqL_a/R_{eq}\ll J_{eq}/B_{eq} the electrical dynamics is neglected, and the second-order denominator becomes first order:

Pudrv→ωm(s)≈km′Tms+1,Pudrv→ϑl(s)≈km′Tms+1⋅1NsP_{u_{drv}\to\omega_m}(s) \approx \frac{k'_m}{T_m s + 1},\qquad P_{u_{drv}\to\vartheta_l}(s) \approx \frac{k'_m}{T_m s + 1}\cdot\frac{1}{Ns}

km′≜ktReqBeq+ktke,Tm≜ReqJeqReqBeq+ktkek'_m \triangleq \frac{k_t}{R_{eq}B_{eq} + k_t k_e},\qquad T_m \triangleq \frac{R_{eq}J_{eq}}{R_{eq}B_{eq} + k_t k_e}

(the check is immediate: with La=0L_a=0 the denominator is ReqJeqs+ReqBeq+ktkeR_{eq}J_{eq}s + R_{eq}B_{eq} + k_tk_e). The speed response is a first-order system as in BIBO Stability and First-Order ModelsA linear system response splits into a natural response from the initial conditions and a forced response from the input; BIBO stability concerns the forced response and stability of the zero equilibrium concerns the natural one, and an n-th order ODE can be rewritten as n first-order equations (a state model) whose transfer function is obtained from the matrices A, B, C and D.BIBO Stability and First-Order Models →.

4.5 Voltage driver dynamics

The voltage udrvu_{drv} is itself produced by the voltage driver, which has its own dynamics. With u+u_+ the voltage at the non-inverting input of the op-amp:

udrv=(1+R3R4)u+,(R1R2C1R1+R2)du+dt+u+=R2R1+R2 uu_{drv} = \Big(1+\frac{R_3}{R_4}\Big)u_+,\qquad \Big(\frac{R_1R_2C_1}{R_1+R_2}\Big)\frac{du_+}{dt} + u_+ = \frac{R_2}{R_1+R_2}\,u

Combining the two:

Tdrvdudrvdt+udrv=kdrv u(voltage driver dynamics)T_{drv}\frac{du_{drv}}{dt} + u_{drv} = k_{drv}\,u\qquad\text{(voltage driver dynamics)}

kdrv=(1+R3R4)R2R1+R2,Tdrv=R1R2C1R1+R2k_{drv} = \Big(1+\frac{R_3}{R_4}\Big)\frac{R_2}{R_1+R_2},\qquad T_{drv} = \frac{R_1R_2C_1}{R_1+R_2}

This is a first-order low-pass filter with DC gain kdrvk_{drv} and time constant TdrvT_{drv} (cut-off frequency 1/Tdrv1/T_{drv} in rad/s). With the component values above one gets (computed here as a check, not shown on the slide) kdrv≈0.60k_{drv}\approx 0.60 and Tdrv≈0.13 msT_{drv}\approx 0.13\,\text{ms}, i.e. about 1.21.2 kHz.

4.6 Overall model from the input voltage u

Putting the driver in front of the gearmotor (block kdrv/(Tdrvs+1)k_{drv}/(T_{drv}s+1) before the loop):

Pu→ϑl(s)=Θl(s)U(s)=kdrvTdrvs+1⋅kt(Las+Req)(Jeqs+Beq)+ktke⋅1NsP_{u\to\vartheta_l}(s) = \frac{\Theta_l(s)}{U(s)} = \frac{k_{drv}}{T_{drv}s+1}\cdot\frac{k_t}{(L_a s + R_{eq})(J_{eq}s + B_{eq}) + k_tk_e}\cdot\frac{1}{Ns}

With La/Req≪Jeq/BeqL_a/R_{eq}\ll J_{eq}/B_{eq} and Tdrv≪1T_{drv}\ll 1 (both small time constants neglected) the model simplifies to

P(s)=Θl(s)U(s)=kmTms+1⋅1Ns,km≜kdrvktReqBeq+ktke,Tm≜ReqJeqReqBeq+ktke\boxed{P(s) = \frac{\Theta_l(s)}{U(s)} = \frac{k_m}{T_m s + 1}\cdot\frac{1}{Ns},\qquad k_m \triangleq \frac{k_{drv}k_t}{R_{eq}B_{eq}+k_tk_e},\quad T_m \triangleq \frac{R_{eq}J_{eq}}{R_{eq}B_{eq}+k_tk_e}}

So the servomotor is, for control purposes, a first-order lag in speed followed by an integrator (position). The detailed implementation in Simulink, with nonlinear effects, is the subject of Lab Activity - DC Servomotor Simulink ModelingLaboratory activity to build a Simulink model of the laboratory DC servomotor that includes voltage saturation, DAC and encoder quantization, Coulomb friction and three alternative speed filters, with nominal parameters, step-by-step tasks S1 to S7 and a Matlab parameter script.Lab Activity - DC Servomotor Simulink Modeling →; the identification of friction and inertia is in Lab Activity - Friction and Inertia EstimationLaboratory activity that estimates the viscous friction, the Coulomb friction and the total rotor inertia of the DC servomotor from experimental data, using the torque balance at constant speed and at constant acceleration, a linear least squares fit and filtered current and speed measurements.Lab Activity - Friction and Inertia Estimation →.

Versione ripasso

Laws. Motors: F=B l iF = B\,l\,i. Generators (Faraday-Lenz): eb=−dλ/dt=−B l ve_b=-d\lambda/dt = -B\,l\,v. Linear motor: L di/dt+R i+kev=eL\,di/dt + R\,i + k_e v = e, F=kfiF=k_f i.

DC motor. One turn without commutator: τ=ABisin⁡ϑ\tau = A B i\sin\vartheta, sign changes, no continuous rotation. With commutator and brushes: τ=ABi∣sin⁡ϑ∣\tau = A B i|\sin\vartheta|, eb=AB∣sin⁡ϑ∣ωe_b = A B|\sin\vartheta|\omega. With NN turns: maximum of shifted ∣sin⁡∣|\sin|; for N≫1N\gg1 the ripple vanishes:

τ=kt i,eb=ke ω,kt=ke=A B (different units)\tau = k_t\,i,\qquad e_b = k_e\,\omega,\qquad k_t=k_e=A\,B\ \text{(different units)}

{Ldidt+R i+ke ω=eJdωdt+b ω=kt i\begin{cases} L\dfrac{di}{dt} + R\,i + k_e\,\omega = e\\ J\dfrac{d\omega}{dt} + b\,\omega = k_t\,i\end{cases}

Gearmotor (ratio 1:N1:N, τl=Nτl′\tau_l = N\tau'_l, ωl=ωm/N\omega_l=\omega_m/N): reduce the load to the motor side,

Jeq=Jm+JlN2,beq=bm+blN2J_{eq} = J_m + \frac{J_l}{N^2},\qquad b_{eq} = b_m + \frac{b_l}{N^2}

so the gearmotor behaves like a motor with larger inertia and friction.

Experimental unit. Voltage driver + gearmotor (1÷141\div14 planetary, 1÷11\div1 external gears, extra disc). With Req=Ra+RsR_{eq}=R_a+R_s:

{Lai˙a+Req ia=udrv−keωmJeqω˙m+Beqωm=ktia−τd/N,τd=τsf sign(ωl)\begin{cases} L_a\dot i_a + R_{eq}\,i_a = u_{drv} - k_e\omega_m\\ J_{eq}\dot\omega_m + B_{eq}\omega_m = k_t i_a - \tau_d/N\end{cases},\qquad \tau_d = \tau_{sf}\,\mathrm{sign}(\omega_l)

Pudrv→ωm=kt(Las+Req)(Jeqs+Beq)+ktke,Pudrv→ϑl=Pudrv→ωm⋅1NsP_{u_{drv}\to\omega_m} = \frac{k_t}{(L_a s+R_{eq})(J_{eq}s+B_{eq})+k_tk_e},\qquad P_{u_{drv}\to\vartheta_l} = P_{u_{drv}\to\omega_m}\cdot\frac{1}{Ns}

Neglecting La/Req≪Jeq/BeqL_a/R_{eq}\ll J_{eq}/B_{eq}: first order with km′=kt/(ReqBeq+ktke)k'_m = k_t/(R_{eq}B_{eq}+k_tk_e), Tm=ReqJeq/(ReqBeq+ktke)T_m = R_{eq}J_{eq}/(R_{eq}B_{eq}+k_tk_e).

Voltage driver: Tdrvu˙drv+udrv=kdrvuT_{drv}\dot u_{drv} + u_{drv} = k_{drv}u, with kdrv=(1+R3/R4) R2/(R1+R2)k_{drv}=(1+R_3/R_4)\,R_2/(R_1+R_2) and Tdrv=R1R2C1/(R1+R2)T_{drv}=R_1R_2C_1/(R_1+R_2).

Overall model (also Tdrv≪1T_{drv}\ll1):

P(s)=Θl(s)U(s)=kmTms+1⋅1Ns,km=kdrvktReqBeq+ktkeP(s)=\frac{\Theta_l(s)}{U(s)} = \frac{k_m}{T_ms+1}\cdot\frac1{Ns},\qquad k_m=\frac{k_{drv}k_t}{R_{eq}B_{eq}+k_tk_e}

Typical error: using JlJ_l and BlB_l on the motor side without dividing by N2N^2, or forgetting that τd\tau_d is divided by NN.

Leggi che accoppiano elettrico e meccanico:

  • Legge dei motori: F=i l×B\boldsymbol F = i\,\boldsymbol l \times \boldsymbol B, modulo F=BliF = Bli.
  • Legge dei generatori (Faraday-Lenz): eb=−dλ/dt=−Blve_b = -d\lambda/dt = -Blv.
  • Motore lineare: L di/dt+Ri+kev=eL\,di/dt + Ri + k_e v = e, con kf=Blk_f = Bl e ke=Blk_e = Bl.

Spira singola (caso 1, senza collettore): τ=ABisin⁡ϑ\tau = ABi\sin\vartheta con A=ldA = ld (area della spira) e eb=ABsin⁡ϑ ωe_b = AB\sin\vartheta\,\omega. La coppia cambia segno dopo ϑ=π\vartheta = \pi: la rotazione continua non è possibile.

Con collettore e spazzole (caso 2): il collettore inverte il collegamento ogni mezzo giro, quindi τ=ABi∣sin⁡ϑ∣\tau = ABi|\sin\vartheta| e eb=AB∣sin⁡ϑ∣ ωe_b = AB|\sin\vartheta|\,\omega: la coppia mantiene lo stesso segno e la rotazione è continua.

Avvolgimento con NN spire sfasate: la coppia segue l'inviluppo (massimo) dei singoli contributi.

  • N=2N=2 (sfasamento π/2\pi/2): τ=ABmax⁡{∣sin⁡ϑ∣,∣sin⁡(ϑ−π/2)∣} i\tau = AB\max\{|\sin\vartheta|, |\sin(\vartheta-\pi/2)|\}\,i.
  • N≫1N\gg 1: l'ondulazione scompare e τ=kt i\tau = k_t\,i, eb=ke ωe_b = k_e\,\omega, con kt=ke=ABk_t = k_e = AB numericamente, ma con unità diverse (N m/A e V s/rad).

Motore DC con inerzia e attrito: Ldidt+Ri+keω=e,τ=kti⇒Jdωdt+b ω=kt i.L\frac{di}{dt} + Ri + k_e\omega = e, \qquad \tau = k_t i \qquad\Rightarrow\qquad J\frac{d\omega}{dt} + b\,\omega = k_t\,i.

Riduttore 1:N1:N (passi):

  1. Rotore: Jmω˙m+bmωm=τm−τl′J_m\dot\omega_m + b_m\omega_m = \tau_m - \tau'_l.
  2. Riduttore ideale: τl=Nτl′\tau_l = N\tau'_l, ωl=ωm/N\omega_l = \omega_m/N.
  3. Carico: Jlω˙l+blωl=τlJ_l\dot\omega_l + b_l\omega_l = \tau_l; con ωl=ωm/N\omega_l = \omega_m/N e τl′=τl/N\tau'_l = \tau_l/N, sommando le due equazioni si elimina τl\tau_l.
  4. Risultato: Jeq=Jm+Jl/N2J_{eq} = J_m + J_l/N^2, beq=bm+bl/N2b_{eq} = b_m + b_l/N^2. Il motore con riduttore è come un motore senza riduttore ma con inerzia e attrito maggiori.

Unità reale: elettrica La dia/dt+Reqia=udrv−keωmL_a\,di_a/dt + R_{eq}i_a = u_{drv} - k_e\omega_m con Req=Ra+RsR_{eq} = R_a + R_s; meccanica Jeqω˙m+Beqωm=ktia−τd/NJ_{eq}\dot\omega_m + B_{eq}\omega_m = k_t i_a - \tau_d/N, con τd=τsf sign(ωl)\tau_d = \tau_{sf}\,\mathrm{sign}(\omega_l).

Funzioni di trasferimento (con τd=0\tau_d = 0): Pudrv→ωm=kt(Las+Req)(Jeqs+Beq)+ktke,Pudrv→ϑl=Pudrv→ωm⋅1Ns.P_{u_{drv}\to\omega_m} = \frac{k_t}{(L_as+R_{eq})(J_{eq}s+B_{eq})+k_tk_e}, \qquad P_{u_{drv}\to\vartheta_l} = P_{u_{drv}\to\omega_m}\cdot\frac{1}{Ns}. Riduzione del primo ordine: con La/Req≪Jeq/BeqL_a/R_{eq} \ll J_{eq}/B_{eq} il denominatore diventa ReqJeqs+ReqBeq+ktkeR_{eq}J_{eq}s + R_{eq}B_{eq} + k_tk_e, quindi km′=ktReqBeq+ktkek'_m = \dfrac{k_t}{R_{eq}B_{eq}+k_tk_e} e Tm=ReqJeqReqBeq+ktkeT_m = \dfrac{R_{eq}J_{eq}}{R_{eq}B_{eq}+k_tk_e}.

Driver: Tdrv=R1R2C1R1+R2T_{drv} = \dfrac{R_1R_2C_1}{R_1+R_2} e kdrv=(1+R3R4)R2R1+R2k_{drv} = \left(1+\dfrac{R_3}{R_4}\right)\dfrac{R_2}{R_1+R_2}. Con i valori del testo: kdrv≈0.60k_{drv} \approx 0.60, Tdrv≈0.13T_{drv} \approx 0.13 ms (circa 1.21.2 kHz).

Modello complessivo da uu: P(s)=kdrvTdrvs+1⋅kt(Las+Req)(Jeqs+Beq)+ktke⋅1Ns≈kmTms+1⋅1NsP(s) = \frac{k_{drv}}{T_{drv}s+1}\cdot\frac{k_t}{(L_as+R_{eq})(J_{eq}s+B_{eq})+k_tk_e}\cdot\frac{1}{Ns} \approx \frac{k_m}{T_ms+1}\cdot\frac{1}{Ns} Per il controllo: un ritardo del primo ordine in velocità seguito da un integratore (posizione).

Refuso del testo: nel secondo membro della riga di meccanica del rotore il testo stampa τm−τvm\tau_m - \tau_{v_m}; la forma corretta è τm−τl′\tau_m - \tau'_l.

Errori tipici:

  • Scambiare ktk_t con kek_e perché hanno lo stesso valore numerico: restano grandezze con unità diverse.
  • Dire che una spira senza collettore gira con continuità: la coppia cambia segno.
  • Usare RaR_a invece di Req=Ra+RsR_{eq} = R_a + R_s quando c'è la resistenza di shunt.

Teoria collegata