Vous êtes sur la page 1sur 10

INTERNATIONAL JOURNAL OF ELECTRICAL SYSTEMS AND CONTROL (IJESC)

Vol. 3, No. 1, Jan-June 2011, pp. 11 20

PIC16F72 Microcontroller Based Solar Powerd UPS


Santhosh Kumar1 and M. L. Sudheer2

Abstract: Growth in digital data storage and transmission in the fields of internet, telecommunication, enterprise
networks etc. enables to think of uninterrupted power supply. The amount of data that needs to be stored in case
of internet servers has grown from 20Tbps in 2001 to 100 Tbps in 2003. If there is a continuous power failure the
data stored might gets lost causing huge financial losses and sometimes results in loosing security information.
Consider a one more scenario of an application which runs for more than a day or two. If there is a continuous
power failure during these days it will cause the application to abort and needs to run again from the start. This
enables to go for alternative sources of energy, particularly natural inexhaustible sources of energy to run the
applications, servers, and enterprise networks. Solar energy is available abundantly in the nature as a gift that
can be utilized to convert it into electrical energy using solar panels and associated circuitry.
Sudden power loss could also damage various sensitive parts of the computer. To provide continuous power
supply to a load, a UPS (Uninterrupted Power Supply) is used. Other than providing continuous power supply,
the UPS provides a constant and problem free, regulated supply to the load. The UPS systems used in sensitive
devices and in critical applications, will have to have a very high changeover time, small in size, should not be
heavier, should have high battery lifetime. Also building, testing and debugging of the system should be easier and
time to market.
UPS has a VA rating which is the maximum number of Volts * Amps it can deliver. The VA rating is not the same as
the power drain (in Watts) of the equipment. This would be true if the load was only resistive or the circuit was DC,
not AC. Computers are non-resistive hence for computer applications VA rating is used. A typical power factor
(PF = Watts/ VA) for some computers may be as low as 0.6, which means that if there is a drain of 100 Watts, UPS
should have a VA rating of 167. The VA rating of UPS should be greater than the VA rating of the load. The UPS
here is designed for 300VA.
Keywords: PIC16fXX, Microcontroller, UPS, Solar Energy.

1. FEATURES received through exhaustible sources of energy like


The UPS is used to get uninterrupted, clean, regulated nuclear power plants is not good for common man and
AC supply even when the AC mains supply fails. A good for the nature. Nowadays because of shortage of rainfall
UPS system should have following features: there will be power cuts in cities and metros also. During
the days of high end technological development usage of
Frequency of the AC output by UPS is constant
electronic and electrical equipments is a routine. To use
50Hz.
these equipments power is of utmost important. It suggests
Have LED indicators and protection for no-load, the need of continuous power for the welfare of humanity.
overload, low-charge and high charge conditions. Continuous power can be provided by using uninterrupted
Changeover time is a us. power supplies (UPS). UPS can be used for lighting the
Provides good battery backup time (on a load of house, running motors and vehicles, in industries, and
1amp provides a backup of more than 40 hours). importantly to run computers and servers.
Has a microcontroller as control section to control In computers say, there is an application which runs
various operations of UPS. for more than a day or two. Any power cut will cause
the application to abort and needs to run again from the
1.1 Motivation start. This enables to think alternative sources of energy,
The huge amount of power cuts in the rural and urban particularly natural inexhaustible sources of energy to
areas and the huge cost of electricity generated and run the applications as well as to charge the battery. In
1
this project, solar energy has been considered to convert
B.R., M. E(E&C), E-mail: santhosh5673@gmail.com.
2 it into electrical energy.
Prof. UVCE (E&C), Bangalore
12 International Journal of Electrical Systems and Control (IJESC)

UPS currently available in the market are bulkier After that it needs to be charged at regular intervals of
and heavier. Using microcontrollers to control most of time. Otherwise battery gets completely discharged.
the operations ensures to build cheap, lighter and small Charging using trickle charge method ensures battery is
sized UPS. Microcontroller can be programmed to always fully charged. This gives longer battery lifetime.
indicate the status of UPS whether it is running on AC To use vastly available solar energy, utilization of solar
or UPS, whether it is over-loaded or there is no-load panels to generate DC current ensures energy security.
connected at the output whether the battery is over- DC current can be used to charge the battery. Some of
charged or deep-discharged. These observations can be the design issues considered are:
used to switch ON or switch OFF the computer after Design of the Charger Circuit which includes Utility
saving the application. Charger and Solar Charger with an associated Relay
& Comparator.
1.2 Problem Statement
Inverter
There will be an inexhaustible amount of solar energy
Monitoring and Indicator
available in the universe. Because of scarcity of
exhaustible resources like coal and uranium for the Protection System
manufacturing of electricity we can utilize solar energy Programming the PIC
for generating electricity. The UPS available nowadays
are of huge size and heavier built without the integrated 2. BLOCK DIAGRAM
circuits of interests. This report contains UPS system built The Figure 6 shows an UPS powered by solar energy.
using microcontroller PIC16F72, which has inbuilt ADC, The 40AH, 12 volt battery will be initially boost charged
CCP module, Timers, Comparators, configurable ports, and then kept in trickle charge mode with Relay and
interrupts etc. These modules can be used to compare Battery Charger block. There are two battery chargers
signals and voltage references and generate control signals one for utility AC line and another for the power coming
either to switch ON or switch OFF a particular portion from solar panel. The NC terminal of relay is connected
of UPS. Also CCP module can be used to generate MOS to the signal coming from solar panel. NO terminal is
drive signals for the inverter circuit. In existing UPS connected to the signal coming from utility AC line.
which seems to be bulkier uses op-amp comparator ICs, Whenever the signal from solar panel goes below 12 volt,
PWM ICs and others which make the system bulkier, the comparator circuit gives an active high signal which
heavier. The use of PIC16F72 microcontroller eliminates
most of those circuits enabling the system compact and
lighter. Features like over load protection and no-load
protection, over-charging and deep discharge protection
will ensure longer lifetime of the UPS and increases the
battery lifetime. Battery is charged using trickle charging
method using solar charger which ensures longer battery
lifetime and increases the battery backup time.
The feedback signal which comes from the source
of inverter section to the PIC will be used to indicate
either overload or no-load conditions. The feedback signal
which comes from the battery will be used to indicate Fig. 1: PIC16f72 Controlled UPS
either over-charging or deep discharge conditions. When energizes the relay. This connects the relay pole to the
there is overload the output tries to draw very high current NO terminal which in turn connected to the signal coming
which might damage the UPS so microcontroller section from utility AC line. The comparator circuit continuously
will cut the load from the UPS. When there is no load monitors the signal from solar panel. Whenever it returns
the output is not drawing any current from the UPS which back to above 12 volt range, it gives out an active low
indicates wastage of power if UPS is running. In these signal which de-energizes the relay. This connects the
situations microcontroller will send signals to switch OFF relay pole back to the NC terminal which in turn connects
the UPS. If the 12 volt 40AH battery is discharged below to the signal coming from solar panel. The charger circuit
11 volt and if charges above 13.6 volt, it will be indicated charges the battery at 12 volt and approximately 55ma.
through LED and UPS will be switched OFF or otherwise The battery used is rated for 12 volt 40AH, a rechargeable
battery may gets completely damaged. Battery will be lead acid battery. The battery gives supply to the inverter
charged using boost charger during first installation. operation. The microcontroller continuously monitors the
PIC 16F72 Microcontroller Based Solar Powerd UPS 13

battery condition. If it is in charge and charging is taking AC supply and provides a regulated output at its output
place by means of solar energy then the PIC will send a socket. The AVR section regulates the incoming AC
low signal to the output electronic relay. mains supply (varying from 150V to 270V) and provides
The operation of the above block can be explained a supply in the range of 220V to 240V at its output socket.
as when AC is available load gets the supply from it.
Battery is charged through utility line supply battery
charger if and only if solar charger output is not sufficient.
Green LED will glow indicating utility is ON. When
utility supply will cut load gets the supply from inverter
and UPS transformer. Battery is charged through solar
charger. Blue LED will glow indicating UPS is ON.
When utility is OFF and battery is over-charged or deep-
discharged Yellow LED will glow indicating to switch Fig. 2: Electronic Automatic Voltage Regulator
off the load after saving the work. During over-load and Characteristics
no-load conditions Red LED will glow indicating to cut
2.2 Transformer
the load from the UPS system.
Table 1
UPS, Charger & Inverter Status Under Various
Conditions
Solar Battery Charge
Energy Full Off AC Charger Inverter AVR
YES NO YES NA ON ON OFF
YES YES NO NA OFF ON OFF
NO YES NO NA OFF ON OFF
NO NO YES YES ON OFF ON
Fig. 3: Iron Core Transformer
2.1 The Electronic Voltage Regulator Transformer is a device which works on the principle
The electronic voltage regulator (EVR) has evolved with of Mutual Induction. In the transformer electric energy
the advancements in power semiconductors. The is transferred from one circuit to another circuit. During
electronic voltage regulator is only used in power quality this transfer the current and the voltage can be changed
applications since it is designed for low voltage (< 600V). i.e. they can be increased or reduced. There is no direct
As electronics become more prevalent in industrial and electrical connection between the primary and secondary
commercial applications, the speed and performance coil in a transformer. When the AC current flows in the
advantages of the electronic voltage regulator make it a primary coil, changes in the magnetic flux generated by
better fit than the mechanical voltage regulator. this current in the primary, induces EMF in the secondary
OA17858 Fixed Voltage Regulator which contains coil. The voltage generated in the secondary coil depends
SCR switches. All of the SCR switches OFF except one on the ratio between the number of turns in the primary
which will be ON so current flows only through the and number of turns in the secondary coil. In a
desired tap. When the controller senses the need for a tap transformer the relationship between voltage, current and
change, it turns OFF the SCR switch on one tap and then number of turns in the coil is given by
turns ON the SCR for the appropriate tap. V1/V2 = N1/N2 = I2/I1
It is an additional section in the UPS. When the AC Where, V1, I1, N1 Input voltage, Current and
main is available, the inverter sends the AC mains to its Number of turns in the primary coil. V2, I2, N2 Output
output socket without any correction. For example, voltage, Current and Number of turns in the secondary
if the input AC supply is 180V, it will be sent to the coil. The transformer of turns ratio 10. If input varies
output socket by the inverter, and if the input AC is 260V in the range of 170V 260V AC, AVR regulates it to
this will also be sent to the output socket. No correction within 220V 240V AC. Transformer steps down it to
is done by the inverter on the input AC supply to bring it 22 V 24V AC. Rectifier and Filter circuit converts it to
into 220-230V range. In the UPS, when an AC main is pure DC while charger converts it to 13VDC for charging
available, the AVR section regulates the incoming the battery.
14 International Journal of Electrical Systems and Control (IJESC)

2.3 Rechargeable Battery The lead-acid batteries are generally rated in terms of
A battery is the one that supplies DC power through how much current the battery can supply for a fixed period
chemical reaction. Alessandro Volta developed battery of time. Battery capacity is rated in Ah. Generally Ah
when he found the generation of electrical current from value is based on 8 hours discharge time. The capacity
chemical reactions between different metal of different of any battery depends on the number of plates used in
properties. Rechargeable batteries are the one that can be each cell of the battery. A 40Ah battery used can provide
used multiple times, after using the charge stored in them, the load current of 5A (40/8 = 5) for 8 hours. The battery
they can be recharged and reused. These batteries are can supply less current for longer time or more current
mainly used in industries and automobiles where higher for shorter time. Charge or discharge state of the lead-
initial current is required. Rechargeable batteries are acid battery is indicated by the specific gravity (SG) of
costlier and require regular maintenance. The basic the batterys electrolyte. SG of the electrolyte is the ratio
building block of batteries is cells. Each cell has a positive of the weight of the electrolyte with the weight of same
and a negative terminal. The battery is made up of one quantity of the water. SG of the electrolyte does not
or more cells. Normally, voltage obtained from a battery indicate the battery capacity. The sulfuric acid used in
or the voltage required to recharge a battery is given in the battery is 1.835 times as heavy as water for the same
per cell basis. One can multiply the number of cells in a volume, therefore the SG of the sulfuric acid is 1.835.
battery with this per cell values to find the actual voltage SG of water is 1, as it is used as reference. SG of the
generated by the battery or the actual recharge voltage electrolyte of a fully charged battery is 1.25, at room
required to charge the battery. The capacity of a cell is temperature. When the battery gets fully discharged,
defined as the number of electrons obtained from it. The electrolytes SG reduces to 1.15. The reason behind this
number of electrons per unit time can be called current, is, as the battery gets discharged, the acid level in the
so, the capacity of a cell can be the current supplied by it electrolyte gets reduced and the water level increase. The
over a time. The cells capacity is measured in Ampere- SG of the electrolyte of a cell is used to find out its open
Hours and is defined as the current (in ampere) multiplied circuit voltage. During discharge, the SG decreases
by the time the current is flowing. The capacity of a cell linearly with the Ah discharged as indicated in the below
depends on the active material used in the cell and on the figure. The downward sloping line for the SG of the
volume of the cell. electrolyte during discharge is approximated by the
equation.
When a battery is connected to a load, the electrical
energy stored in it gets utilized, this is known as Cell Open-Circuit Voltage = SG + 0.84
discharging of battery. When the energy stored in the
battery gets completely exhausted, the battery stops
providing supply to the load, and this battery is called
discharged battery. This discharged battery can be given
power from some external source to once again store
energy into it. This process is known as charging of the
battery. Once a battery is charged, it can be reused like a
new battery to provide energy to the load connected to
it. All batteries cannot be recharged, a battery which can
be recharged to restore its energy is known as a
rechargeable battery or a storage battery. Battery is an Fig. 4: SG While Discharge and Charging
important part of the UPS; an UPS converts the DC
supply of battery into AC supply to provide supply to 2.4 Charger Circuit
the load connected to it. This process slowly discharges (1) For trickle charging, charging current should be
the battery. When the AC main is available, a charger less than 0.01 times the capacity of the battery.
circuit in the UPS converts the AC mains supply into Here a 40Ah battery is being charged at rate of
DC supply and charges the battery. This makes sure that approximately 40m amp. The battery should not
the battery is kept fully charged and ready to provide be charged at a quick rate, so that it assures a longer
supply to the UPS, whenever the AC mains supply fail. lifetime.
A Lead-Acid type of battery is most common battery (2) The charging voltage should be set to 2.3 2.4V
used with the UPS. These batteries can provide very high per 2V cell. So a 12V battery (6 cells of 2V) is
current for longer duration. These batteries are charged at 6 2.3 = 13.8V.
inexpensive compared to other rechargeable batteries.
PIC 16F72 Microcontroller Based Solar Powerd UPS 15

(3) The transformer winding for the charger supply is The bridge rectifier uses four 1N4148 rectifier
chosen at the charging voltage plus 3V regulator diodes. These diodes are having 1 ohm forward resistance.
drop plus 1.4V rectifier drop (two diodes) plus 10% The load resistance is of 10 ohm and the filter capacitor
safety. So for a 12V battery, the winding (AC) is used is 1000 uF. The zener diode used of 16 volt which
12V + 3V + 0.7V + 0.7V = 16.4V + 10% = 18V. gives the constant 12 volt output.
(4) The charging current is limited by the small resistor The input to the rectifier and filter circuit is 22 volt,
in the common leg of the charger. The value for 2amp AC signal and the output is 16 volt, 1.6 amp DC
this resistor can be calculated with: R = 0.6V / max signal. The efficiency of this rectifier is 67.7% and
current. For a maximum current of 50 mA, required contains a ripple 0.0919.
resistance is 0.6V/0.05A = 12 ohms. The 0.6V is
the voltage required for the transistor to go fully 2.6 Solar Panels
into conduction. Between 0V and 0.6V the The solar panel gives out a 18 volt and 1.8 amp DC
transistor will adjust the regulator to increase or current. It receives energy from sun light and converts it
decrease voltage depending on the current it is into electrical energy. Each photovoltaic cell gives out
passing. 0.6 volt, 0.09 amp DC current. Each panel has 20 rows
(5) The charging voltage can be set using the and 30 columns. So each panel output is 18 volt, 1.8
potentiometer. Just hook up a volt-meter to the amps. More number of such panels can be connected in
charger (without the battery attached) and adjust parallel to give out large output DC current for driving
the output voltage until it matches the charging heavy load. For example if more number of loads has to
voltage. Use 5K for 12V batteries. be driven utilizing 5.4 amps then three such panels has
The diode over the regulator prevents damage to the to be connected in parallel so that total output current is
regulator when the supply is turned off. In this situation 1.8 * 3 = 5.4 amps.
the battery that is still attached offers a negative voltage 18 volt 1.8 Amp DC which is enough to charge the
over the regulator, as the voltage on the output is greater 12 volt 40 AH battery through a charger circuit. The
than the voltage on the input. The diode shorts the typical Solar Panel today achieves between 10% and 15%
regulator in this situation and avoids any problems. It is conversion. The theoretical maximum efficiency of a
just a safety. silicon cell is about 21%. Using a more costly technology
31% conversion can be achieved. The panels used gives
2.5 AC-DC Converter (Rectifier and Filter)
out 18 volt, 1.8 Amp DC current during sunny days.
The sinusoidal AC signal from the utility supply will be Light striking certain substances causes the surface of
stepped down to 22VAC. This AC signal will be given the material to emit electrons. It is as if light somehow
as the input to bridge rectifier and a capacitor filter which kicks electrons right out of atoms. Light striking other
gives out pure 16V, 16m amp DC signal. 16V DC signal substances causes the material to accept electrons. It is
will be the input to the battery charger. the combination of these two substances that can be made
use of to cause electrons to flow through a conductor.
This is the so called photo-electric effect. Photovoltaic
means sunlight converted into a flow of electrons
(electricity). Photovoltaic devices, or solar cells, are like
Fig. 5: AC DC CONVERTER
generators that work in sunlight. They make electricity
without waste, noise or pollution. They produce
electricity without combustion. A solar cell is a solid
state device in which there are no moving parts (except
for photons and electrons) so nothing wears out. The
fuel is photons. These can be thought of as packets of
sunlight that carry a phenomenal amount of energy to
earth at a prodigious rate. The Solar Panels of today make
use of this abundant energy by using silicon crystals with
small amounts of impurity added. This process of adding
minute amounts of different elements into an otherwise
Fig. 6: Circuit Diagram of AC - DC Converter pure crystal is called doping. By having two thin layers
16 International Journal of Electrical Systems and Control (IJESC)

of doped material bonded against one another, an electric


current can be induced when exposed to light. Energy
Content of Sunlight has an energy content of
1kW (1,000 watts) per square meter. The typical Solar
Panel today achieves between 10% and 15% conversion.
The theoretical maximum efficiency of a silicon cell is
about 21%. Using a more costly technology 31%
conversion can be achieved.

2.7 Battery Charger


Input to the charger circuit is from solar panel which is Fig. 7: Block Diagram of Charger Circuit
18 volt, 1.8 amps and from the rectifier & filter circuit
which is 16 volt, 1.6 amps. The output of the charger 2.7.1 Battery Charger using Lm317
circuit is 13 volt, 50 m amp. A charger using the IC LM317 is shown here. LM317 is
Battery will be charged using boost charger methods a 3-pin adjustable voltage regulator IC. Pin-3 is the input
during installation. Once Charged and gets used in the pin; a rectified and filtered DC supply is given to this
UPS, it will be charged using trickle charge method. pin. Pin-1 is control pin. This pin is used to control the
Trickle charge method ensures that battery is fully charging voltage. Pin-2 is output pin. Regulated voltage
output at this pin is given to the positive terminal of the
charged all the time it is used. A 12 volt battery should
battery to charge the battery.
maintain a voltage of minimum 11V and a maximum of
13.6V. If it goes beyond this range microcontroller will
sense it and shuts the Inverter from battery.
A trickle charge is a continuous constant current
charge which is used to maintain a battery in a fully
charged condition. Trickle charging is used to recharge
a battery for losses from self-discharge as well as to restore
the energy discharged during intermittent use of the
battery.
The fig shows the charger circuit used to charge a
Fig. 8: Battery Charger Using LM317
battery. It is suitable for charging up to a 40 A/H battery.
It is protected against discharging the battery by a diode Charging current is controlled by T1, R1 and R4.
if the input power is removed. The battery charger VR1 is used to set the charging current. As the battery
gets charged, the current flowing through the R1
diagram has two charger sections. One solar charger
increases. This results in increase in the current and
receives the signal directly from solar panels. While the
voltage from the LM317. When the battery becomes fully
other Utility charger receives the voltage signals from
charged, charger reduces the charging current to the
the output of bridge rectifier and filter circuit. The output battery, and the battery is charged in trickle charging
of Solar Charger is connected to the NC terminal of the mode. The input at LM317 should be around 3-volts
relay while the output of utility charger is connected to higher than the output voltage from the LM317 as this
the NO terminal of the same relay. The output of solar IC requires minimum 3-volts for its operation. As this
charger is also given to the comparator which compares IC gets very hot during operation, a good heat sink should
the solar panel voltage with reference 12 voltage. be used with this IC.
If solar panel voltage is more than 12 volt then the The charging current should be kept to around 0.1
comparator output is negative which wont induce the times the capacity of the battery. So a 40Ah battery should
current in the relay circuit thereby retaining the NC be charged with 4A of current (40 0.1 = 4) during
position connected to the Pole. If solar panel voltage is initial charging. The battery will not be forced (quick
more than 12 volt then the comparator output is positive charged) this way and assures a longer lifetime. The
which do induce current in the relay circuit thereby charging voltage should be set to 2.3 2.4V per 2V cell.
switching the pole to NO position which in turn connected So a 12V battery (6 cells of 2V) is charged at 6 2.3 =
to the utility charger. 13.8V. The charging current is limited by the small
PIC 16F72 Microcontroller Based Solar Powerd UPS 17

resistor R1 in the common leg of the charger. The value 2.9 Microcontroller
for this resistor can be calculated with: R = 0.6V / max It is used either to send PWM signals to the Comparator
current. So if I want a maximum current of 1A, I will & Multiplexer unit to send MOS drive signals to the
need 0.6V / 1A = 0.6 ohms. The 0.6V is the voltage inverter OR to switch off the inverter portion. Voltage
required for the transistor to go fully into conduction. signal from Inverter output and/or Battery will be
Between 0V and 0.6V the transistor will adjust the compared with reference values to indicate low-battery,
regulator to increase or decrease voltage depending on high-battery, over-load and no-load conditions.
the current it is passing. The charging voltage is set using
PIC16F72 is used to send MOS drive voltages to
the potentiometer.
MOSFET inverter section. The PWM section of the
PIC16F72 sends MOS drive signals to the inverter.
2.7.2 Battery Charger using HA178L14
Microcontroller receives signals from various parts of
The solar charger circuit is shown below. Voltage signal the system to indicate either over-load, no-load, deep
from solar panel used to vary depending on the discharge, and over charging conditions. If the user did
availability of solar light. HA178LXX regulates the input not turn off the load and did not switch off the UPS after
voltage and gives out a constant output voltage in the the warning LEDs have been glowing for prescribed
range of 12 to 14 volts with a typical value of 13 volts.
amount of time then microcontroller automatically stops
sending PWM gating signals to the inverter thereby
turning off the UPS.

Fig. 9: Battery Charger using HA17814

2.8. Op-Amp Comparators

Fig. 10: Comparator to Generate Volt_h and


volt_l Signals Fig. 12: PIC 16F72 Microcontroller

2.10 Comparator And Multiplexer

Fig. 11: Comparator to Generate Curr_h and


Curr_l Fig. 13: Comparator & Multiplexer
18 International Journal of Electrical Systems and Control (IJESC)

This device is designed to multiplex signals from 4- MOSFET channels. As the polarity of signals is different,
bit data sources to 4-output data lines. PWM module when first channel is ON, the second channel will be
(CCP1) of the microcontroller generates pulse width OFF and vice versa. Each channel will be ON/OFF
modulated signals in such a way that the output of the alternatively. This ON/OFF process takes place 50 times
multiplexer 4, 7 and 9, 12 vary at the rate of 50 times a per second. As these MOSFETs are connected to the
second. This ensures the MOSFET Inverter generates primary of the mains transformer, continuous ON/OFF
50Hz sinusoidal signal. will produce an AC current in the primary winding of
The PWM signal from PIC16F72 will be given as the transformer. AC current in the primary will produce
input to two op-amps which are used as comparators with AC voltage in the secondary of the transformer. This
reference voltage of 2.5 volts. PWM signal vary at an AC voltage is sent to the output socket through an ON/
interval of 0 to 10 ms at a constant rate. During first 5 OFF switch.
ms the amplitude will be less than 2.5 volts and in the
next 5 ms the amplitude will be between 2.5 to 5 volts. 3. RESULTS
This ensures the output of multiplexer to give signals Solar Panel Input: solar energy, Output: 18 volt, 5.4/3
which vary at the rate of 50 times a second. = 1.8 amp DC current. The solar panel used has given an
output of 18 volt and 1.8 * 3 = 5.4 amps, which
2.11 Mosfet Inverter corresponds to VA of 97.2 VA.
The inverter used is based on MOSFET. Four of these Rectifier and Filter: Input: 22 VAC, 1.8 amps (rms)
devices have been connected in such a way that all the 50 Hz sine wave. Output: 16 VDC, 1.6 amps. Efficiency
sources of theses transistors have been shorted. Each two of the rectifier is 67.67% while the ripple factor without
MOSFET drains have been shorted and connected to each capacitor filter is 0.5151. With capacitor filter ripple
of the terminals of the main transformer. Gate terminal factor reduced to 0.0919.
of these transistors receives alternating gating pulses at
50HZ frequency. This results in a 50HZ AC signal at the
primary of the transformer. 12 volt DC from the battery
is connected to the primary center tap. Other two
terminals receive the alternating pulses from two
MOSFET pairs. This result in a 230V, 50Hz AC signal
at the secondary of the transformer.
PIC sends PWM signal which is compared with
reference voltage and sent to a MUX which gives out
MOS drive signals to the optocoupler. At first half period
of time one optocoupler will be ON which sends gating
pulses to one pair of the inverter. In the rest half of time
another optocoupler will be ON which switches ON the
other pair of MOSFETs. Inverter section gives 12V,
50Hz, AC output which is stepped up to 230 volt AC at
the output of transformer.

Inverter: MOS Drive Section


MOS drive signal at the output of Optocouplers are not
powerful enough to drive the output MOSFETs. These
signals are given to the driver PNP transistors to amplify Fig. 14: PIN Diagram of 4N30M 6-pin Opto Coupler
Driving Two Legs of MOSFET Inverter
them to a level that they be able to drive the MOSFETs.
MOS drive signal amplified by Q1 reaches the gate of The charger circuit: Input from solar panel: 18 volt,
MOSFETs M1 & M2. Similarly MOS drive signal 1.8 amp (which is 5.4/3) DC current. Input from rectifier
amplified by Q2 reaches the gate of MOSFETs M3 & M4. & filter: 16 volt, 1.6 amp DC current. Output: 13 VDC,
50 m amps. Charging method: Trickle charging. Battery
Inverter: Output Section voltage: 11.0 13.6 volts.
MOSFETs M1 & M2 make first channel and M3 & M4 The charger circuit has two input lines which receive
makes the second channel of the output section. MOS 18 volts from either solar panel or from the rectifier and
drive signal of different polarity reaches the gate of each filter circuit. One from the rectifier to the charger using
PIC 16F72 Microcontroller Based Solar Powerd UPS 19

LM7812 and the other from solar panel to the charger discharged below 11 volts it will be charged using float
using HA178L12PA. The output of the charger circuit charge. If on fully charge, then battery will be kept in
is 13 volts and 50 mA. trickle charge mode with a charge rate of 50m amps.
Battery: 12 volt, 40 AH: Input: 13v, 50m amp Therefore the net discharge rate will decreases to 825m
charging current DC. Output: 12v, 875 m amp. DC. The amps from previous 875m amps. When the discharge
battery uses around 20% of charging voltage for the rate decreases it takes much more time to deep discharge
chemical reaction and remaining 80% of charging current thereby increasing the duration between two cycle times.
is 41.7m amps. The battery will be charged at a rate of For a 40 AH battery at a discharge rate of 875m
12 volts, 41.7m amps. The output of battery will be 12 amps it takes 3.3 hours for 1 volt discharge. For 2.6 volt
volt 875 m amps. This indicates the net discharge rate of discharge from 13.6 to 11 volt it takes 9.9 hours. If the
875 41.7 = 833.33m amps. cycle life of this battery is 500, then its lifetime will be
UPS: Wattage: 300 watts, 12 volt to 230 V AC. (9.9 * 500) = 4950 hours.
Input: 12 volt, 875 m amp DC from battery. Output: 12 Now with discharge rate of 825m amps because of
volt, 350 m amp AC sinusoidal waveform. The 300 watt trickle charging, it takes 10.5 hours of discharge time
UPS receives 12 volt, 875mA to the UPS circuit. But from 13.6 to 11 volt. Now the lifetime will be (10.5*500)
UPS circuit requires around 60% of energy to run. Or in = 5250 hours.
other words the output current at the output of UPS is Therefore increase in the lifetime will be (5250
0.35 amps. The remaining 525 m amps will be consumed 4950) / 4950 = 6%.
in the UPS. That is the output of the UPS is 230 volts
and 350 m amps. 4. CONCLUSION
The load is a 45 watt, 220 volt, 50 Hz electrical fan. The results showed that by means of trickle charging
It is rated for 0.35 amps. Therefore the power factor of UPS backup increased by 6%. Also it can be estimated
the load is (45 / (220*0.35)) = 58%. that the lifetime of the battery also increased by 6%.
Battery Backup: Battery used to discharge at a rate That is if without the trickle charging and necessary
of 0.875 amps. For one deep discharge cycle, 40AH protection, lifetime may be, say, 1000 hours. Now with
battery can provide a backup of 40/0.875 = 45.7 hours. added protection and trickle charging lifetime will be
For a discharge from 13.6 V 11 V battery provides a 1040 hours.
backup of 45.7*2.6/12 = 9.9 hours. That is backup is 9.9 The monitoring system for solar based UPS with all
hours while charger is disabled. the protections gives a longer lifetime of the device.
But since the battery is kept in charge mode Backup of the battery is more sufficient to run appliances
continuously by means of 50 m amps, net discharge rate up to a load capacity of 5 amps. Assuming a sunny light
will be 875 50 = 825m amps. Therefore the backup of 6 hours a day, I can continuously charge the battery
will increase to 40/ 0.825 = 48.48 hours for 12 volt range. for 6 hours everyday. In that period of time I can run all
For 2.6 volts from 13.6 to 11 volt discharge, backup of my appliances and electronic devices including
will be 48.48*2.6/12 = 10.5 hours. computers with the UPS alone without depending on the
utility AC supply. Also if the panel used is big or if the
Therefore % age increase in the backup will be
efficiency of solar cells is high and the battery capacity
(Bn Bo)/ Bo * 100, is huge then during that 6 hours I can charge the battery
That is (10.5 9.9) / 9.9 = 6 %. as much as possible. So the battery along with the Inverter
can be used to run the load till the battery provides the
Battery Lifetime: Battery lifetime will be specified backup.
in terms of number of Cycle Life. One Cycle Life is the
process of charging a battery to its maximum value and REFERENCE
then discharging to its deep discharge level or to some
[1] PWM-Mid Range MC DS33023 Reference Manual
specified discharge value. Usually zero volts will be
[2] ANSI/IEEE std. 466 (1986), Emergency and
considered as deep discharge level. Lead Acid battery
Standby Power Systems.
will have a lifetime of around 500 cycle life. After its
[3] ISA CE736502, Branch Circuit Protection for
specified number of cycle life, the battery still holds
Uninterruptible Power Supply Systems.
charge but its capacity will be reduced. A 40 AH battery
has a one cycle life of charging from 11 volts to 13.6 [4] A Simulated Power Quality Disturbance Recognition
System (Paper for ICAI03) TR No. CIT/18/2003,
volts and discharging back to 11 volts. If the battery is
Dr Jiansheng Huang June 22-26, 2003 Las Vegas USA
20 International Journal of Electrical Systems and Control (IJESC)

[5] Lune, C., Foroozan, S., Brewer, J., and Jackson, L., Conference on EMI and EMC, INCEMIC-2008,
1994, Adiabatic Charging of Nickel-Hydrogen Bangalore, [81-86].
Batteries, Proceedings, 27th NASA Aerospace [8] Muhammand Rashid, Power Electronics Circuits
Battery Workshop, Marshall Space Flight Center, Devices and Applications Third Edition, 2004.
Huntsville, AL, pp. 581-598. [9] Power Electronics by P.C.Sen, Tata McGraw-Hill Edition.
[6] Niagara Mohawk Deficiency Report 1-96-2575, UPS [10] Power Electronics by Cyril W. Lander 3 rd Edition,
F2 Fuse Actuations, 2/20/-1996. McGraw Hill Ed.
[7] Santhosh, Sandeep, Dr. M.L.SudheerDetection [11] Power Electronics by B.R.Gupta, V. Singhal 4th Ed.
and Estimation of Voltage Disturbances using Wavelet [12] Power Electronics Converter, Applications and Design
Transforms, Proceedings of the 10th International by Mohan, Undeland, Robbins.

Vous aimerez peut-être aussi