Infusion system, infusion stage determination method and related device
Through the combination of peristaltic structure and photoelectric detection module, PWM signal and photoelectric signal counting are used to accurately divide the infusion stage, which solves the problem of inaccurate infusion stage judgment in the infusion system and realizes precise control of infusion speed.
Patent Information
- Application Number
- CN202410715446.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-06-04
AI Technical Summary
Existing infusion systems are unable to accurately determine the infusion stage, resulting in inaccurate control of the infusion rate, which may have adverse effects on patients.
Through the combination of peristaltic structure, stepper motor and photoelectric detection module, the infusion speed is controlled by PWM signal, and the infusion stage is accurately divided by combining photoelectric signal and step number counting.
It achieves precise control of the infusion stage, avoids poor infusion effects due to misjudgment, and ensures patient safety.
Smart Images

Figure CN118615516B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to an infusion system, an infusion stage determination method, and related devices. Background Art
[0002] At present, infusion systems (infusion pumps and / or syringe pumps) are usually used for infusion. When the infusion system is in use, the infusion speed needs to be precisely controlled at different infusion stages. If the infusion speed is too high, the patient will be infused with excessive pressure, which will have adverse therapeutic effects on the patient, such as bulging in the infusion puncture area, etc., which may endanger the patient's life in severe cases. The current judgment of the infusion stage is based on the doctor's experience. This judgment method is limited by the doctor's experience and only obtains an estimated infusion stage. It is impossible to accurately judge the infusion stage, which affects the infusion effect. Summary of the Invention
[0003] In view of this, the present invention provides an infusion system, an infusion stage determination method and related devices to obtain an accurate infusion stage, thereby achieving precise control of the infusion stage and avoiding affecting the infusion effect due to misjudgment of the infusion stage.
[0004] The specific technical solution of the first embodiment of the present invention is: an infusion system, the system comprising: a controller for sending a PWM signal; a stepper motor for rotating a preset angle according to the PWM signal to drive a peristaltic structure to peristalsize; a peristaltic structure, wherein the peristaltic structure peristalsizes a predetermined distance when the peristaltic structure peristalsizes one peristaltic cycle; a speed measuring device, the speed measuring device being mounted on the stepper motor, wherein the peristaltic structure peristalsizes one cycle when the speed measuring device rotates one circle; a first photoelectric detection module for monitoring the rotation of the speed measuring device to obtain a first photoelectric signal; the controller is further configured to:
[0005] The total infusion movement distance of the medicinal liquid is divided into multiple infusion stages according to the total infusion movement distance of the medicinal liquid and the preset distance; wherein the movement distance of the medicinal liquid in each infusion stage is the preset distance; the number of steps required for each infusion stage is obtained according to the total number of the infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; the number of PWM signals sent by the controller is counted to obtain the number of PWM signal counts; the infusion stage of the medicinal liquid is obtained according to the number of PWM signal counts, the first photoelectric signal and the number of steps required for each infusion stage.
[0006] Preferably, the method of obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal and the step number required for each infusion stage includes: presetting an initial stage number, wherein the initial value of the initial stage number is 0; when the PWM signal count number counted from the initial moment to the first moment reaches the step number required for each infusion stage, and the first photoelectric signal at the first moment is a high level, returning the PWM signal count number counted at the first moment to 0, and adding 1 to the value of the initial stage number to obtain the target stage number; the initial moment is the moment when the controller sends the first PWM signal; and the moment after the first moment is used as At the initial moment, the target stage number is used as the initial stage number, and when the number of PWM signal counts counted from the initial moment to the first moment reaches the step number required for each infusion stage and the first photoelectric signal at the first moment is high, the number of PWM signal counts counted at the first moment is reset to 0, and the value of the initial stage number is increased by 1 to obtain the target stage number; until the PWM signal count number at the last moment is obtained, the value of the target stage number at the last moment is obtained, and the value of the target stage number at the last moment is the infusion stage of the liquid medicine; the last moment is the moment when the controller sends the last PWM signal.
[0007] Preferably, when the value of the target number of stages is the total number of the infusion stages, the infusion system issues an alarm.
[0008] Preferably, the number of steps required for each infusion stage is obtained using the following formula:
[0009]
[0010] Among them, T step is the number of steps required for each infusion stage, the motor full step is the number of rotation steps required for the stepper motor to rotate one circle, and the subdivision coefficient is the number of pulses required for the stepper motor to rotate one step.
[0011] Preferably, the infusion system also includes a second photoelectric detection module, which is arranged on one side of the first photoelectric detection module. The second photoelectric detection module is used to monitor the rotation of the speed measuring device to obtain a second photoelectric signal. The controller is also configured to: determine the rotation direction of the speed measuring device based on the first photoelectric signal and the second photoelectric signal; obtain the moving direction of the peristaltic structure based on the rotation direction of the speed measuring device and a preset moving direction judgment rule; wherein the preset moving direction judgment rule includes the correspondence between different rotation directions of the speed measuring device and different moving directions of the peristaltic structure; and determine whether the moving direction of the peristaltic structure is the infusion direction.
[0012] Preferably, determining the rotation direction of the speed measuring device according to the first photoelectric signal and the second photoelectric signal includes determining the rotation direction of the speed measuring device according to a first phase of the first photoelectric signal and a second phase of the second photoelectric signal.
[0013] Preferably, the method of determining the rotation direction of the speed measuring device based on the first phase of the first photoelectric signal and the second phase of the second photoelectric signal includes: if the first phase is earlier than the second phase, the rotation direction of the speed measuring device is from the first photoelectric detection module to the second photoelectric detection module; if the second phase is earlier than the first phase, the rotation direction of the speed measuring device is from the second photoelectric detection module to the first photoelectric detection module.
[0014] The specific technical solution of the second embodiment of the present invention is: a method for determining the infusion stage of an infusion system, applied to the infusion system, the method comprising: dividing the total infusion movement distance of the drug solution into multiple infusion stages according to the total infusion movement distance of the drug solution and the preset distance; wherein the movement distance of the drug solution in each infusion stage is the preset distance; obtaining the number of steps required for each infusion stage according to the total number of the infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the step number is the number of PWM signals required for each infusion stage; counting the number of PWM signals sent by the controller to obtain the number of PWM signal counts; obtaining the infusion stage of the drug solution according to the number of PWM signal counts, the first photoelectric signal and the number of steps required for each infusion stage.
[0015] The specific technical solution of the third embodiment of the present invention is: an infusion stage determination device for an infusion system, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method described in the second embodiment of the present application.
[0016] The specific technical solution of the fourth embodiment of the present invention is: a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of the method described in the second embodiment of the present application.
[0017] The implementation of the present invention will have the following beneficial effects:
[0018] In the present invention, the total infusion movement distance of the medicine liquid is divided into multiple infusion stages according to the total infusion movement distance of the medicine liquid and the preset distance that the peristaltic structure squeezes the medicine liquid in each peristaltic cycle; the number of steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; by detecting and counting the PWM signals when the speed measuring device rotates, the number of PWM signals issued at the current moment, that is, the number of PWM signal counts, is determined; the infusion stage of the medicine liquid is determined according to the number of PWM signal counts, the first photoelectric signal and the number of steps required for each infusion stage, thereby improving the accuracy of determining the infusion stage, thereby achieving precise control of the infusion stage, and avoiding affecting the infusion effect due to misjudgment of the infusion stage. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0020] Figure 1 Schematic diagram of the infusion system structure;
[0021] Figure 2 A flowchart of the steps for obtaining an infusion phase determination method for an infusion system;
[0022] Figure 3 A flow chart of the steps in the infusion phase of obtaining a drug solution;
[0023] Figure 4 is a waveform diagram of the first photoelectric signal;
[0024] Figure 5 Schematic diagram of the location of the photoelectric detection module;
[0025] Figure 6 A flow chart of the steps for obtaining the moving direction of a creeping structure;
[0026] Figure 7a This is a waveform diagram of the forward rotation of the speed measuring device;
[0027] Figure 7b It is a schematic diagram of the waveform of the speed measuring device reversal;
[0028] Figure 8 A schematic diagram of the structure of a device for determining the infusion phase of an infusion system;
[0029] Among them, 105, speed measuring device; 106, peristaltic structure; 107, stepping motor; 108, first photoelectric detection module; 109, second photoelectric detection module; 401, infusion stage division module; 402, step number determination module; 403, counting module; 404, infusion stage determination module. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.
[0031] See also Figure 1-2 , is a schematic structural diagram of an infusion system and a flowchart of the steps of obtaining an infusion phase in the first embodiment of the present application, wherein the infusion system includes a controller for sending a PWM signal; a stepper motor 107 for rotating a preset angle according to the PWM signal to drive the peristaltic structure to peristalsize; a peristaltic structure 106, wherein each peristaltic cycle of the peristaltic structure 106 squeezes the liquid medicine a preset distance; a speed measuring device 105, wherein the speed measuring device 105 is mounted on the stepper motor 107, and each rotation of the speed measuring device 105 is followed by each peristaltic cycle of the peristaltic structure 106; a first photoelectric detection module 108 for monitoring the rotation of the speed measuring device 105 to obtain a first photoelectric signal; and the controller is further configured to:
[0032] Step 101: Divide the total infusion movement distance of the drug solution into multiple infusion stages according to the total infusion movement distance of the drug solution and the preset distance; wherein the movement distance of the drug solution in each infusion stage is the preset distance;
[0033] Step 102: Obtain the number of steps required for each infusion stage according to the total number of infusion stages and the transmission ratio between the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage;
[0034] Step 103: Count the number of PWM signals sent by the controller to obtain a PWM signal count number;
[0035] Step 104 : Obtain the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage.
[0036] Specifically, when the total infusion movement distance of the medicine is 10 cm, and the peristaltic structure squeezes the medicine a preset distance of 0.1 cm when peristaltic structure peristalsizes one peristaltic cycle, the total infusion movement distance of the medicine is divided into 100 infusion stages, and the movement distance of each infusion stage is 0.1 cm; the number of progressive steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepper motor and the peristaltic structure, wherein the transmission ratio of the stepper motor and the peristaltic structure can be set according to actual conditions; the number of PWM signals sent by the controller is counted by the counter in the controller to obtain the PWM signal count number, and the infusion stage of the current medicine is obtained according to the PWM signal count number, the first photoelectric signal and the number of steps required for each infusion stage. For example, if the current infusion stage of the medicine is the 10th stage, the peristaltic structure squeezes the medicine 1 cm at this time.
[0037] By using this embodiment, the total infusion movement distance of the medicine can be divided into multiple infusion stages according to the total infusion movement distance of the medicine and the preset distance that the peristaltic structure squeezes the medicine in each peristaltic cycle; the number of steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; by detecting and counting the PWM signals when the speed measuring device rotates, the number of PWM signals issued at the current moment, that is, the number of PWM signal counts, is determined; the infusion stage of the medicine is determined according to the number of PWM signal counts, the first photoelectric signal and the number of steps required for each infusion stage, thereby improving the accuracy of determining the infusion stage, thereby achieving precise control of the infusion stage, and avoiding the infusion effect affected by misjudgment of the infusion stage.
[0038] In the specific embodiment, see Figure 3 In step 104, the infusion stage of the liquid medicine is obtained according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage, including:
[0039] Step 201: preset an initial stage number, wherein the initial value of the initial stage number is 0;
[0040] Step 202: When the number of PWM signal counts counted from the initial moment to the first moment reaches the step number required for each infusion stage, and the first photoelectric signal at the first moment is at a high level, the number of PWM signal counts counted at the first moment is reset to 0, and the value of the initial stage number is incremented by 1 to obtain a target stage number; the initial moment is the moment when the controller sends the first PWM signal;
[0041] Step 203: using the next moment after the first moment as the initial moment, using the target number of stages as the initial number of stages, returning to the step of obtaining the target number of stages by returning the number of PWM signal counts counted at the first moment to 0 and adding 1 to the value of the initial number of stages when the number of PWM signal counts counted from the initial moment to the first moment reaches the number of steps required for each infusion stage and the first photoelectric signal at the first moment is at a high level;
[0042] Step 204, until the PWM signal count at the last moment is obtained, the value of the target stage number at the last moment is obtained, and the value of the target stage number at the last moment is the infusion stage of the liquid medicine; the last moment is the moment when the controller sends the last PWM signal.
[0043] Specifically, before determining the infusion stage, the stage number is reset to zero to obtain the initial stage number. Figure 4 As shown in the waveform diagram of the first photoelectric signal, when the PWM signal count number at time a reaches the step number required for each infusion stage for the first time, the first photoelectric signal corresponding to time a is at a low level, then it is determined whether the first photoelectric signal at the next moment, i.e., time b, is at a high level. When the first photoelectric signal at time b is at a high level, time b is the first moment, the PWM signal count number counted at time b is reset to 0, and the value of the initial stage number is increased by 1 to obtain the target stage number, which is now 1. The PWM signal count number at the next moment is continuously obtained. Whenever the PWM signal count number reaches the step number required for each infusion stage and the first photoelectric signal corresponding to the moment is at a high level, the target stage number is increased by 1, and the PWM signal count number is cleared and recounted until the PWM signal count number at the last moment is obtained. If the value of the target stage number at the last moment is 10, the infusion stage of the liquid corresponding to the last moment is the 10th stage. The rotation position of the speed measuring device is judged according to the high level and low level in the first photoelectric signal. Specifically, when it is a high level, the interval of the speed measuring device rotates to the first photoelectric detection module, and when it is a low level, the fan blades of the speed measuring device rotate to the first photoelectric detection module. When the interval of the speed measuring device is located at the first photoelectric detection module at the initial moment, only when the first photoelectric signal is a high level, the peristaltic structure will enter a new peristaltic cycle, and the target stage number will be increased by 1, thereby accurately obtaining the infusion stage of the liquid medicine.
[0044] In a specific embodiment, when the target number of stages equals the total number of infusion stages, the infusion system generates an alarm. Specifically, when the target number of stages equals the total number of infusion stages, the infusion distance of the medication has reached the total infusion distance, and the controller transmits an alarm signal to a preset alarm device to prompt the physician to perform other operations, such as changing the medication, to ensure patient safety.
[0045] In a specific embodiment, the number of steps required for each infusion stage is obtained using the following formula:
[0046]
[0047] Among them, T step is the number of steps required for each infusion stage, the motor full step is the number of steps required for the stepper motor to rotate one circle, and the subdivision coefficient is the number of pulses required for the stepper motor to rotate one step. Specifically, if the angle of rotation of the stepper motor is 1.8°, the motor full step is 200, and the subdivision coefficient is a parameter set by the controller according to the actual situation, and its value is usually set to 256. The transmission ratio of the stepper motor to the peristaltic structure is set to 2 according to the actual situation. When the total number of infusion stages is 100, the number of steps required for each infusion stage is obtained. step is 1024.
[0048] In a specific embodiment, the infusion system further includes a second photoelectric detection module 109. For a schematic diagram of the positions of the first photoelectric detection module and the second photoelectric detection module, please refer to Figure 5 The second photoelectric detection module is arranged on one side of the first photoelectric detection module. The second photoelectric detection module is used to monitor the rotation of the speed measuring device to obtain a second photoelectric signal. Figure 6 , the controller is further configured to:
[0049] Step 301: Determine the rotation direction of the speed measuring device according to the first photoelectric signal and the second photoelectric signal;
[0050] Step 302: Obtain the moving direction of the peristaltic structure according to the rotation direction of the speed measuring device and a preset moving direction determination rule; wherein the preset moving direction determination rule includes a correspondence between different rotation directions of the speed measuring device and different moving directions of the peristaltic structure;
[0051] Step 303: Determine whether the moving direction of the peristaltic structure is the infusion direction.
[0052] Specifically, the first and second photoelectric signals obtained by the speed measuring device in different rotational directions are different. Therefore, when determining the movement direction of the peristaltic mechanism, the rotational direction of the speed measuring device can be determined based on the first and second photoelectric signals, and the movement direction of the peristaltic structure can be determined based on preset movement direction determination rules. When the peristaltic structure is moving in the direction of infusion, the infusion system is used to infuse the patient. When the peristaltic structure is not moving in the direction of infusion, the infusion system can be used for different scenarios, such as drawing blood or aspirating liquid medicine into the infusion system.
[0053] Specifically, determining the rotational direction of the speed measuring device based on the first photoelectric signal and the second photoelectric signal in step 301 includes determining the rotational direction of the speed measuring device based on the first phase of the first photoelectric signal and the second phase of the second photoelectric signal. Specifically, due to the different positions of the first photoelectric detection module and the second photoelectric detection module, the time at which the blades of the speed measuring device pass through the first photoelectric module and the second photoelectric module is also different, and therefore the phases of the first photoelectric signal and the second photoelectric signal are also different. The rotational direction of the speed measuring device is determined based on the first phase of the first photoelectric signal and the second phase of the second photoelectric signal. Compared to manually determining the rotational direction of the speed measuring device by reducing the rotational speed of the speed measuring device, determining the rotational direction of the speed measuring device based on the photoelectric signal does not require reducing the rotational speed of the speed measuring device, thereby reducing the impact on the infusion system.
[0054] In a specific embodiment, the rotation direction of the speed measuring device is determined based on the first phase of the first photoelectric signal and the second phase of the second photoelectric signal, including: if the first phase is earlier than the second phase, the rotation direction of the speed measuring device is from the first photoelectric detection module to the second photoelectric detection module; if the second phase is earlier than the first phase, the rotation direction of the speed measuring device is from the second photoelectric detection module to the first photoelectric detection module. For details, please refer to Figure 7a and Figure 7b , Figure 7a is the waveform diagram of the speed measuring device in forward rotation (e.g., from the first photoelectric detection module to the second photoelectric detection module). Figure 7b This is a waveform diagram of the speed measuring device being reversed (e.g., from the second photoelectric detection module to the first photoelectric detection module). Figure 7a and Figure 7b It can be seen that the phases of the first photoelectric signal and the second photoelectric signal obtained in different rotation directions of the speed measuring device are different. Specifically, when the speed measuring device rotates forward, the first phase is earlier than the second phase; when the speed measuring device rotates reversely, the second phase is earlier than the first phase. Therefore, the rotation direction of the speed measuring device can be determined based on the first phase of the first photoelectric signal and the second phase of the second photoelectric signal.
[0055] In the specific embodiment, see Figure 8The present application also provides an infusion stage determination device system for an infusion system, which includes: an infusion stage division module 401, a step number determination module 402, a counting module 403 and an infusion stage determination module 404; the infusion stage division module 401 is used to divide the total infusion movement distance of the drug solution into multiple infusion stages according to the total infusion movement distance of the drug solution and a preset distance; wherein the movement distance of the drug solution in each infusion stage is the preset distance; the step number determination module 402 is used to obtain the step number required for each infusion stage according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the step number is the number of PWM signals required for each infusion stage; the counting module 403 is used to count the number of PWM signals sent by the controller to obtain the PWM signal count number; the infusion stage determination module 404 is used to obtain the infusion stage of the drug solution according to the PWM signal count number, the first photoelectric signal and the step number required for each infusion stage. By using the device in this embodiment, the infusion stage of the drug solution can be determined based on the number of PWM signal counts, the first photoelectric signal and the number of steps required for each infusion stage, thereby improving the accuracy of determining the infusion stage, thereby achieving precise control of the infusion stage and avoiding the infusion effect affected by misjudgment of the infusion stage.
[0056] In a specific embodiment, the present application also provides an infusion system infusion stage determination device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of an infusion system infusion stage determination method as described in the present application.
[0057] In a specific embodiment, the present application also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor performs the steps of a method for determining the infusion stage of an infusion system in the present application.
[0058] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0059] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0060] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be determined by the appended claims.
Claims
1. An infusion system, characterized in that: The system comprises: A controller for sending PWM signals; A stepper motor, configured to rotate a preset angle according to the PWM signal to drive the peristaltic structure to peristalsis; A peristaltic structure, wherein the peristaltic structure squeezes the liquid medicine by a preset distance when the peristaltic structure peristsales for one peristaltic cycle; A speed measuring device, wherein the speed measuring device is mounted on a stepping motor, and when the speed measuring device rotates one circle, the peristaltic structure peristsals one cycle; a first photoelectric detection module, configured to monitor the rotation of the speed measuring device and obtain a first photoelectric signal; The controller is further configured to: According to the total infusion movement distance of the drug solution and the preset distance, the total infusion movement distance of the drug solution is divided into multiple infusion stages; wherein the movement distance of the drug solution in each infusion stage is the preset distance; The number of steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; Counting the number of PWM signals sent by the controller to obtain a PWM signal count number; Obtaining an infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage; Obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage includes: Preset the initial stage number, the initial value of the initial stage number is 0; When the number of PWM signal counts counted from the initial moment to the first moment reaches the step number required for each infusion stage, and the first photoelectric signal at the first moment is at a high level, the number of PWM signal counts counted at the first moment is reset to 0, and the value of the initial stage number is increased by 1 to obtain the target stage number; the initial moment is the moment when the controller sends the first PWM signal; Taking the moment next to the first moment as the initial moment, taking the target number of stages as the initial number of stages, returning to the step of obtaining the target number of stages by returning the number of PWM signal counts counted at the first moment to 0 and adding 1 to the value of the initial number of stages when the number of PWM signal counts counted from the initial moment to the first moment reaches the number of steps required for each infusion stage and the first photoelectric signal at the first moment is at a high level; Until the PWM signal count number at the last moment is obtained, the value of the target stage number at the last moment is obtained, and the value of the target stage number at the last moment is the infusion stage of the liquid medicine; the last moment is the moment when the controller sends the last PWM signal.
2. The infusion system according to claim 1, wherein When the value of the target number of stages is equal to the total number of the infusion stages, the infusion system issues an alarm.
3. The infusion system according to claim 1, wherein The number of steps required for each infusion stage is obtained using the following formula: in, is the number of steps required for each infusion stage, the motor full step is the number of rotation steps required for the stepper motor to rotate one circle, and the subdivision coefficient is the number of pulses required for the stepper motor to rotate one step.
4. The infusion system of claim 1, further comprising a second photoelectric detection module, the second photoelectric detection module being disposed on one side of the first photoelectric detection module, the second photoelectric detection module being configured to monitor the rotation of the speed measuring device to obtain a second photoelectric signal, wherein: The controller is further configured to: determining a rotation direction of the speed measuring device according to the first photoelectric signal and the second photoelectric signal; Obtaining the moving direction of the peristaltic structure according to the rotation direction of the speed measuring device and a preset moving direction determination rule; wherein the preset moving direction determination rule includes a correspondence between different rotation directions of the speed measuring device and different moving directions of the peristaltic structure; Determine whether the moving direction of the peristaltic structure is the infusion direction.
5. The infusion system according to claim 4, wherein The determining the rotation direction of the speed measuring device according to the first photoelectric signal and the second photoelectric signal includes: The rotation direction of the speed measuring device is determined according to a first phase of the first photoelectric signal and a second phase of the second photoelectric signal.
6. The infusion system according to claim 5, wherein The determining the rotation direction of the speed measuring device according to the first phase of the first photoelectric signal and the second phase of the second photoelectric signal includes: If the first phase is earlier than the second phase, the rotation direction of the speed measuring device is from the first photoelectric detection module to the second photoelectric detection module; If the second phase is earlier than the first phase, the rotation direction of the speed measuring device is from the second photoelectric detection module to the first photoelectric detection module.
7. A device for determining an infusion phase of an infusion system, comprising a memory and a processor, characterized in that: The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the following method: According to the total infusion movement distance of the drug solution and the preset distance, the total infusion movement distance of the drug solution is divided into multiple infusion stages; wherein the movement distance of the drug solution in each infusion stage is the preset distance; The number of steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; Counting the number of sent PWM signals to obtain the PWM signal count number; Obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage; Obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage includes: Preset the initial stage number, the initial value of the initial stage number is 0; When the number of PWM signal counts counted from the initial moment to the first moment reaches the step number required for each infusion stage, and the first photoelectric signal at the first moment is at a high level, the number of PWM signal counts counted at the first moment is reset to 0, and the value of the initial stage number is increased by 1 to obtain the target stage number; the initial moment is the moment when the first PWM signal is issued; Taking the moment next to the first moment as the initial moment, taking the target number of stages as the initial number of stages, returning to the step of obtaining the target number of stages by returning the number of PWM signal counts counted at the first moment to 0 and adding 1 to the value of the initial number of stages when the number of PWM signal counts counted from the initial moment to the first moment reaches the number of steps required for each infusion stage and the first photoelectric signal at the first moment is at a high level; Until the PWM signal count number at the last moment is obtained, the value of the target stage number at the last moment is obtained, and the value of the target stage number at the last moment is the infusion stage of the drug solution; the last moment is the moment when the last PWM signal is issued.
8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor performs the steps of the following method: According to the total infusion movement distance of the drug solution and the preset distance, the total infusion movement distance of the drug solution is divided into multiple infusion stages; wherein the movement distance of the drug solution in each infusion stage is the preset distance; The number of steps required for each infusion stage is obtained according to the total number of infusion stages and the transmission ratio of the stepping motor and the peristaltic structure; the number of steps is the number of PWM signals required for each infusion stage; Counting the number of sent PWM signals to obtain the PWM signal count number; Obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage; Obtaining the infusion stage of the liquid medicine according to the PWM signal count number, the first photoelectric signal, and the number of steps required for each infusion stage includes: Preset the initial stage number, the initial value of the initial stage number is 0; When the number of PWM signal counts counted from the initial moment to the first moment reaches the step number required for each infusion stage, and the first photoelectric signal at the first moment is at a high level, the number of PWM signal counts counted at the first moment is reset to 0, and the value of the initial stage number is increased by 1 to obtain the target stage number; the initial moment is the moment when the first PWM signal is issued; Taking the moment next to the first moment as the initial moment, taking the target number of stages as the initial number of stages, returning to the step of obtaining the target number of stages by returning the number of PWM signal counts counted at the first moment to 0 and adding 1 to the value of the initial number of stages when the number of PWM signal counts counted from the initial moment to the first moment reaches the number of steps required for each infusion stage and the first photoelectric signal at the first moment is at a high level; Until the PWM signal count number at the last moment is obtained, the value of the target stage number at the last moment is obtained, and the value of the target stage number at the last moment is the infusion stage of the drug solution; the last moment is the moment when the last PWM signal is issued.
Citation Information
Patent Citations
Infusion control method and device with stepping motor
CN109981008A
Liquid infusion control method and device for portable first-aid equipment
CN116459417A