<!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>Infor mation system for positioning and orienting antenna system</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Yurii Hlado</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nadia Kryva</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Nadia Gashchyn</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sergii Glado</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Ternopil Ivan Puluj National Technical University</institution>
          ,
          <addr-line>56 Ruska St, Ternopil, UA46001</addr-line>
          ,
          <country country="UA">Ukraine</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>A microprocessor-based computer system using triaxial accelerometers and magnetometers mounted on the moving part of the antenna has been proposed, along with a methodology for determining the position of the antenna installation axis in space, with magnetic azimuth correction via the Internet. A mathematical model has been used, which includes matrix transformations of the coordinates of the Earth's acceleration and magnetic field vectors. A prototype of the system was created using inexpensive components, and its operation was tested.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;accelerometer</kwd>
        <kwd>magnetometer</kwd>
        <kwd>antenna system</kwd>
        <kwd>spatial orientation</kwd>
        <kwd>matrix transformations</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Nowadays, various navigation systems for stationary and mobile devices (land, air, and surface)
have been developed significantly, enabling the determination of an object's position, direction,
and speed, as well as its displacement from the horizontal plane (lateral and longitudinal tilts).
An important task for certain positioning systems, such as antenna posts, is to determine the
true azimuth and elevation angle of the antenna system's radio-technical axis, given an arbitrary
placement of the base and its potential movement in space and longitudinal and transverse
oscillations. The conventional existing systems are generally based on the outdated methods
using gyroscopes, stabilizing platforms, and single-axis inclinometers. More modern systems
are equipped with electronic triaxial magnetometers (compasses) and accelerometers,
positioning systems like GPS (or similar), and are controlled via microcontrollers. They have the
capability to network or transmit data to external PCs or the cloud. Based on this, the
development of a structural-functional scheme and algorithm for a modern positioning and
aiming system, applicable in antenna technology, is an urgent issue. However, such a system can
also be used for low-speed moving objects in field conditions (pedestrians, vehicles, aerial
drones, boats, etc.). The main requirements are to ensure accurate movement and positioning
amid various disturbances—such as uneven ground, wind loads, and water surface waves.
_______________________________
ITTAP’2024: 4th International Workshop on Information Technologies: Theoretical and Applied Problems, October
23–25, 2024, Ternopil, Ukraine, Opole, Poland
∗ Corresponding author.
† These authors contributed equally.</p>
      <p>glado@ukr.net (Yu. Hlado); nadja.kryva@gmail.com (N. Kryva); gashchyn.nadia@gmail.com (N. Gashchyn);
sergiiglado@gmail.com (S. Glado)</p>
      <p>0009-0005-3064-790X (Yu. Hlado); 0000-0002-7753-7629 (N. Kryva); 0009-0000-0136-4955 (N. Gashchyn);
00090009-5312-6137 (S. Glado)</p>
      <p>© 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
    </sec>
    <sec id="sec-2">
      <title>2. Objective of the Paper</title>
      <p>The creation of a computer-based microprocessor system that can operate in field conditions
and provide the necessary accuracy in determining specified directions in space for an antenna
system. This system should not require additional sensors for the axes positions of the antenna's
support-turning device. Additionally, the work aims to establish dependencies for determining
these positions through the indicators of magnetic field sensors and gravitational force in
threedimensional space.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Main part</title>
      <p>The proposed system consists of the following main components: a rigid non-magnetic platform
on which triaxial accelerometers and magnetometers are mounted and rigidly fixed, ensuring
their spatial alignment, a GPS navigation system, a microcontroller for processing data from all
systems, and an interface part designed for communication with an external computer (RS232,
LAN, Wi-Fi, Bluetooth) or a mobile communication transmitter (LTE, 4G). The structural
diagram is shown in Figure 1.</p>
      <p>We assume that the sensors (accelerometer and magnetometer) are calibrated for sensitivity
and measurement direction using methods described in the literature [1 - 3], and the correction
parameters are stored in the microcontroller's memory. The rigid platform is fixedly mounted on
the antenna installation so that its X-axis aligns with the antenna axis direction.</p>
      <p>Let us consider the mutual arrangement of the coordinate system of the displaced sensor and
the stationary coordinate system, where the horizontal plane XOY is parallel to the Earth's
surface. The X-axis is directed along the antenna axis, as shown in Figure 2.</p>
      <p>It is known that the direction of Earth's gravitational acceleration is always downward,
perpendicular to the Earth's surface, and the direction of the projection of the Earth's magnetic
field vector is directed with a certain error towards the north. The above-mentioned error can be
compensated using magnetic declination tables, which should be stored in the microcontroller's
memory, depending on the coordinates of the observation point, or transmitted over the
Internet from an appropriate database. For this purpose, data from the GPS positioning system
are used.</p>
      <p>To align the displaced coordinate system with the stationary one, it is necessary to rotate the
X1Y1Z1 coordinate system relative to each axis so that the gravitational acceleration vector,
recorded in the moving coordinate system
co-linearly aligned with the Z-axis of the stationary coordinate system. Rotating by the specified
angles will align the shifted system with the stationary one, and the corresponding components
of the magnetic field vector in theXOY plane of the stationary coordinate system will allow for
the calculation of the true magnetic azimuth of the antenna system direction.</p>
      <p>
        From Figure 2, it is evident that the first rotation needs to be performed around theOX1 axis
to align the projection of vector G (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) with the Z1 axis by an angle β yz . After this rotation, vector
G will lie in the XOZ plane. The second rotation needs to be performed in this plane around the
Y1 axis to align vector G with the Z1 axis by an angle β xz .
      </p>
      <p>
        The specified rotation angles are calculated using the formulae
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        )
where the magnitude of vector G is calculated using the formula
      </p>
      <p>To determine the components of the magnetic field vector in a stationary coordinate
system, we will rotate this vector by the calculated angles using a matrix transformation [4] of
the form
where T 2 and T 1 are respectively, rotation matrices by angles β xz and β yz</p>
      <p>
        These rotation matrices take the following form
(
        <xref ref-type="bibr" rid="ref2">2</xref>
        ).
      </p>
      <p>
        (
        <xref ref-type="bibr" rid="ref3">3</xref>
        )
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
      </p>
      <p>The column vector of the magnetic field components in the shifted coordinate system can be
written as follows
where Xm</p>
      <p>, Y m and Z m are measured magnetic axial values.</p>
      <p>
        The vector-column MR (
        <xref ref-type="bibr" rid="ref3">3</xref>
        ) obtained as a result of matrix multiplication of vector M (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ) will
have known components, oriented in the stationary coordinate system
      </p>
      <p>Since the specified components of the magnetic fieldXmR and Y mR lie in the horizontal plane,
the azimuth angle of the antenna axis, directed along the OX axis, is determined by the formula:</p>
      <p>The azimuth value should be corrected for a full circle, taking into account the signs of the
numerator and denominator in different angular quadrants.</p>
      <p>The elevation angle of the antenna axis direction is determined as the ratio of the component
Xa of the gravitational acceleration vector in the shifted coordinate system to its magnitude
taking into account that, the elevation angle of the antenna installation should not exceed the
range of (-90 ...+90) degrees.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Discussion</title>
      <p>A distinctive feature of the proposed antenna positioning system is the connection with an
external computer or network database. This database, using known GPS coordinates,
determines the shift of the magnetic field vector Azm , which changes over time and is
constantly updated in the corresponding databases. Therefore, the true azimuth is corrected
accordingly</p>
      <p>Correction of the magnetic field vector can be performed in the field using other methods,
recording the obtained result into the microcontroller's memory via an external computer.</p>
      <p>To improve measurement accuracy and result stability, the well-known digital noise filtering
methods should be applied. These range from the simplest, such as averaging or using a specific
window function, to more complex methods like the Kalman filter.</p>
      <p>Based on the proposed antenna system positioning methodology, a device has been
developed that consists of an ADXL345 accelerometer [6], a HMC5883 magnetometer [7], a
ublox M10 GPS signal receiver {8], and a Quectel M66 mobile communication modem [9], all
integrated on a NUCLEO microprocessor board based on the STM32F042K6T6 chip. An RS485
interface has been used for data transmission to the computer, demonstrating high reliability in
field conditions.</p>
      <p>Verification of the specified device after calibrating the magnetometer and accelerometer
using digital signal filtering methods demonstrated sufficient accuracy for practical applications
in decimeter-wave antenna technology, with target indications within 2 degrees.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusions</title>
      <p>The developed microprocessor computer system has demonstrated sufficient accuracy in
measuring the position of the object and can be applied in field conditions both for orienting the
support-turning device of the antenna system and for other similar systems, such as spotlight
lighting, mobile device direction control, recording the trajectory of object movement, and
others.
[5] O. Sytnyk, A. Нoncharov, N. Raievskyi. Compensation Of Destabilizing Factors Influence
In The Process Of Determination Of The Earth Magnetic Field Components Using The
Magnetometer Sensors, 2014. URL: https://er.chdtu.edu.ua/handle/ChSTU/1686
[6] Digital Accelerometer ADXL345, Analog Devices. URL: https://www.analog.com/
media/en/technical-documentation/data-sheets/adxl345.pdf.
[7] D3-Axis Magnetic Sensor HMC5883L, Honeywell. URL: https://www.alldatasheet.com/
datasheet-pdf/pdf/428790/HONEYWELL/HMC5883L.html/
[8] u-blox MAX M10 SPG 5.10, u-blox. URL:
https://www.u-blox.com/en/product/max-m10series
[9] GSM/GPRS Module M66, Quectel. URL:
https://www.quectel.com/product/gsm-gprsm66/#specifications</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <surname>Cho</surname>
            <given-names>S.Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Park</surname>
            <given-names>C.G.</given-names>
          </string-name>
          <article-title>Tilt compensation algorithm for 2-axis magnetic compass</article-title>
          .
          <source>Electronic Letters</source>
          ,
          <year>2003</year>
          , vol.
          <volume>39</volume>
          , no.
          <issue>22</issue>
          , pp.
          <fpage>1589</fpage>
          -
          <lpage>1590</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>Seong</given-names>
            <surname>Yun</surname>
          </string-name>
          <string-name>
            <surname>Cho</surname>
          </string-name>
          , Chan Gook Park.
          <article-title>A Calibration Technique for a Two-Axis Magnetic Compass in Telematics Devices</article-title>
          .
          <source>ETRI Journal</source>
          ,
          <year>2005</year>
          , vol.
          <volume>27</volume>
          , no.
          <issue>3</issue>
          , pp.
          <fpage>281</fpage>
          -
          <lpage>288</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <surname>Konvalin</surname>
            <given-names>C.</given-names>
          </string-name>
          <article-title>Compensating for Tilt, Hard-Iron,</article-title>
          and SoftIron Effects , Sensors.
          <year>2009</year>
          . Vol.
          <volume>26</volume>
          . № 12. P. 2-
          <fpage>10</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <surname>Gene</surname>
            <given-names>H.</given-names>
          </string-name>
          <string-name>
            <surname>Golub</surname>
            ,
            <given-names>Charles F. Van Loan. Matrix</given-names>
          </string-name>
          <string-name>
            <surname>Computations</surname>
          </string-name>
          . The Johns Hopkins University Press,
          <year>2013</year>
          . Baltimore,
          <volume>756</volume>
          p.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>