Next Article in Journal
The DIKWP (Data, Information, Knowledge, Wisdom, Purpose) Revolution: A New Horizon in Medical Dispute Resolution
Previous Article in Journal
Residual Stress Determination with the Hole-Drilling Method on FDM 3D-Printed Precurved Specimen through Digital Image Correlation
Previous Article in Special Issue
Monitoring and Leak Diagnostics of Sulfur Hexafluoride and Decomposition Gases from Power Equipment for the Reliability and Safety of Power Grid Operation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Design and Experimental Study of an Embedded Controller for a Model-Based Controllable Pitch Propeller

1
College of Power Engineering, Naval University of Engineering, Wuhan 430030, China
2
Department of Automation, Hubei Communication Technical College, Wuhan 430000, China
*
Author to whom correspondence should be addressed.
Appl. Sci. 2024, 14(10), 3993; https://doi.org/10.3390/app14103993
Submission received: 24 February 2024 / Revised: 25 April 2024 / Accepted: 3 May 2024 / Published: 8 May 2024
(This article belongs to the Special Issue Advances and Challenges in Reliability and Maintenance Engineering)

Abstract

:

Featured Application

For the controllable pitch propeller control system, existing control algorithms still have limitations regarding timeliness. A control law based on a model predictive control (MPC) algorithm is designed in this paper. The results of this paper have potential application value in embedded control of ship controllable pitch propeller.

Abstract

The controllable pitch propeller hydraulic system has high constraints and nonlinearity. Due to these inherent deficiencies, the proportional–integral–derivative (PID) control algorithm cannot meet the control accuracy requirements of nonlinear systems. A control law based on a model predictive control (MPC) algorithm is designed in this paper. The gain parameters of the predictive control are optimized. The MPC and PID control systems are compared and simulated to verify the MPC controller’s effectiveness. Subsequently, the embedded controller of a controllable pitch propeller is developed. The support package for the embedded circuit board target containing an underlying driver for each interface is written by introducing the C-MEX S-Function and TLC programming language. A semi-physical simulation experiment is performed. The results show that the established controllable pitch propeller with an embedded controller displays reliable running performance, good anti-interference, and the capacity to fulfill the control function of the pitch propeller under various working conditions.

1. Introduction

With the advances in the shipping industry, improved ship maneuverability and propulsion efficiency are required. The controllable pitch propeller is widely applied in ship thrust systems due to its good properties. The control research associated with this propeller is fundamental for enhancing the navigational safety and economic performance of ships. Extensive research has been conducted on the controller algorithm. Traditional methods, such as the proportional–integral–derivative (PID) control and fuzzy control, have been widely applied to control controllable pitch propellers [1,2]. By optimizing the control parameters and structures, researchers have upgraded the stability and response speed of control systems. For instance, the PID accurately controls the propeller speed and pitch angle by adjusting the proportional, integral, and derivative coefficients. Thanks to artificial intelligence technology advancements, intelligent control algorithms (i.e., neural networks and genetic algorithms) have been introduced into controllable pitch propellers. Scholarly efforts have been made to address the uncertainty when evaluating the reliability and availability of controllable pitch propeller hydraulic systems. For instance, Bai [3] applied D–S evidence theory and dynamic Bayesian networks to establish a new method for assessing their reliability and availability. Fang [4] predicted the system’s reliability using the failure rate prediction method and obtained each unit’s failure rate and reliability curve. Zhang [5] designed an adjustable pitch propeller control hydraulic system comprising an electro-hydraulic directional control valve and a proportional directional control valve, and the corresponding control strategies were proposed. Rosenkranz [6] employed the fuzzy method to control a controllable pitch propeller. However, the accuracy of this method is difficult to guarantee. Ji [7] reported that the gain loop could be treated as a nonlinear function within a specific error range; moreover, pertinent research on the ship pitch control propeller with nonlinear PID was conducted, further improving the accuracy and efficiency. Chen [8] constructed a joint controller with load protection for adjustable pitch propellers to achieve maximum thrust effectiveness. Wang [9] conducted simulation research on the ship’s controllable pitch propeller control system based on the PID. For the controllable pitch propeller control system, existing control algorithms still have limitations regarding timeliness. At the same time, the traditional design process for marine control systems faces practical issues such as long development cycles, complex procedures, and low development efficiency, which have made it increasingly difficult to meet development demands. In fields like automotive electronics and aerospace, the model-based design (MBD) method has been proven to be an effective controller design approach. Transplanting this method into the design and development of controllable pitch propeller control system undoubtedly represents an effective approach. The model predictive control (MPC) algorithm allows efficient constraint control and easy solutions to the optimal control problems arising from its limitations [10,11]. This algorithm is iterative and online in optimizing the control. It has the characteristics [12,13,14] of a control structure based on model prediction, rolling optimization, and feed-forward feedback, enabling the fast and accurate responses of the controller. Based on the above analysis, the MPC can design the controller within the controllable pitch propeller control system.
The structure of this paper is as follows. Section 2 presents the simulation model of the controllable pitch propeller. In Section 3, the MPC design is introduced. Section 4 outlines the semi-physical simulation experiment and experimental tests. The concluding remarks are presented in Section 5.

