Skip to main content

Subsection 11.2.1 Part 1: The Actuator Chain, and What Sets the Speed

In the ADC Chapter we drew the sensor signal chain (FigureΒ 6.1.1): a physical quantity enters from the world, a sensor turns it into a voltage, an analog front end conditions it, the ADC turns it into an integer, and the MCU computes with that integer. Driving an actuator runs the same chain in reverse. A number leaves the MCU, a converter turns it into a voltage, a driver raises that to the larger voltage and current the actuator needs, and the actuator turns it into a physical quantity (here, the rotation of a motor).
Figure 11.2.1. The actuator signal chain, the mirror of the sensor chain from the ADC chapter. The MCU produces an integer command; a converter turns it into a voltage; a driver raises that to the voltage and current the actuator needs; and the actuator turns it into motion. Because the STM32C031C6 has no true digital-to-analog converter, a PWM signal stands in for the converter, which is why this chapter builds both the driver and the PWM.
Two stages of that chain are new, and they are what this chapter is about: the driver, in our case we’ll use the TB6612 motor driver IC, and the converter, which on our chip is a PWM signal rather than a true DAC (digital-to-analog converter, the counterpart of the ADC from Day 7). In the reading you learned: a motor’s direction is set by the polarity of its voltage, and its speed by the average value of that voltage.
Figure 11.2.2. The motor drawn as a circuit. The supply voltage \(V\) drives a current \(i\) through the armature’s resistance \(R_a\text{,}\) and the spinning motor itself acts as a generator producing the back-EMF \(e\text{,}\) which opposes the supply.
The reading said that a motor’s steady speed follows the voltage across its terminals. That is worth deriving, because the relationships behind it also tell us what else sets the speed. Writing \(\tau\) for the torque, \(i\) for the current through the armature, \(\omega\) for the rotational speed, \(e\) for the back-EMF and \(V\) for the voltage at the terminals, four relationships describe the motor:
  • The torque is proportional to the current, with a constant \(K_t\) that the motor’s construction fixes: \(\tau = K_t\, i\text{.}\)
  • At a steady speed the motor is no longer accelerating, so the torque is just overcoming friction: \(\tau = b\, \omega\text{,}\) where \(b\) describes the friction.
  • The back-EMF is proportional to the speed, with its own constant \(K_e\text{:}\) \(e = K_e\, \omega\text{.}\)
  • The armature coils have a resistance \(R_a\text{,}\) and the voltage left over after the back-EMF is what drives the current through it: \(V - e = i\, R_a\text{.}\)
Figure 11.2.3. The four relationships together, in the symbols used above.
Combining those four equations to eliminate \(i\) and \(e\) yields a relationship that only has \(V\) and \(\omega\) in it: this is the speed the motor settles at:
Figure 11.2.4. The speed a DC motor settles at for a given terminal voltage. Everything in the denominator is a constant of the motor and its load, so the steady speed is proportional to \(V\text{.}\)
Every symbol in the denominator is a constant of the motor and its load, so the speed is proportional to the terminal voltage, the fact the reading asked you to take on trust, and the reason that varying the average voltage is how we vary the speed. Note what the equation does not cover: it balances a torque against friction at a steady speed, so it says nothing about what happens in the moment you switch a stopped motor on. You will learn to model that in ENGS 22 or ENGS 26.

Activity 11.2.1. What else changes the speed?

Work through this with the equation in front of you:
Fill in the right-hand column of the table. For each row, decide first from physical intuition whether increasing that quantity should make the motor turn faster or slower, and then check your answer against the equation.
Increase this quantity Does \(\omega\) increase or decrease?
Friction, \(b\)
Armature resistance, \(R_a\)
Generator constant, \(K_e\text{,}\) where \(e = K_e \omega\)
Torque constant, \(K_t\text{,}\) where \(\tau = K_t i\)

Activity 11.2.2. The instant of switch-on.

Now let’s think about the case the equation does not cover. At the instant you connect a stopped motor to a voltage \(V\text{,}\) the shaft is not yet turning. What is the back-EMF at that instant, and what current flows through the armature? Compare that current with the current the same motor draws once it has come up to speed. Which is larger, and why?