Русская версия English version

Software development for digital interfaces of electromechanical position sensor

I.S. Polyuschenkov

Vestnik IGEU, 2024 issue 4, pp. 73—86

Download PDF

Abstract in English: 

Background. For an electromechanical position sensor to be used in modern motion control systems, it must have technical means to transmit measurement results. It is also necessary to connect the sensor with equipment to configure and test it. In addition, the exchange of information between its elements that calculate, and generate and process signals may be required. To perform the listed functions of information interaction digital interfaces are designed. The choice of interface types depends on their purpose, and the algorithms of their use are implemented using software. The development of such digital interfaces for the controller of a sine-cosine rotary transformer in amplitude mode is an urgent task of modern motion control systems.

Materials and methods. When developing software for digital interfaces, methods of algorithmization of control and information transfer processes, methods of software development and debugging, as well as experimental research methods have been used.

Results. Information interaction between the controller of the electromechanical position sensor and the high-level controller as part of the motion control system and ensuring its operability is carried out using various digital interfaces. The I2C interface is used to communicate the sensor with the high-level controller, and the UART interface is used to communicate with the equipment for configuring and testing. The connection between the generator and signal processor chip and the microcontroller included in the sensor is carried out via the I2C interface. The authors have developed a microcontroller driver for connecting to the I2C network bus in Slave mode, as well as a software handler for the UART interface, which detects received messages of a given format and ensure safe operation in case of receiving corrupted messages. To store the configuration parameters of the sensor, one can access to flash memory of microcontroller.

Conclusions. As a result of the use of digital interfaces and algorithms of their implementation that carry out information interaction, the developed controller of electromechanical position sensor becomes a full-fledged element of motion control systems. The use of modern design tools and specialized function libraries based on high-level C language, helps to develop software that implements these algorithms for various interfaces.

References in English: 

1. Rozanov, Yu.K., Sokolova, E.M. Elektronnye ustroystva elektromekhanicheskikh sistem [Electronic equipment of electromechanical systems]. Moscow: Izdatel'skiy tsentr «Akademiya», 2004. 272 p.

2. Terekhov, V.M. Elementy avtomatizirovannogo elektroprivoda [Elements of Automated Electric Drive]. Moscow: Energoatomizdat, 1987. 224 p.

3. Prokof'ev, G.V., Bol'shakov, K.N., Stakhin, V.G., Obednin, A.A. Razrabotka mikroskhemy obrabotki signala s sinusno-kosinusnykh datchikov polozheniya s vysokim razresheniem [Development of a signal processing chip from sine-cosine position sensors with high resolution]. Izvestiya YuFU. Tekhnicheskie nauki, 2016, no. 3(176), pp. 30–42.

4. Voytitskiy, S.A., Ivakhno, V.S., Ivakhno, N.V. Tsifrovaya sistema obrabotki signalov vrashchayushchegosya transformatora na osnove DSP-mikrokontrollera v sostave elektroprivoda [Digital signal processing system for a rotary transformer based on a DSP microcontroller in electric drive]. Izvestiya of TulGU. Tekhnicheskie nauki, 2012, no. 8, pp. 184–188.

5. Anuchin, A.S. Sistemy upravleniya elektroprivodov [Control systems of electric drives]. Moscow: Izdatel'skiy dom MEI, 2015. 373 p.

6. Terekhov, V.M., Osipov, O.I. Sistemy upravleniya elektroprivodov [Control systems of electric drives]. Moscow: Izdatel'skiy tsentr «Akademiya», 2006. 304 p.

7. Polyushchenkov, I.S. Razrabotka kontrollera elektromekhanicheskogo datchika polozheniya [Development of controller for electromechanical position sensor]. Vestnik IGEU, 2023, issue 4, pp. 36–45. DOI: 10.17588/2072-2672.2023.4.036-045.

8. Polyushchenkov, I.S. Razrabotka kontrollera datchika polozheniya na baze sinusno-kosinusnogo vrashchayushchegosya transformatora [Development of a controller for the position sensor based on a sine-cosine rotary transformer]. Izvestiya MGTU MAMI, 2024, vol. 18, no. 1, pp. 43–52. DOI: 10.17816/2074-0530-568930.

9. Mastering STM32. Available at: https://leanpub.com/mastering-stm32-2nd (Date of appeal 24.01.2024).

10. Klyuchev, A.O., Pinkevich, V.Yu., Platunov, A.E., Klyuchev, V.A. Stend-konstruktor SDK-1.1M. Organizatsiya i programmirovanie mikrokontrollerov [Installation Kit SDK-1.1M. Design and programming of microcontrollers]. Saint-Petersburg: Universitet ITMO, 2022. 79 p.

11. Polyuschenkov, I. Model-oriented Programming Technique in The Development of Electric Drive Control System. 2019 26th International Workshop on Electric Drives: Improvement in Efficiency of Electric Drives (IWED), 2019, pp. 1–6. DOI: 10.1109/IWED.2019.8664388.

12. STM32 Arm Cortex Microcontrollers. Available at: www.st.com (Date of appeal 24.01.2024).

13. Denisenko, V.V. Komp'yuternoe upravlenie tekhnologicheskim protsessom, eksperimentom, oborudovaniem [Computer control of process, experiment, equipment]. Moscow: Goryachaya liniya – Telekom, 2009. 608 p.

Key words in Russian: 
датчик положения, цифровой интерфейс, драйвер I2C Slave, шина I2C, интерфейс UART, библиотека функций HAL
Key words in English: 
position sensor, digital interface, I2C Slave driver, I2C bus, UART interface, HAL software library
The DOI index: 
10.17588/2072-2672.2024.4.073-086
Downloads count: 
40