2. Modeling and Simulation

2.1. Structure

The structure of the controllable pitch propeller is schematically shown in Figure 1. The adjustment function of the blade pitch angle is available by pushing the hub with the oil pipe inside the propeller shaft to rotate the blades. A hydraulic system serves as the primary power source for a controllable pitch propeller. As illustrated in Figure 2, the oil tank supplies hydraulic oil to the system. Subsequently, the oil pressurized by the pump enters the oil circuit and flows into a three-position four-way valve in the valve block following filter filtration. The valve spool is controlled by the controllable pitch propeller controller, which alters the pressure of the hydraulic oil on both sides of the piston in the hub cylinder, enabling forward or reverse motion.
Figure 3 shows the working principle when adjusting the distance in the forward direction. The high-pressure hydraulic oil flows into the rear hydraulic cylinder chamber of the controllable pitch propeller hub through the oil distributor, and the piston is pushed forward to the bow. The oil returns on the other side of the piston. The blade pitch ratio of the controllable pitch propeller advances toward a positive value. At a positive value, the controllable pitch propeller produces a favorable thrust to the hull.

2.2. Thrust Calculation

The effective thrust of the controllable pitch propeller F e and the experimental thrust of the water flow F s can be calculated according to the following equations:
F e = F s ( 1 t )
F s = K T ρ n 2 D 4
where K T stands for the thrust coefficient, ρ indicates the seawater density ( k g / m 3 ), n denotes the diesel engine speed ( r / s ), D marks the pitch paddle diameter ( m ), and t represents the thrust derating factor.
Aiming to facilitate the calculation, the square coefficient value of the hull C B is typically adopted in engineering to approximate the thrust reduction factor of a single-propeller ship t , and their relationship is presented in Table 1.
The thrust coefficient is related to the process ratio of the pitched paddle and the pitch angle. The K T can be expressed as follows:
K T = f ( J , θ )
J = V a n D
The propeller feed speed V a can be written as:
V a = V s ( 1 ω )
where V s denotes the ship speed ( m / s ), and ω represents the companion flow coefficient.
Typically, the effect of the hull’s squareness coefficient value C B is considered, and other factors are ignored. According to the squareness coefficient value C B , Table 2 is checked to obtain the approximate value of ω .
The pitch drag torque is affected by the torque coefficient K Q , pitch diameter D , water density ρ , and diesel engine speed n , and it can be expressed as follows:
M P = K Q ρ n 2 D 5
The torque coefficient K Q is influenced by the pitch paddle process ratio J and the pitch angle θ . It can be calculated as follows:
K Q = f ( J , θ )
Due to the calculation complexity, the flow characteristic curve of the four-blade pitch paddle torque coefficient K Q ( J , θ ) is introduced to solve the torque coefficient K Q and plotted in Figure 4.
During the transmission of the controllable pitch propeller, the friction between the drive shaft and the bearings will generate the friction loss torque M f . This torque is related to the rotational speed of the controllable pitch propeller. Due to the comparison with the diesel output torque M s and the pitching paddle resistance torque M P , the friction loss torque M f is small. To simplify the calculations, the friction loss torque can be considered constant, with a magnitude of M f = 0.02 M H . M H represents the output torque of the diesel engine under the rated operating conditions.

2.3. Simulation Model

The mechanistic modeling of the controllable pitch propeller system is cumbersome and lacks intuitive clarity, and many parameters in the resulting transfer function are challenging to measure. In addition, the Simulink/SimHydraulics toolbox contains considerable hydraulic modules and commercial component-based modules that are commonly used, allowing for the realization of the physical modeling of hydraulic and hydro-mechanical systems. Herein, the Simulink/SimHydraulics toolbox is adopted for the physical modeling to establish an accurate and user-friendly mathematical model of the controllable pitch propeller system. The parameters of the hydraulic cylinder and the load settings are summarized in Table 3.
The simulation model of the hydraulic system is presented in Figure 5. When the external control signal is input to the three-position four-way valve using the digital-to-analog converter module, the direction of the hydraulic fluid between the pipelines is changed, pushing the hydraulic cylinder. The mass block, spring, and damper simulate the external force on the pitch paddle blade in seawater and are connected to the hydraulic cylinder, achieving a better replication of the operating environment at sea and a more realistic simulation.
Considering that obtaining the state information of the controllable pitch propeller system is challenging, the identification target is set as the transfer function of the input and output signals. Then, this function is transformed into the state space during the system identification. The input and output signals are imported using MATLAB’s system identification toolbox. The zeros and poles of the transfer function are set to be two and three, respectively.
After the identification, the final transfer function obtained aligns well with the model input and output, representing 93% conformity (Figure 6). It can be found that the conclusion is consistent with the engineering accuracy and systematically identifies the physical model of the controllable pitch propeller. The transfer function can be expressed as:
ϕ = 2.1408 s 2 + 0.2282 s + 0.0278 s 3 + 1.3793 s 2 + 0.1654 s + 0.0144

