System Modeling and Control · Chapter 6
Magnetic Force
Faraday’s Law
Dynamic Equations of the DC Motor
Optical Encoder Model
The magnetic force is proportional to the current \(i\), wire length \(\ell\), field strength \(B=\lvert\vec{\mathbf B}\rvert\), and the sine of the angle between \(\vec{\mathbf B}\) and the wire.
For \(\vec{\ell}\), the magnitude \(\ell=\lvert\vec{\ell}\rvert\) is the length of wire in the magnetic field, and its direction is the direction of positive current.
\[ \begin{aligned} \vec{\mathbf F}_{\text{magnetic}} &= i\vec{\ell}\times\vec{\mathbf B},\\ F_{\text{magnetic}} &= i\ell B\sin\theta=i\ell B_{\perp}. \end{aligned} \]
\[ \vec{\mathbf B}=-B\hat{\mathbf z},\quad B>0, \qquad \vec{\ell}=-\ell\hat{\mathbf y}. \]
\[ \vec{\mathbf F}_{\text{magnetic}} =i\vec{\ell}\times\vec{\mathbf B} =i(-\ell\hat{\mathbf y})\times(-B\hat{\mathbf z}) =i\ell B\hat{\mathbf x}. \]
For \(B>0\),
\[ \vec{\mathbf B}= \begin{cases} +B\hat{\mathbf r}, & 0<\theta<\pi,\\ -B\hat{\mathbf r}, & \pi<\theta<2\pi. \end{cases} \]
\[ \vec{\mathbf F}_{a} =i(\ell_{1}\hat{\mathbf z})\times(B\hat{\mathbf r}) =i\ell_{1}B\hat{\boldsymbol\theta}. \]
\[ \begin{aligned} \vec{\boldsymbol\tau}_{a} &=\frac{\ell_{2}}{2}\hat{\mathbf r}\times\vec{\mathbf F}_{a}\\ &=\frac{\ell_{2}}{2}i\ell_{1}B (\hat{\mathbf r}\times\hat{\boldsymbol\theta}) =\frac{\ell_{2}}{2}i\ell_{1}B\hat{\mathbf z}. \end{aligned} \]
On side \(a'\),
\[ \vec{\mathbf F}_{a'} =i(-\ell_{1}\hat{\mathbf z})\times(-B\hat{\mathbf r}) =i\ell_{1}B\hat{\boldsymbol\theta}, \]
\[ \vec{\boldsymbol\tau}_{a'} =\frac{\ell_{2}}{2}\hat{\mathbf r}\times\vec{\mathbf F}_{a'} =\frac{\ell_{2}}{2}i\ell_{1}B\hat{\mathbf z}. \]
Thus \[ \vec{\boldsymbol\tau}_{m}=\ell_{1}\ell_{2}Bi\hat{\mathbf z}, \qquad \tau_{m}=K_{T}i, \qquad K_{T}\triangleq\ell_{1}\ell_{2}B. \]
To obtain positive torque \(\tau_{m}=K_{T}i>0\):
A changing magnetic flux in a loop produces an induced voltage, or electromotive force (emf), denoted by \(\xi\):
\[ \xi=-\frac{d\phi}{dt}, \qquad \phi=\int_{S}\vec{\mathbf B}\cdot d\vec{\mathbf S}. \]
Here \(S\) is any surface whose boundary is the loop.
The surface-element vector may be oriented in either normal direction:
\[ d\vec{\mathbf S}=dx\,dy\,\hat{\mathbf z} \qquad\text{or}\qquad d\vec{\mathbf S}=-dx\,dy\,\hat{\mathbf z}. \]
The corresponding positive direction around the boundary follows the right-hand rule.
Connecting two surface elements:
\[ \xi=-\frac{d\phi}{dt}, \qquad \phi=\int_{S}\vec{\mathbf B}\cdot d\vec{\mathbf S}. \]
Simple examples make the sign convention concrete.
Let \(\vec{\mathbf B}=-B\hat{\mathbf z}\), \(B>0\), and choose \(d\vec{\mathbf S}=dx\,dy\,\hat{\mathbf z}\). Then
\[ \phi=\int_{0}^{\ell}\int_{0}^{x} (-B\hat{\mathbf z})\cdot(dx\,dy\,\hat{\mathbf z})=-B\ell x. \]
Therefore \[ \xi=-\frac{d\phi}{dt}=B\ell\frac{dx}{dt}=B\ell v. \]
We found \(\xi=B\ell v\).
The electrical power absorbed reappears as mechanical power: \[ -i\xi+F_{\text{magnetic}}v=-iB\ell v+i\ell Bv=0. \]
Take circuit self-inductance as zero. Let \(m_{\ell}\) be the bar mass and \(f\) the viscous-friction coefficient.
\[ \begin{aligned} V_{S}-B\ell v &= Ri,\\ m_{\ell}\frac{dv}{dt} &= i\ell B-fv. \end{aligned} \]
Eliminating \(i\) gives \[ m_{\ell}\frac{d^{2}x}{dt^{2}} =-\left(\frac{B^{2}\ell^{2}}{R}+f\right)\frac{dx}{dt} +\frac{\ell B}{R}V_{S}, \]
or \[ \frac{dx}{dt}=v, \qquad \frac{dv}{dt} =-\left(\frac{B^{2}\ell^{2}}{m_{\ell}R}+\frac{f}{m_{\ell}}\right)v +\frac{\ell B}{m_{\ell}R}V_{S}. \]
For \(0<\theta_{R}<\pi\),
\[ \begin{aligned} \phi(\theta_{R}) &=\int_{0}^{\ell_{1}}\int_{\theta_{R}}^{\pi} B\frac{\ell_{2}}{2}\,d\theta\,dz +\int_{0}^{\ell_{1}}\int_{\pi}^{\pi+\theta_{R}} (-B)\frac{\ell_{2}}{2}\,d\theta\,dz\\ &=\frac{\ell_{1}\ell_{2}B}{2}(\pi-\theta_{R}) -\frac{\ell_{1}\ell_{2}B}{2}\theta_{R}\\ &=-\ell_{1}\ell_{2}B\left(\theta_{R}-\frac{\pi}{2}\right). \end{aligned} \]
For \(0<\theta_{R}<\pi\), \[ \phi(\theta_{R})=-\ell_{1}\ell_{2}B \left(\theta_{R}-\frac{\pi}{2}\right). \]
\[ \phi(\theta_{R})=-\ell_{1}\ell_{2}B \left(\theta_{R}-\frac{\pi}{2}\right), \qquad 0<\theta_{R}<\pi. \]
Faraday’s law gives \[ \xi=-\frac{d\phi}{dt} =(\ell_{1}\ell_{2}B)\frac{d\theta_{R}}{dt} =K_{b}\omega_{R}, \qquad K_{b}\triangleq\ell_{1}\ell_{2}B. \]
For \(\omega_{R}>0\), \(\xi>0\) and the back emf opposes \(V_{S}\).
Energy Conversion in the Single-Loop Motor
Mechanical power produced:
\[ \tau_{m}\omega_{R} =K_{T}i\omega_{R} =\ell_{1}\ell_{2}Bi\omega_{R}. \]
Electrical power absorbed by the back emf:
\[ -\xi i =-K_{b}\omega_{R}i =-\ell_{1}\ell_{2}B\omega_{R}i. \]
The electrical power absorbed reappears as mechanical power:
\[ -\xi i+\tau_{m}\omega_{R}=0. \]
Therefore energy conservation requires
\[ K_{T}=K_{b}. \]
The magnetic field on the flux surface due to armature current has the form \[ \vec{\mathbf B}(r_{R},\theta-\theta_{R},i) =-iK(r_{R},\theta-\theta_{R})\hat{\mathbf r}, \] where \[ K>0\quad\text{for }0\leq\theta-\theta_{R}\leq\pi, \qquad K<0\quad\text{for }\pi\leq\theta-\theta_{R}\leq2\pi. \]
\[ \begin{aligned} \psi(i) &=\int_{S}\vec{\mathbf B}\cdot d\vec{\mathbf S}\\ &=i\int_{0}^{\ell_{1}}\int_{\theta_{R}}^{\theta_{R}+\pi} K(r_{R},\theta-\theta_{R})r_{R}\,d\theta\,dz\\ &=Li. \end{aligned} \]
Electrical equation: \[ V_{S}-K_{b}\omega_{R}-L\frac{di}{dt}=Ri, \qquad L\frac{di}{dt}=-Ri-K_{b}\omega_{R}+V_{S}. \]
Mechanical equation: \[ K_{T}i-\tau_{L}-f\omega_{R}=J\frac{d\omega_{R}}{dt}. \]
\[ \begin{aligned} L\frac{di}{dt} &= -Ri-K_{b}\omega_{R}+V_{S},\\[0.45em] J\frac{d\omega_{R}}{dt} &= K_{T}i-f\omega_{R}-\tau_{L},\\[0.45em] \frac{d\theta_{R}}{dt} &= \omega_{R}. \end{aligned} \]
From the source voltage, \[ V_{S}=Ri+L\frac{di}{dt}+\xi. \]
Multiplying by current gives \[ \begin{aligned} V_{S}i &=Ri^{2}+Li\frac{di}{dt}+iK_{b}\omega_{R}\\ &=Ri^{2}+\frac{d}{dt}\left(\frac{1}{2}Li^{2}\right) +\tau_{m}\omega_{R}. \end{aligned} \]
Voltage waveforms from the encoder:
Clockwise rotation: detector 1 is \(90^{\circ}\) behind detector 2.
Counterclockwise rotation: detector 2 is \(90^{\circ}\) behind detector 1.
Electronic circuitry detects the relative phase to determine the direction.
Let \(N_{enc}\) be the number of rising and falling edges from both detectors per revolution, and let \(N(t)\) be the encoder count at time \(t\).
\[ \theta_{m}(t)=\frac{2\pi}{N_{enc}}N(t)\quad\text{radians}. \]
Backward-difference speed estimate
\[ \omega_{bd}(kT) \triangleq\frac{2\pi}{N_{enc}} \left(\frac{N(kT)-N(kT-T)}{T}\right), \]
where \(T\) is the sampling interval.
If \(\theta(kT)\) is the true position in radians, then \[ \theta(kT)=\frac{2\pi}{N_{enc}}N(kT) +\frac{2\pi}{N_{enc}}e(kT), \] where \(e(kT)\) is the fractional count that the encoder cannot sense.
\[ \omega(kT) =\frac{2\pi}{N_{enc}} \left(\frac{N(kT)-N(kT-T)}{T}\right) +\frac{2\pi}{N_{enc}} \left(\frac{e(kT)-e(kT-T)}{T}\right). \]
Because \(\lvert e(kT)-e(kT-T)\rvert\leq1\), \[ \left\lvert\omega(kT)-\omega_{bd}(kT)\right\rvert \leq\frac{2\pi/N_{enc}}{T}. \]
Thus \[ \omega(kT)\approx\frac{2\pi}{N_{enc}} \left(\frac{N(kT)-N(kT-T)}{T}\right). \]
Choosing \(T\) trades encoder-resolution error against finite-difference accuracy.

← Course Home · System Modeling and Control · Chapter 6