<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>A Fuzzy Model for Controlling an on-grid LED Lamp with a Battery Bank, Powered by Renewable Energy</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Maciej Neugebauer</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Krzysztof Nalepa</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Paweł Pietkiewicz</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Wojciech Miąskowski</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Piotr Sołowiej</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Faculty of Technical Sciences, University of Warmia and Mazury in Olsztyn</institution>
          ,
          <country country="PL">Poland</country>
        </aff>
      </contrib-group>
      <fpage>401</fpage>
      <lpage>407</lpage>
      <abstract>
        <p>A model for controlling power and energy flow in an outdoor LED lamp was developed. The lamp was powered by various sources: the power grid, battery bank, photovoltaic panels and a wind turbine. A set of fuzzy control rules was developed based on the defined direction of power flow. The input variables in the control system were battery charge levels, time of day (night), insolation and wind (power generated by a wind turbine). The direction of power (electricity) flow was the output variable. Linguistic variables (distribution of terms) and defuzzification methods were adapted for selected variables. In the produced fuzzy model, system response spaces were verified based on the operation of the control system and the adopted assumption. The resulting fuzzy model adequately meets assumptions and can be used to control power flow in an outdoor LED lamp.</p>
      </abstract>
      <kwd-group>
        <kwd>fuzzy logic</kwd>
        <kwd>outdoor LED lamp</kwd>
        <kwd>energy storage</kwd>
        <kwd>on-grid systems</kwd>
        <kwd>control system</kwd>
        <kwd>renewable energy sources</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>•
•
•
the system/model can be described with the use of natural language
expressions based on “expert” knowledge, and the relationships between
input and output data can be analyzed to facilitate understanding of the
model;
they can be used to develop hybrid control systems (fuzzy and
conventional);
similarly to artificial neural networks, they are resistant to incomplete
(imprecise) data sets and can be used for parallel computing.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Basic assumptions of power flow control</title>
      <p>A fuzzy model of a power flow control system in an outdoor LED lamp was
developed (Fig. 1). The control system was designed based on the following
assumptions:
- the LED lamp operates at night (when it is dark);
- the lamp is powered by a wind turbine when wind conditions are adequate;
- the lamp is powered by the battery bank when wind conditions are not adequate
and when the battery bank is charged;
- the lamp is powered by the grid when wind conditions are not adequate and
when the battery bank is empty;
- the lamp does not operate during the day;
- the battery bank is charged when it is empty and when power is available from</p>
      <p>PV panels or the wind turbine;
- when the batter is charged and power is available from PV panels or the wind
turbine, excess electricity is fed to the grid.</p>
      <p>The input variables in the control system are: battery charge level, time of day
(night), insolation and wind conditions (power generated by the wind turbine). The
output variable is the direction of power (electricity) flow to the battery bank, the
grid or the LED lamp. Information about the time of day and insolation is provided
by a solar radiation sensor, information about battery charge levels – by the charge
controller, and information about the output of the wind turbine – by a sensor in the
wind turbine generator (Fig. 1).</p>
    </sec>
    <sec id="sec-3">
      <title>3 Fuzzy model</title>
      <p>A fuzzy model was developed based on the described assumptions in the
LabVIEW program. The distribution of input variable “Wind” is presented in Figure
2.</p>
      <p>Twenty-four inference rules were developed (connective: AND (Minimum);
implication: Minimum). Initially, there were 36 rules (4 input variables, 2 two-term
variables and 2 three-term variables), but since “insolation” coupled with “time of
day” can only assume “low” values, 2x6 rules were eliminated. Selected inference
rules are presented in Table 1.</p>
      <p>
        The defuzzification method was the Center of Maximum. The value of the output
variable was calculated based on the below formula (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ):
where:
y – value of the output variable;
yn – input value of function “n”
µn – membership value of function “n” for yn – do
The modeled (control system) response spaces are presented in Figures 3 and 4.
      </p>
      <p>Fig 4. Response of the control system – battery charging depending on insolation and battery