3. The MPC Controller Design for the Controllable Pitch Propeller

3.1. Mathematical Modeling

In designing an MPC-derived controller, a mathematical model allowing for the prediction of the controlled system’s state is necessary. This model is typically described in a state-space pattern in modern control. At the moment k , the state of the controlled system x ( k ) R n , the control input u ( k ) R l , and the output y ( k ) R q can be obtained. Correspondingly, the controlled model at k can be written as:
x ( k + 1 ) = f ( x ( k ) , u ( k ) ) , x ( 0 ) = x 0
y ( k ) = h ( x ( k ) , u ( k ) )
According to Equation (9), p is taken as the prediction time domain, the measured output of the system y ( k ) can be considered as the starting point of the output, and x ( k ) can be regarded as the beginning of the prediction state. The output of the prediction time domain p can be estimated at any moment from k + 1 to k + p according to the moment k . The output of the k + i can be expressed as follows:
y p ( k + i | k )
Subsequently, the system’s output in the prediction time domain p is recorded as:
{ y p ( k + 1 | k ) , y p ( k + 2 | k ) y p ( k + p | k ) }
Similarly, the control input within the prediction time domain p is defined as:
U k = { u ( k | k ) , u ( k + 1 | k ) , , u ( k + p 1 | k ) }
Each component of the control input vector U k is independent and needs to be solved as an optimization problem.
The controller’s goal is to minimize the output for the desired one. The reference input in the control time domain includes:
{ r ( k + 1 ) , r ( k + 2 ) , , r ( k + p ) }
To maximize the consistency between the predicted and the expected outputs, the difference between the two output vector components should be accumulated when establishing the optimization objective function. The optimization objective function can be defined as:
J ( y ( k ) , U k ) = i = k + 1 k + p ( r ( i ) y p ( i | k ) ) 2
For the control inputs and system outputs, constraints are generally imposed for engineering applications. The limits can be expressed as below:
u min u ( k + i ) u max , i 0 y min y ( k + i ) y max , i 0
Solving the optimal control inputs can be divided into two parts. First, the controller inputs to the system can minimize the output, considering the reference inputs. Second, by solving the control inputs U k , the control inputs and the system outputs can meet the control constraints u min u ( k + i ) u max and the output constraints y min y ( k + i ) y max .
Ultimately, an optimal solution addressing the above problem at k can be obtained:
U k * = { u * ( k | k ) , u * ( k + 1 | k ) , , u * ( k + p 1 | k ) }
Based on the mechanical modeling and system identification of the pitch paddle hydraulic system in Section 2, Equation (9) can be rewritten in incremental form, and the hydraulic system can be represented as a state space:
Δ x ( k + 1 ) = A Δ x ( k ) + B u Δ u ( k ) + B d Δ d ( k ) y c ( k ) = C c Δ x ( k ) + y c ( k 1 )
where A = 1.9480 1.7010 1.000 0 , B u = 1 0 , C c = 0.0766 2.303 , x ( k ) R n x corresponds to the state variable, u ( k ) R n u denotes the control input variable, y c ( k ) R n c stands for the controlled output variable, and d ( k ) R n d signifies the measurable external disturbance variable.
When the MPC controller works, the speed of solving the optimization problem will affect the controller’s timeliness. For a faster computing speed on the part of the algorithm, the number of independent variables for the optimization problem is typically reduced. The control time domain m is smaller than the prediction time domain p , and the control quantity is assumed to remain unchanged outside the control time domain m , i.e., Δ u ( k + i ) = 0 , i = m , m + 1 , p 1 . Since the upcoming disturbance quantity at the current moment k is unknown, the measurable disturbance is assumed to be constant after k , i.e., Δ d ( k + i ) = 0 , i = 1 , 2 , p 1 . At k , the system state is x ( k ) , and Δ x ( k ) is considered to be the starting value for predicting the controlled system state. According to Equation (17), the state from k + 1 to k + p can be predicted:
Δ x ( k + 1 | k ) = A Δ x ( k ) + B u Δ u ( k ) + B d Δ d ( k ) Δ x ( k + 2 | k ) = A Δ x ( k + 1 | k ) + B u Δ u ( k + 1 | k ) + B d Δ d ( k + 1 | k ) = A 2 Δ x ( k ) + A B u Δ u ( k ) + B u Δ u ( k + 1 ) + A B d Δ d ( k ) Δ x ( k + 3 | k ) = A Δ x ( k + 2 | k ) + B u Δ u ( k + 2 | k ) + B d Δ d ( k + 2 | k ) = A 3 Δ x ( k ) + A 2 B u Δ u ( k ) + A B u Δ u ( k + 1 ) + B u Δ u ( k + 2 ) + A 2 B d Δ d ( k ) Δ x ( k + m | k ) = A Δ x ( k + m 1 | k ) + B u Δ u ( k + m 1 ) + B d Δ d ( k + m 1 ) = A m Δ x ( k ) + A m 1 B u Δ u ( k ) + A m 2 B u Δ u ( k + 1 ) + + B u Δ u ( k + m 1 ) + A m 1 B d Δ d ( k ) Δ x ( k + p | k ) = A Δ x ( k + p 1 | k ) + B u Δ u ( k + p 1 ) + B d Δ d ( k + p 1 ) = A p Δ x ( k ) + A p 1 B u Δ u ( k ) + A p 2 B u Δ u ( k + 1 ) + + A p m B u Δ u ( k + m 1 ) + A p 1 B d Δ d ( k )
From Equations (17) and (18), the measured output y c ( k ) at k is selected as the starting point for the system’s controlled output prediction, which can be achieved from k + 1 to k + p as follows:
y c ( k + 1 | k ) = C c Δ x ( k + 1 | k ) + y c ( k ) = C c A Δ x ( k ) + C c B u Δ u ( k ) + C c B d Δ d ( k ) + y c ( k ) y c ( k + 2 | k ) = C c Δ x ( k + 2 | k ) + y c ( k + 1 | k ) = ( C c A 2 + C c A ) Δ x ( k ) + ( C c A B u + C c B u ) Δ u ( k ) + C c B u Δ u ( k + 1 ) + ( C c A B d + C c B d ) Δ d ( k ) + y c ( k ) y c ( k + m | k ) = C c Δ x ( k + m | k ) + y c ( k + m 1 | k ) = i = 1 m C c A i Δ x ( k ) + i = 1 m C c A i 1 B u Δ u ( k ) + i = 1 m 1 C c A i 1 B u Δ u ( k + 1 ) + + C c B u Δ u ( k + m 1 ) + i = 1 m C c A i 1 B d Δ d ( k ) + y c ( k ) y c ( k + p | k ) = C c Δ x ( k + p | k ) + y c ( k + p 1 | k ) = i = 1 p C c A i Δ x ( k ) + i = 1 p C c A i 1 B u Δ u ( k ) + i = 1 p 1 C c A i 1 B u Δ u ( k + 1 ) + + i = 1 p m + 1 C c A i 1 B u Δ u ( k + m 1 ) + i = 1 p C c A i 1 B d Δ d ( k ) + y c ( k )
The prediction output vector Y p ( k + 1 | k ) and input vector Δ U ( k ) are defined as follows:
Y p ( k + 1 k ) = y c ( k + 1 | k ) y c ( k + 2 | k ) y c ( k + p | k ) p × 1 , Δ U ( k ) = Δ u ( k ) Δ u ( k + 1 ) Δ u ( k + m 1 ) m × 1
Equation (19) is converted to a matrix equation, and the system prediction output can be calculated by the following equation:
Y p ( k + 1 | k ) = S x Δ x ( k ) + I y c ( k ) + S d Δ d ( k ) + S u Δ U ( k )
S x = C c A i = 1 2 C c A i i = 1 p C c A i p × 1 I = I n c × n c I n c × n c I n c × n c p × 1 S d = C c B d i = 1 2 C c A i 1 B d i = 1 p C c A i 1 B d p × 1
S u = C c B u 0 0 0 i = 1 2 C c A i 1 B u C c B u 0 0 i = 1 m C c A i 1 B u i = 1 m 1 C c A i 1 B u C c B u i = 1 p C c A i 1 B u i = 1 p 1 C c A i 1 B u i = 1 p m + 1 C c A i 1 B u p × m

