← Previous lessonFree lesson 4 of 5 · lesson 4 of 72Next lesson →

Unlock all 72 lessons of Simulation and Design of Power Converters for EV using MATLAB and SimulinkFull course ₹40,000 · paid

Price & syllabus
Free lesson · 15 min · no payment

Building the Buck Converter From a Switching MOSFET

A free lesson from Skill-Lync's Simulation and Design of Power Converters for EV using MATLAB and Simulink course, on Grow by Skill-Lync · Last updated 16 Nov 2026 · Session: “Introduction to Switched Mode Power Converters, Performance and Analysis of Buck DC/DC Converter Week 1 Session 3”

What will you learn in this free Simulation and Design of Power Converters for EV using MATLAB and Simulink lesson?

The instructor starts from a MOSFET switching a 100 V input fully on and off, so the average output is 50 V at equal on and off time. After reviewing resistor, inductor and capacitor behavior, adding a capacitor, an inductor and a diode step by step arrives at the buck converter.

  • Averaging a switched 100 V waveform to 50 V
  • Resistor, inductor and capacitor voltage-current rules
  • Why a capacitor alone causes inrush current
  • Diode path that lets inductor current discharge

What comes after lesson 4?

The next free lesson is lesson 5, “Drawing the Buck Converter in On and Off Modes” (10 min). Later in Skill-Lync's Simulation and Design of Power Converters for EV using MATLAB and Simulink course (paid): lesson 6, Introduction to Switched Mode Power Converters, Performance and Analysis of Buck DC/DC Converter Week 1 Session 5; lesson 7, Introduction to Switched Mode Power Converters, Performance and Analysis of Buck DC/DC Converter Week 1 Session 6; lesson 8, Introduction to Switched Mode Power Converters, Performance and Analysis of Buck DC/DC Converter Week 1 Live session. The full course has 72 lessons (22 h 12 min of video); see the course overview or its price and syllabus.

Lesson transcript

Machine transcript of the lesson audio (lightly cleaned). Technical terms may contain errors; the video is the reference.

So now we're going to try to use a switch mode regulator or a switch mode power converter. And I'm saying that we're going to try because we're going to be doing it in steps. So let's see. So the first thing that we want to look at is that was our linear regulator, except we're going to use the same exact thing, except that we're going to try to use it in either completely on or completely off. We're going to try to avoid that idea of the linear relationship between ID and VDS, or between the MOSFET voltage and the MOSFET current.

So we're going to, that's what we are hoping to do. So again, to the same example, I'm having a hundred volt of input voltage, and I want to see how much output voltage I'm going to be able to get. So what I would like to get is to get 50 volt of output voltage. Now, this guy here can either turn completely on or completely off. There is nothing in between. So when he's on, he's a short circuit, which means that the hundred volt will be directly connected to my output voltage.

When he's completely off, he's an open circuit, which means that the hundred volt will not be connected to my resistive load at the output side. So that's going to give me something that looks like this, where my output voltage here is changing between hundred and zero all the way. And depending on your frequency, this can be really fast or it can be really slow. But here, that's your time period. And by time period, we mean that this is the time it takes for your switch to finish one complete cycle.

So here he was on, he turned off, then he stayed off and turned back on. So that's my full period. So I have some good news and some bad news here. Let's start with the bad news. The bad news is that I'm not getting the 50 volts. I'm either getting 100 volts or zero. I'm not really getting the 50 volts at all. But wait, there is a glimpse of hope because the good news is the average of this, if I'm staying on for exactly half of the time and staying off for the other half, the average will be 50 volts.

So here we go. But you're never getting that 50 volts on your output terminals. So it's not good, but we're getting there. We're going to try to solve this problem. But overall, this system will be high efficiency. This is almost compared to the previous system. This is almost a lossless system. Very low power I am losing here. And why is that? Because when the MOSFET is completely on, the voltage is zero. It's a short circuit. When the MOSFET is completely off, the current is zero. It's an open circuit.

But here the drawbacks are it requires sophisticated control because I have to know exactly what is the output voltage that you want and compare it to a reference and all of that. The other thing is that really terrible thing of the oscillatory output. I don't like that. And really, I cannot work with this when the voltage is changing between 100 and zero. So think what do you suggest for us to do to be able to smooth this voltage output into this orange dotted line? I think one of the main ideas that can come to mind is let's use some capacitors, inductors, and let's build a filtering circuit.

So here we're going to talk about some golden rules that we're going to need in designing such as switch mode power converter. So these rules are related to the resistor, the inductor, and the capacitors that we're going to be using. So first, the voltage of the resistor. It's basically Ohm's law apply here. So the voltage is equal to the current times the resistor, which means that the current is equal to the voltage divided by the resistor. The impedance of a resistor is just R, which means the impedance of a resistor doesn't go up or down based on your system frequency.

The current and the voltage of a resistor can change instantaneously, which means right now I have a current of 100 amp. Just in no time, this current can be 0 amp. It can be negative 100. It can be negative 1,000. No matter. It's always going to follow whatever current it's fed. So the resistance does not resist the change in current. It does not resist the change in voltage. Now let's look at the inductor. So the inductor here, the voltage of an inductor is equal to the inductance multiplied by the differentiation of the inductor current with respect to time.

Which means that the current is equal to 1 divided by the inductance multiplied by the integration of the inductor voltage. The frequency domain representation of the inductor is SL, and the inductor current cannot change instantaneously. What does that mean? The inductor current will never change direction in no time. The inductor current will never go from a high value in current to 0 in no time. All the changes that relate to the inductor current have to be gradual. Same thing applies to the capacitor voltage. Cannot change instantaneously.

It has to be gradual. Now the voltage for the capacitor is 1 over C multiplied by the current of the capacitor with respect to time. The current of the capacitor is C times the differentiation of the capacitor voltage with respect to time. And the frequency domain representation is 1 over SC, which means that the capacitor impedance goes up as the frequency goes down. You're going to find here that the inductor current and the capacitor voltage, both of them, their formulas look quite similar. And the inductor voltage and the capacitor current also formulas look quite similar.

And you can see here in this voltage and in this current, you can see why this is true. Because the current is basically an integration of the voltage. So if you're integrating a quantity to get a present quantity, then you should understand that this is never going to happen instantly. Because it takes time for the whole integration factor to change your current direction or so on. And same thing applies here. Now, we said before that we had before the input voltage, the MOSFET, and the resistance.

And we didn't like that our voltage was changing between 100 and 0. We would like our voltage to stay stiff at 50 volts. So what's the first thing we thought of? Well, you know what? If we have a capacitor in parallel with the resistor, because we just learned now that the capacitor voltage cannot change instantaneously. So maybe if I put a capacitor in parallel with the resistor, it is going to force the resistor voltage to stay at a certain value, which I'm hoping that this is going to be the 50 volt that I'm looking for.

And that kind of makes sense. Now, what do you think is going to be the biggest problem here? What do you think is going to be the biggest problem? Because here, the capacitor is directly connected to the resistor. So hopefully when the resistor voltage goes to 100 volt, the capacitor is going to be able to hold it for some time after that. So the biggest problem is not on the right side. It's on the left side that I'm suddenly connecting the capacitor to my MOSFET, which means that suddenly the capacitor is connected to my input voltage.

So I'm still applying sudden change to the capacitor voltage. And we said before that this is not permitted. You cannot do that. What's going to happen if I do that? What's called inrush current, large amounts of inrush current. So think about it as if you have power source connected to a capacitor. And this is basically looks like two battery cells at different voltage levels that you are connecting them at the same time. If you are connecting a 12 volt battery to a 5 volt battery, what's going to happen?

Directly, just using a piece of wire. Huge amount of currents are going to be drawn from the 12 volt battery going to the 5 volt battery. Because the resistance between them is almost zero. So that's almost an infinite amount of current that's going to be drawn to your capacitor. So that's what's called inrush current. And that's basically going to set your converter on fire. So it seems that my main issue here was this inrush current that I had huge... What amount of current coming from the MOSFET feeding into my capacitor? What could be a better way? Well, you know what? If we only know of any element that can smooth the change in current, that can ask this current to change gradually, that if we're able to find an element whose current will never change instantly, that would be the dream.

And just right now, we learned that the inductor current cannot change instantly. So let's give that a shot. So going here, I said, you know what? Let's place an inductor right after the MOSFET so that the current that's going through the capacitor is going to be smoothed down and it's not going to be a huge amount of current because this inductor will be able to smooth down the change. Inductor current, inductor current, inductor current, inductor current which is basically what's feeding my capacitor. Now, what do you think the main issue here is? What do you think the main problem here is? Let's think about it.

So if I'm feeding my load and my capacitor through my inductor. So that means that when the MOSFET is on, I am having current passing through the inductor into this direction, right? So I'm having positive current coming from left to right. And then I'm suddenly turning the MOSFET off. Now, the capacitor will try to hold the voltage of the resistor. But what's going to happen to the inductor? We said before that the inductor current cannot change instantly. But right now, I'm suddenly opening the circuit and there was current passing through the inductor.

The inductor doesn't like that because the inductor doesn't like that because the current cannot change instantly. So what's that going to cause? It's going to cause arcing across the MOSFET because the inductor will force the converter to keep operating so that the inductor can discharge its energy because the inductor current cannot change instantly. So the main problem of this circuit is that I'm not giving the inductor a path to discharge. I'm asking the inductor not to discharge in this circuit, which is also going to set your converter on fire.

So it seems like everything looks fine here, except if I can find the path for this inductor current, the current that's going from left to right to keep going in the same direction without passing through the MOSFET. So I would like something that's going to take this current. So I would like something that's going to take this current that's going there and avoid going through the MOSFET. And what we can have here is a diode because the diode will allow the inductor current to pass through it without going through the MOSFET and without the need of any sort of control.

So that's what we are going to have here. So that's what we are going to have here. So the inductor current is going to be going through my RC load and coming back that as long as the MOSFET is on, it's going to keep following this direction. As soon as the MOSFET turns off, the inductor current will pass through this diode. And is this diode going to be forward biased? Yes, because I don't have here a voltage that is higher than this point, as long as the MOSFET is not in operations.

And congratulations, this is a real converter. That's the first converter that we are discussing here, which is the buck converter. So, so far, what we discussed is an introduction to switch mode power converters. We learned why switch mode power converters in terms of efficiency, in terms of dynamic ability. They have superiority over any other solution. We learned what are the main components of a switch mode power converter. We knew what an active switch is, basically a MOSFET. That's mostly what we're going to be using. We knew what a diode is. We knew what's an inductor, what's a capacitor, what's a resistance.

Or we reviewed at least that. And we knew what are the main rules of them. What is the Ohm's law of a resistance, how to find the current of an inductor, the voltage of an inductor, current of a capacitor, voltage of the capacitor. Which ones of these elements can, its values change instantly, and which ones cannot, and so on. So, that will conclude this part in this video.

Want the rest of Simulation and Design of Power Converters for EV using MATLAB and Simulink?

Get the full course syllabus and fees.

The full course is paid (₹40,000). We'll send the syllabus and call you back within one working day.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Full course · paid

Unlock the full Simulation and Design of Power Converters for EV using MATLAB and Simulink course

The remaining 67 lessons, mentor-reviewed projects and a certificate come with the paid course (₹40,000). Leave your details: we'll send the syllabus and fees and call you back.

Get the syllabus and fees

A counsellor calls you back within one working day.

By submitting you agree to our Terms and Privacy Policy.

Grow by Skill-Lync · free lesson

Start watching

Free, no payment. Leave your details once and every free lesson on Grow plays straight away. A Skill-Lync counsellor may call you about the full Simulation and Design of Power Converters for EV using MATLAB and Simulink course.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.