Chapter One: Auto-Switching Power Supply System From Different Energy Sources"
Chapter One: Auto-Switching Power Supply System From Different Energy Sources"
Chapter One: Auto-Switching Power Supply System From Different Energy Sources"
1.1 INTRODUCTION
Today, electricity is the major concern of the world. Especially in developing
countries like ours, In Ethiopia the problem of electricity is serious. Frequent
power interruption, high cost of electrical bills, damage of electrical device
because of overloads are common. As researches indicate, Ethiopia has a huge
potential of renewable energy sources like solar and wind. But it is not being
benefited from those sources a lot. In our country, the usual way to eliminate
electrical power interruption is by using generator. This will enhance
environmental pollution by adding carbon di oxide emission to the ozone layer.
Solar, is the simplest to construct among other renewable energy sources. It
requires only a simple photovoltaic generation cell to provide electricity. PV
panels have no moving parts and can be as lightweight or bulky as the
application requires. It is more economical source of energy for sub-Saharan
countries like Ethiopia.
Therefore the major aim of this work is to exploit the ubiquitous microcontroller
facilities in bringing about automation of changeover process. One of the most
critical needs of an embedded system such as this is to decrease power
consumption and space and this is achieved in this work This system was
designed to proper solution to the shortcomings of the already existing manual
changeover by performing power swap from public power to generator
automatically and vice-versa with the addition of solar power source.
1.2 STATEMENT OF PROBLEM
In our country the major source of power supply for above 80 percent of
currently used power utility is hydro power due to this interruption of electrical
power supply will sometimes occur. Due to this we are forced use electricity
even with shifts. On the other hand, we don't have a habit of using renewable
source such as solar power supply, wind power supply and so on while we have
plenty of them. So to minimize our cost of power consumption we have to use
renewable source
1.3 OBJECTIVE
1.3.1 General objective
LITRATURE REVIEW
2.1 REVIEW OF EXISTING WORK
To ensure the continuity of power supply, many commercial/industrial facilities
depend on both utility service and on-site generation (generator set). And
because of the growing complexity of electrical systems it becomes imperative
to give attention to power supply reliability and stability. Over the years many
approaches have been implored in configuring a changeover system. This
system doesn’t consider other possible renewable energy sources that can
supply enough power to the existing work and this can add electrical bills and
environmental hazards by relaying up on only diesel generators for backups.
The existing system has other backdrawns since it doesn’t consider full power
generation of the generator power interruption happens as main utility goes off.
Today the invention of power electronic switches makes conversion of one form
of electrical power to the other so solar power can also be the best source of
electrical power.
2.3 TRANSFORMER
A. Charging Mode
In this mode of operation; the switch is closed and the inductor is charged by
the source through the switch. The charging current is exponential in nature but
for simplicity is assumed to be linearly varying [11]. The diode restricts the
flow of current from the source to the load and the demand of the load is met by
the discharging of the capacitor.
B. Discharging Mode
In this mode of operation; the switch is open and the diode is forward biased.
The inductor now discharges and together with the source charges the capacitor
and meets the load demands. The load current variation is very small and in
many cases is assumed constant throughout the operation.
P - Proportional
I - Integral
Gc ( s )=K P+ K D s
2.7.2 sinusoidal-PWM
In this modulation technique are multiple numbers of output pulse per half cycle
and pulses are of different width. The width of each pulse is varying in
proportion to the amplitude of a sine wave evaluated at the centre of the same
pulse. The gating signals are generated by comparing a sinusoidal reference
with a high frequency triangular signal.
Figure 2.7 sinusoidal PWM
2.8 MICROCONTROLLER
A microcontroller is a computer control system on a single chip. It has many
electronic circuits built in to it, which can decode written instructions and
convert them to electrical signals. The microcontroller will then step through
these instructions and execute them one by one. As an example of this a
microcontroller we can use it to controller the lighting of a street by using the
exact procedures. Microcontrollers are now changing electronic designs. Instead
of hard wiring a number of logic gates together to perform some function we
now use instructions to wire the gates electronically. The list of these
instructions given to this microcontroller is called a program. There are different
types of microcontroller, this project focus only on the PIC16F877A
Microcontroller where it's pins as shown in the figure.
2.9 BATTERY
Battery condition and corresponding state of charge that we gathered from
reading of formerly used batteries for solar system is used to measure the
present state of charge of the battery. It's crucial to follow the ratings in our
design so that it may work well with batteries from any organization. The
following chart represents a clear idea about battery condition that are generally
used including charging and discharging both:
PERCENTAG VOLTAGE
E
BATTERY
20% 11.58
30% 11.75
40% 11.9
50% 12.06
60% 12.20
70% 12.32
80% 12.42
90% 12.5
100% 12.7
From the block diagram it is shown that there are 3 sources of energies main
utility supply, solar energy and generator. Solar power system is one of
renewable energy system which uses PV modules to convert sunlight into
electricity. The electricity generated can be either stored or used directly by the
load with the use of appropriate power electronic converter circuit. From energy
of sun, solar panel is being heated. Due to heating of solar panel, DC power will
be generated. This power will be given to the DC-DC boost converter. Now
DC-DC boost converter will boost (step up) it to specified DC voltage which
will be appropriate to inverter. Inverter will convert this DC voltage into
required AC voltage. But this AC voltage will be pulsating and contains some
harmonics, to shape it to a form required by the load PI control strategy and
filter are being placed. After passing from filter, it will be pure AC power and
ready for load consumption.
Solar PV system is very reliable and clean source of electricity that can suit a
wide range of applications such as residence, industry, agriculture, livestock,
etc.
3.1.2 Generator
3.1.2.1 Automatic Generator Start
Auto start generators are capable of remote start, meaning that these units
can be started by an external signal, such as one that might come from an
inverter when it detects a set battery voltage level. The control over the
generator’s operation that is, when to run and when to stop is external to
the generator, while the generator provides its own safety protection, such
as shutoff for low oil level, overheating, and other factors Among remote-
start generators, the simplest is the “two-wire start,” in which a closed
contact tells the generator to start and run. When the contacts open, the
generator stops. Automatic generator operation is at best a mixed
blessing. However, Poor Programming can lead to excessive runtime and
fuel consumption, yet not guarantee that batteries are adequately charged.
The most likely path to eventual failure is total dependence on a generator
in an unattended system.
3.1.3 Solar
Solar Panels come in a variety of shapes and sizes.They are also made up of
different materials like for example while most panels are made from silicon
(the same material used in electronics),some solar panels are also made up of
thin film solar materials like Copper Indium Gallium Selenide or Cadmium
Tellerium. Solar Panels of standard 200-250 Watts are of 5-6 feet in lenght and
3.5 feet in width and can weigh as much as 25 kg.Solar Arrays are made up of a
number of Solar Panels which provide the required voltage and power of
electricity requirements.
Solar Panel is made up of Solar Cells which are the basic building blocks of a
Solar Panels.A Typical Solar Cell provides around 0.5 Volts and around 60-90
Solar Cells make up a typical solar panel which implies 30-45 Volts .This will
provide around 8-10 Amperes of Electricity for around 200-250 Watts of
Power. Solar Cells are also of different variety and efficiency.all information
about Solar Panel Efficiency and Solar Cells Efficiency can be read from panel's
specification.
The first step in designing a solar PV system is to find out the total power and
energy consumption of all loads that need to be supplied by the solar PV system
.our specified load is 1hp or 746watt.
Add the Watt-hours needed for all appliances together to get the total Watt-
hours per day which must be delivered to the appliances.
746w*10h=7460wh ..............................................................................3.1
3 Calculation of total Watt-hours per day needed from the PV modules.
Multiply the total appliances Watt-hours per day times 1.3 (the energy lost in
the system) to get the total Watt-hours per day which must be provided by the
panels.
Divide the answer obtained in item 4 by the rated output Watt-peak of the PV
modules available to you. Increase any fractional part of result to the next
highest full number and that will be the number of PV modules required.
The battery type recommended for using in solar PV system is deep cycle
battery. Deep cycle battery is specifically designed for to be discharged to low
energy level and rapid recharged or cycle charged and discharged day after day
for years. The battery should be large enough to store sufficient energy to
operate the appliances at night and cloudy days. To find out the size of battery,
calculate as follows:
5968 wh∗0.25
= 12 v∗0.6∗0.85
=243.79AH
We have to select solar charge controller to match the voltage of PV array and
batteries and then identify which type of solar charge controller is right for our
application. Solar charge controller should have enough capacity to handle the
current from PV array. For the charge controller, the sizing of controller
depends on the total PV input current which is delivered to the controller
According to standard practice, the sizing of solar charge controller is to take
the short circuit current (Isc) of the PV array, and multiply it by 1.3.
Solar charge controller rating = Total short circuit current of PV array x 1.3
Figure below shows the schematic diagram for the boost converter used in
this design to step up the PV output voltage to a higher level suitable for the
DC/AC inverter operation that connected to the utility.
Vs
V 0= .........................................................................3.4
1−D
T on
D= ............................................................................3.5
T
T= T on +T off ...................................................................3.6
di
V¿ = L* dts ...................................................................3.7
R K
V O= ( )*[V ¿ + ( K P + I )*e]...................................................................3.11
L∗s s
Taking V ref =0
R K 1 R
V O + [( ) * ( K p + i) * ( ) * V O] = V ¿ * (
L∗s s 1−D L∗s
) ......................................3.12
R
VO L∗s
=
( L∗sR )∗( K + s )∗( 1−D ))]
V¿ KI 1
[1+( P
.....................................................................3.13
BOOSTER PARAMETERS
Overall booster efficiency is taken 95%. From this input power of booster is
809.55w. Minimum input voltage to the booster is 120V. Maximum Input
voltage of the booster is 160V. Output voltage of Booster is 220V. Relation
between input voltage and output to control the output voltage of booster PI
controller is Used which is shown in figure. As shown in Reference voltage
is compared with actual output voltage and error in output voltage e is
calculated. Error e is passed through PI controller. The output of PI
controller is given by equation 9. The output of PI controller is compared
with triangular wave which will generate pulses which is given to the
MOSFET of the dc to dc boost converter. So close loop control makes the
output voltage of dc to dc boost converter constant.
pf = unity.
ƞinverter =97 %
ƞbooster = 95%
f sw = 3.2kHz
PbstrI = PinvtrO + Pinvtrloss + Pbstrloss.......................................3.14
= 746w + (0.03*746w) +[0.05*(746w+0.03*746w)]
= 809.55w.
D min = 0.2727
D max = 0.4545
From equation 3.5
T on = D*T ................................................................................. 3.16
T >T >In steady state conditions
∆I
V¿ = L* T on .............................................................................3.17
T onmax ∗I o
C= ∆Vo
..............................................................................3.18
LC Filter Design
A low pass LC filter is required at the output terminal of Full Bridge
VSI to reduce harmonics generated by the pulsating modulation waveform.
While designing L-C filter, the cut-off frequency is chosen such that most of
the low order harmonics is eliminated. To operate as an ideal voltage
source, that means no additional voltage distortion even though under
the load variation or a nonlinear load, the output impedance of the inverter
must be kept zero. Therefore, the capacitance value should be maximized
and the inductance value should be minimized at the selected cut-off
frequency of the low-pass filter. Each value of L and C component is
determined to minimize the reactive power in these components because the
reactive power of L and C will decide the cost of LC filter and it is selected
to minimize the cost, then it is common that the filter components are
determined at the set of a small capacitance and a large inductance and
consequently the output impedance of the inverter is so high. With these
design values, the voltage waveform of the inverter output can be sinusoidal
under the linear load or steady state condition because the output impedance
is zero. But in case of a step change of the load or a nonlinear load, the
output voltage waveform will be distorted caused by the slow system
response as the output response is non-zero.
Using the closed relation between the filter capacitor value and the
system time constant, the capacitor value can be calculated. The effect
of the load current to the voltage distortion can be calculated from the
closed form. It is also possible to analyse how much the voltage
waveform isdistorted in the system in case of a nonlinear load.
Va ( s ) Ia ( s ) ( s Lf + R f )
=1+ ............................................................3.21
Vc ( s ) Vc ( s )
Va ( s ) Ia ( s ) ( s Lf + R f ) s C f
=1+ .................................................................3.22
Vc ( s ) Ic ( s )
As ia=ic+io
Vc( s)
Ia ( s )=Ic ( s ) + ................................................................................3.23
ZL
Ia (s) 1
=1+ ....................................................................................3.24
Ic (s ) sCfZL
Va(s)
Vc(s)
=1+ 1+
1
(
s Cf ZL )
( s L f Rf ) s C f ..............................3.25
2
Va(s) S Lf C f + S Lf + Rf C f S Z L + Rf Z L
Vc(s) = ZL
.......................................3.26
Vc(s) ZL
= 2
Va(s) s Lf C f +¿ S L +RCs Z +R +Z ¿
.................................................3.27
f L f L
PI controller is a feedback controller which detects the error value
which is the difference of the output signal and the desired or
reference signal. PI controller works to minimize this error by controlling
the system inputs. PI controller has two elements namely Proportional (P)
and Integral (I). Proportional part reduces the error while Integral part
reduces the offset. P depends on present error and I depend on past errors.
So, step response of a system can be improved by using PI controller.
After installing a PI Controller block the new response of the system will be
U ( s)
=PI *G( s ) ........................................................................................3.28
E( s)
KI
P I=¿K ¿+ .................................................................................................3.29
P
S
U (s )
E(s) (
P+
S
I
)
= K K *G( s ) ............................................................................3.30
We will get DC power from solar panels through boost converter and this
converter inverts DC to AC. This design and modulation is based on
MATLAB software. In circuit, for switching purpose IGBT is used. There
are many other devices also but IGBT has more advantages than others
which are shown by comparison with others. The main thing is that this
conversion and switching of IGBT is done using different types of PWM
methods. Here we are using SPWM method for conversion of AC power.
This method is very efficient than other methods and also it reduces
harmonics to very much extent in output. Project objective are, to design an
inverter model by using Power inverters are devices which can convert
electrical energy of DC form into that of AC. They come in all shapes and
sizes, from low power functions such as powering a car radio to that of
backing up a building in case of power outage. Inverters can come in many
different varieties, differing in price, power, efficiency and purpose. The
purpose of a DC/AC power inverter is typically to take DC power and
transform it into a 220 volt AC power source operating at 50 Hz, emulating
the power available at an ordinary household electrical outlet.
SIMULATION RESULTS OF DC TO AC INVERTER
Inverter input is a 100V dc and the output is 220V AC. This inverter
can be used for household appliances.
3.2 DESIGN OF SWITCHING SYSTEM
3.2.1 DESIGN OF CIRCUIT POWER SUPPLY
If the unregulated input of the 7805 is greater than 9v while the required output
is 5v the voltage regulator IC, starts getting hot and will be damaged. Hence we
will need an input into the 7805 to be approximately 9V for 5v output. Since,the
diode drops 0.7V and we have 4 rectifying diodes forming the full wave bridge,
the voltage drop will then be: -
0.7 ×4 = 2.8V
For a peak voltage of 9+2.8=11.8V peak.
From KVL
V μc−V 5−0.7 V 12 v
R1= be
= , Since I c= cc = =0.03A
Ib Ib R coil 400 Ω
Ic 0.03 A
I b= = 100 = 0.0003A
hfe
5−0.7 5−0.7
R1 = = = = 1433Ω ≈ 1500Ω
Ib 0.0003 A
R4 = R5= 300Ω
V μC−V 5−2
R6 = led green
= 25 mA = 120Ω ≈100Ω
I led green
R6 = R7 = 100Ω
LCD current
V 5V
I LCD = = = 5mA
R 1K
12 v
Relay coil current = 400 Ώ = 30mA
3.3.5 Selection of the Size of Automatic Transfer
CHAPTER FOUR
SIMULATION RESULTS
SIMULATION RESULTS OF DC TO DC BOOSTER
CHAPTER FIVE
REFERENCE
APPENDEX
MIKROC CODE
int Vmax=980;
PFG=1;
void SourceInd() }
if(var==1||VAR==3) }
{ void interrupt()
PFM=0; {
PFS=1; if (INTCON.INTF)
PFG=0; {
if(var==2) INTCON.INTF = 0;
{ }
PFM=1; }
PFS=0;
} {
if(var==4&&x==1)
{ void main()
PFM=0; {
PFG=0; TRISA = 3;
PFS=~PFS; TRISD = 0;
delay_ms(250); TRISC = 0;
} portd=0;
if(var==4&&x==2) PORTC=0;
ADCON1=128; }
Lcd_Init(); MainSolarCont=1;
Lcd_Cmd(_LCD_CLEAR); // SolarBatCont=0;
Clear display
GenCont=0;
Lcd_Cmd(_LCD_CURSOR_OFF);
// Cursor off var=2;
Lcd_Out(1,1,"Initializing...."); }
while (1) {
{ MainSolarCont=0;
{ var=4;
MainSolarCont=0; }
var=1;
{
MainSolarCont=0; {
SolarBatCont=1; MainSolarCont=0;
GenCont=0; SolarBatCont=0;
GENSTRT=1; GenCont=1;
x=1; GENSTRT=0;
} x=2;