# The Design of a Dual Servo Drive and Control Integrated Platform Based on VNet Neural Network

Authors: Zhang Huiling
Journal: Security and Communication Networks
 (2022)

---

## Abstract

A dual-servo drive and control integrated platform based on VNet neural network development is aimed to address the concerns of poor realization function, operational stability, and lengthy reaction time in the presently built dual-servo drive and control integrated platform. The VNet neural network model structure is established, the VNet neural network model is trained, and the VNet neural network adaptive control method is introduced. Based on VNet neural network development, the hardware design of the dual servo drive control integrated platform has been completed through the overall hardware architecture of the platform, power drive circuit design, and control unit circuit design. The control program was developed using the C language based on a combination of STM32F4 library functions. Through the overall structure of the platform software, the design of functional modules and the design of the servo drive controller, the software design of the dual-servo drive and control integrated platform is completed, and the dual-servo drive and control integrated platform design is realized. The experimental results show that the proposed method design platform’s implementation function and operational stability are good, and the platform response time can be effectively shortened.


---

## Body

## 1. Introduction

At present, most motion control systems are mainly based on motion controller + servo driver, and the information exchange between motion controller and servo driver is mainly in the form of pulse commands, industrial bus, and industrial Ethernet, which have the advantages of wide application and reliable technology [1–3]. However, with the development of industrial demand, multiaxis motion control products are required to have miniaturization, low cost, high reliability, and flexibility [4, 5]. Using the traditional communication mode, the types of information transmitted between servo drive and motion control are limited, which cannot meet the needs of more high-performance motion control algorithms [6, 7]. With the demand of industry and the development of the microelectronics industry, the Xilinx ZYNQ fully programmable System-on-Chip (SOC) based on FPGA and ARM is widely used in the field of industrial control. It integrates dual ARM cores and an FPGA core, which is very suitable for the high integration technology of servo drive and motion control.The study on a dual servo drive control integrated platform is now making significant progress. An electrohydraulic servo system with double pump direct drive volume control was invented by Chai et al. [8]. The system doubles the size of the two chambers, and the oil distribution is controlled by two pumps. To save energy, the system substitutes the servo valve and adds a displacement sensor and control system to adapt its dynamic performance. The direct-drive volume control electrohydraulic servo system is investigated further, and a software simulation model is created. The hydraulic system is reliable and easy to use. A novel double-drive vertical lifting servo system with a slideway was invented by Zhong et al. [9]. A control scheme integrating proportional integral derivative control and fast terminal sliding mode control is adopted to ensure that the vertical lifting servo system realizes motion stability, fast convergence, small steady-state error, and strong robustness to changing parameters and external disturbances. The suggested control torque distribution technique decreases the potential rotational dynamics at the mass center and the synchronization inaccuracy is mostly induced by varied loads. A vast number of simulations are used to investigate the control scheme’s performance. However, the preceding approaches still have issues with platform function and operational stability, as well as a lengthy reaction time.A dual-servo drive and control integrated platform based on the VNet neural network has been developed to address the aforementioned issues. The VNet neural network adaptive control approach is presented, as is the VNet neural network model construction and training. The software and hardware of the dual-servo drive and control integrated platform were developed to achieve the design of the dual-servo drive and control integrated platform based on the development of the VNet neural network. The suggested method design platform has improved implementation functions and operational stability, as well as the capacity to effectively reduce the platform’s reaction time.


## 2. VNet Neural Network

### 2.1. VNet Neural Network Model Structure

The VNet neural network is a new three-dimensional segmentation network based on the FCN network [10]. Generally speaking, a VNet neural network can be understood as a “simplified version” of a feedforward neural network. Like the feedforward neural network, it has obvious hierarchical connections. The network mainly includes two parts: a convolutional layer and a pooling layer. The structure of the VNet neural network model is as shown in Figure 1.Figure 1
VNet neural network model structure.All input units are not directly connected in the convolution layer, greatly reducing the total amount of network parameters and reducing the risk of overfitting [11, 12]. The pooling layer can be directly regarded as a downsampling process to reduce the amount of data in each input layer. Because of the special connection mode of the convolution layer, the input units of the VNet neural network are not arranged in columns but expanded in the form of a two-dimensional matrix [13, 14].There are two basic components in the overall architecture of the VNet neural network, namely, the convolution layer and the pooling layer. The convolution layer can also be regarded as a filter in the traditional signal processing process. Formally, it can change a piece of data in the input layer into a data node in the output layer. After the operation of the convolutional layer, the first child node matrix (3 × 3 size) becomes a unit node moment (1 × 1) whose value is∑i=19xiwi. Next, by moving the value range of the child node matrix, a series of unit node matrices can be obtained, and finally, a brand new two-dimensional matrix can be obtained. The purpose of adding a pooling layer to the entire VNet neural network is to reasonably control the amount of data in the entire forward propagation process and remove redundant information to improve the overall computational efficiency of the model. This is mostly thought of in terms of the final fully connected network, since if the quantity of data is enormous, the number of parameters in the last few layers will also be large, increasing the danger of overfitting. The parameters in the final complete connection layer may be greatly decreased by lowering the size of the top layer’s operation. Unlike the convolution operation, the pooling layer picks the maximum or average value of the child node matrix components to complete the movement without having to go through a series of difficult calculations. The greatest pooling layer is employed in this paper. The specific structural parameters of the VNet neural network are in Table 1.Table 1
Specific structure parameter table of VNet neural network.
Layer titleSizeStepNumber of channelsConv17 × 728Pool13 × 328Conv25 × 5216Pool23 × 3216Conv33 × 3132Conv43 × 3132Conv53 × 3132Pool53 × 3232Full6——64Full7——32Full8——64


### 2.2. VNet Neural Network Model Training Process

In the process of model training, whether forward neural networks or convolutional neural networks, their generalization ability is very dependent on data. This paper’s training and test data originate from a simulation platform and a real-world setting. The input data for the feedforward neural network is a one-dimensional vector produced by the longitudinal arrangement of the received signals, with the recovered transmission symbol as the output. The received signal is also the input data in a convolutional neural network, but it must be converted into a square matrix as the input and output as the recovered transmission symbol. At the same time, in order to ensure the generalization ability of the model, a cross-validation technique is used in the training process to deal with the data setD accordingly. The VNet neural network model training process is shown in Figure 2.Figure 2
VNet neural network model training flowchart.In Figure2, the method is similar to the feedforward neural network and can be divided into forward propagation and reverse propagation. In the parameter initialization stage of the network, the training process based on the self-encoder is also adopted [15], and on the basis of L2 regularization, the method of randomly discarding connection nodes is added to enhance the robustness of the network and further prevent the occurrence of overfitting phenomenon.


### 2.3. VNet Neural Network Model Adaptive Control

The VNet neural network model adopts a five-layer structure, namely input layer, convolution layer, pooling layer, fully connected layer, and output layer. The number of nodes in each layer is 1, 5, 3, 1, and 1. The platform inputq, the error signal w, and the platform output e are used as the inputs of the controller. Let R=r1,r2,r3T be the input vector of the network, the radial basis vector is T=t1,t2,...,tj,...,t5T, where tl is the Gaussian function:(1)tl=exp−R−Yl22ul2,l=1,2,…,5.In formula (1), Yl=yl1,yl2,yl3T is the center vector of the l node, ul is the base width parameter of the node l, and U=u1,u2,...,u5T is the base width vector of the network. The output of the controller is(2)ok=p1a1+p2a2+...+p5a5.In formula (2), P=p1,p2,...,pj,...,p5T is the weight vector of the network. The performance index function of the controller is(3)Sk=12qk−ek2=12wk2.In terms of the intermediate value and width of the hidden layer of the controller, the gradient descent method and recursive least square method are used for training, respectively [16, 17].


## 2.1. VNet Neural Network Model Structure

The VNet neural network is a new three-dimensional segmentation network based on the FCN network [10]. Generally speaking, a VNet neural network can be understood as a “simplified version” of a feedforward neural network. Like the feedforward neural network, it has obvious hierarchical connections. The network mainly includes two parts: a convolutional layer and a pooling layer. The structure of the VNet neural network model is as shown in Figure 1.Figure 1
VNet neural network model structure.All input units are not directly connected in the convolution layer, greatly reducing the total amount of network parameters and reducing the risk of overfitting [11, 12]. The pooling layer can be directly regarded as a downsampling process to reduce the amount of data in each input layer. Because of the special connection mode of the convolution layer, the input units of the VNet neural network are not arranged in columns but expanded in the form of a two-dimensional matrix [13, 14].There are two basic components in the overall architecture of the VNet neural network, namely, the convolution layer and the pooling layer. The convolution layer can also be regarded as a filter in the traditional signal processing process. Formally, it can change a piece of data in the input layer into a data node in the output layer. After the operation of the convolutional layer, the first child node matrix (3 × 3 size) becomes a unit node moment (1 × 1) whose value is∑i=19xiwi. Next, by moving the value range of the child node matrix, a series of unit node matrices can be obtained, and finally, a brand new two-dimensional matrix can be obtained. The purpose of adding a pooling layer to the entire VNet neural network is to reasonably control the amount of data in the entire forward propagation process and remove redundant information to improve the overall computational efficiency of the model. This is mostly thought of in terms of the final fully connected network, since if the quantity of data is enormous, the number of parameters in the last few layers will also be large, increasing the danger of overfitting. The parameters in the final complete connection layer may be greatly decreased by lowering the size of the top layer’s operation. Unlike the convolution operation, the pooling layer picks the maximum or average value of the child node matrix components to complete the movement without having to go through a series of difficult calculations. The greatest pooling layer is employed in this paper. The specific structural parameters of the VNet neural network are in Table 1.Table 1
Specific structure parameter table of VNet neural network.
Layer titleSizeStepNumber of channelsConv17 × 728Pool13 × 328Conv25 × 5216Pool23 × 3216Conv33 × 3132Conv43 × 3132Conv53 × 3132Pool53 × 3232Full6——64Full7——32Full8——64


## 2.2. VNet Neural Network Model Training Process

In the process of model training, whether forward neural networks or convolutional neural networks, their generalization ability is very dependent on data. This paper’s training and test data originate from a simulation platform and a real-world setting. The input data for the feedforward neural network is a one-dimensional vector produced by the longitudinal arrangement of the received signals, with the recovered transmission symbol as the output. The received signal is also the input data in a convolutional neural network, but it must be converted into a square matrix as the input and output as the recovered transmission symbol. At the same time, in order to ensure the generalization ability of the model, a cross-validation technique is used in the training process to deal with the data setD accordingly. The VNet neural network model training process is shown in Figure 2.Figure 2
VNet neural network model training flowchart.In Figure2, the method is similar to the feedforward neural network and can be divided into forward propagation and reverse propagation. In the parameter initialization stage of the network, the training process based on the self-encoder is also adopted [15], and on the basis of L2 regularization, the method of randomly discarding connection nodes is added to enhance the robustness of the network and further prevent the occurrence of overfitting phenomenon.


## 2.3. VNet Neural Network Model Adaptive Control

The VNet neural network model adopts a five-layer structure, namely input layer, convolution layer, pooling layer, fully connected layer, and output layer. The number of nodes in each layer is 1, 5, 3, 1, and 1. The platform inputq, the error signal w, and the platform output e are used as the inputs of the controller. Let R=r1,r2,r3T be the input vector of the network, the radial basis vector is T=t1,t2,...,tj,...,t5T, where tl is the Gaussian function:(1)tl=exp−R−Yl22ul2,l=1,2,…,5.In formula (1), Yl=yl1,yl2,yl3T is the center vector of the l node, ul is the base width parameter of the node l, and U=u1,u2,...,u5T is the base width vector of the network. The output of the controller is(2)ok=p1a1+p2a2+...+p5a5.In formula (2), P=p1,p2,...,pj,...,p5T is the weight vector of the network. The performance index function of the controller is(3)Sk=12qk−ek2=12wk2.In terms of the intermediate value and width of the hidden layer of the controller, the gradient descent method and recursive least square method are used for training, respectively [16, 17].


## 3. Hardware Design of Dual Servo Drive and Control Integrated Platform

### 3.1. Overall Architecture of Platform Hardware

According to the design idea of the submodule, the hardware circuit is divided into three parts: one is the control circuit with the microprocessor as the core, which is mainly responsible for the implementation of algorithms, speed control, and vector control; collecting the three-phase current, estimating the rotor position, and outputting six SVPWM control waves; the second is the power circuit with IPM as the core, including the main circuit, driving circuit, and protection circuit; the third part is the communication display circuit, which completes the interaction of the man-machine interface, real-time speed, parameter setting, and so on. The hardware structure of the dual servo drive control integrated platform is shown in Figure3.Figure 3
Hardware structure of dual servo drive control integrated platform.The main control chip selected by the platform is the STM32F407ZGT6. This chip is the core of the Cortex-M4, with excellent performance and can handle coordinate conversion and big data operations. The intelligent power module of the power part is FSBB20CH60C. The power circuit of the platform is mainly composed of the rectifier kbpc1506 and other power devices. The current sensor of the current feedback detection part is TCB10P.


### 3.2. Power Drive Circuit Design

The power driving circuit mainly consists of three parts: the rectifier circuit, filter circuit, and inverter circuit. Firstly, the rectifier circuit is used to convert the AC power into a constant or variable DC power supply, then the filter circuit is used to filter the current ripple, and then the inverter is used to convert the DC power supply into a variable frequency AC power supply.


#### 3.2.1. Rectifier Circuit Design

The work of the rectifier circuit is mainly undertaken by the rectifier device KBPC1506. Its maximum reverse voltage is 600 V and the maximum rated current is 15 A, which can fully meet the requirements of general servo platform use. The rectifier circuit consists of two parts: the rectifier part and the filter part, whose function is to transform the input of the three-phase AC power supply into a DC power supply for the use of the inverter circuit in the future [18, 19]. The rectifier circuit is as in Figure 4.Figure 4
Rectifier circuit.The rectifier part is mainly composed of six diodes. When the three-phase AC power supply is applied, it can be seen from the working principle of diode forward connection that two diodes are connected at any time, so that the three-phase AC can be rectified into a pulsating DC power supply, and the amplitude value can be obtained by calculating the average input line voltage. The filtering part includes two electrolytic capacitorsCf and Lf. After rectification, pulses in the DC voltage will be filtered out, and the voltage tends to be smooth.


#### 3.2.2. Inverter Circuit Design

The inverter circuit is controlled by a PWM control signal to control the on and off of six power transistors [20, 21]. The inverter’s switching and basic voltage management might cause the voltage source to create a reactive motor load. Furthermore, inverters on or off-voltage equipment can change the phase of voltage and current, which is critical for AC motor control and the foundation of different control techniques. There are two kinds of inverter circuits: discrete switching device inverter circuits and intelligent power module integrated circuits (IPMs). The discrete device inverter circuit offers the benefits of high voltage and high current resistance. However, the employment of discrete components is particularly simple to damage owing to the influence of the unique working environment. External protection circuits, such as overvoltage, overcurrent, and overtemperature, are often required, which will surely raise the complexity of circuit design and be detrimental to the platform’s dependability and integration. The intelligent power module is an advanced hybrid integrated success rate device that integrates high-speed, low-power IGBT, a driving circuit, logic control circuit, and a detection and protection circuit. It has the function of intelligent protection against overvoltage, overcurrent, overheating, short circuits, and other faults. It greatly reduces the use of peripheral protection circuits of the inverter circuit and can effectively reduce the hardware volume of the platform.


### 3.3. Control Unit Circuit Design

The control part is the core part of the whole platform hardware and the carrier of the control algorithm of the dual servo platform. The control part is composed of the main control chip and its peripheral circuit. The main control chip selected in this paper is the STM32F407ZGT6 produced by ST company. This chip is a high-efficiency processor device integrating the programming simplicity and flexibility of a microcontroller (MCU) and the high operation speed of a digital signal processor (DSP), which is called a digital signal controller (DSC). The circuit design around the STM32F407ZGT6 includes a power supply circuit design, a clock, a reset, a configuration circuit, a debug circuit, and a current detection circuit.


#### 3.3.1. Power Supply Circuit Design

The power supply of the STM32F4 is composed of four voltage domains, including VDD, 1.2 V, VDDA, and a backup power supply.(1) VDD Power Supply Design. The power conversion circuit required for VDD is shown in Figure 5.Figure 5
VDD power conversion circuit.The designed switching power supply provides the 5 V power supply for the platform. In this paper, the AMS117 power conversion chip was selected considering its SOT223 package, good voltage stabilizing performance, large converted power supply current, and high accuracy, ensuring a reliable and safe power supply.(2) Backup Power Supply Design. Considering the integrated drive and control hardware design requirements, the RTC and backup register backup domain power supplies adopt a power supply mode combining the conversion circuit and battery power supply. The principle of the backup domain power supply circuit is shown in Figure 6.Figure 6
Backup domain power circuit principle.When the platform is working normally, the power is provided by the VDD connected to the decoupling capacitor, and the diode D1 is turned on at this time. When the platform is powered off or accidentally powered off, the diode D2 is turned on. At this time, the power is provided by the lithium battery. In this way, the VBAT is always in the power state so as to ensure the correct time of the RTC and the information in the backup register will not be lost.(3) ADC Power Supply Design. In order to ensure the accuracy of ADC conversion, the platform uses an independent power supply. The ADC power supply circuit is shown in Figure 7.Figure 7
ADC power supply circuit.Because the accuracy of sampling current is directly related to the accuracy of current loop adjustment parameters and platform, the power supply of an ADC needs a filter circuit composed of magnetic beads and capacitors to filter out high-frequency impurities and burr interference from the printed circuit board so as to improve the accuracy and anti-interference ability of ADC conversion.


#### 3.3.2. Reset, Clock Circuit, and Debug Interface

(1) Reset Circuit Design. When the microcontroller is powered on, the reset circuit is used to maintain the reset of the CPU to prevent the platform from starting to work immediately after powering on [22]. The power of the CPU can work immediately, and it is likely to issue wrong instructions and produce wrong actions. The external reset circuit is shown in Figure 8.Figure 8
External reset circuit.STM32F4 sets the startup mode by pins BOOT0 and BOOT1, which are FLASH startup, platform memory startup, and SRAM startup, respectively. In order to facilitate the use, this article chooses the serial port download. The platform is started by the memory. BOOT0 and BOOT1 are automatically configured by the serial port DTR and RTS.(2) Clock Circuit Design: In addition to the HSI oscillator clock, the STM32F4 also has two external clocks. First, the input crystal frequency of the HSE external oscillation clock can be selected by the user so as to provide an accurate main frequency for the platform; second, the low-speed external clock LSE usually selects a 32.768 kHz crystal oscillation to provide the platform with a calendar clock. Users can drive the real-time clock RTCCLK through software. The high-speed external clock oscillation circuit is shown in Figure 9.Figure 9
High-speed external clock oscillation circuit.The load capacitor is a high-quality magnetic dielectric capacitor that may be used in high-frequency designs. Both loads have the same capacitance value of 20 pF. A resistance, R1, is added to the crystal oscillator to make it vibrate faster, and its resistance value is 1 M. The effect of R1 utilization in common applications cannot be assessed.(3) Interface Design for Debugging. With just two pins, the SWD serial wire debugging interface technology can perform the same high-speed, high-performance debugging and real-time memory access as the JTAG debugging interface. It also boasts low power consumption, a high-performance data rate (10 MB/s, 50 MHz), built-in error detection, and other features. All ARM processors are compatible with the SWD debugging interface, allowing for a risk-free transition from JTAG. Figure 10 shows the SWD debug interface’s circuit.Figure 10
SWD debug interface.


#### 3.3.3. Phase Current and Bus Voltage Detection Circuit

In the dual servo control platform, the accurate detection of PMSM phase current is directly related to the control parameter setting of the platform current loop and plays a vital role in the stability and accuracy of the whole servo.(1) Phase Current Detection Circuit Design: Common phase current detection methods in AC servo control platforms mainly include Hall element sampling, sampling resistance, magnetoresistance sampling, and DC mutual inductance sampling [23]. Among them, resistance sampling is divided into single resistance sampling and three resistance samplings. According to the principle of output virtual short and virtual break, the input impedance of the voltage follower circuit is infinite. The signal voltage follower output by the hall device can effectively avoid the influence of the subsequent circuit, and the amplitude of the voltage value can be kept constant. The second-order voltage-controlled low-pass filter is used in the subsequent processing of the current. At the same time, in order to prevent the detection signal from damaging the STM32F4 processor chip, a 3.3 V clamping circuit is designed before the detection signal is sent to the processor so that the analog signal voltage does not exceed 3.3 V. The current signal sent to the processing chip is accurate and reliable through the current signal processing circuit.(2) Bus Voltage Detection Circuit Design. Usually two methods are used to measure the DC bus voltage: one is to reduce the bus voltage value through a voltage divider resistor. The collected bus voltage is input to the A/D conversion module through the optocoupler isolation circuit for comparison and judgment. The second is to be completed through a voltage sensor. The bus voltage passes through the four voltage dividing resistors R33, R34, R35, and R36 to obtain the sampling voltage. After the sampling voltage is isolated by the optocoupler A7840, the output differential mode signal is sent to the subsequent amplification circuit for amplification and output. Finally, it is sent to the processor STM32F407 to detect the bus voltage and complete the protection processing such as undervoltage and overcurrent.


## 3.1. Overall Architecture of Platform Hardware

According to the design idea of the submodule, the hardware circuit is divided into three parts: one is the control circuit with the microprocessor as the core, which is mainly responsible for the implementation of algorithms, speed control, and vector control; collecting the three-phase current, estimating the rotor position, and outputting six SVPWM control waves; the second is the power circuit with IPM as the core, including the main circuit, driving circuit, and protection circuit; the third part is the communication display circuit, which completes the interaction of the man-machine interface, real-time speed, parameter setting, and so on. The hardware structure of the dual servo drive control integrated platform is shown in Figure3.Figure 3
Hardware structure of dual servo drive control integrated platform.The main control chip selected by the platform is the STM32F407ZGT6. This chip is the core of the Cortex-M4, with excellent performance and can handle coordinate conversion and big data operations. The intelligent power module of the power part is FSBB20CH60C. The power circuit of the platform is mainly composed of the rectifier kbpc1506 and other power devices. The current sensor of the current feedback detection part is TCB10P.


## 3.2. Power Drive Circuit Design

The power driving circuit mainly consists of three parts: the rectifier circuit, filter circuit, and inverter circuit. Firstly, the rectifier circuit is used to convert the AC power into a constant or variable DC power supply, then the filter circuit is used to filter the current ripple, and then the inverter is used to convert the DC power supply into a variable frequency AC power supply.


### 3.2.1. Rectifier Circuit Design

The work of the rectifier circuit is mainly undertaken by the rectifier device KBPC1506. Its maximum reverse voltage is 600 V and the maximum rated current is 15 A, which can fully meet the requirements of general servo platform use. The rectifier circuit consists of two parts: the rectifier part and the filter part, whose function is to transform the input of the three-phase AC power supply into a DC power supply for the use of the inverter circuit in the future [18, 19]. The rectifier circuit is as in Figure 4.Figure 4
Rectifier circuit.The rectifier part is mainly composed of six diodes. When the three-phase AC power supply is applied, it can be seen from the working principle of diode forward connection that two diodes are connected at any time, so that the three-phase AC can be rectified into a pulsating DC power supply, and the amplitude value can be obtained by calculating the average input line voltage. The filtering part includes two electrolytic capacitorsCf and Lf. After rectification, pulses in the DC voltage will be filtered out, and the voltage tends to be smooth.


### 3.2.2. Inverter Circuit Design

The inverter circuit is controlled by a PWM control signal to control the on and off of six power transistors [20, 21]. The inverter’s switching and basic voltage management might cause the voltage source to create a reactive motor load. Furthermore, inverters on or off-voltage equipment can change the phase of voltage and current, which is critical for AC motor control and the foundation of different control techniques. There are two kinds of inverter circuits: discrete switching device inverter circuits and intelligent power module integrated circuits (IPMs). The discrete device inverter circuit offers the benefits of high voltage and high current resistance. However, the employment of discrete components is particularly simple to damage owing to the influence of the unique working environment. External protection circuits, such as overvoltage, overcurrent, and overtemperature, are often required, which will surely raise the complexity of circuit design and be detrimental to the platform’s dependability and integration. The intelligent power module is an advanced hybrid integrated success rate device that integrates high-speed, low-power IGBT, a driving circuit, logic control circuit, and a detection and protection circuit. It has the function of intelligent protection against overvoltage, overcurrent, overheating, short circuits, and other faults. It greatly reduces the use of peripheral protection circuits of the inverter circuit and can effectively reduce the hardware volume of the platform.


## 3.2.1. Rectifier Circuit Design

The work of the rectifier circuit is mainly undertaken by the rectifier device KBPC1506. Its maximum reverse voltage is 600 V and the maximum rated current is 15 A, which can fully meet the requirements of general servo platform use. The rectifier circuit consists of two parts: the rectifier part and the filter part, whose function is to transform the input of the three-phase AC power supply into a DC power supply for the use of the inverter circuit in the future [18, 19]. The rectifier circuit is as in Figure 4.Figure 4
Rectifier circuit.The rectifier part is mainly composed of six diodes. When the three-phase AC power supply is applied, it can be seen from the working principle of diode forward connection that two diodes are connected at any time, so that the three-phase AC can be rectified into a pulsating DC power supply, and the amplitude value can be obtained by calculating the average input line voltage. The filtering part includes two electrolytic capacitorsCf and Lf. After rectification, pulses in the DC voltage will be filtered out, and the voltage tends to be smooth.


## 3.2.2. Inverter Circuit Design

The inverter circuit is controlled by a PWM control signal to control the on and off of six power transistors [20, 21]. The inverter’s switching and basic voltage management might cause the voltage source to create a reactive motor load. Furthermore, inverters on or off-voltage equipment can change the phase of voltage and current, which is critical for AC motor control and the foundation of different control techniques. There are two kinds of inverter circuits: discrete switching device inverter circuits and intelligent power module integrated circuits (IPMs). The discrete device inverter circuit offers the benefits of high voltage and high current resistance. However, the employment of discrete components is particularly simple to damage owing to the influence of the unique working environment. External protection circuits, such as overvoltage, overcurrent, and overtemperature, are often required, which will surely raise the complexity of circuit design and be detrimental to the platform’s dependability and integration. The intelligent power module is an advanced hybrid integrated success rate device that integrates high-speed, low-power IGBT, a driving circuit, logic control circuit, and a detection and protection circuit. It has the function of intelligent protection against overvoltage, overcurrent, overheating, short circuits, and other faults. It greatly reduces the use of peripheral protection circuits of the inverter circuit and can effectively reduce the hardware volume of the platform.


## 3.3. Control Unit Circuit Design

The control part is the core part of the whole platform hardware and the carrier of the control algorithm of the dual servo platform. The control part is composed of the main control chip and its peripheral circuit. The main control chip selected in this paper is the STM32F407ZGT6 produced by ST company. This chip is a high-efficiency processor device integrating the programming simplicity and flexibility of a microcontroller (MCU) and the high operation speed of a digital signal processor (DSP), which is called a digital signal controller (DSC). The circuit design around the STM32F407ZGT6 includes a power supply circuit design, a clock, a reset, a configuration circuit, a debug circuit, and a current detection circuit.


### 3.3.1. Power Supply Circuit Design

The power supply of the STM32F4 is composed of four voltage domains, including VDD, 1.2 V, VDDA, and a backup power supply.(1) VDD Power Supply Design. The power conversion circuit required for VDD is shown in Figure 5.Figure 5
VDD power conversion circuit.The designed switching power supply provides the 5 V power supply for the platform. In this paper, the AMS117 power conversion chip was selected considering its SOT223 package, good voltage stabilizing performance, large converted power supply current, and high accuracy, ensuring a reliable and safe power supply.(2) Backup Power Supply Design. Considering the integrated drive and control hardware design requirements, the RTC and backup register backup domain power supplies adopt a power supply mode combining the conversion circuit and battery power supply. The principle of the backup domain power supply circuit is shown in Figure 6.Figure 6
Backup domain power circuit principle.When the platform is working normally, the power is provided by the VDD connected to the decoupling capacitor, and the diode D1 is turned on at this time. When the platform is powered off or accidentally powered off, the diode D2 is turned on. At this time, the power is provided by the lithium battery. In this way, the VBAT is always in the power state so as to ensure the correct time of the RTC and the information in the backup register will not be lost.(3) ADC Power Supply Design. In order to ensure the accuracy of ADC conversion, the platform uses an independent power supply. The ADC power supply circuit is shown in Figure 7.Figure 7
ADC power supply circuit.Because the accuracy of sampling current is directly related to the accuracy of current loop adjustment parameters and platform, the power supply of an ADC needs a filter circuit composed of magnetic beads and capacitors to filter out high-frequency impurities and burr interference from the printed circuit board so as to improve the accuracy and anti-interference ability of ADC conversion.


### 3.3.2. Reset, Clock Circuit, and Debug Interface

(1) Reset Circuit Design. When the microcontroller is powered on, the reset circuit is used to maintain the reset of the CPU to prevent the platform from starting to work immediately after powering on [22]. The power of the CPU can work immediately, and it is likely to issue wrong instructions and produce wrong actions. The external reset circuit is shown in Figure 8.Figure 8
External reset circuit.STM32F4 sets the startup mode by pins BOOT0 and BOOT1, which are FLASH startup, platform memory startup, and SRAM startup, respectively. In order to facilitate the use, this article chooses the serial port download. The platform is started by the memory. BOOT0 and BOOT1 are automatically configured by the serial port DTR and RTS.(2) Clock Circuit Design: In addition to the HSI oscillator clock, the STM32F4 also has two external clocks. First, the input crystal frequency of the HSE external oscillation clock can be selected by the user so as to provide an accurate main frequency for the platform; second, the low-speed external clock LSE usually selects a 32.768 kHz crystal oscillation to provide the platform with a calendar clock. Users can drive the real-time clock RTCCLK through software. The high-speed external clock oscillation circuit is shown in Figure 9.Figure 9
High-speed external clock oscillation circuit.The load capacitor is a high-quality magnetic dielectric capacitor that may be used in high-frequency designs. Both loads have the same capacitance value of 20 pF. A resistance, R1, is added to the crystal oscillator to make it vibrate faster, and its resistance value is 1 M. The effect of R1 utilization in common applications cannot be assessed.(3) Interface Design for Debugging. With just two pins, the SWD serial wire debugging interface technology can perform the same high-speed, high-performance debugging and real-time memory access as the JTAG debugging interface. It also boasts low power consumption, a high-performance data rate (10 MB/s, 50 MHz), built-in error detection, and other features. All ARM processors are compatible with the SWD debugging interface, allowing for a risk-free transition from JTAG. Figure 10 shows the SWD debug interface’s circuit.Figure 10
SWD debug interface.


### 3.3.3. Phase Current and Bus Voltage Detection Circuit

In the dual servo control platform, the accurate detection of PMSM phase current is directly related to the control parameter setting of the platform current loop and plays a vital role in the stability and accuracy of the whole servo.(1) Phase Current Detection Circuit Design: Common phase current detection methods in AC servo control platforms mainly include Hall element sampling, sampling resistance, magnetoresistance sampling, and DC mutual inductance sampling [23]. Among them, resistance sampling is divided into single resistance sampling and three resistance samplings. According to the principle of output virtual short and virtual break, the input impedance of the voltage follower circuit is infinite. The signal voltage follower output by the hall device can effectively avoid the influence of the subsequent circuit, and the amplitude of the voltage value can be kept constant. The second-order voltage-controlled low-pass filter is used in the subsequent processing of the current. At the same time, in order to prevent the detection signal from damaging the STM32F4 processor chip, a 3.3 V clamping circuit is designed before the detection signal is sent to the processor so that the analog signal voltage does not exceed 3.3 V. The current signal sent to the processing chip is accurate and reliable through the current signal processing circuit.(2) Bus Voltage Detection Circuit Design. Usually two methods are used to measure the DC bus voltage: one is to reduce the bus voltage value through a voltage divider resistor. The collected bus voltage is input to the A/D conversion module through the optocoupler isolation circuit for comparison and judgment. The second is to be completed through a voltage sensor. The bus voltage passes through the four voltage dividing resistors R33, R34, R35, and R36 to obtain the sampling voltage. After the sampling voltage is isolated by the optocoupler A7840, the output differential mode signal is sent to the subsequent amplification circuit for amplification and output. Finally, it is sent to the processor STM32F407 to detect the bus voltage and complete the protection processing such as undervoltage and overcurrent.


## 3.3.1. Power Supply Circuit Design

The power supply of the STM32F4 is composed of four voltage domains, including VDD, 1.2 V, VDDA, and a backup power supply.(1) VDD Power Supply Design. The power conversion circuit required for VDD is shown in Figure 5.Figure 5
VDD power conversion circuit.The designed switching power supply provides the 5 V power supply for the platform. In this paper, the AMS117 power conversion chip was selected considering its SOT223 package, good voltage stabilizing performance, large converted power supply current, and high accuracy, ensuring a reliable and safe power supply.(2) Backup Power Supply Design. Considering the integrated drive and control hardware design requirements, the RTC and backup register backup domain power supplies adopt a power supply mode combining the conversion circuit and battery power supply. The principle of the backup domain power supply circuit is shown in Figure 6.Figure 6
Backup domain power circuit principle.When the platform is working normally, the power is provided by the VDD connected to the decoupling capacitor, and the diode D1 is turned on at this time. When the platform is powered off or accidentally powered off, the diode D2 is turned on. At this time, the power is provided by the lithium battery. In this way, the VBAT is always in the power state so as to ensure the correct time of the RTC and the information in the backup register will not be lost.(3) ADC Power Supply Design. In order to ensure the accuracy of ADC conversion, the platform uses an independent power supply. The ADC power supply circuit is shown in Figure 7.Figure 7
ADC power supply circuit.Because the accuracy of sampling current is directly related to the accuracy of current loop adjustment parameters and platform, the power supply of an ADC needs a filter circuit composed of magnetic beads and capacitors to filter out high-frequency impurities and burr interference from the printed circuit board so as to improve the accuracy and anti-interference ability of ADC conversion.


## 3.3.2. Reset, Clock Circuit, and Debug Interface

(1) Reset Circuit Design. When the microcontroller is powered on, the reset circuit is used to maintain the reset of the CPU to prevent the platform from starting to work immediately after powering on [22]. The power of the CPU can work immediately, and it is likely to issue wrong instructions and produce wrong actions. The external reset circuit is shown in Figure 8.Figure 8
External reset circuit.STM32F4 sets the startup mode by pins BOOT0 and BOOT1, which are FLASH startup, platform memory startup, and SRAM startup, respectively. In order to facilitate the use, this article chooses the serial port download. The platform is started by the memory. BOOT0 and BOOT1 are automatically configured by the serial port DTR and RTS.(2) Clock Circuit Design: In addition to the HSI oscillator clock, the STM32F4 also has two external clocks. First, the input crystal frequency of the HSE external oscillation clock can be selected by the user so as to provide an accurate main frequency for the platform; second, the low-speed external clock LSE usually selects a 32.768 kHz crystal oscillation to provide the platform with a calendar clock. Users can drive the real-time clock RTCCLK through software. The high-speed external clock oscillation circuit is shown in Figure 9.Figure 9
High-speed external clock oscillation circuit.The load capacitor is a high-quality magnetic dielectric capacitor that may be used in high-frequency designs. Both loads have the same capacitance value of 20 pF. A resistance, R1, is added to the crystal oscillator to make it vibrate faster, and its resistance value is 1 M. The effect of R1 utilization in common applications cannot be assessed.(3) Interface Design for Debugging. With just two pins, the SWD serial wire debugging interface technology can perform the same high-speed, high-performance debugging and real-time memory access as the JTAG debugging interface. It also boasts low power consumption, a high-performance data rate (10 MB/s, 50 MHz), built-in error detection, and other features. All ARM processors are compatible with the SWD debugging interface, allowing for a risk-free transition from JTAG. Figure 10 shows the SWD debug interface’s circuit.Figure 10
SWD debug interface.


## 3.3.3. Phase Current and Bus Voltage Detection Circuit

In the dual servo control platform, the accurate detection of PMSM phase current is directly related to the control parameter setting of the platform current loop and plays a vital role in the stability and accuracy of the whole servo.(1) Phase Current Detection Circuit Design: Common phase current detection methods in AC servo control platforms mainly include Hall element sampling, sampling resistance, magnetoresistance sampling, and DC mutual inductance sampling [23]. Among them, resistance sampling is divided into single resistance sampling and three resistance samplings. According to the principle of output virtual short and virtual break, the input impedance of the voltage follower circuit is infinite. The signal voltage follower output by the hall device can effectively avoid the influence of the subsequent circuit, and the amplitude of the voltage value can be kept constant. The second-order voltage-controlled low-pass filter is used in the subsequent processing of the current. At the same time, in order to prevent the detection signal from damaging the STM32F4 processor chip, a 3.3 V clamping circuit is designed before the detection signal is sent to the processor so that the analog signal voltage does not exceed 3.3 V. The current signal sent to the processing chip is accurate and reliable through the current signal processing circuit.(2) Bus Voltage Detection Circuit Design. Usually two methods are used to measure the DC bus voltage: one is to reduce the bus voltage value through a voltage divider resistor. The collected bus voltage is input to the A/D conversion module through the optocoupler isolation circuit for comparison and judgment. The second is to be completed through a voltage sensor. The bus voltage passes through the four voltage dividing resistors R33, R34, R35, and R36 to obtain the sampling voltage. After the sampling voltage is isolated by the optocoupler A7840, the output differential mode signal is sent to the subsequent amplification circuit for amplification and output. Finally, it is sent to the processor STM32F407 to detect the bus voltage and complete the protection processing such as undervoltage and overcurrent.


## 4. Software Design of Dual Servo Drive Control Integrated Platform

The software design in this paper is based on the combination of STM32F4 library functions and uses the C language to develop a control program, including the main program, interrupt service program, and communication program. It focuses on the implementation process of FOC + SVPWM and sensorless algorithms.


### 4.1. Overall Structure of Platform Software

According to the functions to be realized and the programming characteristics of STM32F4, the software design can be divided into four parts: platform initialization program, interrupt service program, external interrupt service, and platform communication program. The overall structure of the platform software is shown in Figure11.(1)
Initialization program: the platform’s initialization program. We configure the parameters of the platform’s timer, set the platform’s clock frequency, set the interrupt nested vector (NVIC), initialize the communication module, initialize the current, speed, and other controller variables and control parameters used by the servo platform, initialize the FOC and SVPWM algorithms, and configure the parameters of the communication program are among the tasks that have been completed.(2)
Main program: after finishing the startup program, the platform begins the main program of an endless loop. The platform detects the key circuit on a regular basis, updates the LCD, and communicates with the host computer in the main application.(3)
Interrupt service subroutine: tasks performed in the timer interrupt in the dual servo control platform include current control, speed regulation, rotor position prediction, and fault protection. Current control and rotor position estimation have the highest execution frequency requirements, and the frequency used isF; speed control and fault protection have lower execution frequency requirements, and the frequency used for speed control is one-fifth of the main frequency F; and fault sampling interrupts have a lower frequency.(4)
Communication program design: the dual-servo control platform is equipped with communication and LCD modules in order to comprehend the platform’s operational state in real-time and provide control orders to the platform at any moment. The CAN bus is used to transmit information from the communication module. Due to its unique control capabilities, such as multi-master control, rapid communication speed, error checking, and recovery, the CAN bus is extensively employed in industry.Figure 11
Overall structure of platform software.


### 4.2. Function Module Design

The functions involved in this platform mainly include the implementation of vector control (FOC), space vector pulse width modulation (SVPWM), sliding mode controller, current loop, and speed loop PI controller.(1)
Realization of FOC: the purpose of vector control (FOC) is to transform the stator current of a complex three-phase AC motor into a torque current and excitation current similar to that of a two-phase DC motor through power-equivalent coordinate conversion. This current is the feedback current of the platform current loop, which will be compared with the current output by the platform speed loop, and then the difference will be input to the current controller for PI adjustment, and finally used as the input signal of the SVPWM link.(2)
Realization of SVPWM: the six non-zero space vectors formed by the inverter’s six bridge arm switching states can form a positive hexagonal magnetic field in space. The function of the SVPWM module is to make the positive hexagonal magnetic field infinitely close to the circular rotating magnetic field by using the method of positive hexagonal successive approximation.(3)
Estimation of sensorless position and speed of motor: in the sliding mode control subroutine, it is necessary to measure the hardware parameters such as winding inductance and winding resistance of the motor, then use the sliding mode current observer and the digital model of the motor to estimate the motor current and use the filter to estimate the phase current. Then the rotor position of the motor is obtained by using the inverse tangent function, and the rotor angle is integrated to calculate the speed of the motor. Finally, the estimated speed and angle data are filtered and the phase delay is compensated.


### 4.3. Servo Drive Controller Design

#### 4.3.1. Design and Parameter Selection of Current Loop Controller

The servo motor is a surface-mounted permanent magnet synchronous motor, and its voltage equation is as follows:(4)zdqsr=Xscdqsr+Vsdcdqsrdt+ψrτdqsr.In formula (4), Vs is the motor d−p axis inductance, Xs is the stator resistance, zdqsr is the d−p axis voltage, cdqsr is the d−p axis feedback current, τdqsr is the rotor flux, and ψr is the electrical angular velocity of the motor. The current loop adopts PI control, which has strong robustness to motor parameter changes. According to the output of PI controller, the voltage input is as follows [24]:(5)z'dqsr=εc′dqsr−cdqsr+ϕ∫c′dqsr−cdqsrdt+ψrτdqsr.In formula (5), z′dqsr is the reference input voltage, c′dqsr is the reference input current of the d−p axis, ε is the current loop gain, and ϕ is the current loop integration time constant. According to the pole-zero cancellation, the controller gains ε=Vsψcb′, ϕ=Xsψcb′, ψcb′ are the expected bandwidth of the current loop. This article sets the expected bandwidth as 2 kHz. To compensate the back EMF and cross decoupling of the point current loop, the current loop transfer function is(6)Bc1s=cdqsrcdqs′r=εs+ϕVss2+ε+Xssϕ=ψcb′s+ψcb′.The transfer function of the platform is determined by the poles and zeros of the platform and the bandwidth.


#### 4.3.2. Speed Loop Controller Design and Parameter Selection

The mechanical equation of the servo motor is as follows:(7)Nem=Mdψrdt+Lψr+Nload.In formula (7), Nem is the electromagnetic torque of the motor, M is the load inertia of the motor, ψr is the motor speed, L is the damping coefficient of the platform, and Nload is the load torque [25]. The speed loop adopts PI controller and the transfer equation of the platform is as follows:(8)Nem∗=εsr+ϕsrsψr∗−ψr.By substituting formula (7) into formula (8)(9)ψrψr∗=εsr+ϕsrMs2+L+εsrs+ϕsr.In the above equation, the control parameters chooseεsr=Mψsr, ϕsr=θsrεsrψsr, where ψsr for the speed loop bandwidth, and θsr for the speed loop bandwidth setting coefficient, and we select 0.2. The design of a dual-servo drive and control integrated platform based on VNet neural network development is realized through the above steps.


## 4.1. Overall Structure of Platform Software

According to the functions to be realized and the programming characteristics of STM32F4, the software design can be divided into four parts: platform initialization program, interrupt service program, external interrupt service, and platform communication program. The overall structure of the platform software is shown in Figure11.(1)
Initialization program: the platform’s initialization program. We configure the parameters of the platform’s timer, set the platform’s clock frequency, set the interrupt nested vector (NVIC), initialize the communication module, initialize the current, speed, and other controller variables and control parameters used by the servo platform, initialize the FOC and SVPWM algorithms, and configure the parameters of the communication program are among the tasks that have been completed.(2)
Main program: after finishing the startup program, the platform begins the main program of an endless loop. The platform detects the key circuit on a regular basis, updates the LCD, and communicates with the host computer in the main application.(3)
Interrupt service subroutine: tasks performed in the timer interrupt in the dual servo control platform include current control, speed regulation, rotor position prediction, and fault protection. Current control and rotor position estimation have the highest execution frequency requirements, and the frequency used isF; speed control and fault protection have lower execution frequency requirements, and the frequency used for speed control is one-fifth of the main frequency F; and fault sampling interrupts have a lower frequency.(4)
Communication program design: the dual-servo control platform is equipped with communication and LCD modules in order to comprehend the platform’s operational state in real-time and provide control orders to the platform at any moment. The CAN bus is used to transmit information from the communication module. Due to its unique control capabilities, such as multi-master control, rapid communication speed, error checking, and recovery, the CAN bus is extensively employed in industry.Figure 11
Overall structure of platform software.


