CN117849618A - Fault detection circuit and method of stepping motor and electronic equipment - Google Patents

Fault detection circuit and method of stepping motor and electronic equipment Download PDF

Info

Publication number
CN117849618A
CN117849618A CN202410051767.0A CN202410051767A CN117849618A CN 117849618 A CN117849618 A CN 117849618A CN 202410051767 A CN202410051767 A CN 202410051767A CN 117849618 A CN117849618 A CN 117849618A
Authority
CN
China
Prior art keywords
stepping motor
electric signal
fault detection
triode
control module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410051767.0A
Other languages
Chinese (zh)
Inventor
曾盼
陈伟明
单成龙
胡聪
雷龙
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Enboli Electric Appliance Co ltd
Original Assignee
Anhui Enboli Electric Appliance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anhui Enboli Electric Appliance Co ltd filed Critical Anhui Enboli Electric Appliance Co ltd
Priority to CN202410051767.0A priority Critical patent/CN117849618A/en
Publication of CN117849618A publication Critical patent/CN117849618A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Of Stepping Motors (AREA)

Abstract

The invention discloses a fault detection circuit, a fault detection method and electronic equipment of a stepping motor. The detection circuit includes: the device comprises a control module, a driving module and a detection module; the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal; the control module is also used for determining that the stepping motor is connected if the first electric signal is in a low level and the second electric signal is in a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined. The embodiment of the application can detect the working state of the stepping motor and improve the working reliability of the stepping motor; can be widely applied to the technical field of motor control.

Description

