Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

DC motors

Direct current (DC) motors are ubiquitous in control systems applications, from small hobby motors to industrial servo motors to electric vehicle traction motors. In this section, we will derive a mathematical model for a basic brushed DC motor from first principles, starting with the underlying electromagnetic laws. We will then make some idealizing assumptions to simplify the model for control design and analysis.

But first, let’s talk about the basics. A DC motor is a device that converts electrical power (voltage and current applied to input terminals) into mechanical power (torque and angular velocity of a spinning shaft). For this reason, we call DC motors electromechanical devices.

DC motor with input voltage v, current t, output torque T, and angular velocity \omega.

Figure 1:DC motor with input voltage vv, current tt, output torque TT, and angular velocity ω\omega.

Electromagnetic principles

The key principle behind DC motors is how electric currents interact with magnetic fields to produce forces. This interaction is described by Lorentz’s force law[1], which states that a charged particle with charge qq moving with velocity v\v in the presence of an electric field E\E and magnetic field B\B experiences a force F\F (the Lorentz force) given by:

F=q(E  +  v×B)\F = q \left(\E \;+\; \v \times \B \right)

Let’s see how the Lorentz force leads to the operation of a DC motor. Consider what happens when we place a copper wire in a magnetic field B\B and apply a voltage at either end of the wire to drive a current ii. The sequence of events is as follows:

  1. The applied voltage causes an electric field E\E to form that is aligned with the conductor, which causes a Lorentz force qEq \E on the charged particles (electrons) in the wire. This force accelerates the electrons, causing them to flow; we get a current ii.

  2. The moving particles now experience a Lorentz force qv×Bq\v \times \B due to the magnetic field. This force is perpendicular to both the direction of current flow and the magnetic field.

  3. Since the charges are confined to the wire, the perpendicular Lorentz force is transferred to the wire itself, causing it to accelerate in a direction perpendicular to the current flow (Newton’s second law).

A wire carrying current i in a magnetic field \B experiences a Lorentz force \F perpendicular to both the current and field. This causes the wire to accelerate upwards.

Figure 2:A wire carrying current ii in a magnetic field B\B experiences a Lorentz force F\F perpendicular to both the current and field. This causes the wire to accelerate upwards.

The wire is now accelerating, so the charged particles in the wire develop some upward velocity v\v. This leads to an additional sequence of events:

  1. By Lorentz’s force law, the charged particles now experience a Lorentz force qv×Bq\v \times \B, which points in the opposite direction to the current ii.

  2. This force on the charges causes them to redistribute along the wire, creating a voltage VemfV_{\textsf{emf}} that opposes the original voltage that caused the current ii. This induced voltage is also known as back EMF[2].

  3. The back EMF reduces the net voltage across the wire, which reduces the current ii flowing through it, thereby reducing the force on the wire. Eventually, the wire reaches a steady velocity where everything is in balance.

A wire moving with velocity \v in a magnetic field \B experiences an induced voltage (back EMF) v_b that opposes the applied voltage, reducing the current i flowing through the wire.

Figure 3:A wire moving with velocity v\v in a magnetic field B\B experiences an induced voltage (back EMF) vbv_b that opposes the applied voltage, reducing the current ii flowing through the wire.

DC motor construction

The basic principles described above can be exploited to produce rotational motion. The idea is to use a loop of current, which will produce torque that causes a shaft to spin. Here is a diagram showing the basic idea:

A current-carrying loop in a magnetic field experiences forces that produce torque, causing the loop to rotate.

Figure 4:A current-carrying loop in a magnetic field experiences forces that produce torque, causing the loop to rotate.

From this basic principle, we can build a DC motor by arranging multiple current-carrying loops (windings) around a central shaft. Some useful terminology:

All DC motors follow a similar causal chain of events:

The most common DC motor (small and cheap) is the permanent-magnet brushed DC motor (PMDC). It is most similar to the diagram of Figure 4:

Here are two excellent videos that illustrate how a PMDC works. The first video gives a very basic introduction, while the second video goes into more detail about a particular design called a three-pole motor.

Video explaining how permanent-magnet brushed DC motors (PMDC) work.

Video going into more detail, specifically for three-pole PMDCs.

Types of DC motors

DC motors can be broadly classified into two categories based on how the commutation is achieved: brushed and brushless DC motors. The PMDC motor is an example of a brushed DC motor. Here are the defining characteristics of each type:

Here is a flowchart summarizing different types of DC motors with examples.

Figure 12:Flowchart of different types of DC motors.

Modeling a DC motor

We will develop a mathematical model for a basic permanent-magnet brushed DC motor (PMDC). The model consists of two main parts: the electrical dynamics governing the current flow in the motor windings, and the mechanical dynamics governing the rotation of the motor shaft. Here is a schematic diagram of the motor model we will use:

Model circuit for a brushed DC motor, showing electrical and mechanical components.

Figure 13:Model circuit for a brushed DC motor, showing electrical and mechanical components.

The windings are modeled as a series resistance RR and inductance LL, together with a back-EMF voltage source vbv_b that opposes the applied input voltage vinv_{\textsf{in}}. On the mechanical side, the motor produces a torque TT that must overcome a load torque TLT_L through a rotor with inertia JJ and viscous friction bb.

We will model the electrical and mechanical dynamics separately, and then combine them to obtain the complete equations of motion for the DC motor.

Electrical dynamics

The electrical dynamics are a straightforward RL circuit with two voltage sources: the applied voltage vinv_\textsf{in} and the back-EMF voltage vbv_b.

Model circuit for the electrical dynamics of a brushed DC motor. The windings have resistance R and inductance L, and there is a back-EMF voltage source v_b opposing the applied voltage v_\textsf{in}.

Figure 14:Model circuit for the electrical dynamics of a brushed DC motor. The windings have resistance RR and inductance LL, and there is a back-EMF voltage source vbv_b opposing the applied voltage vinv_\textsf{in}.

Examining Figure 14, applying the constitutive equations for the resistor and inductor yields the following differential equation:

Ldidt+Ri+vb=vinL \frac{\dd i}{\dd t} + R\, i + v_b = v_\textsf{in}

The back-EMF voltage vbv_b is proportional to the angular velocity ω\omega of the motor shaft, so it satisfies a relationship of the form

vb=Kbωv_b = K_b \, \omega

where KbK_b is the back-EMF constant of the motor, measured in volts per radian per second (V/(rad/s)), or volts per rpm (V/rmp). This constant depends on the motor construction, including the number of windings, magnetic field strength, and geometry.[3]

Mechanical dynamics

The mechanical dynamics are a rotational inertia (the rotor) with viscous friction and two torques: the load torque TLT_L and the motor-produced torque TT.

Model for the mechanical dynamics of a brushed DC motor. The rotor has inertia J and viscous friction b, and experiences torques T and T_L.

Figure 15:Model for the mechanical dynamics of a brushed DC motor. The rotor has inertia JJ and viscous friction bb, and experiences torques TT and TLT_L.

Applying Newton’s second law for rotational motion to Figure 15 yields the following differential equation:

Jω˙+bω=TTLJ \dot \omega + b\,\omega = T - T_L

The motor-produced torque TT is proportional to the current ii flowing through the windings, so it satisfies a relationship of the form

T=KtiT = K_t \, i

where KtK_t is the torque constant of the motor, measured in newton-meters per ampere (Nm/A). This constant also depends on the motor construction

Since the entire motor design can be boiled down to a single constant KK, we should talk a bit about what this constant means.

Equations of motion

The equations (2), (3), (4), (5), describe the dynamics of the DC motor. Let’s rewrite them here for convenience, and we’ll set Kb=Kt=KK_b = K_t = K to simplify the notation:

Ldidt+Ri+vb=vin(Electrical dynamics)vb=Kω(Back-EMF voltage)Jω˙+bω=TTL(Mechanical dynamics)T=Ki(Torque-current relationship)\begin{aligned} L \frac{\dd i}{\dd t} + R\, i + v_b &= v_\textsf{in} && \textsf{(Electrical dynamics)}\\ v_b &= K \omega && \textsf{(Back-EMF voltage)}\\ J \dot \omega + b\,\omega &= T - T_L && \textsf{(Mechanical dynamics)}\\ T &= K i && \textsf{(Torque-current relationship)} \end{aligned}

We can eliminate the variables vbv_b and TT by substituting the second and fourth equations into the first and third equations, respectively. This yields the pair of ODEs:

Ldidt+Ri+Kω=vinJω˙+bωKi=TL\boxed{\begin{aligned} L \frac{\dd i}{\dd t} + R i + K \omega &= v_\textsf{in} \\ J \dot \omega + b\,\omega - K i &= - T_L \end{aligned}}

In the next section, we will make some idealizing assumptions and solve modeling problems involving motors and other electromechanical devices.


Test your knowledge

Solution to Exercise 1 #

The two constants are the same, but they are expressed in different units. The speed constant KvK_v is in rpm/V, To convert this to radians per second per volt, we can use the conversion factor 1 rpm=2π60 rad/s1 \text{ rpm} = \frac{2\pi}{60} \text{ rad/s}:

Kv=135rpmV×2π6014.1rad/sVK_v = 135 \, \frac{\text{rpm}}{\text{V}} \times \frac{2\pi}{60} \approx 14.1 \, \frac{\text{rad/s}}{\text{V}}

The torque constant KtK_t is given in Nm/A, which is the same as V/(rad/s). So based on this, the two constants should be reciprocals of one another. Let’s check:

1Kv=114.10.0707=Kt\frac{1}{K_v} = \frac{1}{14.1} \approx 0.0707 = K_t
Footnotes
  1. This principle is distinct from Maxwell’s equations. Maxwell’s equations govern how electric and magnetic fields are generated by charges and currents and how the fields influence each other, while the Lorentz force law specifies how those fields exert forces on charged particles.

  2. EMF stands for “electromotive force,” which is a historical term for voltage. Despite the name, EMF is not actually a force; it is measured in volts (V), not newtons (N).

  3. Sometimes the relationship is written the other way, as ω=Kvvb \omega = K_v v_b, where Kv=1/KbK_v = 1/K_b is called the velocity constant, measured in (rad/s)/V or rpm/V.

References
  1. Hansen, P. (2022). On Automotive Electronics. ATZelectronics Worldwide, 17(9), 24–27. 10.1007/s38314-022-0821-1