Professional Documents
Culture Documents
EX. NO.:01 Date: Modelling of Solar PV Cell: 1 Pw5261 - Renewable Lab
EX. NO.:01 Date: Modelling of Solar PV Cell: 1 Pw5261 - Renewable Lab
EX. NO.:01 Date: Modelling of Solar PV Cell: 1 Pw5261 - Renewable Lab
:01
AIM :
To plot the IV and PV characteristics of a solar PV cell both for constant and varying
irradiance using MATLAB.
SOFTWARE REQUIRED :
MATLAB
THEORY :
Solar cell is a semiconductor device, which converts the solar energy into electrical energy. It
is called a photovoltaic cell. A solar cell consists of number of cells connected in series and
parallel. The EMF generated by the cell in open circuit is called the open circuit voltage, Voc.
Similarly the current that flows when the PV terminals are short circuited is called short circuit
current, Isc. Ideal power is the product of Voc and Isc.
Ideal power=Voc*Isc
The maximum useful power is the area of the largest rectangle that can be formed under the
VI characteristics.
Pmax=Vm*Im
The ratio of the maximum useful power to ideal power is called the fill factor.
𝑽𝒎∗𝑰𝒎
Fill factor= 𝑽𝒐𝒄∗𝑰𝒔𝒄
FORMULAE USED:
1
PW5261 - RENEWABLE LAB
T-PV cell temperature(K)
Rsh-Shunt resistance(Ω)
q-charge of electron=1.602*10^-19 C
𝑻𝟑 𝒒∗𝑬𝒈𝒐 𝟏 𝟏
Io=Irs∗ (𝑻𝒓 )*𝒆(( )∗( − ))
𝒂∗𝑲 𝑻𝒓 𝑻 where
Tr-reference temperature(298K)
𝒒∗𝑽𝒐𝒄
Irs=Isc/(𝒆(𝑵𝒔∗𝒂∗𝑲∗𝑻) − 𝟏) 𝑤ℎ𝑒𝑟𝑒
𝒈
Iph=Isc+(𝒈𝒏 (𝒌𝒊) ∗ (𝑻 − 𝑻𝒓)) 𝑤ℎ𝑒𝑟𝑒
g-Irradiance(W/m2)
2
PW5261 - RENEWABLE LAB
MATLAB CODING:
clc;
clear all;
%-------------Initialization of Silcon Polycrystalline PV Cell-------------
Gref=1000;
A=1.3; % Ideality factor
Eg=1.12; % Barrier potential
Rs=0.55; % Series Resistance
Rsh=10000; % Parellel resistance
Ns=36; % Number of cells in series
Usc=0.0013; % Temperature coefficient
K=1.3806*1e-23; % Boltzmann constant
q=1.602*1e-19; % Charge of an electron
Voc=21.8;
Isc=3.11;
Iphref=Isc;
Tcref=273+25; % Reference temperature (K)
Tc=273+45; % Current cell temperature (K)
Vt= K*Tc/q;
a= Ns*A*Vt;
I=0;
P=zeros();
V_out= zeros();
I_out=zeros();
I_V=zeros();
P_V=zeros();
Leg=[{'G=200W/m2'},{'G=400W/m2'},{'G=600W/m2'},{'G=800W/m2'},{'G=1000W/m2'}];
%----------------Generation of IV and PV characteristics-------------------
for G=200:200:1000
j=G/200;
for V=1:1:20
i=V;
Iph= (G/Gref)*(Iphref+(Usc*(Tc-Tcref)));
part1= Isc/(exp(Voc/a));
part2= (Tc/Tcref)^3;
part3= exp(((q*Eg)/(A*K))*((1/Tcref)-(1/Tc)));
Io=part1*part2*part3;
Idiode=Io*(exp((V+(I*Rs))/a)-1);
Ish =(V+(I*Rs))/Rsh;
I=Iph-Idiode-Ish;
if(I>=0)
V_out(i)=V;
I_out(i)=I;
P(i)=V.*I;
else
break;
end
end
figure(1)
I_V(j)=plot(V_out,I_out);
xlabel('Voltage(V)');
ylabel('Current(A)');
legend(I_V(1:j),Leg(1:j));
hold on;
3
PW5261 - RENEWABLE LAB
figure(2)
P_V(j)=plot(V_out,P);
xlabel('Voltage(V)');
ylabel('Power(W)');
legend(P_V(1:j),Leg(1:j));
hold on;
end
PROCEDURE:
OUTPUT:
IV CHARACTERISTICS:
4
PW5261 - RENEWABLE LAB
PV - CHARACTERISTICS:
RESULT :
Thus the IV and PV characteristics of the given solar cell for constant and varying irradiance is
obtained using the MATLAB software.
5
PW5261 - RENEWABLE LAB
EX. NO. : 02
AIM:
To design a buck boost converter for DC bus voltage regulation and model it in MATLAB.
SOFTWARE USED:
MATLAB Simulink
THEORY:
The DC-DC converters used for the step-up and step-down process. The chopper circuits
along with the filter design conventionally mentioned as converters. The buck, boost and buck-
boost converter circuits and its appropriate L & C values are calculated as follows:
PID TUNING:
A PI controller is a feedback control loop that calculates the error signal by computing the
difference between the output of the system and the set point, and then multiplies it by the
proportional and integral gains, and output of the control signal. This control signal may be
compared with a triangular carrier to obtain the pulses necessary for firing the DC-DC converter.
6
PW5261 - RENEWABLE LAB
The PID tuning can be done in random manner else by forming the transfer function for the
circuit. The transfer function can be formed by following steps as follows:
Draw equivalent circuit for both switching conditions of the converter choosen.
Write the state space equation in the form of dx/dt = Ax + Bu and y = Cx + Du.
By state space averaging method, add both matrices with respect to duty cycle.
Now consider both the steady state and perturbation part of the equations.
Now form the transfer function by using the form C(INV(SI-A))B + D
Tune the PID values using the Auto tune method or Zeiger nicholas method.
Thus the Transfer function of the buck, boost, buck-boost converter can be found to be as
follows:
𝑽𝒐 𝑽𝒊𝒏/𝑳𝑪
BUCK CONVERTER: = 𝟏 𝟏
𝑫 𝑺𝟐 + 𝑺( )+
𝑹𝑪 𝑳𝑪
𝑽𝒊𝒏
𝑽𝒐 ( )[𝟏−𝑺𝑳/((𝟏−𝑫)𝟐 𝑹]
𝑳𝑪
BOOST CONVERTER: = 𝟏 (𝟏−𝑫)𝟐
𝑫 𝑺𝟐 + 𝑺( )+
𝑹𝑪 𝑳𝑪
𝑽𝒊𝒏
𝑽𝒐 ( )[(𝟏−𝟐𝑫)−𝑺𝑫𝑳/((𝟏−𝑫)𝟐 𝑹]
𝑳𝑪
BUCK-BOOST CONVERTER: = 𝟏 (𝟏−𝑫)𝟐
𝑫 𝑺𝟐 + 𝑺( )+
𝑹𝑪 𝑳𝑪
7
PW5261 - RENEWABLE LAB
PROCEDURE:
The MATLAB simulink for the converters can be done by following the steps. They are:
S3: For PID tuning develop TF and initialise all functions in simulink.
S5: Substitute the values in the PID controller block of closed loop system
S6: Substitute in the circuit and analyse the expected voltage output is tracked or else.
BUCK CONVERTER:
8
PW5261 - RENEWABLE LAB
BOOST CONVERTER:
BUCK-BOOST CONVERTER:
9
PW5261 - RENEWABLE LAB
OUTPUT WAVEFORM:
BUCK CONVERTER:
BOOST CONVERTER:
BUCK-BOOST CONVERTER:
RESULT:
Thus the DC-DC converter circuits has been designed and its closed looped operation through
PID tuning has been analysed successfully.
10
PW5261 - RENEWABLE LAB
EX. NO. : 03
AIM :
SOFTWARE REQUIRED :
MATLAB
THEORY :
In the aspect of technology, the rechargeable battery is improved from lead acid battery to Ni-
Cd battery to Lithium ion battery, due to its higher terminal voltage, higher power, and the
energy density as compared to other types. It is very much necessary to model the battery in
order to predict or optimize battery runtime or circuit performance. Out of many battery models
available, equivalent circuit model with two resistor capacitor parallel network is proven to have
high accuracy and capable to predict run time and current voltage (I-V) performance of battery.
This model consists of a dc voltage source in series with series resistance representing the
battery internal dc resistance, and RC parallel network to characterize the transient behavior of
voltage. DC voltage source represents the open circuit voltage of the battery. In this model, those
parameters are dependent on SOC and current.
11
PW5261 - RENEWABLE LAB
FORMULA USED :
1. SOC CALCULATION:
𝑰 ∗ 𝟏𝟎𝟎
𝑺𝑶𝑪 = (𝑺𝑶𝑪)̥ − ∫ 𝒅𝒕
𝜶ᶸ ∗ 𝟑𝟔𝟎𝟎
where,
2.VOCCALCULATION :
where,
3.RC VALUES :
4. VOLTAGES V1,V2 :
𝟏 𝑰 𝑽𝟏
V1 = [𝒔 ] [𝐂𝟏 − 𝑹𝟏𝑪𝟏]
𝟏 𝑰 𝑽𝟐
V2 = [𝒔 ] [𝐂𝟐 − 𝑹𝟐𝑪𝟐]
where,
12
PW5261 - RENEWABLE LAB
I – Battery Output current (A)
VS = I*RS
where,
Vt = VOC – V1 – V2 – VS
where,
PROCEDURE:
1. BATTERY DISCHARGING:
2. BATTERY CHARGING:
13
PW5261 - RENEWABLE LAB
DISCHARGING MODEL SIMULINK:
14
PW5261 - RENEWABLE LAB
SOC CALCULATION - SUBSYSTEM
15
PW5261 - RENEWABLE LAB
VOC CALCULATION- SUBSYSTEM
16
PW5261 - RENEWABLE LAB
OUTPUT:
DISCHARGING WAVEFORM;
CHARGING WAVEFORM:
17
PW5261 - RENEWABLE LAB
RESULT:
The Li-ion battery has been modeled and critically charging and discharging test were done
successfully.
EX. NO. : 04
AIM:
To simulate and compare different MPPT methods for a solar PV panel in “MATLAB
Simulink”.
SOFTWARE REQUIRED:
MATLAB Simulink
THEORY:
Various MPPT techniques differing in tracking accuracy, convergence speed, dynamic response,
are available in literature. Some of them are:
In this method, the controller adjusts the voltage for a small amount from the array and
tracks the maximum power. This method works perturbing the system by increasing or
decreasing the PV module operating voltage and observing the output power. The instantaneous
values of voltage and current are made available through measurements. If ∆P (∆P= Pnew- Pold) is
positive, it implies that the operating point has moved closer to MPP. Otherwise, the operating
point will be moving away from MPP and the path of perturbation should be inverted back to
move towards MPP. By this way, the MPP is tracked.
18
PW5261 - RENEWABLE LAB
INCREMENTAL CONDUCTANCE METHOD:
The Incremental conductance method is based on the fact that, the slope of the PV array’s
power curve is zero at its MPP, positive on left of MPP and negative on the right side of MPP.
This can be given by,
So, if the MPP is on the right side (dI/dt) ˃ (-I/V), the photovoltaic voltage has to be increased
in order to reach MPP. The procedure starts with measuring the present values of PV module
voltage, current and calculation of changes in voltage, current. The flowchart shown clearly
illustrates the IC method. This method has a good tracking efficiency compared to perturb and
observe method.
19
PW5261 - RENEWABLE LAB
FLOWCHART FOR INCREMENTAL AND CONDUCTANCE METHOD
20
PW5261 - RENEWABLE LAB
PROCEDURE:
2. Pick and place the necessary components from the library browser.
21
PW5261 - RENEWABLE LAB
3. Implement the MPPT tracking algorithm using “State Flow Chart” option.
4. Input the necessary parameters like irradiance, temperature, Voc, Isc and other parameters.
6. Compare and verify the obtained characteristics with the model characteristics
MFILE P&O:
function V1= PandO(V,v,P,p)
dP=P-p;
dV=V-v;
V1max=363;
V1min=0;
V1init=300;
Vold=0;
Pold=0;
deltaV=0.1;
datatype= 'double';
Vold=V1init;
if dP ==0
if dP>0
if dV>0
V1=Vold+deltaV;
else
V1=Vold-deltaV;
end
else
if dV<0
V1=Vold+deltaV;
22
PW5261 - RENEWABLE LAB
else
V1=Vold-deltaV;
end
end
else
V1=Vold;
end
if V1>V1max || V1<V1min
V1=Vold;
end
Vold=V1;
Pold=P;
SIMULINK ICC:
23
PW5261 - RENEWABLE LAB
MFILE ICC:
function V1= INC(V,v,I,i)
dI=I-i;
dV=V-v;
V1max=363;
V1min=0;
V1init=300;
Vold=0;
Iold=0;
deltaV=0.1;
datatype= 'double';
Vold=V1init;
if dV ==0
if dI==0
V1=Vold;
else
if dI>0
V1=Vold+deltaV;
else
V1=Vold-deltaV;
end
end
else
if dI/dV==(-I/V)
V1=Vold;
else
if(dI/dV)>(-I/V)
V1=Vold+deltaV;
else
V1=Vold-deltaV;
end
end
end
if V1>V1max || V1<V1min
V1=Vold;
end
Vold=V1;
Iold=I;
24
PW5261 - RENEWABLE LAB
OUTPUT WAVEFORM OF P&O:
25
PW5261 - RENEWABLE LAB
RESULT:
Thus the MPPT of solar PV panel is tracked using the P&O and ICC method is analyzed and
simulated successfully.
26
PW5261 - RENEWABLE LAB
EX. NO. : 05
AIM :
To model an induction motor using MATLAB Simulink and obtain its necessary
waveforms.
SOFTWARE REQUIRED :
MATLAB Simulink.
THEORY:
Induction motor plays a vital role in industries and daily life due to its low cost, reliable
& robust operation, and low maintenance. Thus, modeling of an induction motor is required for
studying its performance.
The popular induction motor modeling is explained through the KRAUSE concept of
reference frame theory.
27
PW5261 - RENEWABLE LAB
EQUATIONS USED:
𝜔𝑟 𝑀 0−𝜔𝑟 𝐿𝑟 𝑅𝑟 𝑖𝑞𝑟 𝑑𝑡
0 0 𝑀 0 𝐿𝑟 𝑑𝑖𝑞𝑟
[ 𝑑𝑡 ]
𝑅𝑠 00 0 0 00 0
0 𝑅𝑠 0 0 0 00 0
[R1] = [ ] and [R2] = [ 0 𝜔 𝑀 0 𝜔𝑟 𝐿𝑟 ]
0 0 𝑅𝑟 0 𝑟
0 00 𝑅𝑟 𝜔𝑟 𝑀 0−𝜔𝑟 𝐿𝑟 0
28
PW5261 - RENEWABLE LAB
(vi) STATOR CURRENTS (abc):
cos 𝜃 − sin 𝜃
𝑖𝑎 2𝜋 2𝜋 𝑖
[𝑖𝑏 ] = √(2/3) [cos(𝜃 − 3 ) −sin(𝜃 − 3 )] [𝑖𝑑𝑠 ]
2𝜋 2𝜋 𝑞𝑠
𝑖𝑐 cos(𝜃 + 3 ) −sin(𝜃 − 3 )
PROCEDURE:
Step 2: Model all the equations in submodules by dragging and dropping the necessary
components/blocks from the library.
Step 4: Use a “Step Function” for load torque to give a step load change.
29
PW5261 - RENEWABLE LAB
SIMULINK DIAGRAM:
30
PW5261 - RENEWABLE LAB
OUTPUT WAVEFORM:
RESULT:
Thus, an induction motor is modeled using MATLAB Simulink and its necessary
waveforms are obtained.
31
PW5261 - RENEWABLE LAB
EX. NO.: 06
DATE : VOLTAGE SENSOR & CURRENT SENSOR CALIBRATION
AIM:
To calibrate the given voltage sensor and observe the voltage sensor output in DSO.
APPARATUS REQUIRED:
THEORY:
32
PW5261 - RENEWABLE LAB
CURRENT SENSOR CONNECTION DIAGRAM:
33
PW5261 - RENEWABLE LAB
VOLTAGE SENSOR TABULAR COLOUMN:
Vp Ip Vs Is Ki =
(volts) (A) (mv) (mA) (Ip/Is)
34
PW5261 - RENEWABLE LAB
RESULT:
Thus the Voltage sensor (LEM LV25-P) and Current sensor (LEM LA25-P) has been
calibrated and its operation understood successfully.
35
PW5261 - RENEWABLE LAB
EX. NO. :07 HARDWARE IMPLEMENTATION OF OPEN LOOP ROTOR
DATE: INJECTION OF DFIG IN SUBSYNCHRONOUS GENERATING MODE
AIM:
To perform the open loop rotor injection of the DFIG- Doubly fed induction generator in
subsynchronous generating mode.
APPARATUS REQUIRED:
THEORY:
DFIG is an induction generator with both stator and rotor windings available.It is widely
used in the variable speed wind energy applications with a static converter connected between
the stator and rotor.Depending on the rotor speed, there are two modes of operation in a
DFIG(only generation mode) namely;
For the subsynchronous mode of operation the rotor receives power from the grid via the
converters. Both mechanical power |Pm| and rotor power |Pr| are delivered to the grid through the
stator . Although the stator power is the sum of |Pm| and |Pr| , it will not exceed the power rating
, since in the sub synchronous mode , the power ‘Pm’ from the generator shaft is lower than the
super synchronous mode . Since the DFIG generates high power when operating in super
synchronous mode , the power rating of the converter is determined by the rated or maximum
slip in the super synchronous mode.
36
PW5261 - RENEWABLE LAB
PULSE GENERATION FOR INVERTER – SPWM :
Sinusoidal pulse width modulation is used for the generation of pulses to the inverter. In
this method , a high frequency carrier wave is compared with sinusoidal reference wave to
generate pulses. For three phase inverter , a balanced set of three sinusoidal modulating signals
along with high frequency triangular wave (carrier) is required .
M = (Am/Ac) ; where
M – Modulation index
Connect the grid side converter as a rectifier and rotor side converter as an inverter , for
which pulses are provided via level shifter , FPGA .
The output terminal of the rotor side converter is connected to rotor of DFIG.
The stator output terminal of the DFIG is connected to three phase resisitive load, instead
of connecting it to the supply.
Turn on the power supply.
Run the prime mover at specific speed [to emulate the wind turbine ].
After ensuring the pulses are fed to the inverter , the open loop rotor injection is
performed either by varying the autotransformer or by varying the modulation index(M).
For each variation of the rotor input ( or inverter output ) note down the stator voltage,
current and speed of the DFIG.
37
PW5261 - RENEWABLE LAB
2.BITSTREAM GENERATION :
Open the folder generated in the previous step , and tap on the vivado project file.
Select “Add source” and choose “Add or create constraints”.
Click “create file” and mention file type and file name.
Copy a pre existing XDC file and paste it on XDC editor window created or type the
command in the following format:set_property PACKAGE_PIN
L4[get_ports{digit[3]}
Save the file created (.xdc) and perform synthesis , impementation and generate
bitstream by clicking them one by one in the “Flow Navigator”.
Connect EDGE Artix 7 FPGA kit to PC\Laptop through USB cable and turn on the
kit.
If the device detected sucessfully , then select “Program Device” by right clicking the
target device XC7035t_0
Once the program succeeds “Done LED D1” lights up on EDGE Artix 7 FPGA kit.
The pulses available fromFPGA is to be level shifted in order to drive the IGBT of
the converter. For this “AMS – 12 PWM card” from “Entuple technologies”is used ,
inorder to convert the 3.3V pulses to 15V pulses.
“J13” is used as input port and any three ports from the set {J3,J4,J6,J7,J9,J10} is
used as output port through which the pulses propogate to IGBTs’.
After selecting the output ports connect the respective pins to the inverters’ gate
terminal.
Provide a 15V DC supply to the level shifter.
The connection between the output ports and J13 can be found from the “Entuple user
Manual”.
The pulses generated are viewed through DSO before giving it to the inverter.
38
PW5261 - RENEWABLE LAB
CIRCUIT DIAGRAM :
TABULAR COLOUMN:
S.NO Vp Ip N(rpm)
39
PW5261 - RENEWABLE LAB
RESULT:
Thus the open loop rotor injection of DFIG is performed in sub synchronous generating mode
and the readings are tabulated.
40
PW5261 - RENEWABLE LAB
EX. NO. :08
AIM:
To observe the variable speed operation of the permanent magnet synchronous generator.
APPARATUS REQUIRED:
PMSG
DC motor (Prime mover)
Back to Back connected converter
Three phase Resistive load
Three phase AC supply
FPGA Processor (Artix-7)
Level Shifter
Laptop with XILINX VIVADO Software
Multimeter
Tachometer
Connecting Wires
THEORY:
As the name implies, in a permanent magnet synchronous generator, the excitation field
is created using permanent magnets in the rotor. Permanent magnets can be mounted on the
surface of the rotor, embedded into surface or installed inside the rotor. For low speed direct
drive wind turbine generators, the PMSG is more competitive because it can have higher pole
number of 60 or more poles. Also the excitation implementation is simpler, more durable. The
one major disadvantage of PMSG is that with no control of the rotor flux, they attain their peak
efficiency only at one pre defined wind speed. It’s speed is given by
𝟏𝟐𝟎 ∗ 𝐟
𝑵=
𝑷
where f - Frequency
P - No of Poles
41
PW5261 - RENEWABLE LAB
PROCEDURE:
1. Connect the front end rectifier to the stator terminals of the PMSG and inverter to a three
phase resistive load bank.
2. Provision of the gate pulses to the inverter is setup (Laptop, FPGA and Level Shifter are
connected).
3. Turn on the power supply
4. Run the DC motor at a specified speed
5. Vary the load in equal steps and note down the stator output voltage, speed, stator current
reading.
6. Repeat the same procedure by varying the modulation index of the sPWM based inverter.
7. Tabulate the readings taken
CIRCUIT DIAGRAM
42
PW5261 - RENEWABLE LAB
ROCKWELL AUTOMATION CONTROL PANEL SETUP
43
PW5261 - RENEWABLE LAB
BACK TO BACK CONNECTED CONVERTER (SEMIKRON INVERTER)
44
PW5261 - RENEWABLE LAB
TABULATION
45
PW5261 - RENEWABLE LAB
RESULT:
Thus the variable speed operation of the PMSG was observed successfully.
46
PW5261 - RENEWABLE LAB
47
PW5261 - RENEWABLE LAB