Hydraulic valve positioning control method and control system based on sensorless stepper motor
By using sensorless stepper motor stall detection and adaptive microstep control, the balance between high precision, low cost and high reliability in hydraulic valve control systems is solved, achieving high-precision and low-cost hydraulic valve positioning control. It has zero-point self-calibration and state awareness capabilities, ensuring that the positioning process is fast, stable and accurate.
Patent Information
- Application Number
- CN202610259408.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-03-04
- Publication Date
- 2026-06-05
AI Technical Summary
Existing hydraulic valve control systems struggle to balance high precision, low cost, and high reliability. They are expensive, complex in structure, lack position status sensing capabilities, cannot detect motor stall or step loss, and lack automatic zero-point calibration functions.
Employing a sensorless stepper motor, the absolute zero position is determined through stall detection. Combined with magnetic field orientation control and adaptive microstepping control, high-precision positioning is achieved. Physical position sensors are eliminated, and a predictive smooth deceleration algorithm is introduced to prevent overshoot and system position loss.
It achieves high-precision positioning control, reduces system hardware costs, has zero-point self-calibration and state awareness capabilities, ensures a fast, stable and accurate positioning process, and has flexible adaptive control and strong robustness.
Smart Images

Figure CN122148605A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of hydraulic control, and relates to a hydraulic valve positioning control method and control system based on a sensorless stepper motor. Background Technology
[0002] In fields such as industrial automation, engineering machinery, and heavy equipment, hydraulic systems serve as a core means of power transmission and control, and their performance is of paramount importance. Hydraulic valves are key actuators that realize the control functions of hydraulic systems. They precisely regulate the on / off state, direction, pressure, and flow rate of hydraulic fluid by changing the displacement of the valve core (or lever), thereby controlling the actions of actuators (such as hydraulic cylinders and hydraulic motors). Therefore, the control accuracy, response speed, and reliability of the valve core displacement directly determine the control quality, energy consumption level, and working efficiency of the entire hydraulic system.
[0003] Currently, mainstream solutions mainly rely on closed-loop servo systems with position sensors or open-loop control systems with ordinary stepper motors. However, due to the technical limitations of the sensors themselves or the inherent defects of open-loop control, existing solutions struggle to achieve an ideal balance between low cost, high reliability, and high precision. This has become a significant bottleneck restricting the development of compact, high-performance hydraulic valve technology.
[0004] However, the existing technology has the following problems: (1) High hardware cost and complexity: The closed-loop scheme that relies on high-precision position sensors (such as encoders) results in high system cost, complex structure and large size, and the sensors have poor reliability in harsh environments such as vibration and oil contamination common in hydraulic systems. (2) No position state sensing capability: The open-loop scheme using ordinary stepper motors cannot detect the motor's "stall" and "step loss" states. When the valve core moves to the mechanical limit or gets stuck, the controller continues to drive, causing an irreversible deviation between the actual position and the theoretical position of the system, and the control completely fails. (3) Lack of automatic zero-point calibration function: After the system is powered on, it cannot automatically determine the absolute mechanical zero point of the valve core, and must rely on additional limit switches or cumbersome manual operation for calibration. Summary of the Invention
[0005] This application provides a hydraulic valve positioning control method and control system based on a sensorless stepper motor, which is used to solve the problem of how to perform precise positioning control of hydraulic valves based on a sensorless stepper motor.
[0006] In a first aspect, this application provides a hydraulic valve positioning control method based on a sensorless stepper motor, comprising: controlling the sensorless stepper motor to drive the valve core of the hydraulic valve to move for system initialization; determining the absolute zero position and establishing coordinates by detecting stepper motor stall; during position control, calculating the total number of microsteps based on the target position and the absolute zero position, and determining the planned microstep increment for each control cycle based on the motor speed; before each control cycle is executed, determining whether executing the planned microstep increment will exceed the remaining number of microsteps, thereby correcting the actual number of microsteps executed in that control cycle; updating the cumulative number of executed microsteps and the remaining number of microsteps based on the actual number of microsteps executed, until the remaining number of microsteps is 0 in a certain control cycle, so as to reach the target position.
[0007] In one implementation of the first aspect, the system initialization is performed by controlling the movement of the valve core of the hydraulic valve driven by a sensorless stepper motor, and the steps of determining the absolute zero point position and establishing coordinates by detecting stepper motor stall include: after the system is powered on, controlling the valve core rod of the hydraulic valve driven by the sensorless stepper motor to move at a constant speed in a preset mechanical limit direction; determining stall based on magnetic field orientation control; and determining the absolute zero point position and establishing coordinates according to the stall state of the stepper motor in the system.
[0008] In one implementation of the first aspect, the step of determining stall based on field-oriented control includes: acquiring the motor voltage and phase current of the stepper motor; calculating the desired voltage based on the motor voltage model; estimating the back electromotive force by comparing the actual voltage with the desired voltage; and determining that the stepper motor is in a stall state when the absolute value of the estimated back electromotive force is continuously lower than a set voltage threshold and exceeds a time threshold.
[0009] In one implementation of the first aspect, the steps of determining the absolute zero point position and establishing coordinates based on the stall state of the stepper motor in the system include: after determining that the stepper motor is stalled, recording the number of microsteps the motor has run at this moment, and defining the position corresponding to the number of microsteps run as the absolute zero point position of the entire system; after establishing the absolute zero point position, establishing a mapping relationship between the absolute position coordinates of the lever throughout its entire range and the motor speed-displacement speed based on the pre-calibrated microstep-displacement mapping relationship.
[0010] In one implementation of the first aspect, the step of correcting the actual number of microsteps executed in the control cycle includes: parsing the target position according to the target position command, so as to calculate the total number of microsteps by using the target position corresponding to the target position command and the absolute zero position; calculating the microstep increment according to the target speed; performing predictive smooth deceleration based on the result of the microstep increment calculation for each control cycle; and performing overshoot detection based on the result of the microstep increment calculation for each control cycle.
[0011] In one implementation of the first aspect, the step of parsing the target position according to the target position instruction to calculate the total number of microsteps by means of the target position corresponding to the target position instruction and the absolute zero position includes: calculating the displacement difference from the absolute zero position to the target position according to the target position instruction and the established coordinates; and determining the total number of microsteps based on the displacement difference and the conversion coefficient.
[0012] In one implementation of the first aspect, the step of calculating the microstep increment based on the target speed includes: allocating a suitable target speed for the current control cycle based on a preset speed planning curve and the mapping relationship between motor speed and displacement speed; and dynamically calculating the planned microstep increment within the current control cycle in conjunction with the target speed.
[0013] In one implementation of the first aspect, the step of predictive smooth deceleration based on the result of the microstep increment calculation for each control cycle includes: calculating in real time the number of microsteps required to decelerate from the current target speed to zero according to the target speed and a preset deceleration curve; and performing predictive smooth deceleration based on the relationship between the number of microsteps required to decelerate to zero and the remaining number of microsteps.
[0014] In one implementation of the first aspect, the step of performing overshoot detection based on the result of the microstep increment calculation for each control cycle includes: before the execution of each control cycle, if the number of remaining microsteps exceeds the planned microstep increment after execution, it is determined that there is an overshoot risk, and the remaining microsteps are taken as the actual number of microsteps executed; if the number of remaining microsteps does not exceed the planned microstep increment after execution, it is determined that there is no overshoot risk.
[0015] Secondly, this application provides a hydraulic valve positioning control system based on a sensorless stepper motor, comprising: a zero-point self-calibration module for controlling the stepper motor to move and initialize the system, and determining the absolute zero point position and establishing coordinates by detecting stepper motor stall; a position calculation module for calculating the total number of microsteps based on the target position and the absolute zero point position; an adaptive microstep control module for planning the microstep increment based on the target speed, and integrating predictive smooth deceleration and overshoot detection logic, and outputting the final microstep command for each control cycle; and a motor drive module for executing the microstep command and driving the stepper motor.
[0016] As described above, the hydraulic valve positioning control method and control system based on a sensorless stepper motor described in this application have the following beneficial effects:
[0017] This application achieves high-precision positioning without sensors: through stall detection based on motor voltage model and back EMF observation, and speed-adaptive microstep control, this invention achieves high positioning accuracy and repeatability accuracy without physical position sensors, breaking the traditional technical paradigm that "high precision must rely on encoders".
[0018] This application offers significant cost and structural advantages: it eliminates expensive and sophisticated encoders and related wiring, resulting in a substantial reduction in system hardware costs. Simultaneously, the drive unit has a more compact and simpler structure, with a small size, making it highly suitable for integration and widespread adoption in space-constrained compact hydraulic valve and multi-valve manifold systems.
[0019] This application can achieve zero-point self-calibration and state awareness capabilities: the addition of a stall detection mechanism enables the system to have state awareness capabilities, which can not only automatically and reliably complete the power-on initialization and zero finding without any additional hardware or manual intervention, but also detect abnormal states such as stall in real time, effectively preventing motor step loss and system position loss.
[0020] This application features smooth braking and dynamic performance: the introduced predictive smooth deceleration algorithm ensures that the motor can brake smoothly based on the real-time calculated deceleration distance when approaching the target position, eliminating mechanical shock, system oscillation and positioning overshoot, making the entire positioning process fast, stable and accurate.
[0021] This application enables flexible adaptive control and strong robustness: the microstep increment can be dynamically adjusted according to speed commands and seamlessly coordinates with anti-overshoot logic and predictive deceleration, allowing the system to respond optimally to positioning requirements at different speeds. This method is insensitive to load changes and system parameter fluctuations, exhibiting strong robustness. Attached Figure Description
[0022] Figure 1 The diagram shown is a schematic flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor as described in the embodiments of this application.
[0023] Figure 2 The diagram shown is the initialization flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor as described in the embodiments of this application.
[0024] Figure 3 The diagram shown is a blockage detection flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment.
[0025] Figure 4 The flowchart shown is a process for determining the absolute position and coordinates of a hydraulic valve positioning control method based on a sensorless stepper motor, as described in an embodiment of this application.
[0026] Figure 5The diagram shown is a flowchart of the microstep adjustment process of the hydraulic valve positioning control method based on a sensorless stepper motor as described in the embodiments of this application.
[0027] Figure 6 The diagram shown is a predictive smooth deceleration flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in the embodiments of this application.
[0028] Figure 7 The diagram shown is an overall flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor as described in the embodiments of this application.
[0029] Figure 8 The diagram shown is a schematic diagram of the original structure of the hydraulic valve positioning control system based on a sensorless stepper motor as described in the embodiments of this application.
[0030] Component designation explanation
[0031] 8. Hydraulic Valve Positioning Control System Based on Sensorless Stepper Motor
[0032] 81 Zero-point self-calibration module
[0033] 82 position calculation module
[0034] 83 Adaptive Microstep Control Module
[0035] 84 motor drive module
[0036] Steps S11~S13
[0037] Steps S111~S113
[0038] Steps S112A~S112C
[0039] Steps S112A~S113B
[0040] Steps S121~S124
[0041] Steps S123A~S123B Detailed Implementation
[0042] The following specific examples illustrate the implementation of this application. Those skilled in the art can easily understand other advantages and effects of this application from the content disclosed in this specification. This application can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of this application. It should be noted that, unless otherwise specified, the following embodiments and features in the embodiments can be combined with each other.
[0043] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of this application. Therefore, the drawings only show the components related to this application and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0044] This application provides a sensorless stepper motor positioning method based on stall detection and adaptive microstepping. The core of this method lies in its ability to achieve highly reliable stall detection and zero-point self-calibration by analyzing the motor phase voltage through a field-oriented control algorithm without relying on any physical position sensors. This is combined with a speed-adaptive anti-overshoot microstepping control strategy to achieve precise and reliable valve core positioning. The core of this system is a sensorless positioning control and stall detection module, which is connected to the motor drive circuit and voltage sampling circuit.
[0045] The technical solutions in the embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0046] Please see Figure 1 The diagram shows the principle flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 1 As shown, this embodiment provides a hydraulic valve positioning control method based on a sensorless stepper motor, specifically including the following steps:
[0047] S11 controls the sensorless stepper motor to drive the valve core of the hydraulic valve to move for system initialization. The absolute zero point position and coordinate establishment are determined by detecting the stall of the stepper motor, thereby realizing system initialization and zero point self-calibration.
[0048] This application employs a sensorless stepper motor, eliminating the need for expensive and sophisticated encoders and related wiring, significantly reducing system hardware costs. Simultaneously, the drive unit has a more compact and simpler structure, with a small size, making it highly suitable for integration and widespread application in space-constrained compact hydraulic valve and multi-valve manifold systems.
[0049] Please see Figure 2 The diagram shows the initialization flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 2 As shown, S11 controls a sensorless stepper motor to drive the valve core of the hydraulic valve to move for system initialization. The steps for determining the absolute zero position and establishing coordinates by detecting stepper motor stall include:
[0050] S111, after the system is powered on, the sensorless stepper motor is controlled to drive the valve core rod of the hydraulic valve to move at a constant speed in a preset mechanical limit direction.
[0051] In different embodiments, the method of moving at a constant speed in a preset mechanical limit direction, i.e., determining the zero point by moving unidirectionally to the mechanical limit, can be replaced by bidirectional movement and detecting two stall points, taking the intermediate value, or establishing a complete stroke range.
[0052] S112, based on magnetic field orientation control for stall determination.
[0053] Specifically, the stall logic is based on a stall detection method using back electromotive force (EMF) estimation. The principle is that the motor's back EMF E is directly proportional to the rotational speed ω (E = k_e * ω; k_e is the motor's back EMF constant). When the motor stalls, the rotational speed ω = 0, and the back EMF E also approaches zero.
[0054] Please see Figure 3 The diagram shows a stall detection flowchart for the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 3 As shown, the steps of S112 for determining stall based on magnetic field orientation control include:
[0055] S112A collects the motor voltage and phase current of the stepper motor.
[0056] S112B, calculate the desired voltage based on the motor voltage model, and estimate the back electromotive force by comparing the actual voltage with the desired voltage.
[0057] Based on the motor voltage equation:
[0058] U = R* I + L * ( dI / dt ) + E;
[0059] Where E is the back electromotive force, R is the motor winding resistance, L is the motor winding inductance, and I is the motor phase current.
[0060] That is, the estimated value of the back electromotive force is:
[0061] E_est = U – [R* I + L * ( dI / dt )]
[0062] S112C, when the absolute value of the estimated back electromotive force is continuously lower than the set voltage threshold and exceeds the time threshold, the stepper motor is determined to be in a stalled state.
[0063] Specifically, the condition for determining a stalled motor is that when the absolute value of the estimated back electromotive force E_est is continuously lower than the set voltage threshold V_threshold and exceeds the time threshold T_threshold, the motor is determined to be in a stalled state if the following conditions are met:
[0064] | E_est | < V_threshold, and duration > T_threshold.
[0065] In different embodiments, the stall detection method based on motor voltage model and back EMF observation can also be replaced by a method based on phase voltage peak detection.
[0066] S113, determine the absolute zero position and coordinate establishment based on the stall state of the stepper motor in the system, thereby realizing zero position self-calibration and coordinate establishment.
[0067] Please see Figure 4 The diagram shows the absolute position and coordinate determination flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 4 As shown, S113, the steps for determining the absolute zero position and establishing coordinates based on the stall state of the stepper motor in the system, include:
[0068] S113A, after determining that the stepper motor is stalled, record the number of microsteps the motor has run at this moment, and define the position corresponding to the number of microsteps run as the absolute zero point position of the entire system.
[0069] Specifically, during zero-point position self-calibration, once a system stall is detected, the number of microsteps the motor has taken at that moment is immediately recorded, and this position is defined as the absolute mechanical zero point of the entire system. To improve reliability, this process can be repeated multiple times to obtain the final zero point.
[0070] S113B, After establishing the absolute zero point position, based on the pre-calibrated microstep-displacement mapping relationship, establish the mapping relationship between the absolute position coordinates of the pull rod throughout its entire stroke and the motor speed-displacement speed, with the absolute zero point position as the reference.
[0071] Specifically, when establishing the absolute position coordinates, after establishing the system zero point, a mapping relationship between the absolute position coordinates of the rod throughout its entire range and the motor speed-displacement speed is established based on the pre-calibrated microstep-displacement mapping relationship.
[0072] S12, during the position control process, the total number of microsteps is calculated based on the target position and the absolute zero position, and the planned microstep increment for each control cycle is determined based on the motor speed; before each control cycle is executed, it is determined whether the number of remaining microsteps will be exceeded after executing the planned microstep increment, thereby correcting the actual number of microsteps executed in that control cycle, thus achieving precise position control with adaptive microsteps.
[0073] Please see Figure 5 The diagram shows a micro-step adjustment flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in an embodiment of this application. Figure 5 As shown, S12, the step of correcting the actual number of execution microsteps of the control cycle, includes:
[0074] S121, Analyze the target position according to the target position instruction, and calculate the total number of microsteps by using the target position corresponding to the target position instruction and the absolute zero point position.
[0075] In one embodiment, the step of parsing the target position according to the target position instruction, and calculating the total number of microsteps using the target position corresponding to the target position instruction and the absolute zero point position, includes:
[0076] Based on the target position command and the established coordinates, the displacement difference between the absolute zero point position and the target position is calculated; the total number of microsteps is determined based on the displacement difference and the conversion coefficient.
[0077] Specifically, upon receiving the target position command P_target, the system calculates the displacement difference ΔP between the current position P_current and the target position based on the established absolute position coordinates.
[0078] Based on the microstep-displacement mapping relationship calibrated by the system, the total number of microsteps Steps_total to be run is calculated using the following formula:
[0079] Steps_total = ΔP * K_step;
[0080] Where k_step is the conversion coefficient, which is determined by the system's mechanical transmission structure and motor characteristics.
[0081] S122, calculates the microstep increment based on the target speed.
[0082] In one embodiment, the step of calculating the microstep increment based on the target velocity includes:
[0083] Based on the preset speed planning curve and the mapping relationship between motor speed and displacement speed, a suitable target speed is assigned to the current control cycle; the planned microstep increment within the current control cycle is dynamically calculated in combination with the target speed.
[0084] Specifically, the system assigns a suitable target speed V_target to the current cycle based on a preset speed planning curve (including acceleration, constant speed, and deceleration segments) and the mapping relationship between motor speed and displacement speed. Based on this target speed V_target, the system dynamically calculates the number of microsteps ΔStep_plan to be executed in each FOC control cycle.
[0085] The calculation formula is:
[0086] ΔStep_plan = (V_target * k_step) / f_pwm;
[0087] Where k_step is the conversion coefficient and f is the PWM frequency.
[0088] At high speeds, ΔStep_plan is larger to quickly approach the target; at low speeds, ΔStep_plan is smaller to achieve precise approximation.
[0089] S123, based on the results of the micro-step increment calculation for each control cycle, performs predictive smooth deceleration to ensure that the system smoothly decelerates to the target position.
[0090] Please see Figure 6 The diagram shows a predictive smooth deceleration flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 6 As shown, S123 is a step for predictive smooth deceleration based on the results of the microstep increment calculation for each control cycle, including:
[0091] S123A, based on the target speed and the preset deceleration curve, calculate in real time the number of microsteps required to decelerate from the current target speed to zero.
[0092] Specifically, the deceleration distance is calculated in real time: the system calculates the number of microsteps required to decelerate from the current speed to zero, i.e., the real-time deceleration distance S_brake, based on the target speed V_target and the preset deceleration curve.
[0093] The calculation formula can be: S_brake = k1 * (V_target^2) + k2 * V_target + k3, where k1, k2, and k3 are the preset deceleration curve parameters of the system.
[0094] S123B performs predictive smooth deceleration based on the relationship between the number of microsteps required to decelerate to zero and the remaining number of microsteps.
[0095] Specifically, the braking condition is determined as follows: In each control cycle, the remaining steps (Steps_remaining) are continuously compared with the real-time deceleration distance (S_brake). If Steps_remaining > S_brake, it indicates that the braking zone has not yet been entered, and the system remains in the speed planning state, continuing to execute the ΔStep_plan calculated in step S122. If Steps_remaining ≤ S_brake, it indicates that the braking zone has been entered, and the system immediately switches to the braking state. In this state, the original speed planning in step S122 is ignored, and instead, a gradually decreasing V_target is recalculated based on the deceleration curve, resulting in a new, smaller planned microstep increment ΔStep_plan, thus initiating smooth deceleration.
[0096] S124 performs overshoot detection based on the results of the microstep increment calculation for each control cycle.
[0097] In one embodiment, the step of performing overshoot detection based on the result of the microstep increment calculation for each control cycle includes:
[0098] Before each control cycle is executed, if the number of planned microstep increments exceeds the number of remaining microsteps, it is determined that there is an overshoot risk, and the number of remaining microsteps is taken as the actual number of microsteps executed; if the number of planned microstep increments does not exceed the number of remaining microsteps, it is determined that there is no overshoot risk.
[0099] Specifically, at the beginning of each FOC (Field-Oriented Control) cycle, a forward-looking judgment is performed:
[0100] Calculate Steps_remaining = Steps_total - Steps_current (Steps_current is the current cumulative number of microsteps executed).
[0101] Judgment: If ΔStep_plan > Steps_remaining, it means that if the cycle is executed as planned, it will exceed the target position, resulting in overshoot. If overshoot risk occurs, the actual number of microsteps executed in this cycle, ΔStep_actual, = Steps_remaining, driving the motor to precisely reach the target position and stop. If there is no overshoot risk, the actual number of microsteps executed in this cycle, ΔStep_actual, = ΔStep_plan, and the cycle runs as planned.
[0102] S13, update the cumulative number of executed microsteps and the remaining number of microsteps according to the actual number of microsteps executed, until the remaining number of microsteps is 0 in a certain control cycle, so as to reach the target position.
[0103] Specifically, after executing ΔStep_actual, update Steps_current = Steps_current + ΔStep_actual. Repeat steps S122 to S124 until Steps_remaining is zero, meaning the lever has precisely reached the target position P_target.
[0104] In different embodiments, the speed adaptive microstep control can also be replaced by a fixed S-curve or a trapezoidal speed planning curve.
[0105] Please see Figure 7 The diagram shows the overall flowchart of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application embodiment. Figure 7 As shown, after system initialization, zero-point self-calibration begins by having the motor oscillate multiple times and perform multiple stall checks to determine if the zero-point position is calibrated. If not, the entire process ends; if yes, precise position control is performed, and after the target position speed is analyzed, the deceleration distance is calculated to determine if deceleration is necessary. If yes, deceleration mode is executed; if not, position increment adaptive calculation is performed to determine if overshoot occurs. If yes, the position is determined to have been reached; if not, the motor is run and position increment adaptive calculation is performed again.
[0106] The scope of protection of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application is not limited to the execution order of the steps listed in this embodiment. Any solution implemented by adding, subtracting, or replacing steps in the prior art based on the principles of this application is included within the scope of protection of this application.
[0107] This application also provides a hydraulic valve positioning control system based on a sensorless stepper motor. The hydraulic valve positioning control system based on a sensorless stepper motor can implement the hydraulic valve positioning control method based on a sensorless stepper motor described in this application. However, the implementation device of the hydraulic valve positioning control method based on a sensorless stepper motor described in this application includes, but is not limited to, the structure of the hydraulic valve positioning control system based on a sensorless stepper motor listed in this embodiment. All structural modifications and substitutions of the prior art made according to the principles of this application are included within the protection scope of this application.
[0108] Please see Figure 8 The diagram shows the original structural principle of the hydraulic valve positioning control system based on a sensorless stepper motor described in this application embodiment. Figure 8As shown, this embodiment provides a hydraulic valve positioning control system 8 based on a sensorless stepper motor, including: a zero-point self-calibration module 81, a position calculation module 82, an adaptive microstep control module 83, and a motor drive module 84.
[0109] The zero-point self-calibration module 81 is used to control the movement of the stepper motor to initialize the system, and determines the absolute zero point position and coordinate establishment by detecting stepper motor stall.
[0110] In one embodiment, the zero-point self-calibration module 81 is specifically used to control the valve core rod of the sensorless stepper motor to move at a constant speed in a preset mechanical limit direction after the system is powered on; to determine the stall condition based on magnetic field orientation control; and to determine the absolute zero point position and coordinate establishment based on the stall state of the stepper motor in the system.
[0111] Furthermore, the stall determination based on field-oriented control includes: acquiring the motor voltage and phase current of the stepper motor; calculating the desired voltage based on the motor voltage model; estimating the back electromotive force by comparing the actual voltage with the desired voltage; and determining that the stepper motor is in a stall state when the absolute value of the estimated back electromotive force is continuously lower than a set voltage threshold and exceeds a time threshold.
[0112] Furthermore, determining the absolute zero point position and establishing coordinates based on the stepper motor stall state in the system includes: after determining that the stepper motor is stalled, recording the number of microsteps the motor has run at this moment, and defining the position corresponding to the number of microsteps run as the absolute zero point position of the entire system; after establishing the absolute zero point position, establishing a mapping relationship between the absolute position coordinates of the lever throughout its entire range and the motor speed-displacement speed based on the pre-calibrated microstep-displacement mapping relationship.
[0113] The position calculation module 82 is used to calculate the total number of microsteps based on the target position and the absolute zero point position.
[0114] The adaptive microstep control module 83 is used to plan the microstep increment according to the target speed, and integrates predictive smooth deceleration and anti-overshoot detection logic to output the final microstep command for each control cycle.
[0115] In one embodiment, the adaptive microstep control module 83 is specifically used to perform target position parsing according to the target position command, so as to calculate the total number of microsteps by using the target position corresponding to the target position command and the absolute zero point position; to perform microstep increment calculation according to the target speed; to perform predictive smooth deceleration based on the result of the microstep increment calculation of each control cycle; and to perform overshoot detection based on the result of the microstep increment calculation of each control cycle.
[0116] Further, the target position parsing based on the target position command, and the calculation of the total number of microsteps by comparing the target position corresponding to the target position command with the absolute zero point position, includes: calculating the displacement difference from the absolute zero point position to the target position based on the target position command and the established coordinates; and determining the total number of microsteps based on the displacement difference and the conversion coefficient.
[0117] Furthermore, the calculation of microstep increments based on the target speed includes: allocating a suitable target speed for the current control cycle based on a preset speed planning curve and the mapping relationship between motor speed and displacement speed; and dynamically calculating the planned microstep increments within the current control cycle in conjunction with the target speed.
[0118] Furthermore, predictive smooth deceleration based on the results of the microstep increment calculation for each control cycle includes: calculating in real time the number of microsteps required to decelerate from the current target speed to zero according to the target speed and the preset deceleration curve; and performing predictive smooth deceleration based on the relationship between the number of microsteps required to decelerate to zero and the remaining number of microsteps.
[0119] Furthermore, the overshoot detection based on the result of the microstep increment calculation for each control cycle includes: before the execution of each control cycle, if the number of microsteps exceeds the remaining number after the execution of the planned microstep increment, it is determined that there is an overshoot risk, and the remaining number of microsteps is taken as the actual number of microsteps executed; if the number of microsteps does not exceed the remaining number after the execution of the planned microstep increment, it is determined that there is no overshoot risk.
[0120] The motor drive module 84 is used to execute the microstep command and drive the stepper motor.
[0121] Specifically, the microstep instruction is determined based on the microstep increment generated by the final plan.
[0122] This application addresses sensorless stall detection and zero-point self-calibration based on motor voltage models and back EMF observation. It applies field-oriented control technology to stall sensing of stepper motors. By sampling the motor terminal voltage and phase current, and based on the back EMF estimation model, it detects the back EMF state without any physical position sensors, achieving highly reliable stall event detection and automatic calibration of the system's absolute zero position.
[0123] This application addresses adaptive microstepping control that integrates speed planning and overshoot prevention, combining speed control and position control. By dynamically allocating microstep increments based on speed and performing overshoot prevention checks in each control cycle, it ensures that the motor can respond quickly and stop precisely at the target position, achieving high-precision, overshoot-free positioning under sensorless conditions.
[0124] This application addresses predictive deceleration and smooth braking by introducing a real-time deceleration distance calculation model. By continuously comparing the remaining steps with the dynamically calculated deceleration distance, it adaptively triggers a smooth deceleration process. This eliminates mechanical shock and end-effector oscillations while ensuring positioning efficiency, thus achieving smoothness and accuracy in motion control.
[0125] In the embodiments provided in this application, it should be understood that the disclosed systems or methods can be implemented in other ways. For example, the system embodiments described above are merely illustrative. For instance, the division of modules / units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or units may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or modules or units, and may be electrical, mechanical, or other forms.
[0126] The modules / units described as separate components may or may not be physically separate. The components shown as modules / units may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules / units can be selected to achieve the objectives of the embodiments of this application, depending on actual needs. For example, the functional modules / units in the various embodiments of this application may be integrated into one processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into one module / unit.
[0127] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0128] The descriptions of the processes or structures corresponding to the above figures each have their own emphasis. For parts of a process or structure that are not described in detail, please refer to the relevant descriptions of other processes or structures.
[0129] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in this application should still be covered by the claims of this application.
Claims
1. A hydraulic valve positioning control method based on a sensorless stepper motor, characterized in that, include: The system is initialized by controlling the movement of the valve core of the hydraulic valve by a sensorless stepper motor, and the absolute zero point position and coordinate establishment are determined by detecting the stall of the stepper motor. During the position control process, the total number of microsteps is calculated based on the target position and the absolute zero position, and the planned microstep increment for each control cycle is determined based on the motor speed. Before each control cycle is executed, it is determined whether the number of remaining microsteps will be exceeded after executing the planned microstep increment, and the actual number of microsteps executed in that control cycle is adjusted accordingly. The cumulative number of executed microsteps and the remaining number of microsteps are updated based on the actual number of microsteps executed until the remaining number of microsteps is 0 in a certain control cycle, so as to reach the target position.
2. The method according to claim 1, characterized in that, The system initialization process involves controlling a sensorless stepper motor to drive the valve spool movement of a hydraulic valve. This includes determining the absolute zero position and establishing coordinates by detecting stepper motor stall. After the system is powered on, the sensorless stepper motor drives the valve core rod of the hydraulic valve to move at a constant speed in a preset mechanical limit direction. Stall determination is based on magnetic field orientation control; The absolute zero point position and coordinates are determined based on the stall state of the stepper motor in the system.
3. The method according to claim 2, characterized in that, The steps for determining stall based on magnetic field orientation control include: Collect the motor voltage and phase current of the stepper motor; The desired voltage is calculated based on the motor voltage model, and the back electromotive force is estimated by comparing the actual voltage with the desired voltage. When the absolute value of the estimated back electromotive force is continuously lower than the set voltage threshold and exceeds the time threshold, the stepper motor is determined to be in a stalled state.
4. The method according to claim 2, characterized in that, The steps for determining the absolute zero point position and establishing coordinates based on the stall state of the stepper motor in the system include: After determining that the stepper motor is stalled, record the number of microsteps the motor has run at this moment, and define the position corresponding to the number of microsteps run as the absolute zero point position of the entire system. After establishing the absolute zero point position, a mapping relationship between the absolute position coordinates of the rod throughout its entire range and the motor speed-displacement speed is established based on the pre-calibrated microstep-displacement mapping relationship.
5. The method according to claim 1, characterized in that, The steps to correct the actual number of microsteps executed in this control cycle include: The target position is parsed according to the target position instruction, and the total number of microsteps is calculated by using the target position corresponding to the target position instruction and the absolute zero point position; Calculate the micro-step increment based on the target speed; Predictive smooth deceleration is performed based on the results of the microstep increment calculation for each control cycle. Overshoot detection is performed based on the results of the microstep increment calculation for each control cycle.
6. The method according to claim 5, characterized in that, The step of parsing the target position according to the target position command, and calculating the total number of microsteps by using the target position corresponding to the target position command and the absolute zero point position, includes: Based on the target position command and the established coordinates, calculate the displacement difference between the absolute zero point position and the target position; The total number of microsteps is determined based on the displacement difference and the conversion coefficient.
7. The method according to claim 5, characterized in that, The steps for calculating the microstep increment based on the target velocity include: Based on the preset speed planning curve and the mapping relationship between motor speed and displacement speed, a suitable target speed is assigned to the current control cycle; The planned microstep increment within the current control cycle is dynamically calculated based on the target speed.
8. The method according to claim 5, characterized in that, The steps for predictive smooth deceleration based on the results of microstep increment calculations for each control cycle include: Based on the target speed and the preset deceleration curve, the number of microsteps required to decelerate from the current target speed to zero is calculated in real time. Predictive smooth deceleration is performed based on the relationship between the number of microsteps required to decelerate to zero and the number of remaining microsteps.
9. The method according to claim 5, characterized in that, The overshoot detection steps, based on the results of the micro-step increment calculation for each control cycle, include: Before each control cycle is executed, if the number of planned microstep increments exceeds the number of remaining microsteps, it is determined that there is an overshoot risk, and the number of remaining microsteps is taken as the actual number of microsteps executed; if the number of planned microstep increments does not exceed the number of remaining microsteps, it is determined that there is no overshoot risk.
10. A hydraulic valve positioning control system based on a sensorless stepper motor, characterized in that, include: The zero-point self-calibration module is used to control the movement of the stepper motor to initialize the system. It determines the absolute zero point position and establishes the coordinates by detecting stepper motor stall. The position calculation module is used to calculate the total number of microsteps based on the target position and the absolute zero point position; The adaptive microstep control module is used to plan the microstep increment according to the target speed, and integrates predictive smooth deceleration and overshoot detection logic to output the final microstep command for each control cycle. The motor drive module is used to execute the microstepping command and drive the stepper motor.