## 4.2. Function Module Design

The functions involved in this platform mainly include the implementation of vector control (FOC), space vector pulse width modulation (SVPWM), sliding mode controller, current loop, and speed loop PI controller.(1)
Realization of FOC: the purpose of vector control (FOC) is to transform the stator current of a complex three-phase AC motor into a torque current and excitation current similar to that of a two-phase DC motor through power-equivalent coordinate conversion. This current is the feedback current of the platform current loop, which will be compared with the current output by the platform speed loop, and then the difference will be input to the current controller for PI adjustment, and finally used as the input signal of the SVPWM link.(2)
Realization of SVPWM: the six non-zero space vectors formed by the inverter’s six bridge arm switching states can form a positive hexagonal magnetic field in space. The function of the SVPWM module is to make the positive hexagonal magnetic field infinitely close to the circular rotating magnetic field by using the method of positive hexagonal successive approximation.(3)
Estimation of sensorless position and speed of motor: in the sliding mode control subroutine, it is necessary to measure the hardware parameters such as winding inductance and winding resistance of the motor, then use the sliding mode current observer and the digital model of the motor to estimate the motor current and use the filter to estimate the phase current. Then the rotor position of the motor is obtained by using the inverse tangent function, and the rotor angle is integrated to calculate the speed of the motor. Finally, the estimated speed and angle data are filtered and the phase delay is compensated.


## 4.3. Servo Drive Controller Design

### 4.3.1. Design and Parameter Selection of Current Loop Controller

The servo motor is a surface-mounted permanent magnet synchronous motor, and its voltage equation is as follows:(4)zdqsr=Xscdqsr+Vsdcdqsrdt+ψrτdqsr.In formula (4), Vs is the motor d−p axis inductance, Xs is the stator resistance, zdqsr is the d−p axis voltage, cdqsr is the d−p axis feedback current, τdqsr is the rotor flux, and ψr is the electrical angular velocity of the motor. The current loop adopts PI control, which has strong robustness to motor parameter changes. According to the output of PI controller, the voltage input is as follows [24]:(5)z'dqsr=εc′dqsr−cdqsr+ϕ∫c′dqsr−cdqsrdt+ψrτdqsr.In formula (5), z′dqsr is the reference input voltage, c′dqsr is the reference input current of the d−p axis, ε is the current loop gain, and ϕ is the current loop integration time constant. According to the pole-zero cancellation, the controller gains ε=Vsψcb′, ϕ=Xsψcb′, ψcb′ are the expected bandwidth of the current loop. This article sets the expected bandwidth as 2 kHz. To compensate the back EMF and cross decoupling of the point current loop, the current loop transfer function is(6)Bc1s=cdqsrcdqs′r=εs+ϕVss2+ε+Xssϕ=ψcb′s+ψcb′.The transfer function of the platform is determined by the poles and zeros of the platform and the bandwidth.


### 4.3.2. Speed Loop Controller Design and Parameter Selection

The mechanical equation of the servo motor is as follows:(7)Nem=Mdψrdt+Lψr+Nload.In formula (7), Nem is the electromagnetic torque of the motor, M is the load inertia of the motor, ψr is the motor speed, L is the damping coefficient of the platform, and Nload is the load torque [25]. The speed loop adopts PI controller and the transfer equation of the platform is as follows:(8)Nem∗=εsr+ϕsrsψr∗−ψr.By substituting formula (7) into formula (8)(9)ψrψr∗=εsr+ϕsrMs2+L+εsrs+ϕsr.In the above equation, the control parameters chooseεsr=Mψsr, ϕsr=θsrεsrψsr, where ψsr for the speed loop bandwidth, and θsr for the speed loop bandwidth setting coefficient, and we select 0.2. The design of a dual-servo drive and control integrated platform based on VNet neural network development is realized through the above steps.


## 4.3.1. Design and Parameter Selection of Current Loop Controller

The servo motor is a surface-mounted permanent magnet synchronous motor, and its voltage equation is as follows:(4)zdqsr=Xscdqsr+Vsdcdqsrdt+ψrτdqsr.In formula (4), Vs is the motor d−p axis inductance, Xs is the stator resistance, zdqsr is the d−p axis voltage, cdqsr is the d−p axis feedback current, τdqsr is the rotor flux, and ψr is the electrical angular velocity of the motor. The current loop adopts PI control, which has strong robustness to motor parameter changes. According to the output of PI controller, the voltage input is as follows [24]:(5)z'dqsr=εc′dqsr−cdqsr+ϕ∫c′dqsr−cdqsrdt+ψrτdqsr.In formula (5), z′dqsr is the reference input voltage, c′dqsr is the reference input current of the d−p axis, ε is the current loop gain, and ϕ is the current loop integration time constant. According to the pole-zero cancellation, the controller gains ε=Vsψcb′, ϕ=Xsψcb′, ψcb′ are the expected bandwidth of the current loop. This article sets the expected bandwidth as 2 kHz. To compensate the back EMF and cross decoupling of the point current loop, the current loop transfer function is(6)Bc1s=cdqsrcdqs′r=εs+ϕVss2+ε+Xssϕ=ψcb′s+ψcb′.The transfer function of the platform is determined by the poles and zeros of the platform and the bandwidth.


## 4.3.2. Speed Loop Controller Design and Parameter Selection

The mechanical equation of the servo motor is as follows:(7)Nem=Mdψrdt+Lψr+Nload.In formula (7), Nem is the electromagnetic torque of the motor, M is the load inertia of the motor, ψr is the motor speed, L is the damping coefficient of the platform, and Nload is the load torque [25]. The speed loop adopts PI controller and the transfer equation of the platform is as follows:(8)Nem∗=εsr+ϕsrsψr∗−ψr.By substituting formula (7) into formula (8)(9)ψrψr∗=εsr+ϕsrMs2+L+εsrs+ϕsr.In the above equation, the control parameters chooseεsr=Mψsr, ϕsr=θsrεsrψsr, where ψsr for the speed loop bandwidth, and θsr for the speed loop bandwidth setting coefficient, and we select 0.2. The design of a dual-servo drive and control integrated platform based on VNet neural network development is realized through the above steps.


## 5. Application of Dual Servo Drive Control Integrated Platform

### 5.1. Setting Platform Test Environment

In order to test the effectiveness of the dual servo drive control integration platform developed based on the VNet neural network, MATLAB is used as the simulation software for the dual servo drive control integration platform. The VNet neural network model is built in the MATLAB simulation software to simulate the servo drive controller and platform function module. According to the actual operating parameters of the dual-servo drive and control integrated platform, the bus voltage of the simulation platform is AC 220 V and the frequency is 60 Hz. The load disturbance is 3 Nm, and the step signal generator is used to apply when the platform simulation starts to run for 0.5 ms. The permanent magnet synchronous motor has a permanent magnet of 2.875 Ω, the inductance of the AC and the direct axis are both 8.5 mH, the torque inertia is 0.008 Nm, and the size of its inherent flux linkage is 0.175 Wb. The given speed is 600 m/s, which is increased to 1000 m/s at 0.5 s. The PI controller proportional gain is 500, and the integral module given value is 50. Under this condition, the number of clients on the 1000 MB platform is selected, and the method of reference [8], the method of reference [9], and the proposed method are compared to verify the performance of the proposed method design platform.


### 5.2. Platform Implementation Function Test Results

In order to verify the implementation function of the proposed method design platform for the designed modules such as FOC, SVPWM, and motor sensor position and speed estimation, the required values can be output and displayed in the NiosII program in software to determine whether the implementation function of the platform is normal or not. The method of reference [8], the method of reference [9], and the proposed method are compared to verify the implementation function of the platform designed by different methods. The test results are shown in Table 2.Table 2
Realization function test results of different method design platforms.
Functional moduleThe proposed methodThe method of reference [8]The method of reference [9]FOC moduleNormalNormalAbnormalSVPWM moduleNormalAbnormalNormalMotor sensorless position and speed estimation moduleNormalNormalAbnormalThe FOC module of the method design platform of the method of reference [8], as well as the sensorless position and speed estimation modules of the motor, are all normal, but the SVPWM module of the method design platform of the method of reference [8] is abnormal, according to Table 2. The SVPWM module of the method of reference [9] method design platform is normal, but the FOC module and motor sensorless position and speed estimation module of the method of reference [9] method design platform are abnormal. The suggested method design platform’s functional components are all operational. It is clear that the suggested method design platform’s implementation function is superior.


### 5.3. Platform Operation Stability Test Results

Furthermore, we verify the operational stability of the platform designed by the proposed method. Under the above experimental conditions, we compare the method of reference [8], the method of reference [9], and the proposed method, respectively, and obtain the current simulation test results of the platform designed by different methods, as shown in Figure 12.Figure 12
Current simulation test results of different method design platforms.Analyzing Figure12, it can be seen that the phase current estimated by the design platform of the method of reference [8] and the method of reference [9] differs greatly from the actual current. The phase current estimated by the design platform of the proposed method is very close to the actual current, and the rotor position data is very accurate. When the speed of the platform changes suddenly, the phase current and back EMF will change proportionally accordingly. It can be seen that when the proposed method design platform uses the FOC + SVPWM control method, it has strong antiload disturbance ability, good followability, and stable operation, which shows that the proposed method design platform is reliable and effective and can effectively produce hardware circuits and experimental platforms.


### 5.4. Platform Response Time Test Results

On this foundation, the suggested method’s reaction time for the platform is further tested. To validate the reaction time of the platform created by various approaches, the reference method [26], the reference method [9], and the suggested method are compared. The test results are shown in Figure 13.Figure 13
Response time test results of different method design platforms.By analyzing Figure13, it can be seen that with the increase of the number of platform clients, the response time of platforms designed by different methods also increases. When the number of platform clients reaches 1000 MB, the response time of the platform designed by the method of reference [8] is 51.2 s, the response time of the platform designed by the method of reference [9] is 65.1 s, while the response time of the platform designed by the proposed method is only 22.8 s. Therefore, the response time of the proposed design platform is short.


## 5.1. Setting Platform Test Environment

In order to test the effectiveness of the dual servo drive control integration platform developed based on the VNet neural network, MATLAB is used as the simulation software for the dual servo drive control integration platform. The VNet neural network model is built in the MATLAB simulation software to simulate the servo drive controller and platform function module. According to the actual operating parameters of the dual-servo drive and control integrated platform, the bus voltage of the simulation platform is AC 220 V and the frequency is 60 Hz. The load disturbance is 3 Nm, and the step signal generator is used to apply when the platform simulation starts to run for 0.5 ms. The permanent magnet synchronous motor has a permanent magnet of 2.875 Ω, the inductance of the AC and the direct axis are both 8.5 mH, the torque inertia is 0.008 Nm, and the size of its inherent flux linkage is 0.175 Wb. The given speed is 600 m/s, which is increased to 1000 m/s at 0.5 s. The PI controller proportional gain is 500, and the integral module given value is 50. Under this condition, the number of clients on the 1000 MB platform is selected, and the method of reference [8], the method of reference [9], and the proposed method are compared to verify the performance of the proposed method design platform.


## 5.2. Platform Implementation Function Test Results

In order to verify the implementation function of the proposed method design platform for the designed modules such as FOC, SVPWM, and motor sensor position and speed estimation, the required values can be output and displayed in the NiosII program in software to determine whether the implementation function of the platform is normal or not. The method of reference [8], the method of reference [9], and the proposed method are compared to verify the implementation function of the platform designed by different methods. The test results are shown in Table 2.Table 2
Realization function test results of different method design platforms.
Functional moduleThe proposed methodThe method of reference [8]The method of reference [9]FOC moduleNormalNormalAbnormalSVPWM moduleNormalAbnormalNormalMotor sensorless position and speed estimation moduleNormalNormalAbnormalThe FOC module of the method design platform of the method of reference [8], as well as the sensorless position and speed estimation modules of the motor, are all normal, but the SVPWM module of the method design platform of the method of reference [8] is abnormal, according to Table 2. The SVPWM module of the method of reference [9] method design platform is normal, but the FOC module and motor sensorless position and speed estimation module of the method of reference [9] method design platform are abnormal. The suggested method design platform’s functional components are all operational. It is clear that the suggested method design platform’s implementation function is superior.


## 5.3. Platform Operation Stability Test Results

Furthermore, we verify the operational stability of the platform designed by the proposed method. Under the above experimental conditions, we compare the method of reference [8], the method of reference [9], and the proposed method, respectively, and obtain the current simulation test results of the platform designed by different methods, as shown in Figure 12.Figure 12
Current simulation test results of different method design platforms.Analyzing Figure12, it can be seen that the phase current estimated by the design platform of the method of reference [8] and the method of reference [9] differs greatly from the actual current. The phase current estimated by the design platform of the proposed method is very close to the actual current, and the rotor position data is very accurate. When the speed of the platform changes suddenly, the phase current and back EMF will change proportionally accordingly. It can be seen that when the proposed method design platform uses the FOC + SVPWM control method, it has strong antiload disturbance ability, good followability, and stable operation, which shows that the proposed method design platform is reliable and effective and can effectively produce hardware circuits and experimental platforms.


## 5.4. Platform Response Time Test Results

On this foundation, the suggested method’s reaction time for the platform is further tested. To validate the reaction time of the platform created by various approaches, the reference method [26], the reference method [9], and the suggested method are compared. The test results are shown in Figure 13.Figure 13
Response time test results of different method design platforms.By analyzing Figure13, it can be seen that with the increase of the number of platform clients, the response time of platforms designed by different methods also increases. When the number of platform clients reaches 1000 MB, the response time of the platform designed by the method of reference [8] is 51.2 s, the response time of the platform designed by the method of reference [9] is 65.1 s, while the response time of the platform designed by the proposed method is only 22.8 s. Therefore, the response time of the proposed design platform is short.


## 6. Conclusion

The dual servo drive control integration platform based on the VNet neural network designed in this paper gives full play to the advantages of the VNet neural network. The implementation function and operational stability of the dual servo drive control integration platform are good, which can effectively shorten the response time of the platform. However, in the dual servo drive control integrated platform, the speed detection process of the motor makes the estimated value of the rotor angle lag. Therefore, in the next research, it is necessary to compensate for the rotor angle. Research on adaptive phase compensation and filter parameter selection methods is a future work direction.



---

*Source: 8016474-2022-03-09.xml*