Infusion system, monitoring method of infusion system and storage medium

By combining the encoder, peristaltic structure and photoelectric detection module in the infusion system, and using the phase difference of the photoelectric signal to determine the direction and speed of rotation, the problems of complexity and high cost of the existing system are solved, and simplified infusion monitoring is achieved.

CN118615515AActive Publication Date: 2024-09-10SHENZHEN COMEN MEDICAL INSTR
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410715368.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-10
Estimated Expiration
2044-06-04

AI Technical Summary

Technical Problem

The existing infusion system requires two sets of measurement systems to monitor the infusion speed and the rotation direction of the encoder, which increases the cost and complicates the structural design.

Method used

An infusion system including an encoder, peristaltic structure, stepper motor, MCU module and photoelectric detection module is designed. The rotation direction and speed of the encoder are judged through the phase difference of the photoelectric signal, and the MCU module is used to calculate the infusion speed, which simplifies Monitoring system.

Benefits of technology

A single system is implemented to monitor the encoder rotation direction and infusion speed, reducing costs and simplifying structural design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118615515A
    Figure CN118615515A
Patent Text Reader

Abstract

The embodiment of the invention discloses an infusion system, a monitoring method of the infusion system and a storage medium, the structure of an encoder is improved, the rotation direction of the encoder is obtained according to a phase difference, and the rotation speed of the encoder is obtained according to the rotation direction of the encoder, a first level value, a second level value and a preset time interval; the infusion speed of the infusion system is obtained according to the rotation speed of the encoder and the preset speed conversion relation, so that one monitoring system can judge the rotation direction of the encoder and can monitor the infusion speed of the infusion system. Compared with the prior art that the rotation direction of the encoder and the infusion speed of the infusion system can be monitored only by using two measuring systems, the cost of the infusion system can be reduced, and the structural design of the infusion system can be simplified.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical equipment, and in particular to an infusion system, a monitoring method of the infusion system, and a storage medium. Background Art

[0002] At present, an infusion system (infusion pump and / or syringe pump) is usually used for infusion. When the infusion system is in use, it is necessary to accurately control the infusion speed at different infusion stages, and it is also necessary to control the rotation direction of the encoder at different infusion stages, so as to control the liquid inlet direction of the infusion pump. The current infusion system requires a set of measurement systems to monitor the infusion speed, and another set of measurement systems to detect the rotation direction of the encoder. The use of two measurement systems will increase the cost of the infusion system and complicate the structural design of the infusion system. Summary of the invention

[0003] Based on this, it is necessary to propose an infusion system, a monitoring method for the infusion system and a storage medium to address the above problems.

[0004] The specific technical scheme of the first embodiment of the present invention is: an infusion system, the infusion system includes an encoder, a peristaltic structure, a stepper motor, an MCU module, a first photoelectric detection module and a second photoelectric detection module; the MCU is used to send a PWM signal, and the stepper motor is used to rotate a preset angle according to the PWM signal to drive the peristaltic structure to peristalsis; when the peristaltic structure peristsalizes for one peristaltic cycle, the peristaltic structure squeezes the liquid medicine for a preset distance; the encoder is installed on the peristaltic structure, and the peristaltic structure is used to drive the encoder to rotate, and when the peristaltic structure peristsalizes for one cycle, the encoder rotates one circle; the first photoelectric detection module is used to monitor the rotation of the first preset position of the encoder to obtain a first photoelectric signal, and the second photoelectric detection module is used to monitor the rotation of the second preset position of the encoder The rotation of the position is monitored to obtain a second photoelectric signal, the encoder is provided with at least 3 blades, wherein the distance between adjacent first target blades and second target blades is a first distance, and the distances between remaining adjacent blades are all second distances; the first distance is greater than the second distance; the MCU module is used to obtain the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal, obtain the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval, and obtain the infusion speed of the infusion system according to a preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes the relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

[0005] The specific technical solution of the second embodiment of the present invention is: a monitoring method for an infusion system, applied to the infusion system as in the first embodiment of the present application, the method comprising: obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal; obtaining the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval; obtaining the infusion speed of the infusion system according to a preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes the relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