3.2. Optimized Design

The optimization problem design is based on two main considerations. On the one hand, the controlled output is required to be consistent with the reference input. On the other hand, imposing constraints is necessary. For the first aspect, the objective function is chosen as the form:
J 1 = i = 1 p j = 1 n c ( Γ y i ( y c j ( k + i | k ) r j ( k + i ) ) ) 2
where i = 1 , 2 , , p is the j component of the reference input, and Γ y i is the weighting factor for the j difference between the controlled output and the reference input. During controller design, the performance of the controllable pitch propeller is influenced by the variation between the controlled output and the reference input. When the error requirement is high, the weighting factor Γ y i can be increased. Depending on the needs of a controllable pitch propeller, the weighting factor can be time-varying.
J 1 = i = 1 p j = 1 n c ( Γ y j , i ( y c j ( k + i k ) r j ( k + i ) ) ) 2 = i = 1 p | | Γ y , i ( y c ( k + i | k ) r ( k + i ) ) | | 2
A mathematical description of the constraints on the action is needed for proper control action. The difference in the control input Δ u can be introduced into the objective function design. The control action can be constrained by weighting.
J 2 = i = 1 m Γ u , i Δ u ( k + i 1 ) 2
Ultimately, the optimization problem combining Equations (23) and (24) can be described as min Δ U ( k ) J ( x ( k ) , U ( k ) , m , p ) .
J ( x ( k ) , Δ U ( k ) , m , p ) = i = 1 p | | Γ y , i ( y c ( k + i | k ) r ( k + i ) ) | | 2 + i = 1 m | | Γ u , i Δ u ( k + i 1 ) 2
According to Equation (20), Equation (25) is transformed into the following equation:
J ( x ( k ) , Δ U ( k ) , m , p ) = | | Γ y ( Y p ( k + 1 | k ) R ( k + 1 ) ) | | 2 + | | Γ u Δ U ( k ) | | 2
The weighting matrices are shown as follows:
Γ y = d i a g ( Γ y , 1 , Γ y , 2 , , Γ y , p ) ,   Γ u = d i a g ( Γ u , 1 , Γ u , 2 , , Γ u , m )
The reference input sequence is:
R ( k + 1 ) = r ( k + 1 ) r ( k + 2 ) r ( k + p ) T
Equation (26) is a quadratic matrix function, which can be decomposed for ease of solution.
J ( x ( k ) , Δ U ( k ) , m , p ) = ρ T ρ
ρ = Γ y ( Y p ( k + 1 | k ) R ( k + 1 ) ) Γ u Δ U ( k )
Substituting the predictive Equation (21) with the auxiliary variable Equation (30), we can obtain the following:
ρ = [ Γ y ( S x Δ x ( k ) + I y c ( k ) + S d Δ d ( k ) + S u Δ U ( k ) R ( k + 1 ) ) Γ u Δ U ( k ) ] = Γ y S u Γ u Δ U ( k ) Γ y ( R ( k + 1 ) S x Δ x ( k ) I y c ( k ) S d Δ d ( k ) ) 0 = Γ y S u Γ u Δ U ( k ) Γ y ( E p ( k + 1 | k ) ) 0 = A z b
To facilitate the subsequent calculations, the above formula is simplified.
z = Δ U ( k ) , A = Γ y S u Γ u , b = Γ y ( E p ( k + 1 | k ) ) 0
E p ( k + 1 | k ) = R ( k + 1 ) S x Δ x ( k ) I y c ( k ) S d Δ d ( k )
The optimization problem min Δ U ( k ) J ( x ( k ) , U ( k ) , m , p ) can be transformed into min z ρ T ρ .
ρ = A z b
ρ T ρ = ( A z b ) T ( A z b ) is derived to obtain the extreme points.
d ρ T ρ d z = 2 ( d ρ d z ) T ρ = 2 A T ( A z b ) = 0
We can find the solution to the extreme points using the following formula:
z * = ( A T A ) 1 A T b
The second-order derivative of ρ T ρ is d 2 ( ρ T ρ ) d z 2 = 2 A T A > 0 ; accordingly, ρ T ρ is a concave function. By substituting Equation (32) into Equation (36), the solution of the optimization problem min Δ U k J x k , Δ U k , m , p can be obtained:
Δ U * ( k ) = ( S u T Γ y T Γ y S u + Γ u T Γ u ) 1 S u T Γ y T Γ y E p ( k + 1 k )
According to the basic principle of MPC, the controller can act on the controlled system by taking the first element of the optimal control sequence from k , and this element is expressed as follows:
Δ u ( k ) = I n u × n u 0 0 1 × m Δ U * ( k ) = I n u × n u 0 0 1 × m ( S u T Γ y T Γ y S u + Γ u T Γ u ) 1 S u T Γ y T Γ y E p ( k + 1 | k )
The predicted control gain is defined.
K m p c = I n u × n u 0 0 1 × m ( S u T Γ y T Γ y S u + Γ u T Γ u ) 1 S u T Γ y T Γ y
The control increment can be described as below.
Δ u ( k ) = K m p c E p ( k + 1 | k )

3.3. Simulation

Based on the above theoretical derivation, a comparative simulation of the MPC controller and PID controller is explored, as shown in Figure 7. The error between the input signal and the output is defined at the moment k as Δ y m p c / P I D = y y m p c / P I D . y indicates the input signal, and y m p c / P I D represents the output of the MPC or PID controller. The absolute value of the total errors between the output value and the input signal is determined from the initial moment to the k as E m p c / P I D , i.e., E m p c / P I D = i = 0 k | y y m p c / P I D .
The tracking signal results are shown in Figure 8. It can be seen that the PID controller tracks the reference signal in a closer distance over time. In contrast, the output signal of the MPC controller maintains a certain error with the tracking signal. The relative error curves of the two controllers are presented in Figure 9. In the 12–14 s and 18–21 s intervals, the relative error of the PID controller is smaller than that of the MPC controller and varies greatly for the remaining time. The absolute error curves of the two controllers are plotted in Figure 10. Specifically, the PID controller has an increasingly larger absolute error than the MPC controller over time. This suggests that the MPC controller outperforms the PID controller in terms of accuracy and stability.
The simulation results with a step signal incorporated into the system are shown in Figure 11. Two error bands of 5% and 2% were set during the simulation. The regulation time of the MPC was 6.716 s and 6.896 s, and no overshoot was detected. The regulation time of the PID reached 6.705 s and 6.885 s, and the presence of a 1% overshoot was visible. These results indicate that the MPC had good accuracy and response speed under the step signal.

