<!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>
      <journal-title-group>
        <journal-title>International Journal of
Hydrogen Energy 77 (2024). doi:10.1016/j.ijhydene.2024.06.030.
[7] A. Leva</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1016/j.ijhydene.2024.06.030</article-id>
      <title-group>
        <article-title>An Ontological Model of Peltier Thermoelement Control based on a Fuzzy Digital Filter and a PID-controller</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Maxim B. Bobyr</string-name>
          <email>maxbobyr@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Natalya Milostnaya</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Artem Aseev</string-name>
          <email>asseef.artem@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Southwest State University of Russia (SWSU)</institution>
          ,
          <addr-line>94, 50 Let Oktyabrya St, Kursk, 305000, Russian Federation</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>2</volume>
      <fpage>28</fpage>
      <lpage>29</lpage>
      <abstract>
        <p>The ontological model of Peltier thermoelement control is presented in the article. It consists of a PID-controller, a fuzzy digital filter and an exponential moving average filter, implemented in software in the microcontroller. The ontological model calculates the voltage value, which is transmitted to the gate of the MOSFET-transistor. The ifeld-efect transistor converts the applied voltage into a drain current signal, and this value is transmitted to the Peltier thermoelement. Voltage is removed from the Peltier thermoelement using thermistor, which is converted into a temperature value and limited from 25°C to 75°C. The technique for converting voltage to temperature is presented in the article. The temperature signal is transmitted to the input of the microcontroller. Also, a user-defined signal is fed to the input of the microcontroller, which must select the appropriate temperature value on the thermocouple. The fuzzy model, depending on the input signal, forms the coeficients of the exponential averaging filter. A limitation of the fuzzy method for calculating the coeficients used in the ontological model of thermoelement control is the use of triangular membership functions to describe the input variables. The experimental results presented in the article showed that when using a combination of a PID-controller, a fuzzy digital filter and an exponential moving average filter, the transient time during Peltier thermoelement control is reduced: overshoot reduced by 2.44%, achieved a 11.25% faster response time, and ensured 4.19% quicker stabilization.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;PID-controller</kwd>
        <kwd>Peltier thermoelement ontology</kwd>
        <kwd>Fuzzy logic</kwd>
        <kwd>Fuzzy digital filter</kwd>
        <kwd>Exponential moving average iflter</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Systems with a PID-controller are often used in temperature control devices: a cutting tool cooling
device [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], a device for regulating the temperature of a climatic chamber [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], a control system for
electromechanical equipment [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], a temperature control system in a greenhouse [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], a controller for the
performance and energy consumption of an industrial air conditioner [5], a control device for the air
conditioning system of a car [6]. However, the PID-controller has two significant drawbacks: a large
jump in the amplitude of the first harmonic of the output control signal (leading to a voltage jump that
clearly accelerates the wear of the elements of the entire system) [7] and a long transient process time
when the control signal goes to the specified values [ 8]. The third drawback of the PID-controller is the
need to select the controlled coeficients Kp, Ki and Kd [ 9]. In one of the studies, this drawback was
solved using a genetic method that allows for automatic selection of the controlled coeficients [ 10]. In
[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], a neuro-fuzzy approach is used to solve the same drawback. In the study [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], scientists abandoned
PID-control in favor of the Tsukamoto method. In this article, it is proposed to use a PID-controller
modified using a combination of a fuzzy digital filter (FDF) and an exponential moving average filter
(EMAF) [11] to control a Peltier thermoelement (PTE). FDF and EMAF allow to reduce the time of
transient processes when controlling a PTE by reducing the jump in the amplitude of the first harmonic
of the output control signal. With this approach, it is enough to set the controlled coeficients once and
not change them. Thus, all the main problems of the PID-controller are eliminated at once. At present,
there are already modifications of the PID-controller using fuzzy logic blocks [ 6], [10], [12]. There are
also exponential averaging modifications [ 9], but the combination used in this article is presented for
the first time.
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodological basis of the ontological model of Peltier thermoelement control</title>
      <p>The Ontological Model of Peltier Thermoelement Control (OMPTC) allows to organize the structure
of the system and describe the interaction of its components. OMPTC is represented as the following
formula:
 =
⟨ 10 21 18 ⟩
, , ,
i=1 j=1 k=1
(1)
where  is the ontology of concepts,  is the ontology of attributes,  is the ontology of relations
[13].</p>
      <p>The graphical representation of the ontological model is shown in Fig.1.</p>
      <p>A list of elements is used to describe the process of TE control, such as a MOSFET-transistor, PTE,
thermistor, power supply and microcontroller (MC), in which the following are software implemented:
comparison unit, PID-controller, FDF, EMAF; voltage converter, indicating their attributes and
interrelations. The list of elements is summarized in Table 1.</p>
      <p>The structure of the computational processes for controlling the PTE is presented as a two-level
system in Fig.2. This structure allows to reduce the time of transient processes and reduce the jump in
the amplitude of the first harmonic of the output control signal of the PID-controller. The first level
includes the following computational processes: converting the thermistor voltage into temperature;
calculating the PIDi control signal using the PID-controller; smoothing this signal using the FDF based
on fuzzification of input data and the area ratio defuzzification method, forming the optimal voltage for
the MOSFET-gate using the EMAF.</p>
      <p>The second level of the system is designed to control the intensity of cooling or heating of the PTE. It
includes the following computational processes: regulating the PTE power using the MOSFET-transistor,
measuring the temperature on the PTE using the thermistor, transmitting the voltage by the thermistor
to the voltage converter.</p>
      <p>At the initial stage of the OMTC operation, data is received from the thermistor. For this purpose,
it is necessary to calculate the temperature value Tinput based on the dependence of the voltages at</p>
      <p>Measures the temperature of the PTE 3 . Transmits
temperature data to the voltage converter 4 .</p>
      <p>Controls the PID-controller and the MOSFET-transistor
5 . Connected to the zero bus 6 .</p>
      <p>Sets the specified value 7 . The value goes to the
comparison block 8 .</p>
      <p>Receives data from the voltage converter and the set
value 9 . Gives a signal about the need for regulation
the analog output of the thermistor, using a formula based on polynomial regression [14], which is
obtained empirically:
(2)
(3)
 = 7.39 ×  2 + 62.17 ×  + 131.24,
where U is the voltage at the analog input of the MC.</p>
      <p>Thus, according to Eq.2, the MC calculates the temperature of the PTE using information coming
from the thermistor, which is fixed on the surface of the PTE.</p>
      <p>PID-controller is used to control the thermoelement, ensuring that the set temperature is maintained.
For this purpose, a controlled signal is calculated, the task of which is to reduce the diference between
the temperature set by the user  and the actual  received from the thermistor in the MC:
 =  −  → .</p>
      <p>The coeficients proportional , integrating , diferentiating , integration step dt have specific
values and do not need to be calculated. Thus, the following signal is generated at the output of the
PID-controller [15]:</p>
      <p>=  ×  +  ×  ×  + ( − − 1) ×  . (4)
From the control signal of the PID-controller  , a delay signal  − 1 is formed, determined
after a specified time interval . Both signals are transmitted to the FDF for further smoothing
using a fuzzy rule base.</p>
      <p>After the PID-controller generates the control signal, it is necessary to smooth it to eliminate sharp
jumps and reduce the load on the MOSFET-transistor. For this purpose, a FDF is used, which eliminates
high-frequency interference in the signal. The EMAF signal smoothing formula is formulated as follows:
 =   −  − 1.
(5)
where   is the current signal of the PID-controller,  − 1 is the delay signal determined after a
specified time interval .</p>
      <p>Transform the variable DX (see Eq.5) into a linguistic variable with terms DX = DX1, DX2, DX3, DX4,
DX5. The core of the input linguistic variable is the range of values from 0.0 to 7.0. The graph of the
input membership function is shown in Fig.3.</p>
      <p>The output linguistic variable is the control coeficient  , consisting of five terms: M1, M2, M3, M4,
M5, which is set by a proportional value in the range from 40% to 80% [0.4; 0.8] of its maximum value
[17]. The bases of the input membership functions (see Eqs.6-8) and fuzzy rules (see Eqs.9-13) are
presented below:
 ( )1 =
⎪⎧1, if  &gt; 0 and  &lt; 1
⎨ 22−− 1 , if  &gt; 1 and  &lt; 2
(6)
⎪⎨⎧ 23−3−−− 112 ,, iiff  &gt;&gt; 12 aanndd  &lt;&lt; 23
⎪⎨⎧ 2−− 11 , if  &gt; 1 and  &lt; 2
if  &gt; 2 and  &lt; 3
else;
 1   1
 2   2
 3   3
 4   4
 5   5
The graph of the output membership function is shown in Figure 4.</p>
      <p>The control coeficient  is calculated using the following formula:
Calculating the  coeficient:
 =
∑︀5=1  − 
∑︀5
=1</p>
      <p>.</p>
      <p>= 1 − .</p>
      <p>The coeficient  is necessary for the final calculation of the output voltage value from EMAF .
The  value is calculated according to the following form:</p>
      <p>After calculating the voltage Ug, it is converted into a range suitable for the eight-bit DAC at the
output of the MC (Arduino) [16]:
 =  − 1 ×  +   × .</p>
      <p>=  × 100/255.</p>
      <p>The output voltage Ug after processing by the EMAF is transferred to the drain of the
MOSFETtransistor, which is used to switch the power of the PTE [17].
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)</p>
    </sec>
    <sec id="sec-3">
      <title>3. Experimental research</title>
      <p>The characteristics of the OMPTC were determined by conducting experimental studies. The
experimental setup of the control system with software-implemented FDF, EMAF and PID-regulator is shown
in Fig.5.</p>
      <p>The objective of the experiment was to compare the performance of the OMPTC system using the
default PID-regulator against the enhanced PID-regulator with FDF and EMAF. During the experiment,
the user set a target temperature of  = 45°C, represented by the value1 signal (blue). This signal
remained constant over time, indicating that the system was maintaining the desired temperature.</p>
      <p>Signal value2 (orange) represents the current measured temperature  from the PTE obtained
via a thermistor. When value1 changes, the control system adjusts the PTE temperature to approach
the target value, demonstrating efective regulation.</p>
      <p>Signal value3 (green): This is the control signal representing the voltage  applied from
MC (Arduino) to the MOSFET-transistor. The MOSFET-transistor regulates the power supplied to the
PTE. The sharp spikes and subsequent drops in this signal indicate the process of power regulation to
minimize the deviation from the target temperature. The behavior of the default PID-regulator and the
enhanced PID-regulator (with FDF and EMAF) is shown in Figs.6-8:</p>
      <p>The results of the experiment are summarized in Table 2.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>The experiment aimed to compare the performance of the OMPTC system with a default PID-regulator
against the OMPTC system enhanced with FDF and EMAF in terms of temperature control and
stabilization. Based on the results, the FDF and EMAF PID-regulator demonstrated better performance
across all key indicators: it reduces overshoot by 2.44%, achieves a 11.25% faster response time, and
ensures 4.19% quicker stabilization.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Acknowledgments</title>
      <p>The work was prepared as part of the implementation of the RSF project No. 24-21-00055. The authors
are grateful to the Foundation for their support.</p>
    </sec>
    <sec id="sec-6">
      <title>Declaration on Generative AI</title>
      <p>The author(s) have not employed any Generative AI tools.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>M. V.</given-names>
            <surname>Bobyr</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. S.</given-names>
            <surname>Yakushev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. A.</given-names>
            <surname>Dorodnykh</surname>
          </string-name>
          ,
          <article-title>Fuzzy devices for cooling the cutting tool of the cnc machine implemented on fpga</article-title>
          ,
          <source>Measurement</source>
          <volume>152</volume>
          (
          <year>2020</year>
          ). doi:
          <volume>10</volume>
          .1016/j.measurement.
          <year>2019</year>
          .
          <volume>107378</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>A. K.</given-names>
            <surname>Putra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Rahmawati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Tetraputra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Misra</surname>
          </string-name>
          ,
          <article-title>Comparing temperature and humidity control using pid and fuzzy logic in a climatic chamber</article-title>
          ,
          <source>Jurnal Teknokes</source>
          <volume>17</volume>
          (
          <year>2024</year>
          )
          <fpage>117</fpage>
          -
          <lpage>120</lpage>
          . doi:
          <volume>10</volume>
          .35882/teknokes.v17i2.
          <fpage>493</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Yesaulov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>O. F.</given-names>
            <surname>Babicheva</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Khvorost</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Naidonov</surname>
          </string-name>
          ,
          <article-title>Application of fuzzy logic in the control system of electromechanical equipment</article-title>
          ,
          <source>Municipal economy of cities 6</source>
          (
          <year>2023</year>
          ). doi:
          <volume>10</volume>
          .33042/
          <fpage>2522</fpage>
          -1809-2023-6-
          <fpage>180</fpage>
          -33-42.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Outanoute</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Selmani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Oubehar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Snoussi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Guerbaoui</surname>
          </string-name>
          , A. Ed-Dahhak,
          <string-name>
            <given-names>A.</given-names>
            <surname>Lachhab</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Bouchikhi</surname>
          </string-name>
          ,
          <article-title>Self tuning fuzzy-pid controller in real time greenhouse temperature control,</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>