[0006] Preferably, the method of obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal includes: presetting a first initial count value; the initial value of the first initial count value is 0; obtaining the first final count value of the first photoelectric signal between the initial moment and the last moment by using a preset first counting rule, the first initial count value, the first level value of the first photoelectric signal and the second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the last moment is the moment when the MCU module sends the last PWM signal; judging the rotation direction of the encoder according to a preset first counting judgment rule and the first final count value; the preset first counting judgment rule is that when the first final count value is positive, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; when the first final count value is negative, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module; the preset first counting rule is: when the same When the level in the second photoelectric signal corresponding to the falling edge in the first photoelectric signal at a moment is a high level, the first initial count value is added by 1 to obtain the first count value, and the first count value is accumulated as the first initial count value at the next moment; when the level in the second photoelectric signal corresponding to the falling edge in the first photoelectric signal at the same moment is a low level, the first initial count value is subtracted by 1 to obtain the second count value, and the second count value is accumulated as the first initial count value at the next moment; if the first target initial count value at the previous moment of the first count value at the first moment is a subtracted by 1 operation, the first target initial count value is cleared, and the first target initial count value after clearing is used as the first initial count value to perform an add operation to obtain the first count value; if the second target initial count value at the previous moment of the second count value at the second moment is a plus 1 operation, the second target initial count value is cleared, and the second target initial count value after clearing is used as the first initial count value to perform a subtracted by 1 operation to obtain the second count value; the first initial count value at the last moment of the first photoelectric signal is the first final count value.

[0007] Preferably, the rotation speed of the encoder is obtained according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval, including: when the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module, the first final count value and the preset first time interval are used to obtain the first rotation speed of the encoder.

[0008] Preferably, the method of obtaining the first rotation speed of the encoder by utilizing the first final count value and a preset first time interval includes: obtaining a third count value at a third moment; the third moment is a moment at a preset first time interval before the final moment; obtaining a first difference between the first final count value and the third count value; and obtaining the first rotation speed of the encoder per unit time based on the first difference and the preset first time interval.

[0009] Preferably, the method of obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal includes: presetting a second initial count value; the initial value of the second initial count value is 0; obtaining the second final count value of the second photoelectric signal between the initial moment and the last moment by using a preset second counting rule, the second initial count value, the first level value of the first photoelectric signal and the second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the last moment is the moment when the MCU module sends the last PWM signal; judging the rotation direction of the encoder according to a preset second counting judgment rule and the second final count value; the preset second counting judgment rule is that when the second final count value is positive, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module; when the second final count value is negative, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; the preset second counting rule is: when the same When the level in the first photoelectric signal corresponding to the falling edge in the second photoelectric signal at the moment is a high level, the second initial count value is added by 1 to obtain a fourth count value, and the fourth count value is accumulated as the second initial count value at the next moment; when the level in the first photoelectric signal corresponding to the falling edge in the second photoelectric signal at the same moment is a low level, the second initial count value is subtracted by 1 to obtain a fifth count value, and the fifth count value is accumulated as the second initial count value at the next moment; if the third target initial count value at the previous moment of the fourth count value at the fourth moment is a subtracted by 1 operation, the third target initial count value is cleared, and the cleared third target initial count value is used as the second initial count value to perform an add operation to obtain the fourth count value; if the fourth target initial count value at the previous moment of the fifth count value at the fifth moment is a plus 1 operation, the fourth target initial count value is cleared, and the cleared fourth target initial count value is used as the second initial count value to perform a subtract operation to obtain the fifth count value; the second initial count value at the last moment of the second photoelectric signal is the second final count value.

[0010] Preferably, the rotation speed of the encoder is obtained according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval, including: when the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module, the second rotation speed of the encoder is obtained using the second final count value and a preset second time interval.

[0011] Preferably, the method of obtaining the second rotation speed of the encoder by utilizing the second final count value and the preset second time interval includes: obtaining the sixth count value at the sixth moment; the sixth moment is the moment of the preset second time interval before the final moment; obtaining the second difference between the second final count value and the sixth count value; and obtaining the second rotation speed of the encoder per unit time based on the second difference and the preset second time interval.