Fault detection circuit and method of stepping motor and electronic equipment
Technical Field
The invention relates to the technical field of motor control, in particular to a fault detection circuit and method of a stepping motor and electronic equipment.
Background
With the development of society, people have increasingly high requirements on life quality, and home appliances such as air conditioners, refrigerators, washing machines and the like have become necessary at home. These appliances all have electronic expansion valves and similar stepper motors. In the related art, the control mode of an electronic expansion valve and a similar stepping motor in the market is single, and only the on-off of a power supply of the stepping motor is controlled, whether the stepping motor is plugged or not is judged if faults exist, so that the reliability of a product is reduced, and the user experience is influenced.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art to a certain extent.
Therefore, an object of the present invention is to provide a highly reliable fault detection circuit, method, apparatus and storage medium for a stepping motor.
In order to achieve the technical purpose, the technical scheme adopted by the embodiment of the invention comprises the following steps:
in one aspect, an embodiment of the present invention provides a fault detection circuit of a stepper motor, including:
the fault detection circuit of the stepping motor of the embodiment of the invention comprises: the fault detection circuit comprises a control module, a driving module and a detection module; the output port of the control module is connected with the stepping motor through the driving module, and the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module; the stepping motor is connected with an input port of the control module through the detection module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal; the control module is further configured to determine that the stepper motor is connected if the first electrical signal is at a low level and the second electrical signal is at a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined. According to the embodiment of the application, the driving module is controlled through the first electric signal, then the stepping motor is driven to work, and the second electric signal is acquired through the detection module; then, the state of the stepping motor is determined by the first electrical signal and the second electrical signal. According to the embodiment of the application, the working state of the stepping motor can be detected, and the working reliability of the stepping motor is improved.
In addition, the fault detection circuit of the stepping motor according to the above embodiment of the present invention may further have the following additional technical features:
further, in the fault detection circuit of the stepper motor according to the embodiment of the invention, the driving module comprises a first triode and a second triode; the output port of the control module is connected with the base electrode of the first triode, the emitting electrode of the first triode is connected with the ground, and the collecting electrode of the first triode is connected with the base electrode of the second triode; the emitter of the second triode is connected with the first power supply through the stepping motor, and the collector of the second triode is grounded;
further, in one embodiment of the present invention, the detection module includes a first resistor and a second resistor; the emitter of the second triode is grounded through the first resistor and the second resistor, and the control module is used for receiving a second electric signal between the first resistor and the second resistor.
Further, in an embodiment of the present invention, the control module is further configured to detect that the second electrical signal is low if the first electrical signal is high, and detect that the second electrical signal is high if the first electrical signal is low, so as to determine that the stepper motor is in a normal working state.
Further, in one embodiment of the present invention, the driving module includes a third transistor and a relay; the relay comprises a coil and a switch; the output port of the control module is connected with the base electrode of the third triode, the collector electrode of the third triode is connected with the ground, and the emitter electrode of the third triode is connected with the first power supply through the coil; one end of the switch is grounded, and the other end of the switch is connected with the first power supply through the stepping motor.
On the other hand, the embodiment of the invention provides a fault detection method of a stepper motor, which is applied to the fault detection circuit of the stepper motor, and comprises the following steps:
determining a first electrical signal and detecting a second electrical signal;
determining the state of the stepping motor according to the level change of the first electric signal and the level change of the corresponding second electric signal;
the step motor state determining according to the level change of the first electric signal and the level change of the corresponding second electric signal includes:
if the first electric signal is at a low level and the second electric signal is at a high level, determining that the stepping motor is connected;
if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined.
Further, the fault detection method for the stepper motor according to the embodiment of the invention further comprises the following steps:
if the stepping motor is connected, the first electric signal is a first PWM signal with a first frequency, the second electric signal is detected to be a second PWM signal with the first frequency, the first PWM signal and the second PWM signal are complementary, and the stepping motor is determined to be in a normal working state.
Further, the fault detection method for the stepper motor according to the embodiment of the invention further comprises the following steps:
and if the first electric signal is in a low level, detecting that the second electric signal is in a low level, and determining that the stepping motor is not connected or the stepping motor has an open circuit fault.
In another aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor;
at least one memory for storing at least one program;
the at least one program, when executed by the at least one processor, causes the at least one processor to implement the fault detection method of the stepper motor described above.
In another aspect, an embodiment of the present invention provides a storage medium in which a processor-executable program is stored, which when executed by a processor, is configured to implement the above-described fault detection method for a stepper motor.
The fault detection circuit of the embodiment of the invention comprises a control module, a driving module and a detection module; the output port of the control module is connected with the stepping motor through the driving module, and the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module; the stepping motor is connected with an input port of the control module through the detection module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal; the control module is further configured to determine that the stepper motor is connected if the first electrical signal is at a low level and the second electrical signal is at a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined. According to the embodiment of the application, the driving module is controlled through the first electric signal, then the stepping motor is driven to work, and the second electric signal is acquired through the detection module; then, the state of the stepping motor is determined by the first electrical signal and the second electrical signal. According to the embodiment of the application, the working state of the stepping motor can be detected, and the working reliability of the stepping motor is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description is made with reference to the accompanying drawings of the embodiments of the present invention or the related technical solutions in the prior art, and it should be understood that the drawings in the following description are only for convenience and clarity of describing some embodiments in the technical solutions of the present invention, and other drawings may be obtained according to these drawings without the need of inventive labor for those skilled in the art.
FIG. 1 is a schematic diagram of a fault detection circuit of a stepper motor according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another embodiment of a fault detection circuit of a stepper motor according to the present invention;
FIG. 3 is a schematic diagram of the electrical principle of a first embodiment of the detection circuit according to the present invention;
FIG. 4 is a schematic diagram of the electrical principle of a second embodiment of the detection circuit according to the present invention;
FIG. 5 is a schematic diagram of the electrical principle of a third embodiment of the detection circuit according to the present invention;
FIG. 6 is a schematic diagram of the electrical principle of a fourth embodiment of the detection circuit according to the present invention;
FIG. 7 is a schematic diagram of the electrical principle of a fifth embodiment of the detection circuit according to the present invention;
FIG. 8 is a schematic diagram of the electrical principle of a sixth embodiment of the detection circuit according to the present invention;
FIG. 9 is a schematic diagram of one embodiment of a first electrical signal and a second electrical signal provided by the present invention;
FIG. 10 is a schematic flow chart diagram of an embodiment of a fault detection method for a stepper motor according to the present invention;
FIG. 11 is a schematic flow chart diagram of another embodiment of a fault detection method for a stepper motor according to the present invention;
fig. 12 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention. The step numbers in the following embodiments are set for convenience of illustration only, and the order between the steps is not limited in any way, and the execution order of the steps in the embodiments may be adaptively adjusted according to the understanding of those skilled in the art.
With the development of society, people have increasingly high requirements on life quality, and home appliances such as air conditioners, refrigerators, washing machines and the like have become necessary products at home. These appliances all have electronic expansion valves and similar stepper motors. However, the control mode of the electronic expansion valve and the similar stepping motor in the current market is single, and only the on-off of the power supply of the stepping motor is controlled, whether the stepping motor is inserted or not is judged if faults exist, so that the reliability of the product is reduced. In this regard, the present application proposes a control and fault detection circuit scheme for a stepper motor, which can rapidly determine a fault of the stepper motor. It should be noted that the control and fault detection circuit is applicable to electronic expansion valves and similar stepping motors without feedback function.
The following describes in detail a fault detection circuit and an implementation method of a stepping motor according to an embodiment of the present invention with reference to the accompanying drawings, and first describes a fault detection circuit of a stepping motor according to an embodiment of the present invention with reference to the accompanying drawings.
Fig. 1 is a schematic diagram of a fault detection circuit of a stepper motor according to an embodiment of the present invention, where the fault detection circuit includes a control module 110, a driving module 120, and a detection module 130;
the output port of the control module is connected with the stepping motor 140 through the driving module, and the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module;
the stepping motor is connected with an input port of the control module through the detection module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal;
the control module is also used for determining that the stepping motor is connected if the first electric signal is in a low level and the second electric signal is in a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined.
The embodiment of the application can perform fault detection on the stepping motor and also can perform fault detection on the electronic expansion valve with similar functions, and the application is not particularly limited. Specifically, the driving module in the embodiment of the application may be a circuit formed by transistors, and the switching may be implemented by a first electric signal, or may be a switching circuit formed by relays, or may be a circuit formed by other electronic devices capable of implementing switching actions. The driving module is enabled to act through the first electric signal output by the control module, and then the stepping motor is driven to work; and then the detection module is used for acquiring a second electric signal of the first power supply after passing through the stepping motor, and the working state of the stepping motor can be judged by comparing the first electric signal and the second electric signal at the same moment and the subsequent moment.
Illustratively, referring to the detection circuit schematic of one embodiment shown in FIG. 2, in combination with the circuit diagram shown in FIG. 3:
the electronic expansion valve and the similar stepping motor are provided with A, B, C, D four-way drive, and one-way drive is adopted for detection in the scheme.
Referring to fig. 3, a resistor R4, a resistor R5, a resistor R6, a capacitor C2, a transistor Q1, and a transistor Q2 form a stepper motor control circuit (i.e., a driving module in the embodiment of the present application). The CONTROL signal CONTROL is used for controlling the on-off of the triode Q1 (namely the first triode in the embodiment of the application), the resistor R5 is used as a CONTROL signal CONTROL current-limiting resistor, the resistor R6 is used for ensuring the triode Q1 to be reliably cut off when the CONTROL signal CONTROL is input in suspension, and the capacitor C2 is a filter capacitor. The resistor R4 is a current limiting resistor, current between the E pole and the B pole of the triode Q2 is limited, the resistor R3 acts on the triode Q1 when the triode Q1 is not conducted, the triode Q2 is ensured to be reliably cut off (namely a second triode in the embodiment of the application), the on-off of the triode Q2 controls the on-off of the stepping motor, the stepping motor works when the triode Q2 is turned on, and the stepping motor does not work when the triode Q1 is turned off. Where VDD is the module operating voltage (i.e., the first power supply in the embodiments of the present application). The resistor R1, the resistor R2, the capacitor C1 and the diode D1 form a detection circuit (namely a detection module in the embodiment of the application) for detecting whether the stepping motor is in fault or not. The resistor R1 and the resistor R2 are used for voltage division, the capacitor C1 is used for filtering, and the diode D1 is used for clamping. Wherein VCC is the MCU (i.e., the control module in the embodiments of the present application) operating voltage.
When the stepping motor works normally, the voltage of the detection point A is about the conducting voltage of the transistor Q2, a level is obtained after the voltage is divided by the resistor R1 and the resistor R2, the detection point A1 is the level detected by the MCU, and the detection signal TEST is a low level. For example, the maximum value of the saturation conduction voltage drop VCE (sat) of the transistor 9012 is-0.6V, the voltage is divided by the resistor R1 and the resistor R2, the detection point A1 is the level detected by the MCU, and the detection signal TEST is the low level.
When the electronic expansion valve is connected and does not work, the voltage of the detection point A is about the working voltage of the stepping motor, namely VDD, after the voltage is divided by the resistor R1 and the resistor R2, a level is obtained, the detection point A1 is the level detected by the MCU, and the detection signal TEST is a high level. For example, the operating voltage of most electronic expansion valves is 12V, and after the voltage is divided by the resistor R1 and the resistor R2, the detection point A1 is the level detected by the MCU, and the detection signal TEST is the high level. It should be noted that, when the resistance values of the resistor R1 and the resistor R2 are selected to require the stepper motor to work normally, the level of the detection point A1 is smaller than the maximum value of the low level which can be identified by the MCU; when the stepping motor is connected and does not work, the level of the detection point A1 is larger than the minimum value of the high level which can be identified by the MCU, and the series resistance of the resistor R1 and the resistor R2 cannot lead the module to be directly conducted without control, which is a sufficient and necessary condition.
It will be appreciated that the driver and sense modules of fig. 3 are one example, and that one skilled in the art could design other types of driver and sense circuits. Other switching transistors, e.g., MOS transistors, relays, may be substituted for transistors Q1, Q2; the detection circuit can be replaced by a voltage detection circuit built by other operational amplifiers, resistors and capacitors. Illustratively, as in fig. 4, the drive circuit is formed by a PNP transistor in combination with an NPN transistor. As shown in fig. 5, the PNP transistor is combined with the PNP transistor to form a driving circuit. As shown in fig. 6, the drive circuit is formed by an NPN transistor in combination with an NPN transistor. As shown in fig. 7, the NPN transistor is combined with the relay to form the driving circuit. As shown in fig. 8, the PNP transistor is combined with the relay to form the driving circuit.
As shown in fig. 9, the logic of the detection circuit is judged as follows:
as shown in the timing chart (1), when the CONTROL signal CONTROL is normally low and the detection signal TEST is normally high, detecting that the stepping motor is connected; to determine whether the stepper motor has an open circuit failure, the detection of step (3) is required.
As shown in the timing chart (2), when the CONTROL signal CONTROL is low and the detection signal TEST is low, detecting that the stepper motor is not connected or the stepper motor is open;
as shown in the timing chart (3), when the CONTROL signal CONTROL is a regular high-low variation driving level and the detection signal TEST is a normal low, the stepper motor does not work normally, and the open circuit fault is determined;
as shown in the timing chart (4), when the CONTROL signal CONTROL is a driving level with regular high and low variation, and the detection signal TEST is a corresponding turning level, the stepper motor works normally, and no fault is determined.
Of course, fig. 9 shows a first electrical signal and a corresponding second electrical signal under a control logic, and a person skilled in the art can design corresponding relations between the first electrical signal and the second electrical signal in other forms according to the operation principle of the stepper motor, and determine the working state of the stepper motor by designing the level change corresponding relation of the first electrical signal and detecting the level change corresponding relation of the second electrical signal.
According to the embodiment of the application, whether the electronic expansion valve and the similar stepping motor are inserted or not can be identified through the detection circuit; the fault of the electronic expansion valve and the similar stepping motor can be accurately and quickly judged. Meanwhile, the control logic is simple, and the control scheme is low in cost; chip resources can be saved. Specifically, whether the stepping motor is inserted or not is identified, so that the phenomenon that the product functions are inconsistent with propaganda due to missing is avoided; the fault of the stepping motor can be accurately and rapidly judged, the problem that the stepping motor fails and does not work, but products cannot be judged is solved, and after-sales service is effectively improved.
Optionally, in the fault detection circuit of a stepper motor in the embodiment of the present invention, the driving module includes a first triode and a second triode; the output port of the control module is connected with the base electrode of the first triode, the emitter electrode of the first triode is connected with the ground, and the collector electrode of the first triode is connected with the base electrode of the second triode; the emitter of the second triode is connected with the first power supply through a stepping motor, and the collector of the second triode is grounded.
Optionally, in the fault detection circuit of the stepper motor in the embodiment of the invention, the detection module includes a first resistor and a second resistor; the emitter of the second triode is grounded through the first resistor and the second resistor, and the control module is used for receiving a second electric signal between the first resistor and the second resistor.
Optionally, in the fault detection circuit for a stepper motor according to the embodiment of the present invention, the control module is further configured to detect that the second electrical signal is low if the first electrical signal is high, and detect that the second electrical signal is high if the first electrical signal is low, so as to determine that the stepper motor is in a normal working state.
Optionally, in the fault detection circuit of the stepper motor in the embodiment of the invention, the driving module includes a third triode and a relay; the relay comprises a coil and a switch; the output port of the control module is connected with the base electrode of the third triode, the collector electrode of the third triode is connected with the ground, and the emitter electrode of the third triode is connected with the first power supply through a coil; one end of the switch is grounded, and the other end of the switch is connected with a first power supply through a stepping motor.
The detection circuit provided by the embodiment of the application comprises: the fault detection circuit comprises a control module, a driving module and a detection module; the output port of the control module is connected with the stepping motor through the driving module, and the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module; the stepping motor is connected with an input port of the control module through the detection module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal; the control module is also used for determining that the stepping motor is connected if the first electric signal is in a low level and the second electric signal is in a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined. According to the embodiment of the application, the driving module is controlled through the first electric signal, then the stepping motor is driven to work, and the second electric signal is acquired through the detection module; then, the state of the stepping motor is determined by the first electrical signal and the second electrical signal. According to the embodiment of the application, the working state of the stepping motor can be detected, and the working reliability of the stepping motor is improved.
Next, a fault detection method of a stepping motor according to an embodiment of the present invention will be described with reference to the accompanying drawings.
Referring to fig. 10, a fault detection method for a stepper motor is provided in an embodiment of the present invention, and the fault detection method for a stepper motor in an embodiment of the present invention may be applied to a terminal, a server, software running in a terminal or a server, and the like. The terminal may be, but is not limited to, a tablet computer, a notebook computer, a desktop computer, etc. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms. The fault detection method of the stepping motor in the embodiment of the invention is applied to the fault detection circuit of the stepping motor, and mainly comprises the following steps:
s100: determining a first electrical signal and detecting a second electrical signal;
s200: determining the state of the stepping motor according to the level change of the first electric signal and the level change of the corresponding second electric signal;
referring to fig. 11, determining a state of the stepping motor according to a level change of the first electrical signal and a corresponding level change of the second electrical signal includes:
if the first electric signal is at a low level and the second electric signal is at a high level, determining that the stepping motor is connected;
if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined.
In some possible embodiments, the present application does not limit the duration of the high and low levels in the first electrical signal.
Optionally, the fault detection method for a stepper motor in the embodiment of the present invention further includes:
if the stepping motor is connected, the first electric signal is a first PWM signal with a first frequency, the second electric signal is detected to be a second PWM signal with the first frequency, the first PWM signal and the second PWM signal are complementary, and the stepping motor is determined to be in a normal working state.
In some possible embodiments, the PWM signal in fig. 9 is in one form, and for different types of stepper motors, the PWM signal may be in any form. Meanwhile, the method can also design the time sequence relation of four paths of driving first electric signals, detect the level state and the time sequence relation of the corresponding four paths of second electric signals and judge the working state of the stepping motor.
Optionally, the fault detection method for a stepper motor in the embodiment of the present invention further includes: if the first electric signal is at a low level, detecting that the second electric signal is at a low level, and determining that the stepping motor is not connected or the stepping motor is in open circuit fault.
It can be seen that, the content in the above system embodiment is applicable to the method embodiment, and the functions specifically implemented by the method embodiment are the same as those of the system embodiment, and the beneficial effects achieved by the system embodiment are the same as those achieved by the system embodiment.
Referring to fig. 12, an embodiment of the present invention provides an electronic device including:
at least one processor 810;
at least one memory 820 for storing at least one program;
the at least one program, when executed by the at least one processor 810, causes the at least one processor 810 to implement a fault detection method for a stepper motor.
Similarly, the content in the above method embodiment is applicable to the embodiment of the present device, and the functions specifically implemented by the embodiment of the present device are the same as those of the embodiment of the above method, and the beneficial effects achieved by the embodiment of the above method are the same as those achieved by the embodiment of the above method.
The embodiment of the invention also provides a computer readable storage medium, in which a program executable by a processor is stored, which when executed by the processor is used to perform the above-mentioned fault detection method of the stepper motor.
Similarly, the content in the above method embodiment is applicable to the present storage medium embodiment, and the specific functions of the present storage medium embodiment are the same as those of the above method embodiment, and the achieved beneficial effects are the same as those of the above method embodiment.
In some alternative embodiments, the functions/acts noted in the block diagrams may occur out of the order noted in the operational illustrations. For example, two blocks shown in succession may in fact be executed substantially concurrently or the blocks may sometimes be executed in the reverse order, depending upon the functionality/acts involved. Furthermore, the embodiments presented and described in the flowcharts of the present invention are provided by way of example in order to provide a more thorough understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed, and in which sub-operations described as part of a larger operation are performed independently.
Furthermore, while the invention is described in the context of functional modules, it should be appreciated that, unless otherwise indicated, one or more of the functions and/or features may be integrated in a single physical device and/or software module or may be implemented in separate physical devices or software modules. It will also be appreciated that a detailed discussion of the actual implementation of each module is not necessary to an understanding of the present invention. Rather, the actual implementation of the various functional modules in the apparatus disclosed herein will be apparent to those skilled in the art from consideration of their attributes, functions and internal relationships. Accordingly, one of ordinary skill in the art can implement the invention as set forth in the claims without undue experimentation. It is also to be understood that the specific concepts disclosed are merely illustrative and are not intended to be limiting upon the scope of the invention, which is to be defined in the appended claims and their full scope of equivalents.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in the form of a software product stored in a storage medium, including several programs for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable programs for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with a program execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the programs from the program execution system, apparatus, or device and execute the programs. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the program execution system, apparatus, or device.
More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable program execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like.
In the foregoing description of the present specification, reference has been made to the terms "one embodiment/example", "another embodiment/example", "certain embodiments/examples", and the like, means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.
While the preferred embodiment of the present invention has been described in detail, the present invention is not limited to the embodiments described above, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit of the present invention, and these equivalent modifications and substitutions are intended to be included in the scope of the present invention as defined in the appended claims.

