Video lectures of EE-211 are presented in this blog post.
Lecture 1 :
Lecture 2 :
Lecture 3:
Lecture 4 :
Lecture 5 :
Lecture 6 :
Lecture 7 :
Lecture 8 :
Lecture 9 :
Lecture 10 :
Lecture 11 :
Lecture 12 :
Lecture 13 :
Lecture 14 :
Lecture 15 :
Lecture 16 :
Lecture 17 :
Lecture 1 | Introduction and ideal switch
Lecture 2 | The Diode
Lecture 3 | The Thyristor
Lecture 4 | Mosfet
Lecture 5 | Composite switches
Lecture 6 | Buck converter
Lecture 7 | Boost converter
Lecture 8 | Buck - boost converter
Lecture 9 | DCM operation
Lecture 10 | Switched capacitor converter
Lecture 11 | Averaged model simulation
Lecture 12 | Flyback converter
Lecture 13 | Forward converter
Lecture 14 | Square wave inverter
Lecture 15 | Quasi square wave inverter
Lecture 16 | Multilevel inverters
Lecture 17 | Single phase PWM inverter
Lecture 18 | Six step 3 phase inverter
Lecture 19 | Three Phase PWM inverter
The following lectures were recorded and uploaded during Spring 22 session
Lecture 20 | SEPIC dc-dc converter
Lecture 21 | CUK dc-dc converter
We can perform the simulation in following steps.
1. Design the circuit.
2. Choose the switch from Analog_Misc>Swt_close/open.
3. Choose from the Special>PARAM and place it with the layout.
4. Right click on the resistance and add the value as {OHM}.
5. Double click on the parameter and add new property and name it OHM and value 1. This is the initial value.
6. Click on PSPICE > Edit simualtion Profile > Paramteric sweep > Global parameter (parameter name Ohm) Then add the initial final and increment value.
7. Simulate the circuit.
8. You can double click on the legend near the bottom left to see the value of the parameter swept in the analysis
1. Design the circuit.
2. Choose the switch from Analog_Misc>Swt_close/open.
3. Choose from the Special>PARAM and place it with the layout.
4. Right click on the resistance and add the value as {OHM}.
5. Double click on the parameter and add new property and name it OHM and value 1. This is the initial value.
6. Click on PSPICE > Edit simualtion Profile > Paramteric sweep > Global parameter (parameter name Ohm) Then add the initial final and increment value.
7. Simulate the circuit.
8. You can double click on the legend near the bottom left to see the value of the parameter swept in the analysis
The output of the rectifier was not sinusoidal. It was like the one shown below.
Then i found the problem in the .tran command. The script of the .tran command is
In this synax the parameters are as follows
Then i found the problem in the .tran command. The script of the .tran command is
tran <tstep> <tstop> <tstart> <tmax>
In this synax the parameters are as follows
tstep: initial time step for numerical integration. This is just a suggested value as the simulator may reduce or increase this value as needed.
tstop: simulation stops when tstop is reached
tstart: transient analysis always starts from t=0. If tstart is given results are saved only from tstart to tstop (i.e., results from 0 to tstart are calculated but discarded).
tmax: maximum allowed time step. Sometimes the simulator may choose a time step too long and details are lost or even results become inaccurate. This parameter is useful for the analysis of some oscillators.
After readjusting the tmax value the output is as shown below.
Reference: https://vision.lakeheadu.ca/eng4136/spice/transient_analysis.html
The following circuit is used to plot the power vs the load resistance curve.
The PSPICE script is as follows.
The PSPICE script is as follows.
MPTT grapghThe resultant plot as a function of RL is shown below.
V1 1 0 DC 10
Rt 1 2 20
Vx 2 3 DC 0
RL 3 0 RMOD 1
.MODEL RMOD RES(R=1)
.STEP RES RMOD(R) 1, 100, 1
.DC V1 20 20 1
.PRINT DC V(1,2) I(RL)
.probe
.end
Solar PV cells are the smallest unit in a PV panel. These are low power output units and hence in order to produce a reasonable output from them, several cells are connected in series and parallel configurations. In a series and parallel configuration, we use to add a bypass diode that prevents the sinking of a group of cells in case of shading. This blocking diode is always connected across a group of cells because of two reasons. First, no ideal diode exists which means that diodes need to overcome a potential difference to work. Secondly, in a single cell, it is very difficult to forward bias the diode because of very low output voltage levels.
In this blog, i simulated the lectures of Prof. L Umanand about the design of PV systems. This is to facilitate the fellows who are not working on Linux.
Figure 1 shows the schematic. Figure 2 shows the results under uniform irradiation conditions and figure 3 shows the results for partial shading across module 1.
![]() |
| Figure 1 : Schematic. PV module consists of 5 X 2 cells |
![]() |
| Figure 2: Under uniform irradiance condition |
![]() |
| Figure 3 : Partial shading on three cells of module 1. |
![]() |
| Figure 4. Code for PSPICE |
***************************************************************************
cell to module
Ip11 0 1 DC 1 ;Cell 1 module 1
Rsh11 0 1 100000
Rs11 1 2 0.1
D11 1 0 Def
Ip12 2 3 DC 1 ;Cell 2 Module 1
Rsh12 2 3 100000
Rs12 3 4 0.1
D12 3 2 Def
Ip13 4 5 DC 0.7 ;Cell 3 Module 1
Rsh13 4 5 100000
Rs13 5 6 0.1
D13 5 4 Def
Ip14 6 7 DC 0.7 ;Cell 4 Module 1
Rsh14 6 7 100000
Rs14 7 8 0.1
D14 7 6 Def
Ip15 8 9 DC 0.7 ;Cell 5 Module 1
Rsh15 8 9 100000
Rs15 9 20 0.1
D15 9 8 Def
Ip21 20 10 DC 1 ;Cell 1 Module 2
Rsh21 20 10 100000
Rs21 10 11 0.1
D21 10 20 Def
Ip22 11 12 DC 1 ;Cell 2 Module 2
Rsh22 11 12 100000
Rs22 12 13 0.1
D22 12 11 Def
Ip23 13 14 DC 1 ;Cell 3 Module 2
Rsh23 13 14 100000
Rs23 14 15 0.1
D23 14 13 Def
Ip24 15 16 DC 1 ;Cell 4 Module 2
Rsh24 15 16 100000
Rs24 16 17 0.1
D24 16 15 Def
Ip25 17 18 DC 1 ;Cell 5 Module 2
Rsh25 17 18 100000
Rs25 18 19 0.1
D25 18 17 Def
Vx 19 21 DC 0 ; Combined output current measurement
Vo 21 0 SIN(0 8.5 50 0 0 0) ;To sweep the output
Dbp 0 20 Def ; bypass didoe
.model Def D
.tran 0.01m 4.5m
.Probe
.end
*****************************************************************************
In PSPICE plotting is not based on programming like that in MATLAB. In fact, the plotting is based on the set of variables that can be selected for x and y axis. The problem, however, is that if you want to plot two curves with different ranges of x axis variables. I spent quite a time on solving this issue. Although I did not reach where I wanted to land, however, i found one solution but first, let me introduce you to the circuit i wanted to simulate.
The figure above shows two PV cells connected in series with each other. The combined output is taken from the node 3 and 5. I want to draw the I-V curves of both the cells as well as their combined output. However, in order to do so if I select the x axis as the voltage V3 the I-V curve for the individual cells is compromised and if I select the x axis as V3-V1 then the I-V curve of combined cells is compromised. To solve this I selected two plots and unsynchronized their x axis as shown in the figure below. To unsyncronize the x axis click on plot > unsynchronize x axis.
The next challenge is to plot them on one plot.
The figure above shows two PV cells connected in series with each other. The combined output is taken from the node 3 and 5. I want to draw the I-V curves of both the cells as well as their combined output. However, in order to do so if I select the x axis as the voltage V3 the I-V curve for the individual cells is compromised and if I select the x axis as V3-V1 then the I-V curve of combined cells is compromised. To solve this I selected two plots and unsynchronized their x axis as shown in the figure below. To unsyncronize the x axis click on plot > unsynchronize x axis.
The next challenge is to plot them on one plot.
Introduction to spice by PhD EE on Scribd
A Maximum power point tracking (MPPT) system is essential for enhancing the efficiency of the PV system. There are various algorithms for the MPPT system that includes the traditional hill climbing MPPT, AI based MPPT and fixed voltage based algorithms. The testing of these algorithms is important to evaluate their performance under various kinds of environmental conditions. In the research community following are the test conditions applied on the MPPT system for its evaluation.
- Standard testing condition. The MPPT system is provided a standard testing condition of a PV module with 1000 W/m2 irradiance and temperature of 25 C.
- Step change in irradiance: To simulate the behavior of MPPT under dynamic weather condition the environmental parameters are changed in step mode. Usually irradiance is changed because in reality the change in temperature is slow. So the irradiance is changed from say 1000 W/m2 to 500 W/m2 and then to 200 W/m2 . This step change evaluates the system response under abrupt changes. It is pertinent to mention that in this testing condition not only the step change is applied in decreasing fashion but can also be applied in increasing mode i.e at starting from 500 W/m2 to 1000 W/m2 with step values of 100 or 50 or whatever. The step change increment and decrements are two different things and the algorithms particularly the hill climbing behaves differently. Therefore, the MPPT must be tested for both increasing irradiance as well as for decreasing irradiance.

Condition 2 for the testing of four different MPPT methods - The environmental conditions are changed gradually in ramp function. This testing condition simulates the normal weather condition with sunlight increasing linearly from sunrise to noon and then stays constant for few hours and then begins to descend in the same manner.
- Another weather condition can be simulated by merging point 2 and 3 to have a normal day scenario with abrupt changes in between. This simulates the birds or some building shade on the PV panel.
![]() |
| Condition 4 |
Note : If you are using a variable step size in simulink, then add a zero order hold before each input of sim coupler and insert the sample time same as of PSIM. If you are using fixed step size in simulink then
For worldwide viewers
For viewers in Pakistan
For worldwide viewers
For viewers in Pakistan
Video tutorial | Simulation of 3 phase SPWM inverter
For worldwide viewers
For viewers in Pakistan.