[0012] Preferably, obtaining the second rotational speed of the encoder per unit time according to the second difference and the preset second time interval includes: obtaining the second rotational speed of the encoder per unit time by dividing the second difference by the preset second time interval.

[0013] The specific technical solution of the third 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 any one of the second embodiments of the present application.

[0014] The embodiments of the present invention have the following beneficial effects:

[0015] The embodiment of the present invention improves the structure of the encoder, sets the distance of the blades in the encoder to two different spacings to obtain the first photoelectric signal and the second photoelectric signal, obtains the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal, obtains the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and the preset time interval, and obtains the infusion speed of the infusion system according to the rotation speed of the encoder and the preset speed conversion relationship, so that a monitoring system can both determine the rotation direction of the encoder and monitor the infusion speed of the infusion system. Compared with the existing use of two measurement systems to complete the monitoring of the rotation direction of the encoder and the infusion speed of the infusion system, the present application can reduce the cost of the infusion system and simplify the structural design of the infusion system. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. 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 paying creative work.

[0017] Figure 1 It is a structural diagram of the infusion system;

[0018] Figure 2 A schematic diagram of the positions of the first photoelectric detection module and the second photoelectric detection module;

[0019] Figure 3 Schematic diagram of the encoder blade shape;

[0020] Figure 4 A flowchart of the steps of a monitoring method for an infusion system;

[0021] Figure 5 A flow chart of steps for obtaining the rotation direction of the encoder;

[0022] Figure 6a This is a schematic diagram of the first photoelectric signal in this embodiment;

[0023] Figure 6b This is a schematic diagram of the second photoelectric signal in this embodiment;

[0024] Figure 7 A flow chart of steps for obtaining a first rotation speed of an encoder;

[0025] Among them, 101 is an encoder; 102 is a peristaltic structure; 103 is a stepping motor; 104 is a photoelectric detection module; 201 is a first photoelectric detection module; 202 is a second photoelectric detection module. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] See also Figure 1, is a structural diagram of an infusion system in the first embodiment of the present application, the infusion system includes an encoder 101, a peristaltic structure 102, a stepper motor 103, an MCU module, a first photoelectric detection module and a second photoelectric detection module, wherein the first photoelectric detection module and the second photoelectric detection module constitute a photoelectric detection module 104; the MCU is used to send a PWM signal, and the stepper motor is used to rotate a preset angle according to the PWM signal to drive the peristaltic structure to peristalsize; when the peristaltic structure peristsalizes for one peristaltic cycle, the peristaltic structure squeezes the liquid medicine for a preset distance; the encoder is installed on the peristaltic structure, and the peristaltic structure is used to drive the encoder to rotate, and when the peristaltic structure peristsalizes for one cycle, the encoder rotates one circle; the first photoelectric detection module is used to monitor the rotation of the first preset position of the encoder to obtain a first photoelectric signal, and the second photoelectric detection module is used to The rotation of the second preset position of the encoder is monitored to obtain a second photoelectric signal. The encoder is provided with at least three blades, wherein the distance between adjacent first target blades and second target blades is the first distance, and the distances between the remaining adjacent blades are the second distances; the first distance is greater than the second distance, so that there are different pulse widths in the first level value and the second level value; the MCU module is used to obtain the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal, obtain the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and the preset time interval, and obtain the infusion speed of the infusion system according to the preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes the relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

[0028] For details, please refer to Figure 2 , is a schematic diagram of the positions of the first photoelectric detection module 201 and the second photoelectric detection module 202, and Figure 3 Schematic diagram of the shape of the encoder blade. The positions of the first photoelectric detection module and the second photoelectric detection module are different, so when the first photoelectric detection module and the second photoelectric detection module detect the rotation of the encoder, two pulse widths with different widths will be obtained, and the first photoelectric signal and the second photoelectric signal form a phase difference. The phase difference between the first photoelectric signal and the second photoelectric signal can be used to determine the rotation direction of the infusion speed encoder of the infusion system.