Claims (10)

1. The fault detection circuit of the stepping motor is characterized by comprising a control module, a driving module and a detection module;
the output port of the control module is connected with the stepping motor through the driving module, and the control module is used for outputting a first electric signal to the driving module and driving the stepping motor to work through the driving module;
the stepping motor is connected with an input port of the control module through the detection module; the control module is also used for acquiring a second electric signal of the first power supply after passing through the stepping motor through the detection module so as to judge the state of the stepping motor according to the second electric signal;
the control module is further configured to determine that the stepper motor is connected if the first electrical signal is at a low level and the second electrical signal is at a high level; if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined.
2. The fault detection circuit of a stepper motor of claim 1, wherein the drive module comprises a first transistor and a second transistor; the output port of the control module is connected with the base electrode of the first triode, the emitting electrode of the first triode is connected with the ground, and the collecting electrode of the first triode is connected with the base electrode of the second triode; the emitter of the second triode is connected with the first power supply through the stepping motor, and the collector of the second triode is grounded.
3. The fault detection circuit of a stepper motor of claim 2, wherein the detection module comprises a first resistor and a second resistor; the emitter of the second triode is grounded through the first resistor and the second resistor, and the control module is used for receiving a second electric signal between the first resistor and the second resistor.
4. The fault detection circuit of a stepper motor of claim 1, wherein the control module is further configured to detect that the second electrical signal is low if the first electrical signal is high, and detect that the second electrical signal is high if the first electrical signal is low, and determine that the stepper motor is in a normal operating state.
5. The fault detection circuit of a stepper motor of claim 1, wherein the drive module comprises a third transistor and a relay; the relay comprises a coil and a switch; the output port of the control module is connected with the base electrode of the third triode, the collector electrode of the third triode is connected with the ground, and the emitter electrode of the third triode is connected with the first power supply through the coil; one end of the switch is grounded, and the other end of the switch is connected with the first power supply through the stepping motor.
6. A fault detection method for a stepper motor as defined in claim 1, applied to a fault detection circuit for a stepper motor, the method comprising:
determining a first electrical signal and detecting a second electrical signal;
determining the state of the stepping motor according to the level change of the first electric signal and the level change of the corresponding second electric signal;
the step motor state determining according to the level change of the first electric signal and the level change of the corresponding second electric signal includes:
if the first electric signal is at a low level and the second electric signal is at a high level, determining that the stepping motor is connected;
if the stepping motor is connected, the first electric signal is high level, the second electric signal is detected to be low level, and if the first electric signal is low level, the second electric signal is detected to be low level, and the open circuit fault of the stepping motor is determined.
7. The fault detection method of a stepper motor of claim 6, further comprising:
if the stepping motor is connected, the first electric signal is a first PWM signal with a first frequency, the second electric signal is detected to be a second PWM signal with the first frequency, the first PWM signal and the second PWM signal are complementary, and the stepping motor is determined to be in a normal working state.
8. The fault detection method of a stepper motor of claim 6, further comprising:
and if the first electric signal is in a low level, detecting that the second electric signal is in a low level, and determining that the stepping motor is not connected or the stepping motor has an open circuit fault.
9. An electronic device, comprising:
at least one processor;
at least one memory for storing at least one program;
the at least one program, when executed by the at least one processor, causes the at least one processor to implement the fault detection method of a stepper motor as claimed in any one of claims 6 to 8.
10. A computer-readable storage medium in which a processor-executable program is stored, characterized in that the processor-executable program is for realizing the fault detection method of the stepping motor according to any one of claims 6 to 8 when being executed by a processor.
CN202410051767.0A 2024-01-12 2024-01-12 Fault detection circuit and method of stepping motor and electronic equipment Pending CN117849618A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410051767.0A CN117849618A (en) 2024-01-12 2024-01-12 Fault detection circuit and method of stepping motor and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410051767.0A CN117849618A (en) 2024-01-12 2024-01-12 Fault detection circuit and method of stepping motor and electronic equipment

Publications (1)

Publication Number Publication Date
CN117849618A true CN117849618A (en) 2024-04-09

Family

ID=90537970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410051767.0A Pending CN117849618A (en) 2024-01-12 2024-01-12 Fault detection circuit and method of stepping motor and electronic equipment

Country Status (1)

Country Link
CN (1) CN117849618A (en)

Similar Documents

Publication Publication Date Title
US10340908B2 (en) Half-bridge driver fault diagnostic system and method
KR100221907B1 (en) Method and device for functional monitoring of an electrical load
CN211429601U (en) Open circuit and short circuit detection circuit and LED switching power supply control system
CN113752838B (en) Driving circuit
CN117849618A (en) Fault detection circuit and method of stepping motor and electronic equipment
JP2001238347A (en) Power supply control circuit
CN100463321C (en) Circuit for preventing chip from misoperation
JP4124651B2 (en) Method and apparatus for monitoring the function of an output stage in which pulse width modulation is used
EP2458707B1 (en) Stand-by circuit for household appliances
US7906974B2 (en) Method for checking an inductive load
CN110518543B (en) Short-circuit protection circuit and power supply system
EP1100100A1 (en) A circuit for detecting the state of electrical switches
US6242821B1 (en) CMOS passive input circuit
US6677739B1 (en) High-reliability, low-cost, pulse-width-modulated vehicular alternator voltage regulator with short-circuit protection and low inserted electrical noise
CN220096534U (en) Detection system for starting-up mode of electric valve of electric two-wheel vehicle
US9625933B1 (en) Voltage regulation circuit
CN217847075U (en) MCU power-on control circuit
CN218920399U (en) Soft shutdown circuit and electronic equipment
JPH0422310Y2 (en)
EP2458708B1 (en) Stand-by circuit for household appliances
CN115327365A (en) Breaker sub-module fault detection device and method
JPH0142054Y2 (en)
JPH0233210B2 (en)
CN117929957A (en) Intelligent power module detection method, system, electronic equipment and medium
JPH0720614Y2 (en) Current detection circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination