<!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 Conference on Digital Technologies in Education, Science and
Industry, December</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Development of the Electronic Circuit and Printed Circuit Board for the Breathing Simulator</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nurzhan T. Duzbayev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Zhandaulet A. Musilimov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lyudmila A. Kozina</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Manat K. Tuyenbayev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>International Information Technology University</institution>
          ,
          <addr-line>Manas St. 34/1, Almaty, 050040</addr-line>
          ,
          <country country="KZ">Kazakhstan</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>0</volume>
      <fpage>6</fpage>
      <lpage>07</lpage>
      <abstract>
        <p>Due to the COVID-19 pandemic, the field of Internet of Medical Things (IoMT), which combines Internet of Things (IoT) technologies and medical devices, has recently received significant development. The paper provides an overview of some successful IoMT projects implemented in recent years, including solutions related to the functioning of the human respiratory system. One of the difficult issues facing medicine now is the rehabilitation of patients who have suffered from COVID-19, and in particular, those who have problems with the respiratory system. The project “Development of a software and hardware complex for monitoring and correcting respiratory functions based on multimodule technologies” is aimed at developing a modern breathing simulator with the ability to monitor the patient's body parameters and use the obtained data to further improve the rehabilitation process. This work discusses in detail the development of an electronic circuit for the breathing simulator of this project.</p>
      </abstract>
      <kwd-group>
        <kwd>1 IoMT</kwd>
        <kwd>Raspberry PI Zero</kwd>
        <kwd>electronic circuit</kwd>
        <kwd>printed circuit board</kwd>
        <kwd>breathing simulator</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        IoT is currently one of the most relevant and rapidly developing areas. IoT occupies a special
position in medicine, and the special term “IoMT” (Internet of Medical Things) is even used to
refer to IoT in healthcare, meaning the combination of IoT technologies and medical devices [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
The difficult challenges facing medicine during the COVID-19 pandemic have given impetus to
even greater development of IoMT. According to the following article [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], the global market of
IoMT was valued at 159.51 billion USD in 2022 and, moreover, it is expected to reach over 800
billion USD in 2030. This work [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] presents a detailed study of the use of IoMT systems during
the pandemic. According to this study, IoMT projects during the pandemic solved problems such
as detection, tracking, monitoring, prediction, record and others.
      </p>
      <p>
        Moreover, the combination of such areas as IoT and artificial intelligence provides the most
effective solutions. The authors of the study [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] consider the combination of these two
technologies under the name AI-IoT and provide a classification of AI-IoT technologies in the
context of the COVID-19 pandemic. The following works [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ] present examples of systems that
monitor the patient’s condition according to the main indicators of the body and use the obtained
data for further analysis. The authors of the projects [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ] proposed the use of IoT technologies
in protective masks to solve problems that are relevant during the pandemic. The examples of
successful projects above confirm the effectiveness of introducing new technologies to solve
medical problems.
      </p>
      <p>One of the most important medical tasks at the moment is the rehabilitation of patients who
have suffered from COVID-19, in particular people with problems with the respiratory system.
The use of IoT technologies to solve such a problem can improve the rehabilitation process of
such patients and achieve more effective results. As part of the project "Development of a
software and hardware complex for monitoring and correcting respiratory functions based on
multimodule technologies", which is presented in this work, the breathing simulator with
realtime monitoring of the patient's body parameters and wireless transmission of the received
information to the doctor's device to control the training process is being developed. This paper
reveals the process of developing an electronic circuit for the breathing simulator of this project.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Development of the electronic circuit and printed circuit board</title>
      <p>
        This section presents the first version of the electronic circuit and printed circuit board for the
project “Development of a software and hardware complex for monitoring and correcting
respiratory functions based on multimodule technologies” and describes its constituent elements
in detail. The main element of the developed circuit is Raspberry PI Zero. According to studies [
        <xref ref-type="bibr" rid="ref10 ref9">9,
10</xref>
        ], Raspberry Pi is considered one of the most suitable hardware for implementing IoMT
applications. The authors of the studies [
        <xref ref-type="bibr" rid="ref11 ref12">11, 12</xref>
        ] provide an overview of existing solutions using
Raspberry Pi, including in the field of medicine and healthcare.
      </p>
      <sec id="sec-2-1">
        <title>2.1. Raspberry PI Zero</title>
        <p>The printed circuit board (PCB) of the " Development of a software and hardware complex for
monitoring and correcting respiratory functions based on multimodule technologies" project
utilizes a single-board computer Raspberry Pi Zero, as its main component. This Raspberry Pi
Zero serves as the central element and controls the entire circuit. Therefore, this board performs
the following functions:
• Reading data from sensors;
• Controlling servo drives;
• Executing algorithms for smooth servo control based on sensor data.</p>
        <p>
          The Raspberry Pi Zero was selected for this project for the following reasons [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]:
1. Compact Size: Among the entire Raspberry Pi lineup, this computer is the most compact
and affordable, with dimensions of 65 x 30 mm.
2. Performance: Raspberry Pi Zero features a 1 GHz single-core ARM1176JZF-S processor,
512 MB of RAM, and 8 GB of flash memory.
3. Ports: It offers one HDMI input, two USB 2.0 inputs, an SD card slot for OS boot, and an
audio/video output.
4. Wireless Connectivity: Raspberry Pi Zero includes a built-in Bluetooth module and
supports 802.11n wireless communication.
5. GPIO (General-Purpose Input/Output): This interface is used for communication between
components in the circuit. Raspberry Pi Zero has 40 GPIO pins, including pins for SPI,
RXD/TXD, and I2C.
6. Cost: Due to its small size, limited memory, and lack of built-in Wi-Fi, the Raspberry Pi Zero
is cost-effective.
        </p>
        <p>
          In Figure 1, the complete specifications of the Raspberry Pi Zero are presented [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ].
        </p>
        <p>However, despite the advantages, one drawback of the Raspberry Pi Zero is the absence of
analog input ports. This limitation restricts its usability. In this situation, an analog-to-digital
converter (ADC) can be used. In this project, the MCP3008 will serve as the ADC converter,
described in more detail in section 2.2.</p>
        <p>Additionally, the output voltage of the Raspberry Pi Zero ports is insufficient to control servo
drives effectively. To address this voltage issue, transistors 2n7000 will be used in this project to
facilitate control over linear servo drives. These transistors are described in more detail in section
2.4.</p>
        <p>2.2. MCP3008</p>
        <p>
          The MCP3008 is a 10-bit Analog-to-Digital Converter (ADC) with 8 input channels. It features
low power consumption and a sampling speed of 200,000 samples per second. The MCP3008 is
available in 16-pin PDIP and SOIC packages. A representation of the MCP3008 is in Figure 2(a)
[
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
        </p>
        <p>
          For proper operation with the Raspberry Pi Zero, the SPI (Serial Peripheral Interface) interface
will be used to interface with the MCP3008 ADC, which will be discussed in the next section.
Figure 2(b) illustrates the ports of the MCP3008 [
          <xref ref-type="bibr" rid="ref14">14</xref>
          ].
        </p>
        <p>As mentioned earlier, the MCP3008 has 8 channels (CH0-CH7). Additionally, in Figure 2(b),
AGND and DGND represent the analog and digital ground, respectively. Vdd is the power supply,
Vref is the reference voltage, and CLK, Dout, Din, SC/SHDN will be used for SPI connectivity.</p>
        <p>2.3. SPI</p>
        <p>SPI (Serial Peripheral Interface) is an interface that follows a standard for serial and
synchronous data transmission. Its primary characteristic is communication between one master
device and one or more slave devices. In this project, the master device is the Raspberry Pi Zero,
and the slave device is the MCP3008. This data transmission involves the use of 4 pins, and their
information is provided in Table 1.</p>
        <sec id="sec-2-1-1">
          <title>Characteristics</title>
        </sec>
        <sec id="sec-2-1-2">
          <title>The master transmits, and the slave receives.</title>
        </sec>
        <sec id="sec-2-1-3">
          <title>The master receives, and the slave transmits.</title>
        </sec>
        <sec id="sec-2-1-4">
          <title>Each slave has a dedicated pin with its own identifier.</title>
        </sec>
        <sec id="sec-2-1-5">
          <title>This is to ensure that the master knows to whom it is</title>
          <p>sending data and from whom it is receiving.</p>
        </sec>
        <sec id="sec-2-1-6">
          <title>The clock signal is used for reliable synchronization.</title>
          <p>For the implementation of this project, high reliability and high-speed data transmission are
required. For these reasons, the decision was made to use the SPI interface. The connection
scheme is presented in section 2.6.</p>
        </sec>
      </sec>
      <sec id="sec-2-2">
        <title>2.4. Transistors 2n7000</title>
        <p>An important aspect of the electronic circuit is the correct control of the servo drives. Linear
servo drives will be used in the project to achieve the set objectives. However, they operate at a
voltage of 3.7V, which the Raspberry Pi Zero cannot provide. In such cases, it is necessary to use
transistors. Field-effect transistors will be used in this project, as they offer the following
advantages:
• High DC input resistance at high frequency;
• High speed of operation;
• High-temperature stability;
• Low noise level;
• Low power consumption.</p>
        <p>a) b)
Figure 3: Field-effect transistor design (a) and transistor 2n7000 (b)</p>
        <p>Field-effect (unipolar) transistors have three terminals: source, drain, and gate. The gate
serves as the control pin. Figure 3(a) illustrates the structure of a transistor.</p>
        <p>To control the voltage sufficient for operating a linear servo drive, a transistor with a control
voltage of 3.3V is required. The 2n7000 transistor, as depicted in Figure 3(b), is suitable for this
purpose.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.5. Block scheme of PCB</title>
        <p>As shown in Figure 4, the block diagram will operate as follows:
1. Power is supplied to the DC-DC converter to ensure that the output voltage remains
constant over time.
2. The voltage from the DC-DC converter powers the Raspberry Pi Zero.
3. Raspberry Pi Zero initiates communication with the MCP3008 through the SPI interface.
4. Data from the sensors will be acquired by Raspberry Pi Zero, and based on this data, the
field-effect transistors will be controlled.</p>
        <p>The entire system will be highly dependent on the algorithms used for controlling the servo
drives, as well as the sensors themselves. Ultimately, a feedback system has been developed,
which passes through the sensors, creating a closed-loop control system.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.6. Schematic diagram of PCB</title>
        <p>In this section, a schematic diagram is presented, divided into blocks for ease of
understanding.</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.6.1. Block of the schematic diagram with Raspberry Pi Zero</title>
        <p>In Figure 5, which was created with Altium Designer software, a block of the schematic
diagram with Raspberry Pi Zero is presented, where:
• CON is the connector, a component that connects external wires to the circuit (double
(CON2X1) and triple (CON3X1) connectors are used in the project);
• Raspberry Pi Zero is a graphical representation of the Raspberry Pi Zero;
• DCDC is the DC-DC converter;
• GND is the common ground for the entire circuit;
• +3.3V is the power supply for the circuit.</p>
        <sec id="sec-2-5-1">
          <title>Port</title>
          <p>19
21
24
23</p>
          <p>As mentioned earlier, the SPI interface is used to communicate with MCP3008, so the following
Raspberry Pi Zero pins are used in the circuit, as presented in Table 2.</p>
          <p>To control the servo drives, the ports described in Table 3 are used.</p>
        </sec>
        <sec id="sec-2-5-2">
          <title>Purpose</title>
        </sec>
        <sec id="sec-2-5-3">
          <title>MOSI</title>
        </sec>
        <sec id="sec-2-5-4">
          <title>MISO CS</title>
        </sec>
        <sec id="sec-2-5-5">
          <title>SCLK</title>
        </sec>
      </sec>
      <sec id="sec-2-6">
        <title>2.6.2. Block of the schematic diagram with MCP3008</title>
        <p>In the block presented in Figure 6, connectors CON3X1 and MCP3008 are used. The use of
triple connectors is necessary to supply power to the sensors while also providing a common
ground for them and a contact for transmitting sensor values.</p>
      </sec>
      <sec id="sec-2-7">
        <title>2.6.3. Block of the schematic diagram with the control of the servo drivers</title>
        <p>In the schematic presented in Figure 7, the following components are used:
• RES – resistor;
• 2n7000 - field-effect transistor;
• VCC - power supply.</p>
        <p>Resistors R3, R2, R1, R4 are used as a load. Resistors R5, R6, R7, R8 are used to limit the charge
current of the gate capacitance to prevent the transistor from burning out.</p>
      </sec>
      <sec id="sec-2-8">
        <title>2.7. Preparing of PCB</title>
        <p>After preparing the schematic diagram, the circuit was assembled on a board. Here, the first
version of the circuit is presented, and changes are planned for the future. Therefore, this version
of the circuit is designed on a DIP package and a single-sided PCB. The printed circuit board after
layout is shown in Figure 8.</p>
        <p>The next step involved transferring the image onto the PCB. To do this, the first step was to
print the image on special PCB etching paper, as shown in Figure 9(a).</p>
        <p>The second step involved using heating elements to transfer the image onto the PCB. This
technology is known as laser ironing (LIT). As a result of the heat transfer, the PCB was obtained,
as shown in Figure 9(b).</p>
        <p>The next step is to obtain the printed circuit board through the etching process. Etching is one
of the methods used to remove unwanted copper areas from the PCB as they do not match the
PCB's design.</p>
      </sec>
      <sec id="sec-2-9">
        <title>2.8. Result</title>
        <p>As a result of the steps described above, the printed circuit board was obtained, as shown in
Figure 10.</p>
        <p>Thus, this paper describes the process of creating the electronic circuit and printed circuit
board for the breathing simulator and characterizes its components. During the development of
this printed circuit board LIT technology, etching of the printed circuit board and drilling were
used. During the development of the electronic circuit, the Altium Designer program was used.
The tools of this program allowed to draw a schematic, as well as to develop a circuit for the
circuit board. As a result, the first version of the printed circuit board, where the main goal was
to work out the program algorithms, was received. Further plans for the project include
improving the presented circuit and adding sensors that will be used to measure the patient’s
body parameters in the process of training.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Acknowledgements</title>
      <p>This research is funded by the Science Committee of the Ministry of Science and Higher Education
of the Republic of Kazakhstan (Grant No. AP19680049).</p>
    </sec>
    <sec id="sec-4">
      <title>4. References</title>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Razdan</surname>
            , Sahshanu, and
            <given-names>Sachin Sharma.</given-names>
          </string-name>
          (
          <year>2022</year>
          ).
          <article-title>Internet of medical things (IoMT): Overview, emerging technologies, and case studies</article-title>
          .
          <source>IETE technical review 39</source>
          .4:
          <fpage>775</fpage>
          -
          <lpage>788</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>Marketresearch</surname>
          </string-name>
          .Com,
          <source>Infinium Global Research</source>
          ,
          <volume>6</volume>
          <fpage>Sept</fpage>
          .
          <year>2023</year>
          , URL: www.marketresearch.com/Infinium-Global-Research-v4127/
          <article-title>Internet-Medical-</article-title>
          <string-name>
            <surname>ThingsIoMT-</surname>
          </string-name>
          Global-
          <volume>35207260</volume>
          /.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Aman</surname>
          </string-name>
          , Azana Hafizah Mohd, et al. (
          <year>2021</year>
          ).
          <article-title>IoMT amid COVID-19 pandemic: Application, architecture, technology, and security</article-title>
          .
          <source>Journal of Network and Computer Applications</source>
          ,
          <volume>174</volume>
          :
          <fpage>102886</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Khan</surname>
            ,
            <given-names>Junaid</given-names>
          </string-name>
          <string-name>
            <surname>Iqbal</surname>
          </string-name>
          , et al. (
          <year>2022</year>
          ).
          <article-title>Artificial intelligence and Internet of things (AI-IoT) technologies in response to COVID-19 pandemic: A systematic review</article-title>
          .
          <source>IEEE Access</source>
          ,
          <volume>10</volume>
          :
          <fpage>62613</fpage>
          -
          <lpage>62660</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <surname>Raj</surname>
            ,
            <given-names>Dr Jennifer S.</given-names>
          </string-name>
          (
          <year>2020</year>
          ).
          <article-title>A novel information processing in IoT-based real-time health care monitoring system</article-title>
          .
          <source>"Journal of Electronics and Informatics</source>
          ,
          <volume>2</volume>
          (
          <issue>3</issue>
          ):
          <fpage>188</fpage>
          -
          <lpage>196</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>Al-Mutairi</surname>
          </string-name>
          , Abdullah, Kasim Al-Aubidy, and
          <string-name>
            <surname>Fadwa</surname>
            <given-names>Al-Halaiqa.</given-names>
          </string-name>
          (
          <year>2021</year>
          ).
          <article-title>IoT-based real-time monitoring system for epidemic diseases patients: Design and evaluation</article-title>
          .
          <source>Рр</source>
          .
          <volume>63</volume>
          -
          <fpage>82</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <surname>Ruffa</surname>
          </string-name>
          ,
          <string-name>
            <surname>Filippo</surname>
          </string-name>
          , et al. (
          <year>2023</year>
          ).
          <article-title>An IoT measurement system for a tailored monitoring of CO2 and total volatile organic compounds inside face masks."</article-title>
          <source>Acta IMEKO</source>
          ,
          <volume>12</volume>
          .3:
          <fpage>1</fpage>
          -
          <lpage>8</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <surname>Bingfang</surname>
          </string-name>
          , et al. (
          <year>2022</year>
          ).
          <article-title>Wearable bioelectronic masks for wireless detection of respiratory infectious diseases by gaseous media</article-title>
          .
          <source>Matter</source>
          ,
          <volume>5</volume>
          .12:
          <fpage>4347</fpage>
          -
          <lpage>4362</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <surname>Qureshi</surname>
            , Fayez, and
            <given-names>Sridhar Krishnan.</given-names>
          </string-name>
          (
          <year>2018</year>
          ).
          <article-title>Wearable hardware design for the Internet of Medical Things (IoMT)</article-title>
          .
          <source>Sensors</source>
          ,
          <volume>18</volume>
          (
          <issue>11</issue>
          ):
          <fpage>3812</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <surname>Daoui</surname>
          </string-name>
          ,
          <string-name>
            <surname>Achraf</surname>
          </string-name>
          , et al. (
          <year>2022</year>
          ).
          <article-title>Efficient Biomedical Signal Security Algorithm for Smart Internet of Medical Things (IoMTs) Applications</article-title>
          . Electronics,
          <volume>11</volume>
          (
          <issue>23</issue>
          ):
          <fpage>3867</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <surname>Hosny</surname>
          </string-name>
          ,
          <string-name>
            <surname>Khalid</surname>
            <given-names>M.</given-names>
          </string-name>
          , et al. (
          <year>2023</year>
          ).
          <article-title>Internet of things applications using Raspberry-Pi: a survey</article-title>
          .
          <source>International Journal of Electrical &amp; Computer Engineering</source>
          ,
          <volume>13</volume>
          (
          <issue>1</issue>
          ):
          <fpage>2088</fpage>
          -
          <lpage>8708</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Ehrmann</surname>
          </string-name>
          ,
          <string-name>
            <surname>Guido</surname>
          </string-name>
          , et al. (
          <year>2022</year>
          ).
          <article-title>Measuring biosignals with single circuit boards</article-title>
          .
          <source>Bioengineering</source>
          ,
          <volume>9</volume>
          (
          <issue>2</issue>
          ):
          <fpage>84</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <surname>Raspberry</surname>
            <given-names>Pi</given-names>
          </string-name>
          , URL: www.raspberrypi.com/products/raspberry-pi-zero/.
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <surname>MCP3008 - Microchip Technology</surname>
          </string-name>
          , URL: www.microchip.com/en-us/product/MCP3008.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>