[0029] In the specific embodiments, see Figure 4 , a flowchart of a method for monitoring an infusion system according to a second embodiment of the present application is provided, which is applied to the infusion system as described in the first embodiment of the present application, and the method comprises:

[0030] Step 301, obtaining a rotation direction of the encoder according to a phase difference between a first level value of the first photoelectric signal and a second level value of the second photoelectric signal;

[0031] Step 302: Obtain the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval;

[0032] Step 303: Acquire the infusion speed of the infusion system according to a preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes a relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

[0033] Specifically, the preset time interval can be set according to actual conditions, such as 1 minute or 5 minutes; since the encoder has two intervals of different widths, the first photoelectric signal and the second photoelectric signal have two pulse widths of different widths, and the positions of the first photoelectric detection module and the second photoelectric detection module are different, so the first photoelectric signal and the second photoelectric signal have a phase difference, and the rotation speed of the encoder can be obtained according to the phase difference and the preset time interval; at the same time, the infusion speed of the infusion system can be obtained according to the preset speed conversion relationship and the rotation speed of the encoder, such as the preset speed conversion relationship is: encoder rotation speed: infusion speed of the infusion system = 2:1, the infusion speed of the infusion system can be obtained according to the rotation speed of the encoder.

[0034] In the specific embodiments, see Figure 5 , in step 301, obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal includes:

[0035] Step 401, preset a first initial count value; the initial value of the first initial count value is 0;

[0036] Step 402: Obtain a first final count value of the first photoelectric signal between an initial moment and a final moment by using a preset first counting rule, the first initial count value, a first level value of the first photoelectric signal, and a second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the final moment is the moment when the MCU module sends the last PWM signal;

[0037] Step 403: judging the rotation direction of the encoder according to a preset first counting judgment rule and the first final counting value; the preset first counting judgment rule is that when the first final counting value is positive, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; when the first final counting value is negative, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module;

[0038] The preset first counting rule is:

[0039] When the level in the second photoelectric signal corresponding to the falling edge in the first photoelectric signal at the same moment is a high level, the first initial count value is added by 1 to obtain the first count value, and the first count value is accumulated as the first initial count value at the next moment; when the level in the second photoelectric signal corresponding to the falling edge in the first photoelectric signal at the same moment is a low level, the first initial count value is subtracted by 1 to obtain the second count value, and the second count value is accumulated as the first initial count value at the next moment; if the first target initial count value at the previous moment of the first count value at the first moment is a subtracted by 1 operation, the first target initial count value is cleared, and the first target initial count value after clearing is used as the first initial count value to perform an add operation to obtain the first count value; if the second target initial count value at the previous moment of the second count value at the second moment is a plus 1 operation, the second target initial count value is cleared, and the second target initial count value after clearing is used as the first initial count value to perform a subtract operation to obtain the second count value; the first initial count value at the last moment of the first photoelectric signal is the first final count value.

[0040] For details, please refer to Figure 6a The schematic diagram of the photoelectric signal when the photoelectric signal is transferred from the first photoelectric detection module to the second photoelectric detection module is shown, and Figure 6b The schematic diagram of the photoelectric signal when the second photoelectric detection module turns to the first photoelectric detection module is shown. Figure 6a It can be seen that the falling edge of the first photoelectric signal at any time in the first photoelectric signal corresponds to the high level in the second photoelectric signal. For example, at time a, the first initial count value will continue to increase by 1, and will not decrease by 1, nor will there be a clearing operation. Therefore, the first initial count value at the last moment is a positive number. The first initial count value at the last moment of the first photoelectric signal is taken as the first final count value, and the rotation direction of the encoder is determined according to the preset first count judgment rule and the first final count value. Figure 6b It can be seen that when the level of the second photoelectric signal corresponding to the falling edge of the first photoelectric signal at time b is low, the first initial count value is subtracted by 1, and the first target initial count value at the moment before time c is subtracted by 1, then the first target initial count value is cleared. Therefore, the rotation direction of the encoder can be determined according to the count value at the final moment.

[0041] In a specific embodiment, the step 302 of obtaining the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and the preset time interval includes: when the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module, obtaining the first rotation speed of the encoder using the first final count value and the preset first time interval. Specifically, the preset first time interval can be set according to actual conditions, such as 100s, etc. The first final count value is a gradually accumulated positive number, so the accurate rotation speed of the encoder can be obtained using the first final count value and the preset first time interval.

[0042] In the specific embodiments, see Figure 7 , obtaining a first rotation speed of the encoder using the first final count value and a preset first time interval, comprising:

[0043] Step 501, obtaining a third count value at a third moment; the third moment is a moment at a preset first time interval before the final moment;

[0044] Step 502: Obtain a first difference between the first final count value and the third count value;

[0045] Step 503, according to the first difference and the preset first time interval, obtain the first rotation speed of the encoder in a unit time. Specifically, when the first time interval is 100s, the third count value is 900, and the first final count value is 1000, the first difference is 1000-900=100, and the first rotation speed is 100 / 100s, that is, 1 revolution / s. By using the first difference and the first time interval, the rotation speed of the encoder can be detected irregularly according to the actual situation, so as to obtain the infusion speed of different infusion stages.

[0046] In a specific embodiment, the method of obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal includes: presetting a second initial count value; the initial value of the second initial count value is 0; obtaining the second final count value of the second photoelectric signal between the initial moment and the last moment by using a preset second counting rule, the second initial count value, the first level value of the first photoelectric signal and the second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the last moment is the moment when the MCU module sends the last PWM signal; judging the rotation direction of the encoder according to a preset second counting judgment rule and the second final count value; the preset second counting judgment rule is that when the second final count value is positive, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module; when the second final count value is negative, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; the preset second counting rule is: when When the level in the first photoelectric signal corresponding to the falling edge in the second photoelectric signal at the same moment is a high level, the second initial count value is added by 1 to obtain a fourth count value, and the fourth count value is accumulated as the second initial count value at the next moment; when the level in the first photoelectric signal corresponding to the falling edge in the second photoelectric signal at the same moment is a low level, the second initial count value is subtracted by 1 to obtain a fifth count value, and the fifth count value is accumulated as the second initial count value at the next moment; if the third target initial count value at the previous moment of the fourth count value at the fourth moment is a subtracted by 1 operation, the third target initial count value is cleared, and the cleared third target initial count value is used as the second initial count value to perform an add operation to obtain the fourth count value; if the fourth target initial count value at the previous moment of the fifth count value at the fifth moment is a plus 1 operation, the fourth target initial count value is cleared, and the cleared fourth target initial count value is used as the second initial count value to perform a subtract operation to obtain the fifth count value; the second initial count value at the last moment of the second photoelectric signal is the second final count value. Specifically, the principle of obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal is the same as that of the above steps 401 to 403, and a repeated description is not given here.

[0047] In a specific embodiment, the obtaining of the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval includes: when the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module, obtaining the second rotation speed of the encoder using the second final count value and a preset second time interval. Specifically, the preset second time interval can be set according to actual conditions, so as to monitor the rotation speed of the encoder in different time periods.

[0048] In a specific embodiment, the method of obtaining the second rotation speed of the encoder by using the second final count value and the preset second time interval includes: obtaining the sixth count value at the sixth moment; the sixth moment is the moment of the preset second time interval before the final moment; obtaining the second difference between the second final count value and the sixth count value; and obtaining the second rotation speed of the encoder per unit time according to the second difference and the preset second time interval. Specifically, the method of obtaining the second rotation speed of the encoder by using the second final count value and the preset second time interval is the same as the principle of the above steps 501 to 503, and a repeated description is not given here.

[0049] In a specific embodiment, obtaining the second speed of the encoder in a unit time according to the second difference and the preset second time interval includes: dividing the second difference by the preset second time interval to obtain the second speed of the encoder in a unit time. For example, when the second difference is 500 and the second time interval is 100, the second speed of the encoder in a unit time is 5 revolutions / s.

[0050] In a specific embodiment, the present application also includes detecting the starting position of the infusion pump, because within one peristaltic cycle, the blank blade of the encoder rotates across the width P of the photoelectric detection module. w It is fixed. Every time the motor rotates a fixed angle, the level of the first photoelectric signal is determined. If it is high level, the count is increased by 1, and the count of each blade width is P. w Therefore, whenever the first photoelectric signal is detected at a falling edge, if the current blade width is greater than a preset multiple of the average value of the previous three times, that is, P w0 is the current blank blade width, P w1 is the width of the previous blank leaf, P w2 is the width of the previous blank blade, then the peristaltic structure is at the starting position, wherein the first preset multiple is the value obtained by dividing the first interval by the second interval.

[0051] In a specific embodiment, the third embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the method described in any one of the second embodiments of the present application.

[0052] The technical features of the above embodiments may 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.

[0053] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An infusion system, characterized in that: The infusion system includes an encoder, a peristaltic structure, a stepper motor, an MCU module, a first photoelectric detection module and a second photoelectric detection module; the MCU is used to send a PWM signal, and the stepper motor is used to rotate a preset angle according to the PWM signal to drive the peristaltic structure to peristalsize; when the peristaltic structure peristsalizes for one peristaltic cycle, the peristaltic structure squeezes the liquid medicine for a preset distance; the encoder is installed on the peristaltic structure, and the peristaltic structure is used to drive the encoder to rotate, and when the peristaltic structure peristsalizes for one cycle, the encoder rotates one circle; The first photoelectric detection module is used to monitor the rotation of the first preset position of the encoder to obtain a first photoelectric signal, and the second photoelectric detection module is used to monitor the rotation of the second preset position of the encoder to obtain a second photoelectric signal, the encoder is provided with at least three blades, wherein the distance between the adjacent first target blade and the second target blade is the first distance, and the distances between the remaining adjacent blades are all the second distances; the first distance is greater than the second distance; The MCU module is used to obtain the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal, obtain the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval, and obtain the infusion speed of the infusion system according to a preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes the relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

2. A method for monitoring an infusion system, applied to the infusion system according to claim 1, characterized in that: The method comprises: Obtaining a rotation direction of the encoder according to a phase difference between a first level value of the first photoelectric signal and a second level value of the second photoelectric signal; Obtaining a rotation speed of the encoder according to a rotation direction of the encoder, the first level value, the second level value, and a preset time interval; The infusion speed of the infusion system is obtained according to a preset speed conversion relationship and the rotation speed of the encoder; the preset speed conversion relationship at least includes a relationship between the infusion speed of the infusion system and the rotation speed of the encoder.

3. The method for monitoring an infusion system according to claim 2, wherein: The obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal comprises: Preset a first initial count value; the initial value of the first initial count value is 0; Obtaining a first final count value of the first photoelectric signal between an initial moment and a final moment by using a preset first counting rule, the first initial count value, a first level value of the first photoelectric signal, and a second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the final moment is the moment when the MCU module sends the last PWM signal; The rotation direction of the encoder is determined according to a preset first counting judgment rule and the first final counting value; the preset first counting judgment rule is that when the first final counting value is positive, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; when the first final counting value is negative, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module; The preset first counting rule is: When the level of the second photoelectric signal corresponding to the falling edge of the first photoelectric signal at the same moment is high, the first initial count value is incremented by 1 to obtain a first count value, and the first count value is accumulated as the first initial count value at the next moment; When the level of the second photoelectric signal corresponding to the falling edge of the first photoelectric signal at the same moment is a low level, the first initial count value is subtracted by 1 to obtain a second count value, and the second count value is accumulated as the first initial count value at the next moment; If the first target initial count value at the moment before the first count value at the first moment is a minus 1 operation, the first target initial count value is cleared to zero, and the cleared first target initial count value is used as the first initial count value to perform a plus 1 operation to obtain a first count value; If the second target initial count value at the moment before the second count value at the second moment is an addition operation, the second target initial count value is cleared to zero, and the cleared second target initial count value is used as the first initial count value to perform a subtraction operation to obtain a second count value; A first initial count value of the first photoelectric signal at the last moment is the first final count value.

4. The method for monitoring an infusion system according to claim 3, wherein: The obtaining the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval includes: When the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module, the first rotation speed of the encoder is obtained by using the first final count value and a preset first time interval.

5. The method for monitoring an infusion system according to claim 4, characterized in that: The step of obtaining a first rotation speed of the encoder by using the first final count value and a preset first time interval comprises: Obtaining a third count value at a third moment; the third moment is a moment of a preset first time interval before the final moment; Obtaining a first difference between the first final count value and the third count value; A first rotation speed of the encoder per unit time is obtained according to the first difference and the preset first time interval.

6. The method for monitoring an infusion system according to claim 2, wherein: The obtaining the rotation direction of the encoder according to the phase difference between the first level value of the first photoelectric signal and the second level value of the second photoelectric signal comprises: Preset a second initial count value; the initial value of the second initial count value is 0; Obtaining a second final count value of the second photoelectric signal between an initial moment and a final moment by using a preset second counting rule, the second initial count value, a first level value of the first photoelectric signal, and a second level value of the second photoelectric signal; the initial moment is the moment when the MCU module sends the first PWM signal; the final moment is the moment when the MCU module sends the last PWM signal; The rotation direction of the encoder is determined according to a preset second counting judgment rule and the second final counting value; the preset second counting judgment rule is that when the second final counting value is positive, the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module; when the second final counting value is negative, the rotation direction of the encoder is from the first photoelectric detection module to the second photoelectric detection module; The preset second counting rule is: When the level of the first photoelectric signal corresponding to the falling edge of the second photoelectric signal at the same moment is a high level, the second initial count value is incremented by 1 to obtain a fourth count value, and the fourth count value is accumulated as the second initial count value at the next moment; When the level of the first photoelectric signal corresponding to the falling edge of the second photoelectric signal at the same moment is a low level, the second initial count value is subtracted by 1 to obtain a fifth count value, and the fifth count value is accumulated as the second initial count value at the next moment; If the third target initial count value at the moment before the fourth count value at the fourth moment is a minus 1 operation, the third target initial count value is cleared to zero, and the cleared third target initial count value is used as the second initial count value to perform a plus 1 operation to obtain a fourth count value; If the fourth target initial count value at the previous moment of the fifth count value at the fifth moment is a plus 1 operation, the fourth target initial count value is cleared to zero, and the fourth target initial count value after clearing to zero is used as the second initial count value to perform a minus 1 operation to obtain the fifth count value; A second initial count value at the last moment of the second photoelectric signal is the second final count value.

7. The method for monitoring an infusion system according to claim 6, wherein: The obtaining the rotation speed of the encoder according to the rotation direction of the encoder, the first level value, the second level value and a preset time interval includes: When the rotation direction of the encoder is from the second photoelectric detection module to the first photoelectric detection module, the second rotation speed of the encoder is obtained by using the second final count value and a preset second time interval.

8. The method for monitoring an infusion system according to claim 7, wherein: The step of obtaining a second rotation speed of the encoder by using the second final count value and a preset second time interval comprises: Obtaining a sixth count value at a sixth moment; the sixth moment being a moment of a preset second time interval before the final moment; Obtaining a second difference between the second final count value and the sixth count value; A second rotation speed of the encoder per unit time is obtained according to the second difference and the preset second time interval.

9. The method for monitoring an infusion system according to claim 8, wherein: The obtaining a second rotation speed of the encoder per unit time according to the second difference and the preset second time interval includes: The second difference is divided by the preset second time interval to obtain a second rotation speed of the encoder per unit time.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 2 to 8.

Citation Information

Patent Citations

  • Infusion pump and control time sequence detection method of infusion pump

    CN105363095A

  • Apparatus and method for detecting driving direction and accuracy of infusion pump

    CN109172935A

  • Infusion pump drives detection device

    CN207717367U

  • Code disc and infusion pump

    CN220193696U