Motor control method, steering valve module, IOS module and diffusion test module
By calculating the running stroke ratio and target duty cycle of the stepper motor, real-time control of the motor speed is achieved, and the problem of inaccurate motor control in the prior art is solved, and the stability and measurement effect of valve rotation are improved.
Patent Information
- Application Number
- CN202411995053.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-31
- Publication Date
- 2025-04-08
AI Technical Summary
The existing motor control methods cannot achieve precise control of the operation process of stepper motors, resulting in unstable valve rotation speed and affecting the measurement effect of IOS detection equipment.
By determining the ratio of the to-run stroke of the stepper motor, calculating the target duty cycle, and controlling the motor speed based on the target duty cycle, real-time precise control of the motor operation is achieved.
Accurate control of stepper motors is achieved, ensuring stable, fast and accurate rotation of the valve, and improving the measurement accuracy of IOS detection equipment and the operation stability of the equipment.
Smart Images

Figure CN119787886A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical device technology, and in particular to a motor control method, a steering valve module, an IOS module and a diffusion test module. Background Art
[0002] In some medical testing equipment, such as the impulse oscillation (IOS) detection module and the lung diffusion test function module of some pulmonary function instruments, the switching of the respiratory airway is usually involved, and the switching needs to be realized by driving the steering valve by a motor. Among them, the impulse oscillation (IOS) detection module is a multi-module software system composed of a main control module and a signal module. The main control module is mainly responsible for generating oscillation pressure and controlling the motor to rotate the valve according to functional requirements. The signal module is mainly responsible for collecting flow pressure difference sensor and oral pressure sensor data, and calculating and processing the collected data. The IOS detection device module has two measurement modes, namely ventilation measurement mode and impedance measurement mode, and the measurement mode is switched by rotating the valve. Whether the valve can be stably, accurately and quickly turned to the specified position directly determines whether the IOS detection device can quickly make accurate and reliable measurements according to the changes in oscillation pressure and flow.
[0003] The current motor control drives the motor to rotate through the pulse width modulation (PWM) waveform generated by the microcontroller timer. If a single duty cycle PWM waveform is used, the motor can only be driven at a constant power. Excessive power can easily cause the valve to rotate too fast, causing serious valve wear and affecting the experience of the IOS detection equipment. Too little power will cause the valve to rotate too slowly, also affecting the experience of the pulse oscillation detection equipment.
[0004] Therefore, how to achieve precise control over the operation process of the drive motor is a technical problem that has yet to be solved. Summary of the invention
[0005] The purpose of the embodiments of the present application is to propose a motor control method, a steering valve module, an IOS module and a diffusion test module to solve the technical problem that the existing motor control method is rough and cannot achieve precise control.
[0006] In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a motor control method, which adopts the following technical solution:
[0007] In the process of the stepper motor running from the initial position to the final position, determining the waiting-to-run stroke ratio of the stepper motor, the waiting-to-run stroke ratio being the ratio of the waiting-to-run stroke to the total stroke, the waiting-to-run stroke being the stroke required to run from the current position of the stepper motor to the final position, and the total stroke being the stroke required to run from the initial position to the final position;
[0008] Determining a target duty cycle according to the proportion of the stroke to be operated;
[0009] The rotation speed of the stepping motor is controlled according to the target duty cycle.
[0010] In some possible implementations, the proportion of the stroke to be operated is substituted into a preset duty cycle algorithm to determine a target duty cycle coefficient, and the target duty cycle coefficient is less than or equal to 1;
[0011] The target duty cycle is determined according to the target duty cycle coefficient and the maximum duty cycle, wherein the maximum duty cycle is the duty cycle corresponding to the stepper motor at a set maximum speed.
[0012] In some possible implementations, the step of substituting the proportion of the stroke to be operated into a preset duty cycle algorithm to determine a target duty cycle coefficient includes:
[0013] Substitute the waiting-to-operate stroke ratio into the sinusoidal control algorithm to determine the target duty cycle coefficient. The sinusoidal control algorithm is as follows:
[0014]
[0015] Wherein, A represents the target duty cycle coefficient, and B represents the proportion of the stroke to be operated.
[0016] In some possible implementations, the step of determining the proportion of the waiting-to-operate stroke of the stepping motor includes:
[0017] The pulse count recorded from the start of the stepper motor's rotation is determined, and the proportion of the stepper motor's stroke to be operated is determined based on the pulse count.
[0018] In order to solve the above technical problems, the second aspect of the embodiment of the present application provides a steering valve module, which adopts the following technical solution, including:
[0019] Controllers, steering valves and stepper motors;
[0020] The steering valve comprises a valve core and a valve sleeve;
[0021] The controller is used in the motor control method of the first aspect and any possible implementation method to drive and control the stepper motor;
[0022] The stepper motor is in driving connection with the valve core. When the stepper motor is in operation, the valve core is driven to move in the steering valve to change the relative position of the valve core in the valve sleeve.
[0023] In a possible implementation, the controller is further configured to perform the following steps:
[0024] Recording the initial position of the valve core relative to the valve sleeve;
[0025] Obtaining a control instruction to move the valve core to a target position;
[0026] If the target position is consistent with the initial position, the execution of the control instruction is stopped.
[0027] In order to solve the above technical problems, the third aspect of the embodiment of the present application provides an ISO module, which adopts the following technical solution, including:
[0028] A respiratory parameter measurement component, a tracheal component, an oscillatory wave generator, and a diverter valve module as described in the second aspect;
[0029] The trachea assembly defines a breathing passage extending between a first port and a second port disposed on the trachea assembly;
[0030] The respiratory parameter measurement component is located at the first port, and the diverter valve is located at the second port.
[0031] In one possible implementation, the valve sleeve includes a first opening and a second opening, and the valve core includes a first channel and a second channel; when the valve core is in a first relative position, the first opening is connected to the second opening through the first channel; when the valve core is in a second relative position, the first opening is connected to the second opening through the second channel; wherein, the first opening is connected to the second port, the second opening is connected to the air, and an air resistance member is provided in the second channel.
[0032] In order to solve the above technical problems, the fourth aspect of the embodiment of the present application provides a diffusion test module, which adopts the following technical solution, including:
[0033] A standard gas cylinder, a breathing pipeline, a gas supply pipeline and a steering valve module as described in the second aspect.
[0034] In a possible implementation, the valve sleeve includes a first opening, a second opening, and a third opening, and the valve core includes a conducting channel; when the valve core is in a first relative position, the first opening is communicated with the second opening through the conducting channel; when the valve core is in a second relative position, the first opening is communicated with the third opening through the conducting channel;
[0035] Among them, one end of the breathing pipeline is the user's breathing port, and the other end is connected to the first opening; one end of the air supply pipeline is connected to the standard gas bottle, and the other end is connected to the second opening; the third opening is connected to the air.
[0036] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0037] The motor control method of the present application can continuously control the motor speed in real time according to the proportion of the waiting stroke of the stepper motor during the operation of the stepper motor, thereby achieving precise control of the motor. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0039] Figure 1 A flow chart of an embodiment of a motor control method according to the present application;
[0040] Figure 2 This is a schematic diagram of an embodiment of a steering valve module of the present application;
[0041] Figure 3 This is a schematic structural diagram of an embodiment of a steering valve of the present application;
[0042] Figure 4 This is a schematic structural diagram of another embodiment of a steering valve of the present application. DETAILED DESCRIPTION
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0044] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0045] The following is a brief description of the concepts involved in this application:
[0046] Stepper motor: A stepper motor that converts an electrical pulse excitation signal into a discrete value control motor of corresponding angular displacement or linear displacement. This type of motor moves one step for every input of an electrical pulse, so it is also called a pulse motor.
[0047] A microcontroller is a small computer system that integrates a central processing unit (CPU), memory (RAM and ROM), timer, input and output interface (I / O) and other peripherals on a single chip.
[0048] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0049] Continue to refer Figure 1 , shows a flow chart of an embodiment of the motor control method of the present application. The motor control method comprises the following steps:
[0050] S101, determining a waiting-to-operate stroke ratio of the stepper motor during the process of the stepper motor operating from an initial position to a terminal position;
[0051] S102, determining a target duty cycle according to the proportion of the stroke to be operated;
[0052] S103: Control the rotation speed of the stepping motor according to the target duty cycle.
[0053] In this embodiment, the ratio of the stroke to be operated is the ratio of the stroke to be operated to the total stroke, the stroke to be operated is the stroke required to operate from the current position of the stepper motor to the end position, and the total stroke is the stroke required to operate from the initial position to the end position. The motor control method can be run on a microcontroller, which is connected to the drive circuit of the stepper motor. The microcontroller can receive motor control instructions issued by other modules or devices. In response to the motor control instructions, the microcontroller can determine the total stroke of the stepper motor from the initial position to the end position, and then generate a control signal for the stepper motor. Among them, the control signal may include a rotation direction control signal, a pulse drive signal, and a pulse width modulation control signal. The control signal can drive the stepper motor to rotate in a set direction and speed through the drive circuit.
[0054] After the stepper motor starts to rotate, the microcontroller can monitor the operation process of the stepper motor and determine the proportion of the waiting stroke of the stepper motor at any subsequent time. For example, assuming that the total stroke of the stepper motor is 720°, that is, the rotating shaft of the stepper motor needs to rotate two times, if it is detected that the stepper motor has rotated 180° compared to the initial position, then the proportion of the waiting stroke is (720°-180°) / 720°=0.75.
[0055] Furthermore, the target duty cycle is determined based on the above-mentioned proportion of the stroke to be operated. Among them, the mapping relationship between different proportions of the stroke to be operated and different duty cycles can be preset, and after the proportion of the stroke to be operated is determined, the corresponding target duty cycle can be determined based on the mapping relationship. The mapping relationship can have various forms. For example, a simple corresponding relationship can be set, such as when the proportion of the stroke to be operated is within different ranges, it corresponds to a different duty cycle value; it can also be set in the form of a continuous function, and the proportion of the stroke to be operated is substituted into the continuous function as an independent variable, and the target duty cycle value can be calculated.
[0056] After determining the target duty cycle, the microcontroller can generate a new pulse modulation signal according to the target duty cycle and send it to the drive circuit, thereby controlling the speed of the stepper motor in real time.
[0057] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0058] The motor control method of the present application can continuously control the motor speed in real time according to the proportion of the waiting stroke of the stepper motor during the operation of the stepper motor, thereby achieving precise control of the motor.
[0059] In some possible implementations, the proportion of the stroke to be operated is substituted into a preset duty cycle algorithm to determine a target duty cycle coefficient, and the target duty cycle coefficient is less than or equal to 1;
[0060] The target duty cycle is determined according to the target duty cycle coefficient and the maximum duty cycle, wherein the maximum duty cycle is the duty cycle corresponding to the stepper motor at a set maximum speed.
[0061] In this embodiment, the duty cycle algorithm can have multiple forms. For example, a simple corresponding relationship can be set. For example, when the proportion of the stroke to be operated is within different numerical ranges, a different target duty cycle coefficient corresponds to each of them. Alternatively, a continuous function can be set and the proportion of the stroke to be operated is substituted into the duty cycle algorithm as an independent variable, so that the target duty cycle coefficient can be calculated.
[0062] In addition, the target duty cycle coefficient is less than or equal to 1. By multiplying the target duty cycle coefficient with the maximum duty cycle, the value of the target duty cycle can be obtained, thereby achieving the effect of gradually reducing the speed during the rotation of the stepper motor. Moreover, when the stepper motor is about to rotate to the end position, the speed of the stepper motor is also reduced to the minimum, and the operation is smoother.
[0063] In some possible implementations, the step of substituting the proportion of the stroke to be operated into a preset duty cycle algorithm to determine a target duty cycle coefficient includes:
[0064] Substitute the waiting-to-operate stroke ratio into the sinusoidal control algorithm to determine the target duty cycle coefficient. The sinusoidal control algorithm is as follows:
[0065]
[0066] Wherein, A represents the target duty cycle coefficient, and B represents the proportion of the stroke to be operated.
[0067] In this embodiment, a sine function is used to calculate the target duty cycle coefficient. The sine function is a continuous function, so compared with a discrete algorithm, the smoothness of the stepper motor control can be further improved.
[0068] In some possible implementations, the step of determining the proportion of the waiting-to-operate stroke of the stepping motor includes:
[0069] The pulse count recorded from the start of the stepper motor's rotation is determined, and the proportion of the stepper motor's stroke to be operated is determined based on the pulse count.
[0070] In this embodiment, based on the characteristics of the stepper motor, the rotation angle of the stepper motor shaft has a corresponding relationship with the pulse number, so the microcontroller can determine the total pulse number after determining the total stroke. For example, assuming that the stepper motor shaft requires 180 pulses to rotate one circle, the angle corresponding to one pulse is 360° / 180=2°.
[0071] After the microcontroller drives the stepper motor to start running, it can also record the pulse count of the pulse drive signal sent to the drive circuit. The pulse count is used to characterize the running angle of the rotating shaft of the stepper motor. Therefore, the proportion of the stroke to be run can be determined by the total number of pulses and the pulse count, that is, B = (total stroke - running stroke) / total stroke = (total number of pulses - pulse count) / total number of pulses.
[0072] Specific reference Figure 2 , Figure 2 The schematic diagram of the structure of an embodiment of a steering valve module of the present application is shown. The steering valve module comprises:
[0073] Controllers, steering valves and stepper motors;
[0074] The steering valve comprises a valve core and a valve sleeve;
[0075] The controller is used as above Figure 1 and the motor control method described in any possible implementation manner, to drive and control the stepper motor;
[0076] The stepper motor is in driving connection with the valve core. When the stepper motor is in operation, the valve core is driven to move in the steering valve to change the relative position of the valve core in the valve sleeve.
[0077] In this embodiment, the controller can be a microcontroller, the steering valve can include a valve sleeve and a valve core, the valve core has a connecting structure, and the stepper motor can be connected to the connecting structure through a transmission mechanism such as a coupling or gears, thereby driving the movement of the valve core in the valve sleeve.
[0078] The valve sleeve is provided with a plurality of openings and has a receiving cavity inside. The valve core can be linearly displaced or rotated in the receiving cavity and can have a plurality of relative positions. Different connection states can be achieved in different positions.
[0079] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0080] The steering valve module of the present application adopts the controller as above Figure 1 The motor control method described in any possible implementation mode drives and controls the stepper motor, and the stepper motor can drive the valve core to move in the valve sleeve. Therefore, accurate control of the movement of the valve core in the valve sleeve can be achieved.
[0081] In some possible implementations, the controller is further configured to perform the following steps:
[0082] Recording the initial position of the valve core relative to the valve sleeve;
[0083] Obtaining a control instruction to move the valve core to a target position;
[0084] If the target position is consistent with the initial position, the execution of the control instruction is stopped.
[0085] In this embodiment, since the valve core has multiple positions in the valve sleeve, if the valve sleeve is already in the target position and the controller still controls it to rotate to the target position, it may cause the stepper motor to stall, which may cause the device to be damaged by heat. Therefore, the controller can record the initial position of the valve core, that is, record the flag position of the valve core, and update the flag position after each movement of the valve core. In this way, when a new control instruction is received, it can be determined whether the target position pointed to by the control instruction is the initial position. If it is the initial position, the control instruction will not be responded to.
[0086] The embodiment of the present application further provides an IOS module, wherein the IOS module includes:
[0087] Respiratory parameter measurement components, tracheal components, oscillatory wave generators and Figure 2 The steering valve module;
[0088] The trachea assembly defines a breathing passage extending between a first port and a second port disposed on the trachea assembly;
[0089] The respiratory parameter measurement component is located at the first port, and the diverter valve is located at the second port.
[0090] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0091] The IOS module of the present application can achieve precise control of the movement of the valve core in the valve sleeve, and further achieve precise control of the gas circuit switching of the IOS module in the lung ventilation test mode and the IOS test mode, which helps to improve the operating stability of the equipment.
[0092] In some possible implementations, specific reference is made to Figure 3 , Figure 3 A schematic diagram of an embodiment of a steering valve structure of the present application is shown. The valve sleeve includes a first opening and a second opening, and the valve core includes a first channel and a second channel. As shown in state 1, when the valve core is in a first relative position, the first opening is connected to the second opening through the first channel. As shown in state 2, when the valve core is in a second relative position, the first opening is connected to the second opening through the second channel. The first channel and the second channel may have different interface configurations so as to achieve different functions when switching channels. In addition, the first opening is connected to the second port, the second opening is connected to the air, and an air resistance member is provided in the second channel.
[0093] In this embodiment, the air resistance member can adopt a mesh structure, which is used as an attenuation element for respiratory airflow when performing an IOS test. When switching to the first channel connection, a pulmonary ventilation function test can be performed, and when the second channel connection is used, an IOS test can be performed.
[0094] In addition, it should be noted that Figure 4 The cooperation between the valve sleeve and the valve core of the steering valve shown is only exemplary. Figure 4 In the embodiment, the valve core can be driven by a stepper motor to move up and down along the axis of the cavity of the valve sleeve, thereby realizing the switching of different channel connection modes. However, in some designs, the first channel and the second channel can also be designed as a channel structure that is perpendicular to each other and overlaps at the center, and the valve core can be driven by a stepper motor to rotate along the cavity of the valve sleeve, realizing the switching of different channel connection modes at different angles.
[0095] The embodiment of the present application further provides a diffusion test module, wherein the diffusion test module comprises:
[0096] Standard gas cylinders, breathing tubes, gas supply tubes, and Figure 2 The steering valve module of the illustrated embodiment;
[0097] In this embodiment, during the inhalation phase of the lung diffusion test, the steering valve can be controlled to connect the breathing circuit and the air supply circuit, and during the exhalation phase of the lung diffusion test, the steering valve can be controlled to connect the breathing circuit and the air.
[0098] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0099] The IOS module of the present application can achieve precise control of the movement of the valve core in the valve sleeve, and further achieve precise control of the air path switching of the pulmonary diffusion module during the inhalation phase and the exhalation phase, which helps to improve the operating stability of the equipment.
[0100] In some possible implementations, specific reference is made to Figure 4 , Figure 4 A schematic diagram of an embodiment of a steering valve structure of the present application is shown. The valve sleeve includes a first opening, a second opening and a third opening, and the valve core includes a conduction channel; when the valve core is in a first relative position, the first opening is connected to the second opening through the conduction channel; when the valve core is in a second relative position, the first opening is connected to the third opening through the conduction channel; wherein, one end of the breathing line is a user breathing port, and the other end is connected to the first opening; one end of the air supply line is connected to the calibration gas cylinder, and the other end is connected to the second opening; the third opening is connected to the air.
[0101] In this embodiment, a conducting channel is formed inside the valve core, one end of the conducting channel is connected to the first opening of the valve sleeve. The valve core can adopt a rotatable structure, and the other end can be selectively connected to the second opening or the third opening on the valve sleeve. The valve core is rotatably arranged in the valve sleeve. In the first angle state, the first opening and the second opening of the valve sleeve are connected through the internal conducting channel, as shown in state 1; in the second angle state, the first opening and the third opening of the valve sleeve are connected through the internal conducting channel, as shown in state 2.
[0102] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0103] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0105] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A motor control method, characterized in that: include: In the process of the stepper motor running from the initial position to the final position, determining the waiting-to-run stroke ratio of the stepper motor, the waiting-to-run stroke ratio being the ratio of the waiting-to-run stroke to the total stroke, the waiting-to-run stroke being the stroke required to run from the current position of the stepper motor to the final position, and the total stroke being the stroke required to run from the initial position to the final position; Determining a target duty cycle according to the proportion of the stroke to be operated; The rotation speed of the stepping motor is controlled according to the target duty cycle.
2. The motor control method according to claim 1, characterized in that: Substituting the proportion of the stroke to be operated into a preset duty cycle algorithm to determine a target duty cycle coefficient, wherein the target duty cycle coefficient is less than or equal to 1; The target duty cycle is determined according to the target duty cycle coefficient and the maximum duty cycle, wherein the maximum duty cycle is the duty cycle corresponding to the stepper motor at a set maximum speed.
3. The motor control method according to claim 2, characterized in that: The step of substituting the proportion of the stroke to be operated into a preset duty cycle algorithm to determine a target duty cycle coefficient comprises: Substitute the waiting-to-operate stroke ratio into the sinusoidal control algorithm to determine the target duty cycle coefficient. The sinusoidal control algorithm is as follows: Wherein, A represents the target duty cycle coefficient, and B represents the proportion of the stroke to be operated.
4. The motor control method according to any one of claims 1 to 3, characterized in that: The step of determining the proportion of the stepping motor's stroke to be operated comprises: The pulse count recorded from the start of the stepper motor's rotation is determined, and the proportion of the stepper motor's stroke to be operated is determined based on the pulse count.
5. A steering valve module, characterized in that: include: Controllers, steering valves and stepper motors; The steering valve comprises a valve core and a valve sleeve; The controller is used to execute the motor control method according to any one of claims 1 to 4 to drive and control the stepper motor; The stepper motor is in driving connection with the valve core. When the stepper motor is in operation, the valve core is driven to move in the steering valve to change the relative position of the valve core in the valve sleeve.
6. The steering valve module according to claim 5, characterized in that: The controller is also used to perform the following steps: Recording the initial position of the valve core relative to the valve sleeve; Obtaining a control instruction to move the valve core to a target position; If the target position is consistent with the initial position, the execution of the control instruction is stopped.
7. An IOS module, characterized in that: include: A respiratory parameter measurement component, a tracheal component, an oscillatory wave generator, and a steering valve module as claimed in claim 5; The trachea assembly defines a breathing passage extending between a first port and a second port disposed on the trachea assembly; The respiratory parameter measurement component is located at the first port, and the diverter valve is located at the second port.
8. The IOS module according to claim 7, characterized in that: The valve sleeve includes a first opening and a second opening, and the valve core includes a first channel and a second channel; when the valve core is in a first relative position, the first opening is connected to the second opening through the first channel; when the valve core is in a second relative position, the first opening is connected to the second opening through the second channel; wherein, the first opening is connected to the second port, the second opening is connected to the air, and an air resistance member is provided in the second channel.
9. A diffusion test module, characterized in that: include: A standard gas cylinder, a breathing pipeline, a gas supply pipeline and a steering valve module as claimed in claim 5.
10. The diffusion test module according to claim 9, characterized in that: The valve sleeve includes a first opening, a second opening and a third opening, and the valve core includes a conducting channel; when the valve core is in a first relative position, the first opening is communicated with the second opening through the conducting channel; when the valve core is in a second relative position, the first opening is communicated with the third opening through the conducting channel; Among them, one end of the breathing pipeline is the user's breathing port, and the other end is connected to the first opening; one end of the air supply pipeline is connected to the standard gas bottle, and the other end is connected to the second opening; the third opening is connected to the air.