Self-detection circuit for driving signals of multi-path stepping motor

By using filtering and logic judgment in the self-testing circuit, faults in multiple stepper motor drive signals can be quickly located, solving the problem of difficult location in existing technologies, achieving efficient fault detection and repair, and reducing costs and resource consumption.

CN119270033APending Publication Date: 2025-01-07LUOYANG INST OF ELECTRO OPTICAL EQUIP OF AVIC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411618390.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-13
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Existing BIT technology cannot quickly and accurately locate faults in multi-channel stepper motor drive signals in optoelectronic products, resulting in long testing times, high I/O resource consumption, high technical requirements for maintenance personnel, and high maintenance costs.

Method used

Design a self-detection circuit for multi-channel stepper motor drive signals, including a filtering detection unit and a comprehensive processing unit. The circuit determines faults through filtering and logic relationships, and achieves rapid fault location by combining dual monostable multivibrators and logic AND chips.

Benefits of technology

It improves fault detection and isolation rates, shortens fault repair time, reduces the number of maintenance personnel and technical requirements, lowers maintenance costs, and saves I/O interface resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119270033A_ABST
    Figure CN119270033A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of hardware circuit design, in particular to a self-detection circuit for multipath stepping motor driving signals, which comprises a plurality of filtering detection units and a comprehensive processing unit, and is characterized in that each filtering detection unit is connected with the comprehensive processing unit and is connected with a stepping motor driver; the comprehensive processing unit is also connected with the control unit; the filtering detection unit is used for filtering n paths of pulse signals output by the connected stepping motor driver, then detecting the n paths of pulse signals, and outputting level signals corresponding to the n paths of pulse signals to the comprehensive processing unit; and the comprehensive processing unit is used for performing logic relation on the level signals corresponding to the n paths of pulse signals output by the filtering detection unit to obtain self-checking signals, and reporting the self-checking signals corresponding to the stepping motor drivers to the control unit. According to the self-detection circuit, the fault can be quickly positioned, the requirement on the technical level of maintenance personnel is reduced, and the maintenance cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of hardware circuit design, and in particular to a self-detection circuit for multi-channel stepper motor drive signals. Background Art

[0002] With the widespread application of digital technology and VLSI, the performance of optoelectronic products has been greatly improved, but it also brings serious guarantee problems, namely poor testability. BIT (Built-In Test) has become an important way to improve the system test and diagnosis capabilities. Through BIT's automatic detection and isolation of faults, the system's availability can be improved, and it should have a high detection rate and isolation rate. However, the existing BIT fails to meet the use requirements and has poor performance.

[0003] The optical stabilization platform of optoelectronic products such as optical mines and pods uses multiple stepper motor drives during the temperature compensation and focusing process. Therefore, in the design of the fault detection rate, it is required to test the multiple (usually 4) drive output signals of the stepper motor. A large number of detection I / Os are required, which will use a large number of I / O interface resources. The entire test process is time-consuming and cannot quickly and accurately locate the circuit fault position, which requires a high level of technical skills of the maintenance personnel. Summary of the invention

[0004] In view of this, an embodiment of the present application proposes a self-detection circuit for multiple stepper motor drive signals, which can quickly locate faults in stepper motor drive circuits, reduce the number of maintenance personnel, lower the requirements for the technical level of maintenance personnel, and thus significantly reduce maintenance costs.

[0005] In the first aspect, an embodiment of the present application proposes a self-detection circuit for multiple stepper motor drive signals, comprising: a plurality of filter detection units and an integrated processing unit, each of the filter detection units is connected to the integrated processing unit, and each is connected to a stepper motor driver, and the integrated processing unit is also connected to the control unit; the filter detection unit is used to filter the n-way pulse signals output by the connected stepper motor driver, and then detect them, and output the level signal corresponding to each pulse signal to the integrated processing unit; wherein n is an integer greater than 1, and for any pulse signal, the filter detection circuit outputs a high-level signal after receiving the rising edge trigger of the pulse signal, and outputs a low-level signal when abnormal; the integrated processing unit is used to perform a logical relationship and the level signal corresponding to the n-way pulse signal output by the filter detection unit to obtain a self-detection signal, and report the self-detection signal corresponding to each stepper motor driver to the control unit, so that the control unit can perform processing corresponding to the self-detection signal on each stepper motor driver.

