Motor control method, nucleic acid detection equipment and storage medium
By detecting the motor drive signal and photoelectric feedback signal in real time in the nucleic acid detection equipment, the abnormal rotation mechanism caused by motor failure and synchronization belt gap is solved, ensuring the normal operation and efficient operation of the equipment.
Patent Information
- Application Number
- CN202311871640.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-29
- Publication Date
- 2025-07-01
AI Technical Summary
In nucleic acid detection equipment, as the service life increases, the motor stepping and the transmission gap of the synchronization belt increase, resulting in abnormal movement of the rotating mechanism, affecting the transmission accuracy, and may lead to equipment failure.
By installing a rotation detection component in the nucleic acid detection equipment, the drive signal and photoelectric detection feedback signal of the motor are detected in real time, the consistency of the two is compared, and whether the movement of the rotation mechanism is abnormal, and the motor is controlled to stop when abnormal.
Real-time monitoring of the movement of the rotating mechanism is realized, the motor is stopped in time, equipment failure is prevented, and the working efficiency and reliability of the equipment are improved.
Smart Images

Figure CN120238022A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of medical device control, and particularly relates to a control method for a motor, a nucleic acid detection device, and a storage medium. Background Art
[0002] In the prior art, as the service life of the transmission device of a nucleic acid detection device increases, the movement resistance may become larger, which may cause the motor to lose steps. The motor losing steps will cause the motor to be unable to accurately drive the mechanism to move to the specified position. In addition, the motor drives the rotating mechanism to move through a synchronous belt, etc. There is a gap in the synchronous belt transmission, and the gap may increase with the increase of the service life, resulting in transmission errors. The rotating mechanism mostly transmits the rotating torque to other mechanisms. When the resistance of other mechanisms is too large, the movement of the rotating mechanism may be abnormal.
[0003] All the above situations will affect the actual transmission accuracy. If there is abnormal movement and it cannot be repaired or adjusted in time, it may cause the overall nucleic acid detection device to malfunction. Summary of the Invention
[0004] The purpose of the present invention is to provide a control method for a motor, a nucleic acid detection device, and a storage medium to detect the movement of the rotating mechanism of the nucleic acid detection device in real time.
[0005] To achieve the above purpose, on the one hand, the present invention provides a control method for a motor, which is applied to a nucleic acid detection device. The motor is drivingly connected to a rotating mechanism, and a rotation detection component for detecting and sending a detection signal is installed on the rotating mechanism. The control method includes the following steps:
[0006] Obtain a control instruction for the motor;
[0007] Determine the target driving signal of the motor according to the control instruction;
[0008] Send the target driving signal to the motor to control the motor to start;
[0009] Every preset time period, obtain the first current driving signal of the motor and the first photoelectric detection feedback signal determined according to the detection signal;
[0010] Compare the first current driving signal and the first photoelectric detection feedback signal to determine whether the movement of the rotating mechanism is abnormal;
[0011] When the movement of the rotating mechanism is abnormal, control the motor to stop.
[0012] In some embodiments, the step of comparing the first current drive signal and the first photoelectric detection feedback signal to determine whether the rotation mechanism is operating abnormally includes: determining the drive signal range corresponding to the first current drive signal to determine the first detection signal corresponding to the first current drive signal; when the first detection signal is inconsistent with the first photoelectric detection feedback signal, determining that the rotation mechanism is operating abnormally.
[0013] In some embodiments, the control method of the motor further includes the following steps: when the motor stops due to abnormal movement of the rotation mechanism, controlling the motor to reset and re-driving the rotation mechanism to rotate; when the rotation mechanism has abnormal movement for a preset number of consecutive times, determining a positioning failure of the rotation mechanism and controlling the nucleic acid detection device to alarm.
[0014] In some embodiments, the step of controlling the motor to reset and re-driving the rotation mechanism to rotate when the motor stops due to abnormal movement of the rotation mechanism includes: sending a reset drive signal to the motor to control the motor to reset and rotate; every preset time period, obtaining the second current drive signal of the motor and the second photoelectric detection feedback signal determined according to the detection signal; comparing the second current drive signal and the second photoelectric detection feedback signal to determine whether the rotation mechanism is rotating abnormally; when there is an abnormality in the rotation of the rotation mechanism, determining a rotation failure of the rotation mechanism and controlling the motor to stop; when the rotation of the rotation mechanism is normal, controlling the motor to continue rotating until it rotates to the rotation angle corresponding to the reset drive signal to complete the reset of the motor.
[0015] In some embodiments, the rotation detection assembly further includes a zero-point optoelectronic device and a mechanical code disk. The mechanical code disk is provided with a zero-point detection groove. When the motor is not started or the reset is completed, the zero-point optoelectronic device corresponds to the zero-point detection groove in position. The control method further includes the following steps: when the motor stops due to abnormal movement of the rotation mechanism, controlling the motor to reset and rotate; when the motor rotation ends and the zero-point detection groove corresponds to the zero-point optoelectronic device in position, determining that the motor reset rotation is completed.
[0016] In some embodiments, the control method of the motor further includes the following steps: determining the target rotation angle of the motor according to the target drive signal; determining the deceleration critical angle of the motor according to the target rotation angle; when the current rotation angle of the motor is less than the deceleration critical angle, controlling the motor to rotate at a first rotation speed; when the current rotation angle of the motor is greater than the deceleration critical angle, controlling the motor to rotate at a second rotation speed, where the first rotation speed is greater than the second rotation speed.
[0017] A second aspect of the present invention provides a nucleic acid detection device, which includes: a motor; a rotation mechanism, drivingly connected to the motor; a rotation detection assembly, installed on the rotation mechanism for detecting and sending detection signals; and a processor, electrically connected to both the motor and the rotation detection assembly and configured to execute the above control method of the motor.
[0018] In some embodiments, the nucleic acid detection device further includes a reagent cartridge. A plurality of liquid storage cavities are circumferentially formed inside the reagent cartridge, and a pipetting port is provided above each liquid storage cavity. The rotation detection assembly includes: a mechanical code disk, which is circumferentially provided with a plurality of detection slots at intervals. The mechanical code disk rotates synchronously with the rotation mechanism, and the number of detection slots is the same as that of the pipetting ports and the angles correspond one by one; and a detection optoelectronic device, which includes a detection end and an excitation end. The detection optoelectronic device is electrically connected to the processor. The mechanical code disk rotates and is inserted between the detection end and the excitation end. When the detection slot rotates between the detection end and the excitation end, the detection optoelectronic device sends a detection signal to the processor.
[0019] In some embodiments, the rotation detection assembly further includes: a mechanical code disk, which is provided with a zero point detection slot; and a zero point optoelectronic device, which is electrically connected to the processor. When the motor is not started or the reset is completed, the zero point optoelectronic device corresponds to the zero point detection slot in position and sends a zero point signal to the processor.
[0020] The third aspect of the present invention provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to execute the above-mentioned control method of the motor.
[0021] In the above technical solution, the first current drive signal of the motor and the first optoelectronic detection feedback signal determined according to the detection signal can be obtained every preset time period. By comparing the first current drive signal and the first optoelectronic detection feedback signal, it can be determined whether the movement of the rotation mechanism is abnormal. When it is determined that there is an abnormality, the motor can be controlled to stop. By adopting the above method, the movement of the rotation mechanism can be detected in real time. When the rotation mechanism is abnormal, the motor can be stopped in time to avoid damage to the device caused by abnormal movement of the rotation mechanism.
[0022] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent specific embodiment part. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings are used to provide a further understanding of the embodiments of the present invention, and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation to the embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the structures shown in these drawings without creative efforts. In the drawings:
[0024] Figure 1 is a flowchart of the control method of the motor provided by the embodiment of the present invention;
[0025] Figure 2 is a schematic diagram of the application scenario of the control method of the motor provided by the embodiment of the present invention;
[0026] Figure 3 is Figure 2 A partial enlarged view of part A in
[0027] Figure 4 A schematic diagram of the steps of the first sub - process of the control method of the execution motor
[0028] Figure 5 A schematic diagram of the steps of the second sub - process of the control method of the execution motor
[0029] Figure 6 A schematic diagram of the application scenario of the reagent cartridge provided according to the embodiment of the present invention
[0030] Explanation of reference numerals
[0031] 1 Motor 2 Rotating mechanism
[0032] 3 Rotation detection component 31 Mechanical code disk
[0033] 311 Detection groove 312 Zero - point detection groove
[0034] 32 Detection optoelectronic 33 Zero - point optoelectronic
[0035] 4 Reagent cartridge Detailed implementation manners
[0036] The following will describe in detail the specific implementation manners of the present invention with reference to the accompanying drawings. It should be understood that the specific implementation manners described herein are only for explaining and interpreting the present invention, and are not used to limit the present invention.
[0037] 4 As Figure 1 shown, it is a flowchart of the control method of the motor provided according to the embodiment of the present invention. As Figure 2 shown, it is a schematic diagram of the application scenario of the control method of the motor provided according to the embodiment of the present invention. Figure 3 is Figure 2 A partial enlarged view of part A in Figure 2 Part of the structure of the nucleic acid detection device. The nucleic acid detection device includes a motor 1 and a rotating mechanism 2. The motor 1 is drivingly connected to the rotating mechanism 2. The rotating mechanism 2 is equipped with a rotation detection component 3 for detecting and sending detection signals. The control method of the motor includes the following steps:
[0038] S101, Obtain the control instruction of the motor 1;
[0039] S102, Determine the target drive signal of the motor 1 according to the control instruction;
[0040] S103, Send the target drive signal to the motor 1 to control the motor 1 to start;
[0041] S104. At every preset time interval, obtain the first current drive signal of the motor 1 and the first photoelectric detection feedback signal determined according to the detection signal.
[0042] S105. Compare the first current drive signal with the first photoelectric detection feedback signal to determine whether the rotation mechanism 2 is operating abnormally.
[0043] S106. When the rotation mechanism 2 is operating abnormally, control the motor 1 to stop.
[0044] The rotation mechanism 2 needs the motor 1 to drive the rotation. During the transmission process of the driving force of the motor 1, due to the transmission process, there may be accuracy errors, resulting in differences between the actual rotation angle and the target rotation angle of the rotation mechanism 2, causing transmission errors. When the transmission error is large, it is easy to cause overall failures of the nucleic acid detection equipment.
[0045] To avoid the above situation, in the embodiments of the present invention, the processor is configured to execute the above control method of the motor, and judge whether the rotation mechanism 2 is abnormal through the processor. If it is abnormal, the processor controls the motor 1 to stop. Specifically, the processor can obtain the control instruction for the motor 1, and the target drive signal of the motor 1 can be determined according to the control instruction. The target drive signal contains the target position information of the movement of the motor 1. When the motor 1 receives the target drive signal, it can rotate until it rotates to the theoretical target position corresponding to the target drive signal. The first current drive signal is the control signal for the motor 1 to drive itself in real time according to the target drive signal after the motor 1 receives the target drive signal. The rotation detection component 3 of the present application can detect the movement of the rotation mechanism 2 in real time and feedback the detection signal to the processor. The processor can determine the first photoelectric detection feedback signal of the rotation mechanism 2 according to the detection signal fed back by the rotation detection component 3. The first photoelectric detection feedback signal is a signal that can be compared with the current drive signal. The processor obtains the first current drive signal of the motor 1 and the first photoelectric detection feedback signal once every preset time interval. Moreover, the processor can compare the first current drive signal with the first photoelectric detection feedback signal, and then determine whether the rotation of the rotation mechanism 2 is abnormal. If the movement is abnormal, the processor can control the motor 1 to stop. It should be noted that the feedback time of the above detection signal is the same as the acquisition time of the first current drive signal. Specifically, the preset time interval can be 10 ms, and the interval time is extremely short, which can be considered as real-time detection of the rotation mechanism 2.
[0046] By adopting the above control method of the motor, when the rotation mechanism 2 is operating abnormally, the motor 1 can be controlled to stop to prevent the motor 1 from continuously driving the rotation mechanism 2 and causing failures of the nucleic acid detection equipment. The real-time detection method can judge the occurrence of the abnormality of the rotation mechanism 2 faster and more accurately, which is convenient for timely controlling the motor 1 to stop.
[0047] In one embodiment, the steps of comparing the first current drive signal and the first photoelectric detection feedback signal to determine whether the rotation mechanism 2 is operating abnormally include: determining the drive signal range corresponding to the first current drive signal to determine the first detection signal corresponding to the first current drive signal; when the first detection signal is inconsistent with the first photoelectric detection feedback signal, determining that the rotation mechanism 2 is operating abnormally. Each detection signal may correspond to a drive signal range. When the processor obtains the first current drive signal, the first detection signal corresponding to the first current drive signal can be determined by looking up a table. The processor determines whether the first detection signal and the first photoelectric detection feedback signal are consistent. If they are inconsistent, it is determined that the rotation mechanism 2 is operating abnormally, and the motor 1 needs to be stopped immediately. When the first detection signal and the first photoelectric detection feedback signal are consistent, it can be determined that the rotation mechanism 2 is operating normally, and the motor 1 is continued to be driven.
[0048] In one embodiment, as Figure 4 shown, it is a schematic diagram of the steps of the first sub-process of the control method of the motor. The control method of the motor further includes the following steps: when the motor 1 stops due to the abnormal movement of the rotation mechanism 2, controlling the motor 1 to reset and re-driving the rotation mechanism 2 to rotate; when the rotation mechanism 2 has abnormal movements continuously for a preset number of times, determining that the rotation mechanism 2 has a positioning fault, and controlling the nucleic acid detection device to alarm. The reset of the motor 1 will also drive the rotation mechanism 2 to reset and rotate. After the reset is completed, the processor can control the motor 1 to re-drive the rotation mechanism 2 to rotate. When the rotation mechanism 2 has abnormal movements continuously for a preset number of times, it can be determined that the rotation mechanism 2 has a positioning fault. If it is not repaired or adjusted, the rotation mechanism 2 cannot work normally. Therefore, the processor can control the nucleic acid detection device to alarm. Specifically, the preset number of times can be three times. During the rotation of the rotation mechanism 2, it may be jammed due to accidental reasons, resulting in the movement of the rotation mechanism 2 being blocked. After controlling the motor 1 to reset, when the motor 1 drives the rotation mechanism 2 to rotate again, the rotation mechanism 2 is no longer affected by accidents, and the processor can control the motor 1 to drive the rotation mechanism 2 to work normally. In a specific embodiment, the rotation mechanism 2 drives the reagent cartridge 4 to rotate. During the rotation of the reagent cartridge 4, it is easy to be limited and stuck with other mechanisms, resulting in the rotation of the rotation mechanism 2 being blocked and unable to work normally. After the processor controls the motor 1 to reset, the reagent cartridge 4 is also driven by the rotation mechanism 2 to return to the initial position. The reagent cartridge 4 is no longer limited and stuck, and the rotation mechanism 2 can work normally. By adopting the above control method, the nucleic acid detection device can automatically handle the stuck situation, improving the working efficiency of the nucleic acid detection device.
[0049] In one embodiment, as Figure 5As shown, it is a schematic diagram of the steps for executing the second sub - process of the control method of the motor. After the motor 1 stops due to abnormal movement of the rotating mechanism 2, the steps of controlling the motor 1 to reset and re - drive the rotating mechanism 2 to rotate include: sending a reset drive signal to the motor 1 to control the motor 1 to reset and rotate; at every preset time period, obtaining the second current drive signal of the motor 1 and the second photoelectric detection feedback signal determined according to the detection signal; comparing the second current drive signal and the second photoelectric detection feedback signal to determine whether the rotation of the rotating mechanism 2 is abnormal; when the rotation of the rotating mechanism 2 is abnormal, determining that the rotating mechanism 2 has a rotation fault and controlling the motor 1 to stop; when the rotation of the rotating mechanism 2 is normal, controlling the motor 1 to continue rotating until it rotates to the rotation angle corresponding to the reset drive signal, and the reset of the motor 1 is completed.
[0050] The reset of the motor 1 may also not be completed because the movement of the rotating mechanism 2 is jammed. Therefore, the processor can detect the reset process. Specifically, the processor can send a reset drive signal to the motor 1 to control the motor 1 to reset. After the motor 1 receives the reset drive signal, it will reset and rotate and drive the rotating mechanism 2 to rotate. During the reset process of the motor 1, the rotation detection component 3 will also detect the rotation of the rotating mechanism 2. At every preset time period, it obtains the second current drive signal of the motor 1 and the detection signal detected by the rotation detection component 3. According to the detection signal, the second photoelectric detection feedback signal can be determined. The second current drive signal is the control signal for the motor 1 to drive itself to work in real - time according to the reset drive signal after the motor 1 receives the reset drive signal. The processor can compare the second photoelectric detection feedback signal and the second current drive signal to further determine whether there is an abnormality during the rotation of the rotating mechanism 2. When the rotation of the rotating mechanism 2 is abnormal, it is determined that the rotating mechanism 2 has a rotation fault and the motor 1 is controlled to stop. Because the abnormal rotation is very likely due to the jamming between the rotating mechanism 2 and the nucleic acid detection device. If the motor 1 is continuously controlled to drive the rotating mechanism 2, it may cause damage to the nucleic acid detection device. Further, if there is an abnormality during the reset process, the processor can also control the nucleic acid detection device to alarm to remind the user to repair or adjust. It should be noted that the feedback time of the above - mentioned detection signal and the acquisition time of the second current drive signal are the same. By using the above - mentioned method, the rotation process of the rotating mechanism can be detected in real - time to prevent damage to the nucleic acid detection device caused by abnormal rotation.
[0051] In one embodiment, as Figure 2 and Figure 3As shown, the rotation detection component 3 further includes a zero-point optoelectronic device 33 and a mechanical code disk 31. The mechanical code disk 31 is provided with a zero-point detection groove 312. When the motor 1 is not started or the reset is completed, the positions of the zero-point optoelectronic device 33 and the zero-point detection groove 312 correspond to each other. The control method further includes the following steps: when the motor 1 stops due to abnormal movement of the rotating mechanism 2, control the motor 1 to reset and rotate; when the motor 1 finishes rotating back and the positions of the zero-point detection groove 312 and the zero-point optoelectronic device 33 correspond to each other, determine that the reset rotation of the motor 1 is completed. The zero-point optoelectronic device 33 is an optoelectronic detection component, which may include a transmitting end for laser emission and a receiving end for laser reception. The mechanical code disk 31 rotates together with the rotating mechanism 2. The mechanical code disk 31 includes a zero-point detection groove 312. When the rotating mechanism 2 is in the initial state, the transmitting end emits laser light that passes through the detection groove 311 to the receiving end, and the zero-point optoelectronic device 33 will send a zero-point signal to the processor so that the processor can determine the position where the rotating mechanism 2 is located. When the motor 1 is not started or the reset is completed, the rotating mechanism 2 will be in the initial position. When the receiving end of the zero-point optoelectronic device 33 receives the laser signal, the zero-point optoelectronic device 33 will send a zero-point signal to the processor, so that the processor can determine that the reset rotation of the motor 1 is completed or the processor can determine that the rotating mechanism 2 is in the initial position.
[0052] In one embodiment, the control method of the motor further includes the following steps: determining the target rotation angle of the motor 1 according to the target drive signal; determining the deceleration critical angle of the motor 1 according to the target rotation angle; when the current rotation angle of the motor 1 is less than the deceleration critical angle, control the motor 1 to rotate at a first rotation speed; when the current rotation angle of the motor 1 is greater than the deceleration critical angle, control the motor 1 to rotate at a second rotation speed, where the first rotation speed is greater than the second rotation speed. During the process of the motor 1 driving the rotating mechanism 2 to move, stopping at a relatively high speed or having a large acceleration during startup may cause impacts between the mechanisms. Therefore, when the rotating mechanism 2 is about to move to the target position, the motor 1 can drive the rotating mechanism 2 to decelerate. Specifically, the processor can determine the deceleration critical angle according to the target rotation angle of the motor 1. The deceleration critical angle can be a rotation angle that differs from the target rotation angle by a preset angle. For example, if the target rotation angle of the motor 1 is 90 degrees and the preset angle is 10 degrees, then the deceleration critical angle is 80 degrees. When the current rotation angle of the motor 1 is less than the deceleration critical angle, control the motor 1 to rotate at a first rotation speed; when the current rotation angle of the motor 1 is greater than the deceleration critical angle, control the motor 1 to rotate at a second rotation speed, where the first rotation speed is greater than the second rotation speed.
[0053] The above control method of the motor can determine whether the rotation mechanism 2 is abnormal every preset time period during the process of the motor 1 driving the rotation mechanism 2 to move. When it is determined that the rotation mechanism 2 is abnormal, the motor 1 can be immediately controlled to stop. After controlling the motor 1 to stop, the motor 1 is controlled to reset and rotate, and the reset process is detected. If an abnormality occurs during the reset rotation process, the processor can cause the nucleic acid detection device to alarm. After the reset is completed, the processor can control the motor 1 to drive the rotation mechanism 2 to rotate again. In the case where the rotation mechanism 2 moves abnormally for a continuous preset number of times, it is determined that the rotation mechanism 2 has a fault. By adopting the above control method, the movement of the rotation mechanism 2 can be more accurate, the fault identification can be faster, and the operation efficiency of the nucleic acid detection device can be higher. In a specific embodiment, the second rotation speed is a speed that gradually decreases with time, so that the rotation mechanism stops smoothly.
[0054] In one embodiment, as Figure 2 shown, a nucleic acid detection device is provided. The nucleic acid detection device includes: a motor 1; a rotation mechanism 2, which is drivingly connected to the motor 1; a rotation detection component 3, which is installed on the rotation mechanism 2 and is used to detect and send a detection signal; and a processor (not shown in the figure), which is electrically connected to both the motor 1 and the rotation detection component 3 and is configured to execute the above control method of the motor.
[0055] In one embodiment, as Figure 2 、 Figure 3 and Figure 6 shown, the nucleic acid detection device further includes a reagent cassette 4. A plurality of liquid storage cavities (not shown in the figure) are circumferentially formed inside the reagent cassette 4. A liquid transfer port is provided above each liquid storage cavity. The rotation detection component 3 includes: a mechanical code disk 31, which is circumferentially provided with a plurality of detection slots 311 at intervals. The mechanical code disk 31 rotates synchronously with the rotation mechanism 2. The number of detection slots 311 is the same as that of the liquid transfer ports and the angles correspond one by one; and a detection optoelectronic device 32, which includes a detection end and an excitation end. The detection optoelectronic device 32 is electrically connected to the processor. The mechanical code disk 31 rotates and is inserted between the detection end and the excitation end. When the detection slot 311 rotates between the detection end and the excitation end, the detection optoelectronic device 32 sends a detection signal to the processor.
[0056] The detection optoelectronics 32 includes a detection end and an excitation end. When the detection slot 311 of the mechanical code disk 31 rotates between the detection end and the excitation end, the optical signal of the excitation end can be sent to the detection end. After the detection end receives the optical signal, the detection optoelectronics 32 can send a detection signal to the processor. After the processor receives the detection signal, it can determine the current detection signal of the mechanical code disk 31. By comparing this signal with the current drive signal of the motor 1, it can be determined whether the movement of the rotating mechanism 2 is abnormal. Specifically, when the rotating mechanism 2 of the present invention rotates into place, it will cause the pipetting mechanism connected to the rotating mechanism 2 to enter the pipetting port to take liquid. If it does not rotate into place, the pipetting mechanism will collide with the reagent cartridge 4, causing damage to the device. The nucleic acid detection device of the present invention performs position detection on the rotating mechanism 2, controls the motor 1 to rotate according to the detection result, and makes the movement of the rotating mechanism 2 more accurate and efficient.
[0057] In one embodiment, as Figure 2 and Figure 3 shown, the rotation detection assembly 3 further includes: a mechanical code disk 31, provided with a zero point detection slot 312; and a zero point optoelectronics 33, electrically connected to the processor. When the motor 1 is not started or the reset is completed, the zero point optoelectronics 33 corresponds to the position of the zero point detection slot 312 and sends a zero point signal to the processor.
[0058] In one embodiment, a machine-readable storage medium is provided. Instructions are stored on the machine-readable storage medium, and when the instructions are executed by the processor, the processor is configured to execute the above-mentioned control method of the motor.
[0059] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0060] The present application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices generate for implementing in the process Figure 1 one process or multiple processes and / or blocks Figure 1a device for the functions specified in one or more boxes.
[0061] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, and the instruction device implements the processes Figure 1 one process or more processes and / or boxes Figure 1 the functions specified in one box or more boxes.
[0062] These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process. Thus, the instructions executed on the computer or other programmable device provide for implementing the processes Figure 1 one process or more processes and / or boxes Figure 1 the steps of the functions specified in one box or more boxes.
[0063] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.
[0064] The memory may include non-permanent memory in the computer-readable medium, in the form of random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
[0065] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology for information storage. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media, such as modulated data signals and carrier waves.
[0066] In the description of the present invention, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of the present invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically defined.
[0067] In the present invention, unless otherwise clearly specified and limited, the terms "mounted", "connected", "coupled", "fixed", etc. shall be construed in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection, an electrical connection, or communicable with each other; it may be directly connected, or indirectly connected through an intermediate medium, and it may be the internal communication of two elements or the interaction relationship between two elements, unless otherwise clearly limited. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0068] In the description of this specification, the description with reference to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0069] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A control method for an electric motor, which is applied to a nucleic acid detection device, characterized in that, The motor (1) is drivingly connected to the rotating mechanism (2), and the rotating mechanism (2) is equipped with a rotation detection component (3) for detecting and sending detection signals. The control method includes the following steps: Obtain the control instruction of the motor (1); Determine the target drive signal of the motor (1) according to the control instruction; Send the target drive signal to the motor (1) to control the startup of the motor (1); At each preset time interval, obtain the first current drive signal of the motor (1) and the first photoelectric detection feedback signal determined according to the detection signal; Compare the first current drive signal with the first photoelectric detection feedback signal to determine whether the movement of the rotating mechanism (2) is abnormal; When the movement of the rotating mechanism (2) is abnormal, control the motor (1) to stop.
2. The control method of the motor according to claim 1, wherein The step of comparing the first current drive signal with the first photoelectric detection feedback signal to determine whether the movement of the rotating mechanism (2) is abnormal includes: Determine the drive signal range corresponding to the first current drive signal to determine the first detection signal corresponding to the first current drive signal; When the first detection signal is inconsistent with the first photoelectric detection feedback signal, determine that the movement of the rotating mechanism (2) is abnormal.
3. The control method of the motor according to claim 1, wherein, The control method of the motor further includes the following steps: After the motor (1) stops due to the abnormal movement of the rotating mechanism (2), control the motor (1) to reset and drive the rotating mechanism (2) to rotate again; When the movement of the rotating mechanism (2) is abnormal continuously for a preset number of times, determine that the rotating mechanism (2) has a positioning fault and control the nucleic acid detection device to alarm.
4. The control method of the motor according to claim 3, characterized in that, The step of, after the motor (1) stops due to the abnormal movement of the rotating mechanism (2), controlling the motor (1) to reset and drive the rotating mechanism (2) to rotate again includes: Send a reset drive signal to the motor (1) to control the motor (1) to reset and rotate back; At each preset time interval, obtain the second current drive signal of the motor (1) and the second photoelectric detection feedback signal determined according to the detection signal; Compare the second current drive signal with the second photoelectric detection feedback signal to determine whether the rotation of the rotating mechanism (2) is abnormal; When there is an abnormality in the rotation of the rotating mechanism (2), determine that the rotating mechanism (2) has a rotation fault and control the motor (1) to stop; When the rotation of the rotating mechanism (2) is normal, control the motor (1) to continue rotating until it rotates to the rotation angle corresponding to the reset drive signal, and the reset of the motor (1) is completed.
5. The control method of the motor according to any one of claims 1 to 4, characterized in that, The rotation detection component (3) further includes a zero-point photoelectric (33) and a mechanical code disk (31). The mechanical code disk (31) is provided with a zero-point detection groove (312). When the motor (1) is not started or the reset is completed, the zero-point photoelectric (33) corresponds to the position of the zero-point detection groove (312). The control method further includes the following steps: After the motor (1) stops due to the abnormal movement of the rotating mechanism (2), control the motor (1) to reset and rotate back; When the rotation of the motor (1) ends and the zero detection groove (312) corresponds to the position of the zero optoelectronics (33), it is determined that the reset rotation of the motor (1) is completed.
6. The control method of the motor according to any one of claims 1 to 4, characterized in that, The control method of the motor further includes the following steps: Determine the target rotation angle of the motor (1) according to the target drive signal; Determine the deceleration critical angle of the motor (1) according to the target rotation angle; When the current rotation angle of the motor (1) is less than the deceleration critical angle, control the motor (1) to rotate at a first rotation speed; When the current rotation angle of the motor (1) is greater than the deceleration critical angle, control the motor (1) to rotate at a second rotation speed, where the first rotation speed is greater than the second rotation speed.
7. A nucleic acid detection device, characterized in that, The nucleic acid detection device includes: A motor (1); A rotating mechanism (2), drivingly connected to the motor (1); A rotation detection component (3), installed on the rotating mechanism (2) for detecting and sending a detection signal; and A processor, electrically connected to both the motor (1) and the rotation detection component (3) and configured to execute the control method of the motor according to any one of claims 1 to 6.
8. The nucleic acid detection device according to claim 7, characterized in that, The nucleic acid detection device further includes a reagent cartridge (4), and a plurality of liquid storage cavities are circumferentially formed inside the reagent cartridge (4). A liquid transfer port is provided above each liquid storage cavity. The rotation detection component (3) includes: A mechanical code disk (31), with a plurality of detection grooves (311) spaced apart circumferentially. The mechanical code disk (31) rotates synchronously with the rotating mechanism (2), and the number of the detection grooves (311) is the same as that of the liquid transfer ports and the angles correspond one by one; and A detection optoelectronics (32), including a detection end and an excitation end. The detection optoelectronics (32) is electrically connected to the processor. The mechanical code disk (31) rotates and is inserted between the detection end and the excitation end. When the detection groove (311) rotates between the detection end and the excitation end, the detection optoelectronics (32) sends a detection signal to the processor.
9. The nucleic acid detection device according to claim 7, wherein, The rotation detection component (3) further includes: A mechanical code disk (31), provided with a zero detection groove (312); and A zero optoelectronics (33), electrically connected to the processor. When the motor (1) is not started or the reset is completed, the zero optoelectronics (33) corresponds to the position of the zero detection groove (312) and sends a zero signal to the processor.
10. A machine-readable storage medium, characterized in that, Instructions are stored on the machine-readable storage medium, and characterized in that when the instructions are executed by the processor, the processor is configured to execute the control method of the motor according to any one of claims 1 to 6.