Driving and controlling a DC motor: armature voltage, PWM and PWM frequency, H-bridge, current control and speed control with encoder or back EMF.

AI This article was created with the help of AI.

Driving a DC motor: voltage, current and speed

Two relationships are decisive for driving and controlling a DC motor. With constant flux, the speed is roughly proportional to the armature voltage; in the range between negative and positive rated voltage, the speed can therefore be controlled via the armature voltage (armature control range). The torque is proportional to the flux and the armature current[1]. Above the base point defined by rated voltage and rated speed, the speed of separately excited machines can be increased further by field weakening, while the permissible torque decreases. Permanent magnet motors cannot weaken their field[1]. A DC motor controller therefore combines a power stage that sets the voltage with closed-loop control of current and speed. We explain the design and types of the motor in our article DC motors in detail.

Permanent magnet and separately excited motors have very high inrush currents. Traditionally, starting resistors in the armature circuit limit the starting current; they are short-circuited in stages after run-up. Starting with lower losses is possible with switching regulators in chopper operation[1]. Adjusting the armature voltage via resistors converts the excess power into heat; switched-mode control avoids this because, apart from the moment of switching, the power switches are either fully off or fully on[2].

PWM control and PWM frequency

With pulse-width modulation (pulse-duration modulation according to IEC 60050), the voltage alternates between two values at a constant frequency; its mean value is proportional to the duty cycle[2]. In a permanent magnet DC motor, neglecting the armature resistance, the speed is proportional to the mean armature voltage and thus, at a constant supply voltage, proportional to the duty cycle. For single-quadrant operation, one electronic switch and a freewheeling diode are sufficient; the winding inductance ensures that the current flows continuously despite the switching[3].

Three effects work against each other when choosing the PWM frequency. The PWM harmonics can cause noise, heating and EMC problems in the motor winding[2]. Switching frequencies of a few kilohertz lie in the sensitive audible range; above 20 kHz they are no longer disturbing[3]. However, switching losses increase with switching frequency; in drive engineering, PWM frequencies between 2 kHz and about 20 kHz are common[4]. Then there is the current ripple: during the on-time, the difference between supply and output voltage is applied across the inductance[5]. For the single-quadrant chopper with continuous current and negligible armature resistance, this gives the (peak-to-peak) ripple ΔI = U · D · (1 − D) / (L · f), which is greatest at a duty cycle D = 0.5.

Example: U = 24 V, L = 2 mH, D = 0.5f = 4 kHzf = 20 kHz
Current ripple ΔI = U / (4 · L · f)0.75 A0.15 A
Audibility of the switching frequencyin the audible range[3]no longer disturbing above 20 kHz[3]
Switching losseslowerhigher[4]

The values in the example are assumed; what matters are the armature inductance and voltage of your motor. If the controller uses the motor winding itself as the smoothing inductance, the increased losses in the motor and the radiated interference must be taken into account[5].

H-bridge and four-quadrant operation

If the motor is to run in both directions and brake actively, it needs a four-quadrant chopper: an H-bridge circuit of four semiconductor switches, usually transistors, each with a freewheeling diode. The motor sits in the middle of the bridge. Reversing the polarity changes the direction of rotation[6]. For safe switching, there are driver ICs, known as MOSFET or H-bridge drivers: their logic prevents the two transistors of a bridge leg from conducting at the same time and delays switch-on when switching over so that no shoot-through short circuit occurs across the bridge leg[6].

QuadrantOperationFunction of the bridge
1Accelerating in forward directionBuck converter, motor draws power[6]
2Braking in forward directionBoost converter, motor feeds power back[6]
3Accelerating in reverse directionBuck converter with reversed polarity[6]
4Braking in reverse directionBoost converter with reversed polarity[6]

During braking, the motor converts mechanical power into electrical power, which the bridge returns to the supply[6]. If the supply cannot absorb energy, the DC link voltage rises; a brake chopper then diverts the energy into a braking resistor[4]. Short-circuiting the motor via two transistors is only advisable to a limited extent: the current is then limited only by the resistive losses, and all components must withstand the resulting values[6].

Current control and speed control

Speed control for DC motors can be built as cascade control: the control loops are nested, and the output of the outer controller is the setpoint of the inner one. In electric drives, the inner loop is the current control loop with a PI controller, above which lie the speed control loop with a PI controller and, where applicable, the position control loop. The inner loops must be faster than the outer ones; the current controller is the fastest[7].

Because the torque is approximately proportional to the current[6], the current controller acts as a torque controller. Limiting the current setpoint specified by the speed controller limits current and torque, including during start-up. The maximum achievable torque is limited by the permissible armature current, which depends above all on the cooling[1]. The integral component of the PI controller eliminates steady-state control deviations; tuning proceeds from the inside out, first the current controller, then the speed controller. Our article Speed of electric motors shows how to determine the target speed of your drive.

Feedback: encoder, tachogenerator or back EMF

Without feedback, i.e. in open-loop control, the speed drops under load: the armature current produces a voltage drop across the armature resistance that increases with the load[1]. With varying loads, for example on a conveyor belt with different loading, only closed-loop speed control keeps the speed constant. For this, the controller needs an actual value:

  • Tachogenerator: supplies a voltage proportional to the speed[8].
  • Incremental encoder: is increasingly replacing the tachogenerator, is less expensive and works down to standstill[8].
  • Back EMF: the induced counter-voltage depends linearly on speed and excitation. Control circuits can use it to stabilise the speed of permanent magnet motors without a separate sensor[1].

With three-phase motors, the frequency converter handles drive control and speed control; what matters there is described in our article Motor with frequency converter. In both cases, the control alone does not determine the result: motor, gearbox and brake must suit the motion task. As a supplier of the complete drive train, we at ATEK Drive Solutions design these components precisely to fit, from a single source. You will find an overview of our motors, including servo motors and IEC gear motors, in our product range; we will be happy to advise you on your application via our contact page.

Frequently asked questions

Which PWM frequency is right for a DC motor?

That depends on armature inductance, voltage and power. Frequencies above 20 kHz are no longer audibly disturbing but increase switching losses. For a single-quadrant chopper or a unipolar switched H-bridge, estimate the current ripple with ΔI = U / (4 · L · f) for the worst-case duty cycle of 0.5; with bipolar switching it is twice as large.

How do I change the direction of rotation of a DC motor?

By reversing the polarity of the armature voltage. Electronically, this is done with an H-bridge, which also allows braking in both directions.

Is PWM more efficient than voltage control via resistors?

Yes. A series resistor converts the differential power into heat. With PWM, the switches are either fully off or fully on; losses occur mainly during switching and as conduction losses.

Is sensorless speed control reliable?

For permanent magnet motors, the speed can be stabilised via the back EMF. For positioning tasks and control down to standstill, a sensor such as an incremental encoder is the better choice.

Why does DC motor control need a current controller?

The current determines the torque. A fast inner current controller limits starting and overload currents and provides the speed controller with a defined torque.

What should I look for in the output stage transistors?

Low conduction losses, i.e. a low on-state resistance, short switching times at a high PWM frequency, and transistors and freewheeling diodes that can withstand the currents during braking and in the event of a fault.

Sources

  1. Wikipedia (DE): Gleichstrommaschine (DC machine)
  2. Wikipedia (DE): Pulsdauermodulation (pulse-width modulation)
  3. Wikipedia (DE): Chopper-Steuerung (chopper control)
  4. Wikipedia (DE): Frequenzumrichter (frequency converter)
  5. Wikipedia (DE): Abwärtswandler (buck converter)
  6. Wikipedia (DE): Vierquadrantensteller (four-quadrant chopper)
  7. Wikipedia (DE): Kaskadenregelung (cascade control)
  8. Wikipedia (DE): Tachogenerator (tachogenerator)