charge level.</p>
      <p>A detailed analysis of the above figure drawings indicates that at night (when time
of day ranges from 0 to 50) when the battery bank is empty (0 to 30/70), the system
is powered by the grid (Fig. 3), and when the battery charge level is low and
insolation is high, the battery bank is charged (Fig. 4). An analysis of response spaces
indicates that the model well fits the data.</p>
    </sec>
    <sec id="sec-4">
      <title>4 Conclusions</title>
      <p>The proposed control system has the following advantages:
• the operation of the power flow control system can be described with linguistic
expressions (input and output variable terms) regardless of the hardware
platform, which facilitates the development of inference rules;
• the operation of the power flow control system can be verified based on
response space diagrams without the need to implement the algorithm in a real
object;
• the power flow control system can be easily modified by introducing changes to
the fuzzy model without modifying the physical system (sensors and switches
in the power controller, etc.). The modifications can be implemented by
entering the new set of fuzzy logic rules into the controller.</p>
      <p>The proposed control system operates in accordance with the adopted
assumptions.</p>
      <p>Acknowledgments. The presented works were carried out within the framework of
the project: Functional models and studies of the construction of a quasi-autonomous
lighting or signaling point, (Decision of the Minister of Science and Higher
Education No 5119/B/T02/2011/40 from the 4th May 2011)</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Cao</surname>
            ,
            <given-names>S.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rees</surname>
            ,
            <given-names>N.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Feng</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2001</year>
          )
          <article-title>Universal fuzzy controllers for a class of nonlinear systems</article-title>
          .
          <source>Fuzzy Sets and Systems</source>
          ,
          <volume>122</volume>
          , p.
          <fpage>117</fpage>
          -
          <lpage>123</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Sarimveis</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bafas</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          (
          <year>2003</year>
          )
          <article-title>Fuzzy model predictive control of non-linear processes using genetic algorithms</article-title>
          .
          <source>Fuzzy Sets and Systems</source>
          ,
          <volume>139</volume>
          , p.
          <fpage>59</fpage>
          -
          <lpage>80</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Liang</surname>
            ,
            <given-names>Z.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>H.X.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pardalos</surname>
            ,
            <given-names>P.M.</given-names>
          </string-name>
          (
          <year>2001</year>
          )
          <article-title>Optimality Conditions and Duality for a Class of Nonlinear Fractional Programming Problems</article-title>
          .
          <source>Journal of Optimization Theory and Applications</source>
          ,
          <volume>110</volume>
          (
          <issue>3</issue>
          ), p.
          <fpage>611</fpage>
          -
          <lpage>619</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Shi</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          , (
          <year>2017</year>
          )
          <article-title>Observer-based adaptive fuzzy tracking control of nonlinear systems with time delay and input saturation</article-title>
          .
          <source>Fuzzy Sets and Systems</source>
          ,
          <volume>216</volume>
          , p.
          <fpage>49</fpage>
          -
          <lpage>68</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Baraforoush</surname>
            ,
            <given-names>J.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McDonald</surname>
            ,
            <given-names>T.D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Desai</surname>
            ,
            <given-names>T.A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Widrig</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bayer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brown</surname>
            ,
            <given-names>M.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cummings</surname>
            ,
            <given-names>L.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leonard</surname>
            ,
            <given-names>K.C.</given-names>
          </string-name>
          (
          <year>2016</year>
          )
          <article-title>Intelligent Scanning Electrochemical Microscopy Tip and Substrate Control Utilizing Fuzzy Logic</article-title>
          .
          <source>Electrochimica Acta</source>
          ,
          <volume>190</volume>
          , p.
          <fpage>713</fpage>
          -
          <lpage>719</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Carvajal-Carreno</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cucala</surname>
            <given-names>A.P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fernandez-Cardador</surname>
            <given-names>A</given-names>
          </string-name>
          . (
          <year>2016</year>
          )
          <article-title>Fuzzy train tracking algorithm for the energy efficient operation of CBTC equipped metro lines</article-title>
          .
          <source>Engineering Applications of Artificial Intelligebnce</source>
          ,
          <volume>53</volume>
          , p.
          <fpage>19</fpage>
          -
          <lpage>31</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Dadone</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dambrosio</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          (
          <year>2003</year>
          )
          <article-title>Estimator based adaptive fuzzy logic control technique for a wind turbine-generator system</article-title>
          .
          <source>Energy Conversion and Management</source>
          ,
          <volume>44</volume>
          , p.
          <fpage>135</fpage>
          -
          <lpage>153</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Jerbi</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lotfi</surname>
            <given-names>Krichen</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Ouali</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          (
          <year>2009</year>
          )
          <article-title>A fuzzy logic supervisor for active and reactive power control of a variable speed wind energy conversion system associated to a flywheel storage system</article-title>
          .
          <source>Electric Power Systems Research</source>
          ,
          <volume>79</volume>
          , p.
          <fpage>919</fpage>
          -
          <lpage>925</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Krichen</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Francois</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ouali</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          (
          <year>2008</year>
          )
          <article-title>A fuzzy logic supervisor for active and reactive power control of a fixed speed wind energy conversion system</article-title>
          .
          <source>Electric Power Systems Research</source>
          ,
          <volume>78</volume>
          , p.
          <fpage>418</fpage>
          -
          <lpage>424</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Lee</surname>
            ,
            <given-names>Y-H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kopp</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          (
          <year>2001</year>
          )
          <article-title>Application of fuzzy control for a hydraulic forging machine</article-title>
          .
          <source>Fuzzy Sets and Systems</source>
          ,
          <volume>118</volume>
          , p.
          <fpage>99</fpage>
          -
          <lpage>108</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Chan</surname>
            ,
            <given-names>W.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>H.G.</given-names>
          </string-name>
          (
          <year>2003</year>
          )
          <article-title>Artificial intelligence for management and control of pollution minimization and mitigation process</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>16</volume>
          , p.
          <fpage>75</fpage>
          -
          <lpage>90</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Huang</surname>
            ,
            <given-names>G.H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chan</surname>
            ,
            <given-names>C.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Geng</surname>
            ,
            <given-names>L.Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xia</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          (
          <year>2003</year>
          )
          <article-title>Development of an expert system for the remediation of petroleum-contaminated sites</article-title>
          .
          <source>Environmental Modeling and Assessment</source>
          ,
          <volume>8</volume>
          , p.
          <fpage>323</fpage>
          -
          <lpage>334</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Zhang</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gao</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>T-B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zheng</surname>
          </string-name>
          ,
          <string-name>
            <surname>G-D.</surname>
          </string-name>
          ,
          <string-name>
            <surname>Chen</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          , Ma,
          <string-name>
            <given-names>C.</given-names>
            ,
            <surname>Guo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S-L.</given-names>
            ,
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <surname>W.</surname>
          </string-name>
          (
          <year>2010</year>
          )
          <article-title>Simulation of substrate degradation in composting of sewage sludge</article-title>
          .
          <source>Waste Management</source>
          ,
          <volume>30</volume>
          , p.
          <fpage>1931</fpage>
          -
          <lpage>1938</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>14. Neugebauer</mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Giusti</surname>
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marsili-Libelii</surname>
            <given-names>S.</given-names>
          </string-name>
          (
          <year>2010</year>
          )
          <article-title>Fuzzy modelling of the composting process</article-title>
          .
          <source>Environmental Modelling &amp; Software</source>
          ,
          <volume>25</volume>
          (
          <issue>5</issue>
          ), p.
          <fpage>641</fpage>
          -
          <lpage>647</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Vie</surname>
            ,
            <given-names>Q.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ni</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Su</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          (
          <year>2017</year>
          )
          <article-title>A prediction model of ammonia emission from a fattening pig room based on the indoor concentration using adaptive neuro fuzzy inference system</article-title>
          .
          <source>Journal of Hazardous Materials</source>
          ,
          <volume>325</volume>
          , p.
          <fpage>301</fpage>
          -
          <lpage>309</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>