Information system for positioning and orienting antenna system Yurii Hlado1,*,†, Nadia Kryva1,†, Nadia Gashchyn1,†, Sergii Glado1,† 1 Ternopil Ivan Puluj National Technical University, 56 Ruska St, Ternopil, UA46001, Ukraine Abstract 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. Keywords accelerometer, magnetometer, antenna system, spatial orientation, matrix transformations. 1. Introduction 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. glado@ukr.net (Yu. Hlado); nadja.kryva@gmail.com (N. Kryva); gashchyn.nadia@gmail.com (N. Gashchyn); sergiiglado@gmail.com (S. Glado) 0009-0005-3064-790X (Yu. Hlado); 0000-0002-7753-7629 (N. Kryva); 0009-0000-0136-4955 (N. Gashchyn); 0009- 0009-5312-6137 (S. Glado) © 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0). CEUR ceur-ws.org Workshop ISSN 1613-0073 Proceedings 2. Objective of the Paper 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 three- dimensional space. 3. Main part 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. Figure 1: The structural diagram of the proposed system. 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. 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. 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. Figure 2: The coordinate system of the displaced sensor. 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 (1) 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 the XOY plane of the stationary coordinate system will allow for the calculation of the true magnetic azimuth of the antenna system direction. From Figure 2, it is evident that the first rotation needs to be performed around the OX1 axis to align the projection of vector G (1) 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 . The specified rotation angles are calculated using the formulae (2) where the magnitude of vector G is calculated using the formula 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 (3) where T 2 and T 1 are respectively, rotation matrices by angles β xz and β yz (2). These rotation matrices take the following form The column vector of the magnetic field components in the shifted coordinate system can be written as follows (4) where X m , Y m and Z m are measured magnetic axial values. The vector-column MR (3) obtained as a result of matrix multiplication of vector M (4) will have known components, oriented in the stationary coordinate system Since the specified components of the magnetic field X mR 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: The azimuth value should be corrected for a full circle, taking into account the signs of the numerator and denominator in different angular quadrants. 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. 4. Discussion 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 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. 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. 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 u- blox 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. 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. 5. Conclusions 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. References [1] Cho S.Y., Park C.G. Tilt compensation algorithm for 2-axis magnetic compass. Electronic Letters, 2003, vol. 39, no. 22, pp. 1589–1590. [2] Seong Yun Cho, Chan Gook Park. A Calibration Technique for a Two-Axis Magnetic Compass in Telematics Devices. ETRI Journal, 2005, vol. 27, no. 3, pp. 281–288. [3] Konvalin C. Compensating for Tilt, Hard-Iron, and SoftIron Effects , Sensors. 2009. Vol. 26. № 12. P. 2–10 [4] Gene H. Golub, Charles F. Van Loan. Matrix Computations. The Johns Hopkins University Press, 2013. Baltimore, 756 p. [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-m10- series [9] GSM/GPRS Module M66, Quectel. URL: https://www.quectel.com/product/gsm-gprs- m66/#specifications