4. Experimental Studies

A semi-physical simulation experiment was designed to verify the effectiveness of the MPC controller. The controllable pitch propeller was implemented in the form of a virtual prototype, and the controller used the embedded pitch control board designed in the current work. Both achieved bi-directional data communications through TCP/IP.

4.1. Virtual Prototype

The virtual prototype of the controllable pitch propeller was fabricated using three-dimensional modeling. Briefly, a specified type of controllable pitch propeller device was selected in the laboratory as a prototype. Subsequently, a three-dimensional model of its components was established using Solidworks (SolidWorks is an original 3D design software based on the Windows system). Based on the coordination relationship between the actual parts, the hub assembly, double oil pipe assembly, and oil distributor assembly were constructed. These components were assembled to form the controllable pitch propeller. Finally, the three-dimensional model was imported into the virtual experimental scene constructed using Unity3D. Unity3D is a comprehensive game development tool that allows players to easily create interactive content such as 3D video games, architectural visualizations, real-time 3D animations, and more. It is a fully integrated professional game engine. The virtual prototype is schematically illustrated in Figure 12.

4.2. Hardware Design

An open STM32F4X Target system (STM32F4X is a high-performance microcontroller developed by STMicroelectronics.) was designed to establish Simulink simulation models with one-click automatic code generation and download them to the embedded development board for real-time simulation. It primarily consists of stm32f4x.tlc, stm32f4x_file_process.tlc, stm32f4x_callback_handler.m, stm32f4x_make_rtw_hook.m, as well as TLC and C files of various hardware resource drivers on the embedded board. The purpose is to set the target parameters during code generation, user code customization, Keil uVision5 invocation (Keil uVision5 is a microcontroller software development platform developed by the well-known German software company Keil.), etc. STM32F4XTarget supports the Simulink Coder and Embedded Coder with Simulink model code generation, which controls the code building through the target system file. The Keil uVision5 compiler is automatically invoked in the background to compile, link, and download the code without human intervention. This compiler can be deployed to the supporting embedded development board by clicking Build on the Simulink toolbar, and the working process is illustrated in Figure 13.

4.3. Semi-Physical Simulation Test

The virtual experiments were conducted using the virtual experiment software of the host computer, and the control experiment was initiated by clicking Start Simulation. During the simulation experiment, the simulation curve was observed through the real-time simulation curve window. According to the test needs, the controller parameters can be modified. The simulation experiment procedures are shown in Figure 14.
After applying the command signal from zero pitch to positive limit pitch and negative limit pitch, respectively, the results are shown in Figure 15 and Figure 16.
According to the definitions of the relative and absolute errors, the experimental results are illustrated in Figure 17 and Figure 18 for positive pitch as well as in Figure 19 and Figure 20 for negative pitch.
From Figure 17 and Figure 19, it can be found that the pitch, when being adjusted by the controllable pitch propeller, exhibits a relative error within 0.002 cm. Figure 18 and Figure 20 demonstrate that in the first ten seconds, a more obvious increase is observed in the absolute error of the pitch over time. When the adjustment ends, the absolute error is not obvious, indicating the good stability of the controller.
The curve of inputting positive step signals is plotted in Figure 21. Accordingly, the pitch enters the 5% error band at 3.7 s, and no overshoot is detected. Figure 22 portrays the curve of introducing negative step signals. In this case, the pitch value falls within the 5% error band at 2.7 s. Similarly, no apparent overshoots are observed. It can be concluded that the response speed of the controllable pitch propeller controller to signals is relatively fast.

5. Conclusions

In this paper, the structural composition and working principle of a controllable pitch propeller were introduced. The controllable pitch propeller hydraulic system had the inherent features of high constraint and nonlinearity. To address this, the MPC algorithm-derived controller was designed. A physical model of the hydraulic system was established by using MATLAB/Simulink. The transfer function of the hydraulic system was derived from multiple sets of input and output data using system identification tools. The system identification simplified the mathematical modeling process for the controlled object and shorten the design cycle. Custom signal and step signal tests were conducted in the MATLAB/Simulink environment. By comparing the relative and absolute errors of the two controllers, it was found that the MPC controller displayed a shorter regulating duration, lower overshooting amount, and higher control accuracy than the traditional PID controller. Under the existing conditions, the controllable pitch propeller with controller hardware in the loop test platform was fabricated. Embedded Coder was adopted to realize the one-key generation of the embedded code. The semi-physical simulation experiment verified the stability of the designed controller, and the control algorithm ran smoothly and met the control requirements.
The crux of the model-based predictive control algorithm lies in the accuracy of the model. With the development of artificial intelligence and advanced machine learning, the data-driven method can be used to establish a more accurate mathematical model by using the real-time data of the controllable pitch propeller. On this basis, the performance of the controllable pitch propeller can be improved by changing the parameters of the model predictive control algorithm.

6. Additional Points

(1) A control law based on the MPC algorithm is designed. The MPC and PID control systems are compared and simulated to verify the effectiveness of the MPC controller. (2) The virtual prototype of the controllable pitch propeller is fabricated using three-dimensional modeling. Additionally, the embedded controller is created using the C-MEX S-Function and TLC programming language. (3) A semi-physical simulation experiment is conducted. The results show that the controllable pitch propeller with an embedded controller runs reliably and has good anti-interference, achieving the control function of the pitch propeller under various working conditions.

Author Contributions

Methodology, P.S.; software, G.C. and Y.W.; validation, P.S. and J.W.; investigation, X.F.; data curation, X.F.; writing—original draft preparation, P.S.; writing—review and editing, G.C.; funding acquisition, P.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by [the Naval University of Engineering Foundation] grant number [2022502040].

Data Availability Statement

The data that support the findings of this study are available from the first author, Pan Su, upon reasonable request.

Conflicts of Interest

The authors declare that there are no conflicts of interest. The authors would like to thank the reviewers for their thoughtful, unbiased, and constructive suggestions, which contributed to this revised manuscript.

References

  1. Kono, M.; Murakami, Y.; Morishita, T.; Mishima, K. Decoupling Control of the Ship Propelled with a Controllable Pitch Propeller. Trans. Soc. Instrum. Control. Eng. 2009, 20, 254–259. [Google Scholar] [CrossRef]
  2. Araujo, L.S.; Mendes, M.C.; de Almeida, L.H.; Dutra, M.S.; Cardoso, D. Failure of a Concentric Pipe for a Controllable Pitch Propeller System. J. Fail. Anal. Prev. 2014, 14, 55–60. [Google Scholar] [CrossRef]
  3. Bai, X.; Ling, H.; Luo, X.-F.; Li, Y.-S.; Yang, L.; Kang, J.-C. Reliability and availability evaluation on hydraulic system of ship controllable pitch propeller based on evidence theory and dynamic Bayesian network. Ocean. Eng. 2023, 276, 114125. [Google Scholar] [CrossRef]
  4. Fang, Y.; Kan, S.; Sun, K. Reliability Prediction and Analysis on Hydraulic System for Controllable Pitch Propeller of Vessels. Mach. Tool Hydraul. 2015, 13, 195–200. [Google Scholar]
  5. Zhang, C.J.; Li, J.; Jiang, H.G.; Chen, Y.; Yin, Y.B. Design and Analysis of a Two-Valve Control Hydraulic System for Controllable Pitch Propeller. Adv. Mater. Res. 2012, 468–471, 122–126. [Google Scholar] [CrossRef]
  6. Rosenkranz, H.G.; Robson, M. Control Method and Control System for a Controllable Pitch Marine Propeller. CA2543269C, 6 May 2024. [Google Scholar]
  7. Ji, M.; Zhao, P.; Liang, L.; Liu, P. Design and Optimization of Control System for Controllable Pitch Propeller with Load Protection. In Proceedings of the 2018 IEEE International Conference on Mechatronics and Automation (ICMA), Changchun, China, 5–8 August 2018. [Google Scholar] [CrossRef]
  8. Chen, H. Application of PID in Controllable Pitch Propeller of a Multipurpose Ocean Tug. Appl. Mech. Mater. 2014, 464, 253–257. [Google Scholar] [CrossRef]
  9. Wang, H. Application of nonlinear PID technology in the pitch controlled propeller of ship. Ship Sci. Technol. 2017, 39, 16–19. [Google Scholar]
  10. Sanborn, S.D.; Varshney, D.; Mcauley, K.B. Orthogonalization-Based Gain Conditioning for Linear Model Predictive Control. Ind. Eng. Chem. Res. 2023, 62, 1463–1479. [Google Scholar] [CrossRef]
  11. Yu, T.; Xu, Z.; Zhao, J.; Chen, X.; Biegler, L.T. A fast, fully distributed nonlinear model predictive control algorithm with parametric sensitivity through Jacobi iteration. J. Process Control. 2022, 110, 133–153. [Google Scholar] [CrossRef]
  12. Aboelsaud, R.; Ibrahim, A.; Aleksandrov, I.V.; Ali, Z.M. Model predictive control algorithm for fault ride-through of stand-alone microgrid inverter. Int. J. Electr. Power Energy Syst. 2022, 135, 107485. [Google Scholar] [CrossRef]
  13. Sun, P.; Chen, J.; Xie, L.; Su, H. Active design of dynamic GP models for model predictive control using expected improvement. Can. J. Chem. Eng. 2023, 101, 4587–4605. [Google Scholar] [CrossRef]
  14. Wang, C.; Liu, X.; Yang, X.; Hu, F.; Jiang, A.; Yang, C. Trajectory Tracking of an Omni-Directional Wheeled Mobile Robot Using a Model Predictive Control Strategy. Appl. Sci. 2018, 8, 231. [Google Scholar] [CrossRef]
Figure 1. Structure of the controllable pitch propeller.
Figure 1. Structure of the controllable pitch propeller.
Applsci 14 03993 g001
Figure 2. Integrated hydraulic unit.
Figure 2. Integrated hydraulic unit.
Applsci 14 03993 g002
Figure 3. Hydraulic system in the forward direction.
Figure 3. Hydraulic system in the forward direction.
Applsci 14 03993 g003
Figure 4. Flow characteristic curves of the four-blade pitch paddle torque coefficient.
Figure 4. Flow characteristic curves of the four-blade pitch paddle torque coefficient.
Applsci 14 03993 g004
Figure 5. Hydraulic system simulation model of the controllable pitch propeller.
Figure 5. Hydraulic system simulation model of the controllable pitch propeller.
Applsci 14 03993 g005
Figure 6. System identification results.
Figure 6. System identification results.
Applsci 14 03993 g006
Figure 7. Connection to the model predictive control (MPC) controller.
Figure 7. Connection to the model predictive control (MPC) controller.
Applsci 14 03993 g007
Figure 8. Tracking signal results of the two controllers.
Figure 8. Tracking signal results of the two controllers.
Applsci 14 03993 g008
Figure 9. Relative errors of the two controllers.
Figure 9. Relative errors of the two controllers.
Applsci 14 03993 g009
Figure 10. Absolute errors of both controllers.
Figure 10. Absolute errors of both controllers.
Applsci 14 03993 g010
Figure 11. Step signal outcomes of the two controllers.
Figure 11. Step signal outcomes of the two controllers.
Applsci 14 03993 g011
Figure 12. Pitch paddle virtual prototype.
Figure 12. Pitch paddle virtual prototype.
Applsci 14 03993 g012
Figure 13. STM32F4X target system workflow.
Figure 13. STM32F4X target system workflow.
Applsci 14 03993 g013
Figure 14. Digital experimental platform.
Figure 14. Digital experimental platform.
Applsci 14 03993 g014
Figure 15. Patch adjustment in the forward direction.
Figure 15. Patch adjustment in the forward direction.
Applsci 14 03993 g015
Figure 16. Patch adjustment in the opposite direction.
Figure 16. Patch adjustment in the opposite direction.
Applsci 14 03993 g016
Figure 17. Relative errors in the case of forward pitch adjustment.
Figure 17. Relative errors in the case of forward pitch adjustment.
Applsci 14 03993 g017
Figure 18. Absolute errors when the pitch is undergoing adjustment in the forward direction.
Figure 18. Absolute errors when the pitch is undergoing adjustment in the forward direction.
Applsci 14 03993 g018
Figure 19. Relative errors during pitch modification in the opposite direction.
Figure 19. Relative errors during pitch modification in the opposite direction.
Applsci 14 03993 g019
Figure 20. Absolute errors in the case of pitch adjustment in the opposite direction.
Figure 20. Absolute errors in the case of pitch adjustment in the opposite direction.
Applsci 14 03993 g020
Figure 21. Forward step curves.
Figure 21. Forward step curves.
Applsci 14 03993 g021
Figure 22. Opposite step curves.
Figure 22. Opposite step curves.
Applsci 14 03993 g022
Table 1. The relationship between C B and t .
Table 1. The relationship between C B and t .
C B t C B t
0.520.110.680.19
0.560.130.720.21
0.600.150.760.23
0.640.170.800.25
Table 2. The relationship between C B and ω .
Table 2. The relationship between C B and ω .
C B ω C B ω
0.520.150.680.27
0.560.180.720.30
0.600.210.760.33
0.640.240.800.36
Table 3. Hydraulic cylinder and load parameters.
Table 3. Hydraulic cylinder and load parameters.
NameParameter Value
Mass4.5 kg
Coefficient of spring elasticity10 N/m
Damper damping250 N/(m/s)
Hydraulic cylinder A end area0.006 m2
Hydraulic cylinder B end area0.003 m2
Piston stroke19.6 cm
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Su, P.; Chang, G.; Wu, J.; Wang, Y.; Feng, X. Design and Experimental Study of an Embedded Controller for a Model-Based Controllable Pitch Propeller. Appl. Sci. 2024, 14, 3993. https://doi.org/10.3390/app14103993

AMA Style

Su P, Chang G, Wu J, Wang Y, Feng X. Design and Experimental Study of an Embedded Controller for a Model-Based Controllable Pitch Propeller. Applied Sciences. 2024; 14(10):3993. https://doi.org/10.3390/app14103993

Chicago/Turabian Style

Su, Pan, Guanghui Chang, Jiechang Wu, Yuxin Wang, and Xuejiao Feng. 2024. "Design and Experimental Study of an Embedded Controller for a Model-Based Controllable Pitch Propeller" Applied Sciences 14, no. 10: 3993. https://doi.org/10.3390/app14103993

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop