Subsection11.2.1Part 1: The Actuator Chain, and What Sets the Speed
Weβve been spending time on the input side, on sensors and switches, and we started talking about some outputs, the displays. Today weβll focus on actuators.
You read about the two things a motor needs from us: a way to reverse the polarity of its voltage, which sets its direction, and a way to vary the average of that voltage, which sets its 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).
Figure11.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.
Figure11.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:
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 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{.}\)
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:
Figure11.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.
The sensor chain of the ADC chapter, run backwards: an integer leaves the MCU (microcontroller unit), a converter turns it into a voltage, a driver raises that to the voltage and current the actuator needs, and motion comes out. All but the smallest actuators need a driver. The two middle boxes are what we build today: the TB6612 driver, and a PWM signal standing in for the DAC (digital-to-analog converter), because the STM32C031C6 has no true one.
The motor coils have some resistance, and the voltage left over after the back-EMF is what drives the current through them: \(V - e = i\, R_a\text{.}\)
Combining those four to eliminate the torque, the current and the back-EMF leaves a relationship between just the terminal voltage and the speed the motor settles at:
Everything in the denominator is a constant of the motor and its load, so the steady speed is proportional to the voltage at the terminals. This is the reason that varying the average voltage is how we vary the speed.
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.
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?