[0006] Optionally, the comprehensive processing unit performs a logical relationship on the level signals corresponding to the n pulse signals output by the filtering detection unit to obtain a self-test signal, including: determining whether the level signals corresponding to the n pulse signals are all high-level signals; if the level signals corresponding to the n pulse signals are all high-level signals, the comprehensive processing unit performs a logical relationship on the level signals corresponding to the n pulse signals, and outputs a normal self-test signal; if at least one of the level signals corresponding to the n pulse signals is a low-level signal, the comprehensive processing unit performs a logical relationship on the level signals corresponding to the n pulse signals, and outputs an abnormal self-test signal.

[0007] Optionally, the stepper motor driver outputs a stepper motor drive signal including 4 pulse signals, the stepper motor drive signal is a PWM wave signal with a preset duty cycle, a voltage amplitude of 5V, and an input frequency requirement. The number of stepper motor drivers and the number of filter detection units are both 2.

[0008] Optionally, the filter detection unit is specifically composed of two dual monostable multivibrators, a plurality of resistors and a plurality of capacitors; the two dual monostable multivibrators include U19 and U22; the plurality of resistors include R97, R98, R105, R106, R111, R112, R119 and R120; the plurality of capacitors include C55, C56, C63, C66, C67, C72, C73, C78, ​​C81 and C82; pin 1 and pin 9 of U19 are respectively connected to the front of the stepper motor driver output through R105 and R106. 2-way pulse signal, pin 1 and pin 9 of U22 are connected to the last 2-way pulse signals output by the stepper motor driver through R119 and R120 respectively; pin 2, pin 3, pin 10 and pin 11 of U19 are connected to the power supply +5V, pin 8 is grounded, and pin 5 and pin 13 respectively output the level signals corresponding to the first 2-way pulse signals; pin 2, pin 3, pin 10 and pin 11 of U22 are connected to the power supply +5V, pin 8 is grounded, and pin 5 and pin 13 respectively output the level signals corresponding to the last 2-way pulse signals.

[0009] Optionally, the two dual monostable multivibrators are both of model JT54LS123.

[0010] Optionally, let the pulse width of the high level signal be t w , t w =0.45×R97×C55, assuming the input frequency of the stepper motor drive signal is F in , then the input frequency requirement of the stepper motor drive signal is F in ≥1 / t w .

[0011] Optionally, the integrated processing unit is specifically composed of a dual 4-way input AND gate chip U15, current limiting resistors R131 and R132, and a capacitor C44; pins 1, 2, 4 and 5 of U15 are respectively connected to the level signals corresponding to the 4-way pulse signals output by the first filter detection unit, and pins 9, 10, 12 and 13 of U15 are respectively connected to the level signals corresponding to the 4-way pulse signals output by the second filter detection unit; pins 6 and 8 of U15 respectively output self-test signals corresponding to the two stepper motor drivers.

[0012] Optionally, the dual 4-input AND gate chip is a 54HC21S.

[0013] The embodiment of the present application proposes a self-detection circuit for multi-channel stepper motor drive signals, which can improve the fault detection rate and fault isolation rate in products driven by stepper motors. When a product fails due to a stepper motor driver failure, the fault location can be quickly located, shortening the time period for fault repair, improving fault repair efficiency, reducing the number of maintenance personnel, lowering the requirements for the technical level of maintenance personnel, and greatly reducing the cost of fault repair and daily maintenance costs. At the same time, the filter detection unit and the comprehensive processing unit in the self-detection circuit are a combination of commonly used multivibrators and logic and chips, which do not need to occupy a large printed circuit board space, are reliable in function, and simplify programming work. For a stepper motor driver that outputs n-channel pulse signals, only one I / O interface is needed to realize detection, freeing up a large number of I / O interface resources, while realizing the detection function, greatly reducing the hardware cost.

[0014] On the second aspect, an embodiment of the present application also proposes a self-detection method for multiple stepper motor drive signals, comprising the following steps: respectively obtaining n pulse signals output by each stepper motor driver and filtering them, detecting the filtered n pulse signals to obtain level signals corresponding to each pulse signal; wherein, for any pulse signal, after receiving the rising edge trigger of the pulse signal, a high level signal is obtained, and a low level signal is obtained in an abnormal situation; performing a logical relationship and AND on the level signals corresponding to the n pulse signals to obtain a self-detection signal; and performing corresponding processing on the self-detection signal corresponding to each stepper motor driver.

[0015] In a third aspect, an embodiment of the present application further proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement a self-detection method for a multi-channel stepper motor drive signal as described above.

[0016] It can be understood that the beneficial effects of the second to third aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings herein are incorporated into the specification and constitute a part of the specification of the present application, showing embodiments consistent with the present application and, together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 It is a circuit diagram of a self-detection circuit for multi-channel stepper motor drive signals provided by an embodiment of the present application;

[0019] Figure 2 is a sub-circuit diagram of a filtering detection unit provided by an embodiment of the present application;

[0020] Figure 3 It is a schematic diagram of the working principle of a self-detection circuit for multi-channel stepper motor drive signals provided by an embodiment of the present application;

[0021] Figure 4 is a sub-circuit diagram of a comprehensive processing unit provided by an embodiment of the present application;

[0022] Figure 5 This is a flow chart of a self-detection method for multi-channel stepper motor drive signals provided by another embodiment of the present application. DETAILED DESCRIPTION

[0023] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0024] An embodiment of the present application proposes a self-detection circuit for multi-channel stepper motor drive signals. The implementation details of the self-detection circuit for multi-channel stepper motor drive signals proposed in this embodiment are specifically described below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.

[0025] The circuit diagram of a self-detection circuit for multi-channel stepper motor drive signals proposed in this embodiment is as follows: Figure 1 As shown, the self-detection circuit 20 includes: a plurality of filter detection units ( Figure 1 The figure shows the filter detection units, namely the filter detection unit A21 and the filter detection unit B22) and the integrated processing unit 23. Each filter detection unit is connected to the integrated processing unit 23, and each is also connected to a stepper motor driver (the filter detection unit A21 is connected to the stepper motor driver A11, and the filter detection unit B22 is connected to the stepper motor driver B12). The integrated processing unit 23 is also connected to the control unit 30.

[0026] The filter detection unit is used to filter the n pulse signals output by the connected stepper motor driver, and then detect them, and output the level signal corresponding to each pulse signal to the comprehensive processing unit 23. Where n is an integer greater than 1. For any pulse signal, the filter detection circuit outputs a high level signal after receiving the rising edge trigger of the pulse signal, and outputs a low level signal when abnormal.

[0027] The comprehensive processing unit 23 is used to perform a logical relationship on the level signals corresponding to the n pulse signals output by the filtering detection unit to obtain a self-test signal, and report the self-test signal corresponding to each stepper motor driver to the control unit 30, so that the control unit 30 can perform corresponding processing on each stepper motor driver according to the self-test signal.

[0028] It is worth noting that after receiving the level signals corresponding to the n-way pulse signals output by the filtering detection unit, the comprehensive processing unit 23 needs to determine whether the level signals corresponding to the n-way pulse signals are all high-level signals. If the level signals corresponding to the n-way pulse signals are all high-level signals, the comprehensive processing unit performs a logical relationship and the level signals corresponding to the n-way pulse signals, and outputs a normal self-test signal, indicating that the corresponding stepper motor driver is normal. If at least one of the level signals corresponding to the n-way pulse signals is a low-level signal, the comprehensive processing unit performs a logical relationship and the level signals corresponding to the n-way pulse signals, and outputs an abnormal self-test signal, indicating that the corresponding stepper motor driver has a fault.

[0029] That is to say, only when the n pulse signals output by the stepper motor driver are all normal (i.e., all high-level signals) as determined by the filter detection unit, the comprehensive processing unit will determine that the stepper motor driver is normal. When any one of the n pulse signals output by the stepper motor driver is abnormal (i.e., low-level signal) as determined by the filter detection unit, the comprehensive processing unit will determine that the stepper motor driver is faulty.

[0030] like Figure 1As shown, the stepper motor driver outputs a stepper motor driving signal including 4 pulse signals. The stepper motor driving signal is a PWM wave signal with a preset duty cycle, a voltage amplitude of 5V, and an input frequency requirement. The number of stepper motor drivers and the number of filter detection units are both 2. It can be seen that the self-detection circuit with two filter detection units can detect two stepper motor drivers at a time. If the traditional method is used to detect the stepper motor driver A11 and the stepper motor driver B12, 8 I / O interfaces need to be occupied. When the self-detection circuit proposed in this embodiment is used for detection, only 2 I / O interfaces need to be occupied, saving 75% of the interface resources.

[0031] In one example, the sub-circuit diagram of the filter detection unit is as follows: Figure 2 As shown, the filter detection unit is specifically composed of two dual monostable multivibrators, a number of resistors that play a current limiting role, and a number of capacitors that play a filtering role. The two dual monostable multivibrators are U19 and U22, the several resistors include R97, R98, R105, R106, R111, R112, R119 and R120, and the several capacitors include C55, C56, C63, C66, C67, C72, C73, C78, ​​C81 and C82.

[0032] Pin 1 and pin 9 of U19 are connected to the first two pulse signals output by the stepper motor driver through R105 and R106 respectively, and pin 1 and pin 9 of U22 are connected to the last two pulse signals output by the stepper motor driver through R119 and R120 respectively.

[0033] Pins 2, 3, 10 and 11 of U19 are connected to the power supply +5V, pin 8 is grounded, and pins 5 and 13 output the level signals corresponding to the first two pulse signals respectively. Pins 2, 3, 10 and 11 of U22 are connected to the power supply +5V, pin 8 is grounded, and pins 5 and 13 output the level signals corresponding to the last two pulse signals respectively.

[0034] The two dual monostable multivibrators U19 and U22 are both of model JT54LS123.

[0035] In one example, the self-detection circuit can work as follows Figure 3 As shown, one end of the multivibrator's port A or port B is in a stable level state, and the other end inputs a waveform with a duty cycle. When a rising edge or a falling edge is detected, the output end Q will output a stable pulse. If the frequency of the input pulse is high, the waveform of the output end Q will always remain at a high level. Assume that the pulse width of the high-level signal is t w , t w=0.45×R97×C55, assuming the input frequency of the stepper motor drive signal is F in , then the input frequency requirement of the stepper motor drive signal is F in ≥1 / t w .

[0036] In one example, the sub-circuit diagram of the integrated processing unit may be as follows: Figure 4 As shown, the integrated processing unit is specifically composed of a dual 4-way input AND gate chip U15, current limiting resistors R131 and R132, and a capacitor C44.

[0037] Pins 1, 2, 4 and 5 of U15 are respectively connected to the level signals corresponding to the 4 pulse signals output by the first filtering and detecting unit, and pins 9, 10, 12 and 13 of U15 are respectively connected to the level signals corresponding to the 4 pulse signals output by the second filtering and detecting unit.

[0038] Pins 6 and 8 of U15 output the self-test signals corresponding to the two stepper motor drivers respectively.

[0039] The model of the dual 4-input AND gate chip is 54HC21S.

[0040] In one example, the control unit only performs routine maintenance on the stepper motor driver whose self-test signal is a normal self-test signal, and discards and replaces the stepper motor driver whose self-test signal is an abnormal self-test signal. This is because the stepper motor driver mentioned in this embodiment is chip-level and does not need to be repaired.

[0041] The self-detection circuit proposed in this embodiment can improve the fault detection rate and fault isolation rate in products driven by stepper motors. When a product fails due to a stepper motor driver failure, the fault location can be quickly located, the time period for fault repair can be shortened, the efficiency of fault repair can be improved, the number of maintenance personnel can be reduced, the requirements for the technical level of maintenance personnel can be reduced, and the cost of fault repair and daily maintenance can be greatly reduced. At the same time, the filter detection unit and the comprehensive processing unit in the self-detection circuit are a combination of commonly used multivibrators and logic and chips, which do not need to occupy a large printed circuit board space, are reliable in function, and simplify programming work. For a stepper motor driver that outputs n-channel pulse signals, only one I / O interface is needed to realize detection, which frees up a large number of I / O interface resources. While realizing the detection function, the hardware cost is greatly reduced.

[0042] It is worth mentioning that all modules involved in this embodiment are logic modules. In practical applications, a logic unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.

[0043] Another embodiment of the present application proposes a self-detection method for a multi-channel stepper motor drive signal. The details of the self-detection method for a multi-channel stepper motor drive signal proposed in this embodiment are described in detail below. The following content is only for the convenience of understanding the implementation details provided, and is not necessary for the implementation of this embodiment. The specific process of the self-detection method for a multi-channel stepper motor drive signal proposed in this embodiment is as follows: Figure 5 As shown, including:

[0044] S1, respectively obtain the n pulse signals output by each stepper motor driver and filter them, detect the filtered n pulse signals, and obtain the level signals corresponding to each pulse signal. For any pulse signal, after receiving the rising edge trigger of the pulse signal, a high level signal is obtained, and a low level signal is obtained when it is abnormal.

[0045] S2, performing a logical relationship and operation on the level signals corresponding to the n pulse signals to obtain a self-test signal.

[0046] In a specific implementation, if the level signals corresponding to the n-way pulse signals are all high-level signals, the level signals corresponding to the n-way pulse signals are logically ANDed, and a normal self-test signal is output. If at least one of the level signals corresponding to the n-way pulse signals is a low-level signal, the level signals corresponding to the n-way pulse signals are logically ANDed, and an abnormal self-test signal is output.

[0047] S3, processing the corresponding self-test signal of each stepper motor driver.

[0048] The step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0049] It is not difficult to find that this embodiment is a method embodiment corresponding to the above embodiments, and this embodiment can be implemented in conjunction with the above embodiments. The relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.

[0050] Another embodiment of the present application relates to a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it can implement a self-detection method for multi-channel stepper motor drive signals as described in the above method embodiments.

[0051] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, ROM (Read-Only Memory), RAM (Random Access Memory), disk or optical disk and other media that can store program codes.

[0052] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.

Claims

1. A self-detection circuit for multi-channel stepper motor drive signals, characterized in that: include: A plurality of filter detection units and comprehensive processing units, each filter detection unit is connected to the comprehensive processing unit and each is connected to a stepper motor driver, and the comprehensive processing unit is also connected to the control unit; The filter detection unit is used to filter the n pulse signals output by the connected stepper motor driver, and then detect them, and output the level signal corresponding to each pulse signal to the comprehensive processing unit; wherein n is an integer greater than 1, and for any pulse signal, the filter detection circuit outputs a high level signal after receiving the rising edge trigger of the pulse signal, and outputs a low level signal when abnormal; The comprehensive processing unit is used to perform logical relationship and analysis on the level signals corresponding to the n pulse signals output by the filtering and detecting unit to obtain the self-test signal, and report the self-test signal corresponding to each stepper motor driver to the control unit, so that the control unit can perform processing on each stepper motor driver corresponding to the self-test signal.

2. The self-detection circuit of a multi-channel stepper motor drive signal according to claim 1, characterized in that: The comprehensive processing unit performs a logical relationship and operation on the level signals corresponding to the n pulse signals output by the filtering and detecting unit to obtain a self-test signal, including: Determine whether the level signals corresponding to the n pulse signals are all high level signals; If the level signals corresponding to the n-channel pulse signals are all high-level signals, the comprehensive processing unit performs a logical relationship AND on the level signals corresponding to the n-channel pulse signals and outputs a normal self-test signal; If at least one of the level signals corresponding to the n pulse signals is a low level signal, the comprehensive processing unit performs a logical AND operation on the level signals corresponding to the n pulse signals and outputs an abnormal self-detection signal.

3. The self-detection circuit of a multi-channel stepper motor drive signal according to claim 2, characterized in that: The stepper motor driver outputs a stepper motor drive signal including 4 pulse signals. The stepper motor drive signal is a PWM wave signal with a preset duty cycle, a voltage amplitude of 5V, and an input frequency requirement. The number of stepper motor drivers and the number of filter detection units are both 2.

4. The self-detection circuit of a multi-channel stepper motor drive signal according to claim 3, characterized in that: The filter detection unit is specifically composed of two dual monostable multivibrators, a number of resistors and a number of capacitors; Two dual monostable multivibrators include U19 and U22; a number of resistors including R97, R98, R105, R106, R111, R112, R119 and R120; Several capacitors include C55, C56, C63, C66, C67, C72, C73, C78, ​​C81 and C82; Pin 1 and pin 9 of U19 are connected to the first two pulse signals output by the stepper motor driver through R105 and R106 respectively, and pin 1 and pin 9 of U22 are connected to the last two pulse signals output by the stepper motor driver through R119 and R120 respectively; Pins 2, 3, 10 and 11 of U19 are connected to the power supply +5V, pin 8 is grounded, and pins 5 and 13 output the level signals corresponding to the first two pulse signals respectively; Pins 2, 3, 10 and 11 of U22 are connected to the power supply +5V, pin 8 is grounded, and pins 5 and 13 output level signals corresponding to the last two pulse signals respectively.

5. The self-detection circuit of multiple stepper motor drive signals according to claim 4, characterized in that: The models of the two dual monostable multivibrators are both JT54LS123.

6. The self-detection circuit of multiple stepper motor drive signals according to claim 4, characterized in that: Assume the pulse width of the high level signal is t w , t w =0.45×R97×C55, assuming the input frequency of the stepper motor drive signal is F in , then the input frequency requirement of the stepper motor drive signal is F in ≥1 / t w .

7. The self-detection circuit of multiple stepper motor drive signals according to claim 3, characterized in that: The integrated processing unit is specifically composed of a dual 4-way input AND gate chip U15, current limiting resistors R131 and R132, and a capacitor C44; Pins 1, 2, 4 and 5 of U15 are respectively connected to the level signals corresponding to the 4-way pulse signals output by the first filter detection unit, and pins 9, 10, 12 and 13 of U15 are respectively connected to the level signals corresponding to the 4-way pulse signals output by the second filter detection unit; Pins 6 and 8 of U15 output the self-test signals corresponding to the two stepper motor drivers respectively.

8. The self-detection circuit for multi-channel stepper motor drive signals according to claim 7, characterized in that: The model of the dual 4-input AND gate chip is 54HC21S.

9. A self-detection method for multi-channel stepper motor drive signals, characterized in that: include: The n pulse signals output by each stepper motor driver are obtained respectively and filtered, and the filtered n pulse signals are detected to obtain the level signals corresponding to each pulse signal; wherein, for any pulse signal, after receiving the rising edge trigger of the pulse signal, a high level signal is obtained, and a low level signal is obtained in case of abnormality; Performing a logical relationship and operation on the level signals corresponding to the n pulse signals to obtain a self-test signal; Each stepper motor driver is processed according to its corresponding self-test signal.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it can implement the self-detection method of multi-channel stepper motor drive signals as described in claim 9.