Ouariachi 2017
Ouariachi 2017
Ouariachi 2017
Abstract—This article aims to develop the control circuit of a load by means of a DC/AC converter (Inverter) which is
single-phase inverter following our previous studies on the MPPT necessary to operate the electrical and electronic devices
control and photovoltaic systems, this inverter produces a pure smoothly. Most inverters commercially are in fact square wave
sine wave with an output voltage that has the same amplitude inverters or quasi sinusoidal inverters.
and frequency as Network voltage. A microcontroller, based on
advanced technology to generate a sinusoid with fewer
The electronic devices managed by these inverters will be
harmonics, less cost and a simpler design. The technique used is damaged due to the content of the harmonics [4,5]. The
the sinusoidal pulse width modulation generated by the available sinusoidal wave inverters are too expensive and the
ATmega32 microcontroller. The designed inverter is tested on output is not sinusoidal, but the sine wave generation is
various AC loads and is primarily focused on applications such extremely important in power electronics. To obtain a pure
as an AC lamp. Proposed model of the inverter can improve the sinusoidal wave, the MLI switching technique is applied. This
waveform of the inverter and control the dead time. The finished method involves some type of switching used in DC-AC
design is simulated in Proteus to ensure output results that is inverter bridges [6,7]. MLI is a powerful technique. It is mainly
virtually verified. used in power electronics applications such as motor driver,
Keywords: ATmega32 Microcontroller, Analog to Digital and renewable energy system [8]. The switching techniques
Converter (DC-AC), Inverter, MPPT Control. MLI are characterized by pulses of constant amplitude
A different cycle of use for each period. The most common
method for generating this signal is to compare a sinusoidal
I. INTRODUCTION with a triangular waveform [9,10,12].
Due to the loss of emergency fuels worldwide, the The aim of this work is to replace the conventional method
increasing demand for electric power worldwide and the poor by using the ATMEGA32 microcontroller (control interface).
environmental impact of fuels, the need for new or unused The microcontroller is simpler and more flexible to change
sources of energy is becoming of interest to many governments the real-time control algorithms without further modification in
And companies. This energy is called photovoltaic energy [1]. a hardware with its reduced cost and reduces the complexity of
Currently, photovoltaic electrical energy is produced by panels the control circuit for the signal phase inverter bridge [11]. The
and PV systems [2]. Today, the world needs an increase in application of this inverter must be either for a stand-alone
electricity. The main reasons for the demand for increased connection or for a connection to the network from a direct
energy are population, economic growth and rapid depletion of supply of photovoltaic cells. The microcontroller constructed
fossils based on energy reserve and rapid growth in energy the dead time control circuit
demand. Then he has to look for another source of power
generation. One of these sources is a renewable energy that II. PROBLEM STATEMENT
may not harm the environment [3]. The need for the power 1- The inverter is one of the devices for power conversion
inverter is required to operate the electrical and electronic that is widely used in the world to convert the DC input voltage
devices smoothly. Most inverters commercially are in fact into alternating current output voltage. The output voltage
square wave inverters or quasi sinusoidal inverters waveform of the ideal inverters should be sinusoidal. However,
In this context, we have studied, in previous studies [1,2], the waveform of the practical inverter is non-sinusoidal and
the design, construction and optimization of a PV system contains harmonics [12,13]. The electronic devices, managed
equipped with a Boost DC/DC converter, an analog MPPT by this inverter, will be damaged by the content of the
control And a malfunction and reconvergence detection circuit harmonic. The content of the harmonics in the output of the
(CDCS) [1,2] to the PV power point (PPM) of the PV panel inverter depends on the number of pulses per cycle.
without restarting the PV system. We have concluded a very [4,14,15,16,17,19] Many researchers have studied that the
satisfactory operation and the possibility of using the system wave of the output signal is distorted.
realized in PV installations. In this paper, we present the results 2- By switching the loss problem, the number of pulses per
obtained in the case of the adaptation of the PV panels to the cycle is also affected. The use of high switching technology
239
will contribute to high power losses. The following factor must
be considered in order to meet the following requirements:
¾ Cost of equipment
¾ The size of the filter
¾ The loss of power in the switching of the element
3- The most important problem to consider is the time-out
control. The dead time period should be appropriate to avoid
the problem of damaging the switch and the harmonic problem.
If the dead time is short, it will cause damage to the switches
and if it is long it will cause an increase in the total harmonic
distortion, as discussed in [8, 9].
III. THE STRUCTURE OF THE SYSTEM AND THE Fig. 2. The H-bridge single-phase inverter.
CHARACTERIZATION OF THE PROPOSED DESIGN.
Figure 1 shows the basic block diagram of the proposed A. The ATmega32 microcontroller
system. The range of the inverter circuit is to obtain a desired
The ATmega32 microcontroller is used to generate the
output voltage of 220 VAC and a frequency of 50 Hz. The
sinusoidal PWM signals required to control and switch the H-
contents of the system designed are as follows:
bridge MOSFET. The basic circuit of this system is an
a) Module supplying the inverter (Photovoltaic Panel
ATmega32 microcontroller which is developed to generate a
or Battery) [20].
sinusoidal PWM with the dead time controller.
b) The circuit of the ATMEGA32 microcontroller
Figure 3 shows the timing diagram of the dead time, dead
and the programming software.
time control is useful for reducing cost and components. The
c) Testing the inverter circuit. extremely important issue to consider is the time-out control.
d) Blocks to dirver.
e) The filter circuit.
f) The load or the User.
The complete H bridge inverter circuit is used to convert a
DC voltage into a sinusoidal AC voltage at a desired voltage
and output frequency.
240
¾ Timer 1B: an internal interruption or a counter resistance of 77 mΩ, which reduces power dissipation and
will count up to the values stored in table 1 increases efficiency.
successively,
¾ Timer 0: an internal interrupt or a counter will
count to the values stored in table 2 successively.
To have a frequency of 50Hz, we need a delay of 20ms in
the period, but since we have two parts two half period, the
delay we used is 10ms.
C. Driver IR2111
To control the MOSFET grid depends on two basic
categories, a low and a high, configured in the complete H-
circuit. The upper side of the MOSFETs (S1, S2) can float
between ground (negative terminal) and high voltage (positive
Fig. 6. Schematic of the driver circuits
terminal), the low side of the MOSFET (S3, S4) is connected
between the power source and ground [ 9], the IR2111, has an
input and output stage and a power supply. This driver is an B. Simulation Results of the Complete System
optically isolated driver. The gate control circuit is shown in Figure. 7 shows the results of the simulation of the
the Figure. 4. operation of the four control signals of the H bridge inverter.
The ATMEGA32 microcontroller is used to generate the PWM
signals required to control and switch the H-bridge MOSFET.
241
C. Experimental Procedures
Four types of PV panels, and the bench of completely
measurements that were the subject of our study are shown in
Figures 8 and 9. [1-2, 19]
The DC-DC Boost converter, the analog MLI control are
sized, designed and realized during this work are shown in
Figure 10. [22]
Fig. 10. Photos taken of the boards: A: Boost DC-DC converter, B: Analogue
MLI control
D. Experimental Results Operation of single-phase inverter
Figurs. 11 and 12 show that the proposed hardware
configuration of the operation inverter circuit for obtaining a
sinusoidal AC output voltage with a nominal voltage amplitude
Fig. 13. ATMEGA32 Microcontroller Programmer
of 220 V AC and a frequency of 50 Hz. These values agree
with the voltage and The grid frequency, the ATMEGA32
The operation of the circuit is as follows: The driver
microcontroller operates at a clock speed of 20 MHz and the IR2111of the MOSFET is used to apply the switching pulses
sinusoidal PWM control signal is set to 16 KHz. The
coming from the ATMEGA32 microcontroller to the MOSFET
ATMEGA32 operates with a 5V voltage generated by a linear
IR540 switches. The PWM sinusoidal signals are produced by
voltage regulator LM7805.
the ATMEGA32 microcontroller and used to control the
IRF540 MOSFETs. To generate a sinusoidal pulse width
modulation signal, each half-cycle of sine wave is divided into
2 changes in the PWM signal of a half cycle which takes 10
ms.
Figure 14 shows the simulation and experimental results of
the operation of the four H-bridge inverter control signals, a
four-channel Textonix TDS 3014C digital phosphor 100 MHz-
1.25GS/s digital oscilloscope is used to measure the
experimental results. The ATMEGA32 microcontroller is used
Fig. 11. DC-AC Inverter Monitoring Equipment Bench
242
to generate the PWM signals required to control and switch the
H-bridge MOSFET. A B
The two-level PWM operation of the H-bridge inverter will
have the high sides of the switching circuit at the sinusoidal
PWM control frequency at a half cycle which takes 10 ms the
different is only PWM1 is the main signal PWM3 per half-
Cycle and low sides switching to the 50 Hz sine wave low
frequency at a half cycle which takes 10ms also the PWM2
Fig. 17. Output of an inverter without filter (A: simulation result, B
control signal driving PWM4 per half cycle or 180 degrees of Experimental result).
the phase shifted control signals.
The two signals are then connected to essential
conditioning elements in order to be able to put the MOSFET A B
on the complete bridge. PWM signals going to the MOSFET
(IRF 540N) will switch two diagonals of the complete H-
bridge simultaneously to one of the two halves and the other
two diagonal MOSFETs (IRF 540N) to the other halves.
A B
Fig. 18. Experimental signals during inverter operation (A: load RL, B:
inverter output with RLC filtering)
Fig. 15. The card of the single-phase inverter produced in this work
A B
243
V. CONCLUSION [6] L Hassaine, E Olías, M Haddadi, A Malek, "Asymmetric
SPWM used in inverter grid connected" Revue des Energies
In this work, we analyzed in the simulator and Renouvelables Vol. 10, pp. 421-429, 2007.
experimentally the design and operation of a PV system. This
[7] [M.N Isa, M.I Ahmad, A.Z Murad, M.K Arshad, "FPGA Based
system consists of a photovoltaic generator adapted to the load SPWM Bridge Inverter", American Journal of Applied Sciences,
by a DC-AC converter (inverter) controlled by an ATmega32 Vol. 4, pp. 584-586, 2007.
microcontroller. We analyzed the operation of each block and [8] B Ismil, S Taib, A Saad, M Isa, "development of control circuit
the electrical quantities at the input and output of the DC/AC for single phase inverter using atmel microcontroller" First
converter. The results obtained show: International Conference PEC, p 437-440, November
1- The main task of this work is to develop and improve the 2006,IEEE.
control circuit of a single-phase inverter that has been [9] S.M Islam, G.M sharif, "microcontroller based sinusoidal PWM
implemented using the ATMEGA32 microcontroller. inverter for photovoltaic application" First International
2- The method used to control the inverter switch is the Conference development in renewable energy technology, p 1-4,
PWM technique. This method is superior to other methods December 2009, IEEE.
because it improves the quality of the output waveform. [10] R Senthilkumar, M Singaaravelu, "design of single phase
3-All experimental electrical quantities are in very good inverter using dsPIC30F4013" International Journal Engineering
agreement with those optimal simulated in Proteus. Research & Technology (IJERT), Vol 2, pp. 6500-6506, 2012.
4. The results of the simulation are carried out at the [11] B Ismail, S Taib, M Isa, I Daut, A.M saad, F Fauzy,
Proteus software level and compare the experimental results "Microcontroller Implementation of single phase inverter
with those performed by the LAB module switching strategies" International Conference on Control,
Instrumentation and Mechatronics Engineering, p 104-107, May
5- The tested inverter is charged at different AC loads. 2007.
In perspective, the PV system menu of the DC-AC inverter
[12] A Akkaya, A.A Kulaksiz, "A microcontroller-based stand-alone
controlled by ATmega32 microcontroller realized during this photovoltaic power system for residential appliances" Science
work will be used to improve the operation of inverters, direct, Vol. 78, pp. 419–431, 2004.
inverters chargers and the injection of photovoltaic energy to
[13] S Daher, J Schmid, L.M Fernando, "Multilevel Inverter
the grid. Topologies for Stand-Alone PV Systems" IEE On Industrial
Electronics, VOL. 55, NO. 7, pp. 2703-2711, JULY 2008.
ACKNOWLEDGMENT
[14] M.I Jahmeerbacus, M.K Oolun, M.K.S Oyjaudah, "A Dual-
x Co-operation Morocco-Belgian, CUI -2008-2012. Stage PWM DC to AC Inverter with Reduced Harmonic
Distortion and Switching Losses" Science and Technology-
x Mixte Permanant Maroco-Tunisien research and the
Research Journal,Vol 5, pp 79-91, 2000.
Technology, the project 11 / MT / 38, on 2011-2013,
[15] N.phiratsakun, S.R Bhaganagarapu, K Techakittiroj,
"Implementation of a Singlephase
REFERENCES
[16] Unipolar Inverter Using DSP TMS320F241" AU J T, pp. 191-
[1] M. El Ouariachi, T. Mrabti, M. F. Yaden, B. Tidhaf, El. Chadli, 195, Apr 2005.
F. Bagui, K. Kassmi, «Design and realization of a photovoltaic [17] O Rich, W Chapman, "Three-level PWM DC/AC Inverter Using
system equipped with the analogical and digital MPPT a Microcontroller" necamsid, 2012
command for better exploitation of solar energy» Journal of
[18] H.M Abdar, A Chakraverty, D.H Moore, J.M Murray, Loparo
Materials and Environmental Science J. Mater. Environ. Sci. 2
K.A "Design and Implementation a Specific Grid-Tie Inverter
(S1) (2011) 538-543, ISSN : 2028-2508
for an Agent-based Microgrid", energy tech., p 1-6, 2012, IEEE.
[2] T. Mrabti, M. El Ouariachi, R. Malek, Ka. Kassmi, B. Tidhaf, F.
Bagui, F. Olivié and K. Kassmi “Design, realization and [19] El Hady Baghaz, Mostafa El Ouariachi, Tarik Mrabti, Rachid
Malek, Kamal Kassmi, Belkassem Tidhaf, Farid Bagui and
optimization of a photovoltaic system equipped with analog
Khalil Kassmi «Design, Optimization and Realization of a
maximum power point tracking (MPPT) command and detection
circuit of the dysfunction and convergence the system (CDCS)” Photovoltaic System to the Operation of the Photovoltaic Station
International Journal of the Physical Sciences Vol. 6(35), pp. Realized in Douar Zragta of the rural Oujda Angad Prefecture»,
(ICMCS'12) May 10-12 2012, Tangier, Morocco, ISBN: 978-1-
7865 - 7888, 23 December, 2011
4673-1518-0
[3] D Chauhan, S Agarwal, Suman M.K, "Policies For
[20] S.A Prasad, B.S Kariyappa , R Nagaraj, S.K Thakur, "Micro
Development Of Photovoltaic Technology:A Review"
International Journal of software & hardware research in Controller Based Ac Power Controller", Seientific Research
engineering, Vol. 1, pp. 52-57, December 2013. Vol. 2, pp. 76-81, 2009.
[21] A.F Zaidi, R Muhida, A.M Zaidi, S yaacob, N.H Zaid,
[4] A Mamun A, M Elahi, M Quamruzzaman, M Tomal, "Design
"development of microcontroller-based inverter control circuit
and Implementation of Single Phase Inverter" International
for residential wind generator application" Journal of Science
Journal of Science and Research (IJSR), Vol.2, P 163-167,
february 2013. and technology, Vol 2, No 1, pp. 55-77, 2010.
[5] A Qazalbash, A Amin, A Manan, M Khalid, "design and [22] MF. YADEN, M. El Ouariachi, T. Mrabti, Ka.Kassmi, B.
Tidhaf, El Chadli, K. Kassmi, ‘Design and Realization of a
implementation of microcontroller based PWM technique for
Photovoltaic System Equipped with a Digital MPPT Control’, ,
sine wave inverter" International Conference on power
(ICMCS'11) April 07-09, 2011, - Ouarzazate, Morocco, 978-1-
Engineering Energy and Electrical Drives, , P 163-167, March
2009, IEEE. 61284-732-0/11/$26.00 ©2011 IEEE. MOROCCO.
244