Professional Documents
Culture Documents
net/publication/325578395
CITATIONS READS
12 834
3 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Adalberto Ospino on 05 June 2018.
Barranquilla, Colombia. er that incorporates a driver circuit to control the turning on and off of
the Mosfet transistor was designed. The controller was evaluated in
*E-mails: carlosarturo.ing@gmail. a PV system consisting of a 65 W PV module and a 12 V/55Ah bat-
com, rcmorex19@gmail.com,
tery. The results demonstrate the superiority of the fuzzy controller
aospino8@cuc.edu.co
compared to the traditional P&O algorithm, in terms of efficiency and
Received for publication February oscillations around the operating point.
28, 2018.
Keywords
Arduino Mega, MPPT controller, fuzzy logic, dc–dc converter,
photovoltaic module.
Renewable energies can be obtained from renew- the performance of PV installations, maximum power
able resources such as sunlight, wind, geothermal point tracking (MPPT) controllers (Lay-Ekuakille et al.,
heat, rain, waves, living plants, and animal materials. 2008; Ramchandani et al., 2012; Selvan et al., 2016;
This type of energy is considered renewable because Karami et al., 2017; Mohapatra et al., 2017) are used;
it comes from resources capable of regeneration by which are electronic devices that regulate the charge
natural means. Their main advantage is that they can of the batteries by controlling the point at which the
reduce the negative environmental impact generated solar modules produce the greatest amount of elec-
by conventional sources such as oil, gas, and coal. trical energy. These devices make a balance between
One of the main sources of renewable energy is voltage and current in order that the PV modules
the photovoltaic (PV) energy, which is based on the operate at the maximum possible power regardless
capture of the energy that the sun emits in the form of the variations in the climatic conditions. They are
of electromagnetic waves to transform it into elec- composed of a control algorithm and a dc–dc con-
trical energy using PV modules. Since its inception, verter that functions as a regulator of the charge that
the main application of this type of energy focused is supplied to the battery (Robles and Villa, 2011;
on supplying electricity in non-interconnected are- Yaden et al., 2013; Filippini et al., 2015).
as where the implementation of conventional electric For the implementation of MPPT controllers, dif-
power was not profitable. Over the years, its use has ferent classical algorithms have been used, among
been increasing until nowadays PV installations with which the following stand out: perturb and observe
grid connection are carried out (Muñoz et al., 2014). (P&O) (Bianconi et al., 2013; Ahmed and Salam, 2015;
The output power of a PV module varies depend- Alik and Jusoh, 2017; Haque and Zaheeruddin, 2017;
ing on environmental variables such as solar irradi- Kota and Bhukya, 2017), incremental conductance
ance and operating temperature (Visconti et al., 2016), (Sivakumar et al., 2015; Loukriz et al., 2016), con-
affecting the maximum power point (MPP); which is stant voltage (Huang and Hsu, 2016) and shortcircuit
a working point of the PV module where the power (Bounechba et al., 2016; Danandeh and Mousavi,
delivered to the load is maximized. In order to improve 2018). With these methods the maximum output power
© 2018 Authors. This work is licensed under the Creative Commons Attribution- 1
NonCommercial-NoDerivs 4.0 License https://creativecommons.org/licenses/by-nc-
nd/4.0/
Implementation of a cost-effective fuzzy MPPT controller on the Arduino board
Current Current
is not guaranteed, there are power losses and oscil- Sensor
Mosfet Inductor
Sensor
2
INTERNATIONAL JOURNAL ON SMART SENSING AND INTELLIGENT SYSTEMS
IRF540N L
sensor, based on the Hall effect, which delivers a
voltage signal proportional to the measured current.
Due to the characteristics of the PV system that was
PWM
implemented in this research (65 W PV module and PV
Signal
SP10100C C
Module
12 V battery), the 20 A sensor (ACS712ELCTR-20A-T)
with a variable output between 0 and 5 V with a sen-
sitivity of 100 mV was used. Figure 2(a) shows the
current sensor used. Figure 3: dc–dc converter.
Voltage regulator
To measure the voltage of the PV module and the from the PV module operating at a solar irradiance of
battery, the voltage regulator FZ0430 was used, 200 W/m2 and a temperature of 25°C (Robles Algarín
which is a voltage divider formed by two resistors et al., 2017).
of 75 and 30 kΩ that allow it to reduce the voltage
measured in a factor of 0.2. In this way, a maximum Vo
voltage of 25 V can be measured for a 5 V proces- Vo 1
Vin
sor. On an Arduino powered with 5 V that incorpo- L min 347.19H.(1)
rates a 10-bit ADC, as is the case of this work, the 2 i0 crit 0.3 fs
resolution is 4.88 mV; but using the voltage regulator
the resolution is 24.21 mV. In Figure 2(b) the regula- To implement the inductor, a ferrite toroid was used,
tor FZ0430 can be observed. which was extracted from a recycled circuit board.
The toroid has an external diameter of De = 25 mm,
DC–DC converter internal diameter Di = 15 mm, height H = 14 mm and
relative permeability Ur = 4480. A 20 awg wire was
For the dc–dc converter, the Buck topology was cho- used, which supports a current of 11 A and a fre-
sen in order to guarantee a lower output voltage than quency of 27 kHz. The number of turns N of the
the input voltage, which is suitable for the PV system inductor was calculated according to equation (2)
used in this work: PV module of 65 W, 17.5 V, 3.71 (Tacca, 2009), for an inductor L = 416.6 µH that was
A and load of 12 V. The converter was designed to selected at 20% higher than the minimum value ob-
operate in continuous conduction mode, ensuring tained in equation (1):
that the current in the inductor does not reach zero
during the switching cycle. Figure 3 shows the dia-
L
gram of the dc–dc converter used. N 8.15.(2)
For the design of the inductor, equation (1) was De
0.0002 U r H Ln
used, with output voltage Vo = 12 V, input voltage Di
Vin = 16.08 V, critical output current io(crit) = 0.7308 A,
ripple factor of 30% and sampling frequency With L = 416.6 µH, a new value of io(crit) = 0.6099 A is
fs = 20 KHz. The values of critical output current and obtained. In this way, the ripple in the inductor cur-
input voltage correspond to the values obtained rent is shown in equation (3) (Robles Algarín et al.,
2017):
3
Implementation of a cost-effective fuzzy MPPT controller on the Arduino board
4
INTERNATIONAL JOURNAL ON SMART SENSING AND INTELLIGENT SYSTEMS
Start
1k
100k
LM339
5V Analog-Digital Conversion of
22V LM358 Voltage V(k) and Current I(k)
47µF
¿AD
13k Conversion
Ready? No
Si
voltage follower, while the LM339 was configured as a Mamdani Inference System
voltage comparator with a reference voltage of 2.5 V. In
Figure 6 the coupling circuit is shown. Defuzzification with Centroid Method
The fuzzy controller was implemented on the Arduino Show the result son the LCD
Mega board (see Table 2), and its function is to adjust
the duty cycle of the dc–dc converter depending on
the variations in the operating temperature and solar Figure 7: Flowchart of the fuzzy
irradiance; in order to track the MPP of the PV module. controller implemented on the Arduino
Figure 7 shows the flowchart that represents Mega board.
the fuzzy algorithm that was implemented on the
Arduino Mega board. A Mamdani fuzzy logic con- allows knowing the direction of movement of the
troller with the centroid defuzzification method was MPP. Equations (6) and (7) show the definition used
implemented. for the inputs E(k) and CE(k) with sampling times k:
The fuzzy controller has two inputs that corre-
spond to the error E(k) and the change of error CE(k), P k P k 1 P,
and an output that corresponds to the increment E k (6)
V k V k 1 V
in the duty cycle of the dc–dc converter. E(k) is the
slope of the P–V curve of the PV module and allows
us to establish the location of the MPP; while CE(k) CE k E k E k 1 E.(7)
5
Implementation of a cost-effective fuzzy MPPT controller on the Arduino board
A
1
VL L N H VH
B
1
VL L N H VH Table 3. Fuzzy associative matrix.
Degree of Membership
Degree of Membership
0.5 0.5
Very Very
E(k)/ΔE(k) Low Neutral High
0
-60 -50 -40 -30 -20 -10 0 10
0
-10 -8 -6 -4 -2 0 2 4 6 8 10 Low High
Input Variable: E Input Variable: ΔE
VL L N H VH 60 MPP
1
50
Degree of Membership
Power (W)
40
0.5 30
20
10
0
-0.01 -0.008 -0.006 -0.004 -0.002 0 0.002 0.004 0.006 0.008 0.01 0 5 10 15 20
Output Variable: ∆D Voltage (V)
Figure 9: Membership functions for the Figure 10: Movement of the MPP in the
ΔD(k) output. P–V curve of the PV module.
6
INTERNATIONAL JOURNAL ON SMART SENSING AND INTELLIGENT SYSTEMS
Start
Analog-Digital Conversion of
Voltage V(k) and CurrentI(k)
No Si
∆P>0
Si No No Si
ΔV>0 ∆V>0
V(k-1)=V(k)
P(k-1)=P(k)
7
Implementation of a cost-effective fuzzy MPPT controller on the Arduino board
60
40 Fuzzy
P&O
35 50
40
25
20
30
15
10 20
5
Fuzzy
10
0 P&O
-5 0
0 200 400 600 800 1000 1200 1400 1600 1800 0 200 400 600 800 1000 1200 1400 1600 1800
Samples (k) Samples (k)
Figure 15: Power delivered to the Figure 17: Power obtained from the PV
battery by fuzzy and P&O controllers. module.
measured manually during different instants of times presented in Figure 16 does not show the consump-
using the SM296 digital solar BTU power meter (Dr tion of the controller circuit. The MPPT controller (sen-
Meter Company Limited, Kaohsiung, China). sors, dc–dc converter, driver circuit, coupling circuit,
Figures 15 and 16 show the power and voltage graphic LCD and Arduino) had a maximum consump-
delivered to the battery by the fuzzy and P&O con- tion of 3 W during the tests carried out.
trollers. These results demonstrate the high efficiency Finally, Figure 19 shows the results obtained in the
of the fuzzy controller in relation to the P&O control, duty cycle signal for the two controllers, in which the
exhibiting high power generation and minimizing os- stability presented by the duty cycle of the fuzzy con-
cillations in different environmental conditions. The troller is highlighted.
P&O presents power losses between 3.3 and 7.7 W in In this part it is important to highlight that the re-
relation to fuzzy control; with the worst scenario be- sults obtained during the implementation of the fuzzy
tween samples 845 and 874 with oscillations of up to controller are coherent with the results presented in
24.4 W. (Robles Algarín et al., 2017), during the first stage of
Figures 17 and 18 show the results obtained in this investigation, that focused on the design and
relation to the power and current obtained from the modeling of the fuzzy controller in Matlab. However, it
PV module. These results continue to prove that the should be mentioned that during the implementation
efficiency of the fuzzy controller is higher than that of this work, it was necessary to adjust the ranges of
obtained with the P&O control. In addition, compared the triangular membership functions of the fuzzy con-
to the results obtained in Figure 16, as expected, the troller, which allowed to improve the efficiency and
power extracted from the PV module is greater than stability of the PV system in terms of the oscillations
the power delivered to the battery, since the power around the MPP.
17
Fuzzy
16.5 P&O 3.5
16
3.0
Current in the PV Module (A)
15.5
Voltage in the Battery (V)
2.5
15
14.5 2.0
14
1.5
13.5
1
13
0.5 Fuzzy
12.5
P&O
12 0
0 200 400 600 800 1000 1200 1400 1600 1800 0 200 400 600 800 1000 1200 1400 1600 1800
Samples (k) Samples (k)
Figure 16: Battery voltage for fuzzy and Figure 18: Current obtained from the
P&O controllers. PV module.
8
INTERNATIONAL JOURNAL ON SMART SENSING AND INTELLIGENT SYSTEMS
100
Atawi, I.E. and Kassem, A.M. 2017. Optimal control
90
based on maximum power point tracking (MPPT) of
an autonomous hybrid photovoltaic/storage system in
80 micro grid applications. Energies 10(15): 1–14.
Duty Cycle (%)
9
Implementation of a cost-effective fuzzy MPPT controller on the Arduino board
Jin, Y., Hou, W., Li, G. and Chen, X. 2017. A Glow- 2016. A photovoltaic-based SEPIC converter with
worm Swarm optimization-based maximum power Dual-Fuzzy maximum power point tracking for optimal
point tracking for photovoltaic/thermal systems under buck and boost operations. Energies 9(8): 1–17.
non-uniform solar irradiation and temperature distribu- Ramchandani, V., Pamarthi, K. and Chowdhury,
tion. Energies 10(4): 1–13. S.R. 2012. Comparative study of maximum power
Karami, N., Moubayed, N. and Outbib, R. 2017. point tracking using Linear Kalman Filter & Unscented
General review and classification of different MPPT Kalman Filter for solar photovoltaic array on field pro-
techniques. Renewable and Sustainable Energy grammable gate array. International Journal on Smart
Reviews 68(1): 1–18. Sensing and Intelligent Systems 5(3): 701–16.
Kota, V.R. and Bhukya, M.N. 2017. A novel linear Robles Algarín, C., Callejas Cabarcas, J. and Polo
tangents based P&O scheme for MPPT of a PV system. Llanos, A. 2017. Low-cost fuzzy logic control for green-
Renewable and Sustainable Energy Reviews 71: 257–67. house environments with web monitoring. Electronics
Lay-Ekuakille, A., Vendramin, G., Fedele, A., 6(4): 1–12.
Vasanelli, L. and Trotta, A. 2008. PV maximum power Robles Algarín, C., Sevilla Hernández, D. and
point tracking through pyranometric sensor: modelling Restrepo Leal, D. 2018. A low-cost maximum power
and characterization. International Journal on Smart point tracking system based on neural network inverse
Sensing and Intelligent Systems 1(3): 659–78. model controller. Electronics 7(1): 1–17.
Loukriz, A., Haddadi, M. and Messalti, S. 2016. Robles Algarín, C., Tabard Giraldo, J. and Rodríguez
Simulation and experimental design of a new advanced Álvarez, O. 2017. Fuzzy logic based MPPT controller
variable step size incremental conductance MPPT al- for a PV system. Energies 10(12): 1–18.
gorithm for PV systems. ISA Transactions 62: 30–38. Robles, C. and Villa, G., 2011. Control del punto de
Ma, S., Chen, M., Wu, J., Huo, W. and Huang, L. 2016. máxima potencia de un panel solar fotovoltaico, utili-
Augmented nonlinear controller for maximum power-point zando lógica difusa. Telematique 10(2): 54–72.
tracking with artificial neural network in grid-connected Selvan, S. and Nair, P., Umayal. 2016. A review on
photovoltaic systems. Energies 9(12): 1–24. photo voltaic MPPT algorithms. International Journal of
Messaltia, S., Harrag, A. and Loukriz, A. 2017. A new Electrical and Computer Engineering 6(2): 567–82.
variable step size neural networks MPPT controller: re- Sivakumar, P., Kader, A.A., Kaliavaradhan, Y. and
view, simulation and hardware implementation. Renew- Arutchelvi, M. 2015. Analysis and enhancement of PV
able and Sustainable Energy Reviews 68(1): 221–33. efficiency with incremental conductance MPPT tech-
Mohapatra, A., Nayak, B., Das, P. and Mohanty, nique under non-linear loading conditions. Renewable
K.B. 2017. A review on MPPT techniques of PV system Energy 81: 543–50.
under partial shading condition. Renewable and Sus- Tacca, H.E. 2009. Ferrite toroidal inductor design.
tainable Energy Reviews 80: 854–67. IEEE Latin America Transactions 7(6): 630–35.
Muñoz, Y., Zafra, D., Acevedo, V. and Ospino, A. Titri, S., Larbes, C., Toumi, K.Y. and Benatchba, K.
2014. Analysis of energy production with different 2017. A new MPPT controller based on the Ant colony
photovoltaic technologies in the Colombian geogra- optimization algorithm for photovoltaic systems under
phy. In IOP Conference Series: Materials Science and partial shading conditions. Applied Soft Computing 58:
Engineering 59(1): 1–9. 465–79.
Muthuramalingam, M. and Manoharan, P.S. 2014. Visconti, P., Lay-Ekuakille, A., Primiceri, P. and
Comparative analysis of distributed MPPT controllers Cavalera, G. 2016. Wireless energy monitoring system
for partially shaded stand alone photovoltaic systems. of photovoltaic plants with smart anti-theft solution in-
Energy Conversion and Management 86: 286–99. tegrated with control unit of household electrical con-
Na, W., Chen, P. and Kim, J. 2017. An improvement sumption. International Journal on Smart Sensing and
of a Fuzzy Logic-Controlled maximum power point Intelligent Systems 9(2): 681–708.
tracking algorithm for photovoltic applications. Applied Yaden, M.F., Melhaoui, M., Gaamouche, R., Hirech,
Science 7(4): 1–17. K., Baghaz, E. and Kassmi, K. 2013. Photovoltaic sys-
Nabipour, M., Razaz, M., Seifossadat, S.G. and tem equipped with digital command control and acqui-
Mortazavi, S.S. 2017. A new MPPT scheme based on sition. Electronics 2(3): 192–211.
a novel fuzzy approach. Renewable and Sustainable Yilmaz, U., Kircay, A. and Borekci, S. 2018. PV
Energy Reviews 74: 1147–69. system fuzzy logic MPPT method and PI control as a
Ramalu, T., Mohd Radzi, M.A., Mohd Zainuri, charge controller. Renewable and Sustainable Energy
M.A.A., Abdul Wahab, N.I. and Abdul Rahman, R.Z. Reviews 81(1): 994–1001.
10