In this course so far, we have discussed converter circuits and their DC equivalent circuits. Beginning this week, we will spend the rest of the course discussing converter control systems. What we're going to do is to extend the DC equivalent circuit models that you've learned to construct so far, to include the converter dynamics. And we'll be able to solve these AC models of switching converters, then. To find the important converter transfer functions and lastly, we're going to use those transfer functions and models to design the control systems of some switching converters. So, this week, we're discussing Chapter seven which is titled AC Equivalent Circuit Modeling. So, we will extend our previous equivalent circuits to incorporate now the inductors and capacitors of the converter. And we're going to develop small signal AC equivalent circuit models that can be solved with standard circuit analysis to find things like transfer functions of the switching convertors. So, here is a sketch of a simple feedback system, that controls the output voltage of a buck converter. So what's illustrated on top, is the switching converter power stage, as we discussed so far and the bottom half of this diagram Is a feedback or control circuit that adjusts the duty cycle automatically to regulate the output voltage. So the object, in such a controlled circuit, is to regulate a voltage such as the output voltage v of t of the converter. So that it is equal to a constant and well-controlled value capital V. Now, you can't just set the duty cycle to one value and leave this circuit alone running at that value and expect the output voltage to always be the desired capital V. And, the reason for this is that there are disturbances in signals such as in the input voltage, Vg. It may be, for example, that we derive Vg by rectifying the AC power line voltage, or perhaps Vg is an input battery voltage or some other voltage that is not well controlled. And so there are variations in VG of T, and these variations propagate through the switching converter and cause variations in V, there can also be variations in the load. Here we simply have a load resistor, R, but in fact, the load can be something whose current changes and we know that the output voltage does depend on the load current. Certainly in continuous mode, if we include losses in the circuit the output voltage does become a function of the load resistance or the load current And in discontinuous mode, the output voltage has a very, an even stronger and larger dependence on the load current. So we have variations in load current and in input voltage and these lead to variations in, in the output voltage. In addition, we have uncertainties. All the components and element values have tolerances. So we may have plus or minus 10% tolerances, which could cause some variation in the output voltage just from that. So, when we account for all the tolerances of all the elements, and for the value of Vg and so on, this also causes variations in the steady state value of the output voltage. So what we do is we build a control system that senses the output voltage through this connect, feedback connection. This voltage is put into a summing node, that generates what is called an error signal, we subtract the measured output voltage from the desired reference value called v ref. And the object here is to make the output voltage equal to V ref. The difference is called the error signal. And this signal coming out of the summing node is a measure of how much the output voltage differs from the desired value. That error signal is put through what's called a compensator circuit, that typically is realized with an op amp. Or a similar circuitry to produce a control signal VC that, that controls the duty cycle of the transistor. The pulse with modulator, we're going talk about it later in this this week, is a circuit that takes an analog input voltage. VC in this case. And produces a switched wave form whose duty cycle is proportional to the control voltage. And this control waveform then goes through the cliquey driver and controls the MOSFET turning on and off. So, this circuit, if properly designed, can automatically adjust the duty cycle. To attempt to drive the air signal to zero and make the output voltage equal to the reference. We're going to talk a lot more about the design of this feedback loop in Chapter nine. Some applications of control, we nearly always have a control system in any power converter. so in a DC-DC converter, typical appliaation is to regulate the DC output voltage as I just described. So the control system will adjust the duty cycle automatically, again to make the output voltage accurately follow a reference signal. In a DC to AC converter we may want to regulate an AC output voltage. So this is similar to the DC/DC case, except that the desired output voltage now is an AC typically a sinusoid and so we want that AC voltage to accurately follow an AC reference signal, but otherwise it's the same. In a grid-type solar inverter, our inverter may actually produce an output current instead of a voltage, but it's the same idea. We adjust the duty cycle to make the current that we put into the grid follow a reference signal. Another case is an AC to DC rectifier and we often now have requirements on our rectifiers that draw power out of the AC power line regarding the quality of their AC current waveform. In many locations were not allowed to build heat detection bio capacitor circuits. That draw spikes of current out of the powerline at the top of the sine wave. These pollute the power system with harmonics and disrupt the operation of neighboring devices and so there often are regulations that limit the kind of waveform we can draw out of the powerline. And generally require it to be a sinusoid that is in phase with the voltage. So then we build a control system to regulate the current that our rectifier draws out of the power line. And again, we will control the duty cycle to make that current follow a reference. So in order to design these control systems, the first thing we need to know is we need to model the dynamics of the converter. so in order to model those dynamics we need good AC equivalent circuit models. And then we need to be able to solve and understand what the models are saying. To guide us to do a good design of the control system. so, some applications in a converter modelling. We want to do worst case analysis, is one example. where we need to prove that our circuit will work under worst case conditions. So what are the worst case values of the applied signals and of all the components with their tolerances? We may need to do this for aerospace, often it's a requirement, or in a commercial high-volume production we need to, to do a similar kind of design to get high reliability and high yield from our production line. so for high quality design, we already know steady state models. And one thing we need to do with our steady state model is to ensure that under steady state conditions with all of these variations and tolerances and steady state. That the circuit will perform acceptably well, with a high enough efficiency, low enough losses, that the temperature rises not too high, adequate steady state voltage regulation and so on. And then for our AC control system design, we need AC models that we can analyze and prove that we have stability and a good transient response, well behaved transient response. under these worst case conditions. So the way a good design practice goes then is we will simulate our equivalent circuit model during preliminary design to really verify that the, the design works under these worst case conditions. We'll construct laboratory prototypes and make those prototypes work under nominal conditions, or with whatever component values are present in the laboratory prototype. We'll then compare the performance of this prototype to what our AC model predicts. And we will have to refine our model until it predicts the observed behaviour, adequately well. Once we have such a model, then we use it to predict behaviour under worst-case conditions and improve the design until we can show that the circuit will always work and meet our goals for reliability and production yield and performance. So the up, objective here then is to develop the tools that we need for this modeling analysis and design of the converter control system. And Chapter seven is about the modelling. Chapter eight is about analysis of our models. And Chapter nine continues analysis for the, the feedback system and then discusses how to design the feedback system, using the models from this chapter. So our models of the power converter need to predict how AC variations in things, like the input voltage, or the load, or the duty cycle affect the output voltage. under transient and not DC conditions and another way to say that is, what are the small signal transfer functions of the converter, from these input quantities to the output. So, what we're going to do in this chapter then, is to extend the steady state converter models that you've already learned. To include the, the dynamic elements such as the inductor and capacitor. in the next chapter next week we, we will talk about how to construct the transfer functions of these converters using the models from this week. And in the final week of the course we'll discuss design of the converter control systems or Chapter 9. In fact, we're going to take four weeks to cover these Chapters seven through nine. Okay, modelling so, modelling is the representation of the physical behaviour of some system by mathematical means. And one thing you have to understand is that models are not exact. They're an approximation of what's going on at some level that is adequate to describe what we need to know. But, is no more complex than that, so that we don't get bogged down with unimportant details. So, so we certainly, for example don't attempt to model what every electron and every wire is doing. We, we really want the simplest model we can that describes the important things of interest and ignores everything else and so we make approximations formally to ignore what's not important. And it's best to start with a simple model, the simplest model is best to begin with. And later we can refine the model and add in things that we find are important. If we have the time and if those things are found to be necessary to model. but certainly we don't attempt to model everything. Here's an example and when we talk about modelling the dynamics of a switching converter, here's exactly what, what the waveforms actually look like. So on the top plot here is the MOSFET gate drive signal of a a switching converter. This is actually a buck noose converter. And this Vc of T. Is the control voltage at the input to the pulse-width modulator. So these top two waveforms, if I go back to my diagram, is the Vc of t, continuous signal here that looks like this. And then this control signal that switches up and down and looks like this. So there is some AC variation in our control signal and you can see that that causes some variation in the duty cycle. Now the AC variation is slower than the switching frequency. And we're generally talking about variations that happen much slower than the switching of the converter. So this slow variation in DC causes a slow variation in duty cycle. Okay, the second waveform here is the observed inductor current and it has some switching ripple. But there's an average that, if we were working in steady state we would have a constant average that is the DC component of the inductor current. In this diagram, though, we have some AC variation and that's causing an underlying the underlying average to vary. So I've sketched here both. The, what, the dark waveform is the actual inductor current and this lighter, more smooth line is what we call the average of the inductor current. It's a quanitity that varies and basically, it's the waveform without it's ripple. The bottom waveform is the similar kind of waveform for the output voltage. So this is the output capacitor voltage of our converter. It has some switching ripple. And underneath that is some underlying variation in the low frequency component. So we could think about this as saying our control signal has some DC or constant value, capital VC. Here might be the, some DC value. Plus some sinusoidal variation that makes Vc very sinusoidally about this Vc value. And in response to that, the pulse width modulator makes the duty cycle vary also. So there's some steady state value of duty cycle, plus some slow AC variation in the duty cycle, here's what a typical lay form such as the actual output voltage weight form of the converter looks like when we have the sinusoidal variation in the duty cycle. So what's shown here, first of all, is we have a, this is the spectrum. So these are the amplitudes of frequency components of the waveforms, versus frequency. And this frequency right here is the switching frequency. So we have switching harmonics in a, the waveform and so we see a, a frequency component at the switching frequency and also at its harmonics. So this is twice the switching frequency, three times the switching frequency and so on. In addition to that, there is a low frequency variation, at this low frequency modulation. Frequency, so when we vary the control input sinusoidally, at frequency omega sub m, we observe some output variation at frequency omega sub m. Now, the converter power stage is nonlinear. In general and so it gernerates harmonics. So we have not only omega sub-m, but we also see the harmonics of omega sub-m from this non-linear process. And then finally, modulation causes sidebands, so we see sidebands. Of the switching frequency, so there's one right here at frequency omega-s plus omega-m. And there'll be sidebands including the harmonics as well and they extend on both sides of each of the switching harmonics, so we see the spectrum all the way up here. So, it's a pretty complicated waveform that comes out of our converter and so now it's time to simplify our model. We're not going to try to predict all of this and frankly we don't care about it all. generally when we're designing a control system, what we care about is this. So if you vary the duty cycle at 100 hertz, what is the resulting 100 hertz variation in the output voltage? And so this is what we want to predict. And as we've done so far in this course, we generally don't want to predict the switching harmonics. So we will want to remove the switching ripple. And just model the underlying low-frequency variations in the system. So we're going to throw these out and we will do that by a process called averaging that is a generalization of the way that we have calculated the DC components so far in the course. And this approach does continue to apply the small ripple approximation, but we need to discuss in more detail exactly how to do that in the AC model. And then we also have these harmonics that are low frequency harmonics that are multiples of the modulation frequency. We are going to ignore these, or throw them out also and not model them. The reason for that is that otherwise our differential equations that we get for the converter dynamics are nonlinear and we can't simply take the [UNKNOWN] transform and find transfer functions. So what we're going to do is similar to what is done in an electronics class in modeling other non-linear elements, such as transistors and diodes, that we construct a small signal model in which we ignore these low-order harmonics and linearize the circuit. So then, this is in the end the only thing that we want to model. Okay, so the business of averaging to, to remove the smoothing ripple. so far in the course, we found the CD components of the wave form by integrating the wave form really, over one switching period and dividing by the period. Although that definition assumes that the circuit is in steady state, and that the waveforms are periodic. Here what we're going to do is generalize that and talk about a moving average. So, if we go back here and look at say, the output voltage, we will integrate over one switching period. But then make this period of integration, this one switching period integral move forward in time along the waveform and what we'll get by doing that is the underlying variation with the switching ripple smoothed out or removed. So formally, this is how we define the average of an AC signal. So the average value of some signal x of t, is found with this moving average, where at time t, we integrate over one period, that's centered at time t. So it extends from t minus half a switching period To T plus half a switching period. And we define the average of the waveform at time T and is found by integrating the waveform over this, this interval and then dividing by the period. What we're going to find when we do that is and we're going to show that in the next lecture. Is that we can write the equations of the converter like this. So for every inductor, we're going to have an equation of L of IDT is the average voltage on the inductor. where the waveforms in this equation are the averaged values of the inductor current and voltage. Similar for each capacitor. Now this turns out to be a simple generalization of what you already know how to do in a DC case. in fact, if you look at what happens to these equations in steady state When the tangents have settled down, then the derivatives of the inductor currents and capacitor voltages go to zero and that's what happens when we reach steady state. So in that case, the left-hand sides of these equations go to zero, and what we're left with is the right-hand side equal to zero. And the right-hand side contains an average inductor voltage or an average capacitor current. And these are, in fact, the volt second balance and charge balance equations that we already know how to find. And so in fact, the bottom line is all you have to do is take the equations that you already know from volt second balance and charge balance, and instead of equating these voltages and currents to zero, We equate them to LP IDT or CD BDT. So in fact, averaging is a small step from what you already know. Now, I'm going to give an optional lecture where we're going to talk about this approximation in more detail and give it some mathematical foundation. But you can apply it without even understanding that foundation. the more you know the better and I hope many of you will choose to watch that lecture. So, here's the equations we get. It turns out that the right hand side is non-linear. It involves the products of time varying quantities such as duty cycle times output voltage, for example. And these are non-linear processes, multiplication at time varying quantities. So we have to linearize this circuit to get, if we want linear differential equations that we can solve as in basic circuit analysis. So the next step is to construct a small signal converter model that is linearized about a quiescent operating point. And this is something we already do, or already know how to do in undergraduate electronics courses. For example, if we think about the equation of a diode. So the diode, psychical diode has this exponential relationship between current and voltage. And if we operate the diode at some quiescent value of current, meaning the DC current I, which might be say right there at two amps. Then we can find the resulting DC voltage from the IV characteristic that would be this value. And then on top of that quiescent value, if we add some small AC variation that here is called i hat of t, so we vary the current sinusiodally about this quiescent value like this, then in result of, of that variation. We will see some AC variation in the voltage. That's illustrated here. I'm going to call that variation V hat. And in the small signal model, what we're trying to do is simply find what V hat is in terms of I hat. So, in your electronics classes, I hope that you learned, how to do that we miniaturize the non-linear IV characteristic of the diode, using it's slope at the quieessen operating point and we do define a small signal model using a resistor whose resstance depends on the slope. And we can then, from this model, represent the relationship between the, the small signal AC current and the resulting small signal AC voltage. Okay, power converter has the same thing going on really and here's an example of the buck-boost converter. Where we know that the output voltage is the input voltage multiplied by d over 1 minus d and there's a minus sign there also. [COUGH] So, the output voltage is a non-linear function of D, this curve here of output voltage versus duty cycle is not a straight line. So you might then try to do a similar thing. You could, say, operate the converter with a quissecent duty cycle, or steady state value of one-half. Which from solving this expression tells us that we'll have a resulting quiescent output voltage. Of minus VG, and then on top of that, we could say, what if we also added some small variation, d hat variation, in the duty cycle? And from this slope, we could calculate the resulting small AC variation V had in the output voltage that would result. And so to linearise this about the quiescent operating point, we would find the slope of this curve. And from that slope we would know the gain. The small signal gain from a duty cycle variation to an output voltage variation. Now it turns out that the buck boost converter is actually more complicated than that. Linearizing this DC characteristic is not enough. We actually have to get into the details of the model and how the L's and C's interact with each other to correctly do this. And, we're going to learn how to do that this week. And, what I'll say to that is here is the answer for the buck-boost converter and we're going to [UNKNOWN] this answer. So this may look similar to the DC model of the buck boost converter that you've already seen, it has the same transformers. one to D transformers and D prime to one transformer, but it also includes the values of l and c and it also includes some extra generators, these are d hat sources. That model how variations in the duty cycle excite variations in the voltages and the currents of the converter power stage. We can add losses into this if we like as well. Maybe I haven't added them in this particular example. So in the next several lectures, I'm going to develop this model. And teach you how to derive an equivalent circuit model such as this.