Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a multifunctional stepping motor driver, a driving device thereof, and an automation device. The stepping motor drive can be connected with various command signals with different voltage values at low cost.
In order to solve the above technical problem, an embodiment of a first aspect of the present invention provides a multifunctional stepping motor driver, including:
a command switch switching circuit;
the optical coupling unit is electrically connected with the instruction switch switching circuit and comprises a first optical coupler;
a microprocessor electrically connected with the optical coupling unit;
a driving unit electrically connected with the microprocessor;
the winding interface is electrically connected with the driving unit and is used for being electrically connected with a motor and controlling the action of the motor;
wherein the command switch switching circuit comprises at least one signal switching circuit;
the signal switching circuit is used for matching and switching different resistance values according to different voltage values of the instruction signal.
In an embodiment of the first aspect of the present invention, the instruction signal is one or more of a pulse signal, a direction signal, and an enable signal.
In an embodiment of the first aspect of the present invention, the signal switching circuit includes a first interface, a second interface, and a variable resistance unit;
the variable resistance unit is respectively electrically connected with the first interface and the first end of the input side of the first optical coupler, and is switched and matched into different resistance values according to different voltage values of the first interface access instruction signal;
a second interface electrically connected to a second end of the input side of the first optocoupler;
wherein the first optocoupler output side is electrically connected with the microprocessor.
In an embodiment of the first aspect of the present invention, the resistance varying unit includes at least one switch and at least two resistors respectively connected to the switch; when the change-over switch is switched to different positions, the change-over switch is electrically connected with the resistors at the corresponding positions, and the variable resistance units output different resistance values.
In an embodiment of the first aspect of the present invention, the switch is a single pole double throw switch.
In an embodiment of the first aspect of the present invention, the instruction switch switching circuit includes two signal switching circuits, the optical coupling unit includes two first optical couplers, and the two signal switching circuits are electrically connected to the two first optical couplers, respectively; one signal switching circuit is used for accessing one of three signals of a pulse signal, a direction signal and an enabling signal, and the other signal switching circuit is used for accessing one of the remaining two signals.
In the first embodiment of the first aspect of the present invention, the switches in the two signal switching circuits are operated in a linked manner.
In the first embodiment of the first aspect of the present invention, the two switches of the linkage action are a double-pole double-throw switch or a combination of two single-pole double-throw switches.
In an embodiment of the first aspect of the present invention, the instruction switch switching circuit includes three signal switching circuits, the optical coupling unit includes three first optical couplers, the three signal switching circuits are electrically connected to the three first optical couplers, one signal switching circuit is used for receiving a direction signal, another signal switching circuit is used for receiving a pulse signal, and the other signal switching circuit is used for receiving an enable signal.
In the first embodiment of the first aspect of the present invention, the switches in the three signal switching circuits are operated in a linked manner.
In the first embodiment of the first aspect of the present invention, the three switches of the linked action are a three-pole double-throw switch or a combination of a two-pole double-throw switch and a single-pole double-throw switch or a combination of three single-pole double-throw switches.
In an embodiment of the first aspect of the present invention, the optical coupling unit further includes a second optical coupler, and an output side of the second optical coupler is electrically connected to the microprocessor; the driver includes at least one instruction compatible circuit, the instruction compatible circuit including:
a third interface, which can be used for accessing command signals with different voltage values;
a collector of the first triode is electrically connected with the third interface;
one end of the third resistor is electrically connected with the third interface;
the anode of the second diode is electrically connected with the other end of the third resistor, and the cathode of the second diode is electrically connected with the base electrode of the first triode;
one end of the fourth resistor is electrically connected with the emitter of the first triode, and the other end of the fourth resistor is electrically connected with the first end of the input side of the second optical coupler;
a fourth interface electrically connected to a second end of the input side of the second optocoupler;
and the cathode of the voltage stabilizing tube is electrically connected with the anode of the second diode, and the anode of the voltage stabilizing tube is electrically connected with the second end of the input side of the second optical coupler.
In an embodiment of the first aspect of the present invention, the instruction compatible circuit further includes a second capacitor, and two ends of the second capacitor are electrically connected to the first end and the second end of the input side of the second optical coupler, respectively.
In an embodiment of the first aspect of the present invention, the instruction compatible circuit further includes an anti-reverse diode, the anti-reverse diode is connected in series to an electrical loop formed by the third interface, the collector of the first triode, the emitter of the first triode, the fourth resistor, the second optical coupler, and the fourth interface, the anode of the anti-reverse diode is electrically connected to the third interface, and the cathode of the anti-reverse diode is electrically connected to the fourth interface.
In an embodiment of the first aspect of the present invention, the instruction signal accessed by the instruction compatible circuit is one or more of a pulse signal, a direction signal, and an enable signal.
In an embodiment of the first aspect of the present invention, the driver includes two instruction compatible circuits, the optical coupling unit includes two second optical couplers, and the two instruction compatible circuits are electrically connected to the two second optical couplers, respectively; one of the instruction compatible circuits is used for accessing one of three signals of a pulse signal, a direction signal and an enabling signal, and the other instruction compatible circuit is used for accessing one of the remaining two signals.
In an embodiment of the first aspect of the present invention, the stepper motor driver comprises a first common interface; the optical coupling unit further comprises a third optical coupler, and the input side of the third optical coupler is electrically connected with the microprocessor;
the step motor driver still includes the band-type brake unit, the band-type brake unit with the opto-coupler unit electricity is connected, the band-type brake unit includes:
the brake interface is used for being electrically connected with a relay, and the relay is used for being electrically connected with a brake device in the motor;
a base electrode of the second triode is electrically connected with a first end of the output side of the fourth optical coupler, a collector electrode of the second triode is electrically connected with a second end of the output side of the third optical coupler and is commonly electrically connected with the brake interface, and an emitter electrode of the second triode is connected with the first common interface;
and the fifth resistor is electrically connected between the base electrode and the emitter electrode of the second triode.
In an embodiment of the first aspect of the present invention, the stepper motor driver comprises a first common interface; the optical coupling unit further comprises a third optical coupler, and the input side of the third optical coupler is electrically connected with the microprocessor;
the step motor driver still includes the band-type brake unit, the band-type brake unit with the opto-coupler unit electricity is connected, the band-type brake unit includes:
the motor comprises a band-type brake interface and a power interface, wherein the power interface is used for being externally connected with the anode of a power supply, and the band-type brake interface and the power interface are respectively used for being electrically connected with two ends of a band-type brake in the motor;
a base electrode of the second triode is electrically connected with a first end of the output side of the fourth optical coupler, a collector electrode of the second triode is electrically connected with a second end of the output side of the third optical coupler and is commonly electrically connected with the brake interface, and an emitter electrode of the second triode is connected with the first common interface;
and the fifth resistor is electrically connected between the base electrode and the emitter electrode of the second triode.
In an embodiment of the first aspect of the present invention, the brake unit further includes a fourth diode, an anode of the fourth diode is electrically connected to the brake interface, and a cathode of the fourth diode is electrically connected to the power supply interface.
In an embodiment of the first aspect of the present invention, the stepping motor driver further includes an alarm unit, the alarm unit is electrically connected to the microprocessor through an optical coupling unit, an interface of the alarm unit is used to be electrically connected to an external alarm device, and the alarm unit is used to receive a signal sent by the microprocessor whether the stepping motor driver and/or the motor is abnormally operated.
In an embodiment of the first aspect of the present invention, the stepping motor driver further includes a dial switch, the dial switch is electrically connected to the microprocessor, and the microprocessor realizes different functions when dials of the dial switch are dialed to different positions.
In an embodiment of the first aspect of the present invention, the stepper motor driver comprises at least two dip switches.
In an embodiment of the first aspect of the present invention, the stepper motor driver comprises at least one 8-bit dip switch.
In an embodiment of the first aspect of the present invention, the microprocessor is an ARM processor.
In an embodiment of the first aspect of the present invention, the driver further comprises a display unit, the display unit being electrically connected to the microprocessor; the display unit comprises one or more of an LED lamp, a nixie tube and a display screen for displaying information.
In an embodiment of the first aspect of the present invention, the display unit comprises two display indicator lights, one indicator light for displaying power supply information of the driver and the other indicator light for displaying alarm information.
In a second aspect, an embodiment of the present invention provides a driving device, which includes a motor, and the driving device includes the above stepping motor driver.
According to a third aspect of the invention, an embodiment provides an automation device, which comprises the driving device.
The embodiment of the invention has the following beneficial effects:
the multifunctional motor driver comprises a command switch switching circuit, wherein the command switch switching circuit comprises at least one signal switching circuit, and the signal switching circuit is used for matching and switching different resistance values according to different voltage values of command signals. Therefore, when the signal switching circuit is connected with an external control system, the signal switching circuit can be compatible with control systems of different manufacturers, so that the application range of the signal switching circuit, namely the application range of the motor driver, is expanded. Moreover, when the command signal of one voltage value needs to be changed into the command signal of another voltage value, the operation of matching and switching by the signal switching circuit is very simple.
The multifunctional motor driver further comprises various band-type brake circuits, so that the band-type brake function of the motor driver is realized, and great convenience is brought to use and safety of users.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprising" and "having," and any variations thereof, as appearing in the specification, claims and drawings of this application, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. Furthermore, the terms "first," "second," and "third," etc. are used to distinguish between different objects and are not used to describe a particular order.
First embodiment
The embodiment of the invention provides a multifunctional stepping motor driver which is used for driving a motor. Referring to fig. 1, the stepping motor driver includes a command switch switching circuit 210, an optical coupling unit 150, a microprocessor 121, a driving unit 180, and a winding interface 183.
In this embodiment, the command switch switching circuit 210 is used to switch in a command signal. With continued reference to fig. 1, the command switch switching circuit 210 includes at least one signal switching circuit 211, for example, the command switch switching circuit 210 includes one signal switching circuit 211, two signal switching circuits 211, three signal switching circuits 211 or more signal switching circuits 211, and in the embodiment, the command switch switching circuit 210 includes one signal switching circuit 211.
In this embodiment, the signal switching circuit 211 is used for performing matching switching of different resistance values according to different voltage values of the command signal. That is, when the signal switching circuit 211 is to be inputted with a command signal of a first voltage value, the signal switching circuit 211 can be switched to a resistance value corresponding to the first voltage value by manual switching of a user, and then the signal switching circuit 211 is inputted with the command signal of the first voltage value; when the signal switching circuit 211 is to be inputted with a command signal of a second voltage value, the first voltage value and the second voltage value are different, and through manual switching by a user, the signal switching circuit 211 can be switched to match the resistance value corresponding to the second voltage value, then the signal switching circuit 211 is inputted with a command signal of a second voltage value, etc., the signal switching circuit 211 is switched to match the resistance value corresponding to the first voltage value, the signal switching circuit 211 is switched to match the resistance value corresponding to the second voltage value, etc., different resistance values matched by the signal switching circuit 211 are designed when the research and development personnel research and develop, since command signals of different voltage values are input, the signal switching circuit 211 switches to different resistance values in a matched manner, so that the components in the optical coupling unit 150 electrically connected to the signal switching circuit 211 are not burned out, thus, the signal switching circuit 211 in the embodiment of the present invention can be input with instruction signals having different voltage values. In addition, in another embodiment of the present invention, the signal switching circuit 211 may also automatically switch to the matched resistance value according to different voltage values of the input command signal, that is, the switching does not need to be performed manually by the user.
In this embodiment, the optical coupling unit 150 is electrically connected to the command switch switching circuit 210. Specifically, the optical coupling unit 150 includes a first optical coupler OC1, both ends of an input side of the first optical coupler OC1 are electrically connected to the signal switching circuit 211, and both ends of an output side of the first optical coupler OC1 are electrically connected to the microprocessor 121. The optical coupler unit 150 includes at least one first optical coupler OC1, for example, the optical coupler unit 150 includes one, two, three or more first optical couplers OC1, the number of first optical couplers OC1 included in the optical coupler unit 150 corresponds to the number of signal switching circuits 211 included in the command switch switching circuit 210, and in this embodiment, the optical coupler unit 150 includes one first optical coupler OC 1.
In this embodiment, the microprocessor 121 is electrically connected to the optical coupler unit 150, the microprocessor 121 processes the signal transmitted from the optical coupler unit 150, and here, the microprocessor 121 processes the signal transmitted from the first optical coupler OC 1.
In this embodiment, the driving unit 180 is electrically connected to the microprocessor 121, the driving unit 180 is configured to amplify and invert power of a signal transmitted by the microprocessor 121, the winding interface 183 is electrically connected to the driving unit 180, and the winding interface 183 is configured to drive an external motor. Specifically, in this embodiment, the driving unit 180 includes a driving chip 181 and an inverter bridge circuit 182, the driving chip 181 is electrically connected to the microprocessor 121, and the inverter bridge circuit 182 is electrically connected to the driving chip 181 and the winding interface 183, respectively. In this embodiment, the driving chip 181 is configured to perform power amplification on a signal transmitted by the microprocessor 121, and the inverter bridge circuit 182 is configured to invert the signal transmitted by the driving chip 181.
In the present embodiment, since the stepping motor driver includes the command switch switching circuit 210, the command switch switching circuit 210 includes at least one signal switching circuit 211, and the signal switching circuit 211 is used for matching switching of different resistance values according to different voltage values of the command signal. Therefore, when the signal switching circuit 211 is connected to an external control system, the control systems of different manufacturers can be compatible, for example, the command signal output by the control system of one manufacturer is 5V, and the command signal output by the control system of another manufacturer is 24V, and at this time, the signal switching circuit 211 of the present invention can be compatible with the control systems provided by the two manufacturers, so as to expand the application range of the command switch switching circuit 210 of the present invention, that is, the application range of the stepping motor driver of the present invention. Moreover, when it is necessary to switch from a command signal of one voltage value to a command signal of another voltage value, the operation of the signal switching circuit 211 for matching switching is also very simple.
Referring to fig. 2, in the present embodiment, the signal switching circuit 211 includes a first interface Du1, a second interface Du2, and a resistance varying unit 211 a.
In this embodiment, the first interface Du1 may be used to receive command signals with different voltage values, and the command signals with different voltages may be command signals with two different voltage values, command signals with three different voltage values, command signals with four different voltage values, or command signals with more different voltage values. The instruction signal can be one or more of a pulse signal, a direction signal and an enabling signal.
In this embodiment, the first interface Du1 is used to receive two pulse signals with different voltage values, the voltage values of the two pulse signals are 5V and 24V, respectively, and the pulse signals are finally converted into the angular displacement of the motor. In this embodiment, the first interface Du1 is a stepping motor driver for externally connecting other control systems, the control system sends a pulse signal to the first interface Du1, and the first interface Du1 of this embodiment can be used to access pulse signals with different voltage values because the voltage values of the pulse signals output by the control systems of different manufacturers are different, so that the first signal switching circuit 211 of the present invention can be compatible with the control systems of different manufacturers. For example, the voltage value of the pulse signal output by the control system of one manufacturer is 5V, and the voltage value of the pulse signal output by the control system of another manufacturer is 24V, and at this time, the control systems provided by the two manufacturers can be compatible through the first signal switching circuit 211 of the present invention.
In this embodiment, the variable resistance unit 211a is electrically connected to the first interface Du1 and the first end of the input side of the first optical coupler OC1, respectively, the variable resistance unit 211a is manually or automatically switched and matched to different resistance values according to different voltage values of the first interface Du1 access command signal, for example, when the voltage value of the pulse signal accessed by the first interface Du1 is 5V, the variable resistance unit 211a is switched to a smaller resistance value, and when the voltage value of the pulse signal accessed by the first interface Du1 is 24V, the variable resistance unit 211a is switched to a larger resistance value in order to prevent the first optical coupler OC1 electrically connected to the first signal switching circuit 211 from being damaged. In this embodiment, the resistance varying unit 211a is manually adjusted to different resistance values by a mechanical switch.
In this embodiment, the second interface Du2 is electrically connected to the second end of the input side of the first optical coupler OC 1.
In this embodiment, the resistance varying unit 211a may form two resistance values, and the two resistance values respectively correspond to two different voltage values of the pulse signal accessed by the first interface Du 1. In addition, in another embodiment of the present invention, the resistance varying unit 211a may form a plurality of resistance values, and the plurality of resistance values respectively correspond to a plurality of different voltage values of the pulse signal accessed by the first interface Du 1.
Referring to fig. 2, in the present embodiment, the resistance-changing unit 211a includes a switch S, and a first resistor R1 and a second resistor R2 respectively connected to the switch S, where resistance values of the first resistor R1 and the second resistor R2 are different, a resistance value of the first resistor R1 is smaller than a resistance value of the second resistor R2 in the present embodiment, a voltage value of the first resistor R1 corresponding to the pulse signal accessed by the first interface Du1 is 5V, and a voltage value of the second resistor R2 corresponding to the pulse signal accessed by the first interface Du1 is 24V. In addition, in other embodiments of the present invention, the variable resistance unit 211a may further include a plurality of switches S and a plurality of resistors respectively connected to the switches S. In this embodiment, when the switch S is switched to a different position, the switch S is electrically connected to the resistor at the corresponding position, and the resistance varying unit 211a outputs a different resistance value, for example, when the voltage value of the pulse signal to be accessed by the first interface Du1 is 5V, the user may toggle the switch S to electrically connect the switch S to the first resistor R1, the resistance value of the resistance varying unit 211a is the resistance value of the first resistor R1, when the voltage value of the pulse signal to be accessed by the first interface Du1 is 24V, the user may toggle the switch S to electrically connect the switch S to the second resistor R2, and the resistance value of the resistance varying unit 211a is the resistance value of the second resistor R2. In this embodiment, the switch S is a single-pole double-throw switch. Of course, in other embodiments of the present invention, when the resistance-changing unit 211a has more resistances with different resistance values, the switch S is a single-pole multi-throw switch.
Referring to fig. 2, in the present embodiment, the signal switching circuit 211 further includes a first capacitor C1, two ends of the first capacitor C1 are electrically connected to the first end and the second end of the input side of the first optocoupler OC1, respectively, that is, the first capacitor C1 is connected in parallel to the first optocoupler OC 1. Due to the addition of the first capacitor C1, the variable resistance unit 211a and the first capacitor C1 can form an RC filter circuit, and the anti-interference performance of the first signal switching circuit 211 can be improved.
In this embodiment, the signal switching circuit 211 further includes a first diode D1, and two ends of the first diode D1 are electrically connected to the first end and the second end of the input side of the first optocoupler OC1, respectively. Wherein, the anode of the first diode D1 is electrically connected with the second end of the input side of the first optical coupler OC1, and the cathode of the first diode D1 is electrically connected with the first end of the input side of the first optical coupler OC 1. Therefore, when the pulse signal is inverted, for example, a pulse signal with a voltage value of 5V or 24V is connected to the second interface Du2, the first diode D1 is directly turned on, and since the first optocoupler OC1 is connected in parallel with the first diode D1, the voltage applied to the first optocoupler OC1 is small, so that the first optocoupler OC1 is not damaged, thereby being beneficial to protecting the first optocoupler OC1 through the connected first diode D1 when the pulse signal is inverted.
Referring to fig. 1, in the present embodiment, the optical coupler unit 150 further includes a second optical coupler OC2, an output side of the second optical coupler OC2 is electrically connected to the microprocessor 121, and the second optical coupler OC2 outputs a signal to the microprocessor 121. In the present embodiment, the stepping motor driver further includes at least one instruction compatible circuit 220, and the stepping motor driver may include one instruction compatible circuit 220, two instruction compatible circuits 220, three instruction compatible circuits 220, or more instruction compatible circuits 220, and in the present embodiment, the stepping motor driver includes one instruction compatible circuit 220. Referring to fig. 3, the command compatible circuit 220 includes a third interface Du3, a first transistor VT1, a third resistor R3, a second diode D2, a fourth resistor R4, a fourth interface Du4, and a regulator ZD.
In this embodiment, the third interface Du3 may be used to receive command signals with different voltage values, and the command signals with different voltage values may be command signals with two different voltage values, command signals with three different voltage values, command signals with four different voltage values, or command signals with more different voltage values. The command signal is one or more of a pulse signal, a direction signal, and an enable signal, for example, when the first interface Du1 of the signal switching circuit 211 is connected with pulse signals with different voltage values, the third interface Du3 is connected with direction signals with different voltage values or enable signals with different voltage values; or, when the first interface Du1 of the signal switching circuit 211 receives direction signals with different voltage values, the third interface Du3 receives pulse signals with different voltage values or enable signals with different voltage values; or, when the first interface Du1 of the signal switching circuit 211 receives enable signals with different voltage values, the third interface Du3 receives pulse signals with different voltage values or direction signals with different voltage values.
In this embodiment, the third interface Du3 is used to receive two enable signals with different voltage values, the voltage values of the two enable signals are 5V and 24V, respectively, and the enable signals with the two voltage values are the enable signals commonly used by the user. In this embodiment, the third interface Du3 is a stepping motor driver for externally connecting to other control systems, the control system sends an enable signal to the third interface Du3, and since the voltage values of the enable signals output by the control systems of different manufacturers are different, the third interface Du3 of this embodiment may be used to access the enable signals with different voltage values, so that the command compatible circuit 220 of this embodiment may be compatible with the control systems of different manufacturers. For example, the voltage value of the enable signal output by the control system of one manufacturer is 5V, and the voltage value of the enable signal output by the control system of another manufacturer is 24V, so that the control systems provided by the two manufacturers can be compatible through the command compatible circuit 220 of the present invention, thereby expanding the application range of the stepping motor driver of the present invention.
In this embodiment, a collector of the first triode VT1 is electrically connected to the third interface Du3, a first end of the third resistor R3 is electrically connected to the third interface Du3, a second end of the third resistor R3 is electrically connected to an anode of the second diode D2 and a cathode of the zener diode ZD respectively, a cathode of the second diode D2 is electrically connected to a base of the first triode VT1, an emitter of the first triode VT1 is electrically connected to a first end of the fourth resistor R4, a second end of the fourth resistor R4 is electrically connected to a first end of an input side of the optocoupler, a second end of the input side of the optocoupler is electrically connected to a cathode of the zener diode ZD, and the second end of the input side of the optocoupler and the anode of the zener diode ZD are electrically connected to the fourth interface Du4 together.
In this embodiment, the voltage regulator ZD is used to stabilize the voltage at two ends of the voltage regulator ZD, for example, to maintain the voltage at two ends of the voltage regulator ZD at about 5V, for example, when the voltage value of the enable signal input by the third interface Du3 is 5V, the voltage at two sides of the voltage regulator ZD is maintained at slightly lower than 5V, and when the voltage value of the enable signal input by the third interface Du3 is 24V, the voltage at two sides of the voltage regulator ZD is maintained at about 5V. Therefore, the voltages at two sides of the voltage regulator tube ZD are maintained to be stable, the voltage between the base of the first triode VT1 and the second end of the input side of the second optical coupler OC2 is stable, the voltage between the emitter of the first triode VT1 and the second end of the input side of the second optical coupler OC2 is stable, and by adjusting the size of the fourth resistor R4, the current flowing between the first end and the second end of the input side of the second optical coupler OC2 can be determined to be stable, and even if the third interface Du3 is connected with signals with voltages of different sizes, the current flowing through the input side of the second optical coupler OC2 is stable as a whole. Therefore, through the arrangement of the voltage regulator tube ZD, the first end and the second end of the input side of the second optical coupler OC2 are located at the two ends of the voltage regulator tube ZD, so that the command compatible circuit 220 is a constant voltage circuit, the voltage value of the command signal input by the third interface Du3 is reduced through the voltage regulator tube ZD, the fluctuation of the voltage value of the command signal at the third interface Du3 can be reduced, the voltages at the two sides of the voltage regulator tube ZD can be relatively stable, and the anti-interference capability of the command compatible circuit 220 can be favorably improved; the command compatible circuit 220 of the present invention can be connected to command signals of different voltage values. In addition, in the present embodiment, since the base of the first triode VT1 is electrically connected to the second diode D2, the threshold voltage of the first triode VT1 can be raised, so that when the voltage at the two ends of the voltage regulator ZD is disturbed to cause small fluctuations, the second diode D2 can also cancel the fluctuations, and the interference rejection capability of the command compatible circuit 220 of the present embodiment is further enhanced. In this embodiment, the third resistor R3 is used for voltage division, so that the voltage across the zener diode ZD is relatively stable.
In this embodiment, the command compatible circuit 220 further includes a second capacitor C2, two ends of the second capacitor C2 are electrically connected to the first end and the second end of the input side of the second optocoupler OC2, that is, the second capacitor C2 is connected in parallel to the input side of the second optocoupler OC2, and by providing the second capacitor C2, the second capacitor C2 and the fourth resistor R4 form an RC circuit, so that the interference rejection capability of the command compatible circuit 220 is further improved.
In this embodiment, the command compatible circuit 220 further includes an anti-reverse diode D3, the anti-reverse diode D3 is connected in series to an electrical loop formed by the third interface Du3, the collector of the first transistor VT1, the emitter of the first transistor VT1, the fourth resistor R4, the second optocoupler OC2, and the fourth interface Du4, the anode of the anti-reverse diode D3 is electrically connected to the third interface Du3 directly or indirectly, and the cathode of the anti-reverse diode D3 is electrically connected to the fourth interface Du4 directly or indirectly. In this embodiment, the anode of the reverse diode D3 is directly electrically connected to the third interface Du3, that is, the first end of the third resistor R3 and the anode of the reverse diode D3 are electrically connected to the third interface Du3 together, the cathode of the reverse diode D3 is electrically connected to the collector of the first transistor VT1, and when a voltage signal is received at the fourth interface Du4, the reverse diode D3 may prevent the second optocoupler OC2 from operating, so as to prevent the second optocoupler OC2 from being damaged. In addition, in other embodiments of the present invention, the anti-reverse diode D3 may also be connected in series between the emitter stage of the first transistor VT1 and the fourth resistor R4, between the fourth resistor R4 and the second optocoupler OC2, or between the second optocoupler OC2 and the fourth interface Du 4.
Referring to fig. 1, in the present embodiment, the motor driver includes a first common interface Com1, the optical coupling unit 150 further includes a third optical coupler OC3, an input side of the third optical coupler OC3 is electrically connected to the microprocessor 121, and the third optical coupler OC3 is configured to receive a brake signal sent by the microprocessor 121. The motor driver further comprises a brake unit 130, and the brake unit 130 can control the motor to stop working when the motor is powered off. Referring to fig. 1 and 4 in combination, the band-type brake unit 130 includes: the motor comprises a band-type brake interface BR and a power interface DC, wherein the power interface DC is used for being externally connected with the anode of a power supply, and the band-type brake interface BR and the power interface DC are respectively used for being electrically connected with two ends of a band-type brake in the motor; a base electrode of the second triode VT2 is electrically connected with a first end of the output side of the third optical coupler OC3, a collector electrode of the second triode VT2 is electrically connected with a second end of the output side of the third optical coupler OC3 and is commonly electrically connected with a band-type brake interface BR, and an emitter electrode of the second triode VT2 is connected with the first common interface Com 1; and the fifth resistor R5 is electrically connected between the base electrode and the emitter electrode of the second triode VT 2. In this embodiment, when the third optical coupler OC3 does not receive a brake signal, the brake unit 130 does not output a brake signal to the brake through the brake interface BR, and the brake stops the motor; when the third optical coupler OC3 receives a brake signal, the third optical coupler OC3 and the second triode VT2 work, and the brake interface BR outputs the brake signal to the brake unit, so that current passes through an internal coil of the brake, a magnetic field generated by the current of the coil enables a motor shaft to be in a free state, and the motor can rotate freely. Therefore, the band-type brake unit 130 of the present embodiment can omit the relay K, thereby reducing the cost. In addition, in this embodiment, the band-type brake unit 130 further includes a fourth diode D4, an anode of the fourth diode D4 is electrically connected to the band-type brake interface BR, and a cathode of the fourth diode D4 is electrically connected to the first common interface Com 1. In this embodiment, when the third optocoupler OC3 does not receive a brake signal, the voltage at the brake interface BR can be released through the fourth diode D4, so that the brake can be prevented from being damaged due to a large voltage at the moment when the third optocoupler OC3 does not receive a signal. In this embodiment, a first terminal of an input side of the third optocoupler OC3 is connected to a direct current voltage through a sixth resistor R6, and a second terminal of an input side of the third optocoupler OC3 is electrically connected to the microprocessor 121, and is configured to receive a contracting brake signal sent by the microprocessor 121.
In addition, in other embodiments of the present invention, the driver may further include other brake units, referring to fig. 5, the brake unit 230 includes: the brake interface BR is used for being electrically connected with a relay K, and the relay K is used for being electrically connected with a brake connector in the motor; a base electrode of the second triode VT2 is electrically connected with a first end of the output side of the third optical coupler OC3, a collector electrode of the second triode VT2 is electrically connected with a second end of the output side of the third optical coupler OC3 and is commonly electrically connected with a band-type brake interface BR, and an emitter electrode of the second triode VT2 is connected with the first common interface Com 1; a fifth resistor R5 and a fifth resistor R5 are electrically connected between the base and the emitter of the second triode VT2, wherein a band-type brake interface BR of the motor driver is electrically connected with a band-type brake in the motor through a relay K, when the third optical coupler OC3 receives a band-type brake signal, the band-type brake unit 230 outputs the band-type brake signal to the relay K through the band-type brake interface BR, the relay K is attracted, the band-type brake works, a current passes through an internal coil of the band-type brake, a motor shaft is in a free state through a magnetic field generated by the current of the coil, and the motor can freely rotate; when the third optical coupler OC3 is not connected with a brake signal, the relay K is switched off, the brake does not work, no current passes through an internal coil of the brake, the brake is in a normally closed state, a motor shaft is in a locked state, and the motor stops working rapidly.
In the present embodiment, the first optocoupler OC1, the second optocoupler OC2, and the third optocoupler OC3 are all located in different chips. In addition, in other embodiments of the present invention, the first optical coupler OC1, the second optical coupler OC2, and the third optical coupler OC3 may also be located two by two in the same chip, or all three in the same chip.
Referring to fig. 1, in this embodiment, the stepping motor driver further includes an alarm unit 110, the alarm unit 110 is electrically connected to the microprocessor 121 through an optical coupling unit 150, an interface of the alarm unit 110 is used for electrically connecting to an external alarm device, and the alarm unit 110 is used for receiving a signal sent by the microprocessor 121 whether the stepping motor driver and/or the motor is abnormally operated.
In this embodiment, the stepping motor driver further includes a dial switch 170, the dial switch 170 is electrically connected to the microprocessor 121, and the microprocessor 121 implements different functions when the dial of the dial switch 170 is dialed to different positions. In this embodiment, the stepping motor driver includes at least two dial switches 170, for example, two, three, four or more dial switches 170, in this embodiment, two dial switches 170 are respectively located on different sides of the stepping motor driver. In this embodiment, the stepper driver includes at least two 8-bit dip switches 170. In addition, in other embodiments of the present invention, the number of dials included in the dial switch 170 may not be limited to 8.
In this embodiment, the driver further includes a display unit 190, and the display unit 190 is electrically connected to the microprocessor 121; the display unit 190 may include one or more of an LED lamp, a nixie tube, and a display screen for displaying information. In this embodiment, the display unit 190 includes two display indicator lamps, one indicator lamp is used for displaying power information of the driver, and the other indicator lamp is used for displaying alarm information.
In the present embodiment, the microprocessor 121 is an ARM processor, which has a small size, low power consumption, low cost and high performance.
In addition, the embodiment of the invention also provides a driving device, which comprises a motor and the stepping motor driver, wherein the stepping motor driver is used for driving the motor.
In addition, the embodiment of the invention also provides an automatic device, and the automatic device comprises the driving device.
Second embodiment
Fig. 6 is a block diagram of a stepping motor driver according to a second embodiment of the present invention, and the schematic diagram of fig. 6 is similar to the schematic diagram of fig. 1, and therefore like reference numerals denote like components. The main difference between the present embodiment and the first embodiment is that the command switch switching circuit includes two signal switching circuits.
Referring to fig. 6 and 7, in the present embodiment, the command switch switching circuit 310 includes two signal switching circuits 211, the optical coupling unit 350 includes two first optical couplers OC1, input sides of the two first optical couplers OC1 are electrically connected to the two signal switching circuits 211, respectively, and output sides of the two first optical couplers OC1 are electrically connected to the microprocessor 121, respectively.
In the present embodiment, one signal switching circuit 211 (the upper signal switching circuit in fig. 7) of the two signal switching circuits 211 is used for receiving pulse signals with different voltage values, the other signal switching circuit 211 (the lower signal switching circuit in fig. 7) is used for receiving direction signals with different voltages, and the compatible circuit is used for receiving enable signals with different voltages. However, the present invention is not limited thereto, in other embodiments of the present invention, one of the signal switching circuits 211 is used for switching in one of three signals, namely, a pulse signal, a direction signal and an enable signal, and the other signal switching circuit 211 is used for switching in one of the remaining two signals, and the compatible circuit is used for switching in the remaining one signal, but this embodiment is excluded.
Generally speaking, the voltage values of the command signals output by the control systems of the same manufacturer are generally the same, for example, the voltage value of the command signal is either 5V or 24V, or other voltage values, a command signal with a voltage value of 5V output to one interface and a command signal with a voltage value of 24V output to another interface do not occur, but the types of the command signals output by the control systems to different interfaces may be different. For the sake of simplicity of operation, in the present embodiment, the switches S in the two signal switching circuits 211 are operated in a linked manner, where the linked operation means that when one of the switches S is switched to the first resistor R1 corresponding to the connection 5V voltage value, the other switch S is also switched to the first resistor R1 corresponding to the connection 5V voltage value, and when one of the switches S is switched to the second resistor R2 corresponding to the connection 24V voltage value, the other switch S is also switched to the second resistor R2 corresponding to the connection 24V voltage value. Through the arrangement, the operation times of the user can be reduced, and the use of the user is facilitated. In this embodiment, the two ganged switches S are a single double-pole double-throw switch S or a combination of two single-pole double-throw switches S. In addition, in other embodiments of the present invention, when the resistance-changing unit 211a in the signal switching circuit 211 has more resistances, the two ganged switches S are one double-pole multiple-throw switch S or two single-pole multiple-throw switches S in combination.
In addition, in this embodiment, the stepping motor driver further includes a command compatible circuit 220, and the command compatible circuit 220 includes a third interface Du3 and a fourth interface Du4, and since the command compatible circuit 220 is the same as the command compatible circuit 220 of the first embodiment, the description thereof is omitted here. The stepping motor driver further comprises a band-type brake unit 130 and an alarm unit 110, wherein the band-type brake unit 130 comprises a band-type brake interface, the alarm unit 110 comprises an alarm interface, and a specific circuit of the band-type brake unit 130 is the same as the band-type brake circuit in fig. 5, and is not repeated here.
In this embodiment, the two first optical couplers OC1 are located in the same chip, the second optical coupler OC2 and the third optical coupler OC3 are both located in different chips, and the second optical coupler OC2 and the third optical coupler OC3 are not located in the chip where the two first optical couplers OC1 are located. In addition, in other embodiments of the present invention, the two first optocouplers OC1, the second optocoupler OC2, and the third optocoupler OC3 are all located in different chips, i.e., in four chips. In addition, in other embodiments of the present invention, the two first optical couplers OC1, the second optical coupler OC2, and the third optical coupler OC3 may all be located in the same chip.
Third embodiment
Fig. 8 is a block diagram of a stepping motor driver according to a third embodiment of the present invention, and the schematic diagram of fig. 7 is similar to the schematic diagram of fig. 6, and therefore like reference numerals denote like components. The main difference between the present embodiment and the second embodiment is that the command switch switching circuit includes three signal switching circuits and does not include a command compatible circuit.
Referring to fig. 8 and 9, in the present embodiment, the command switch switching circuit 410 includes three signal switching circuits 211, the optical coupler unit 450 includes three first optical couplers OC1, input sides of the three first optical couplers OC1 are electrically connected to the three signal switching circuits 211, and output sides of the three first optical couplers OC1 are electrically connected to the microprocessor 121.
In this embodiment, one signal switching circuit 211 (the uppermost signal switching circuit shown in fig. 9) of the three signal switching circuits 211 is used for receiving pulse signals with different voltage values, another signal switching circuit 211 (the middle signal switching circuit shown in fig. 9) is used for receiving direction signals with different voltage values, and the last signal switching circuit 211 (the lowermost signal switching circuit shown in fig. 9) is used for receiving enable signals with different voltage values.
Generally speaking, the voltage values of the command signals output by the control systems of the same manufacturer are generally the same, for example, the voltage value of the command signal is either 5V or 24V, or other voltage values, a command signal with a voltage value of 5V output to one interface and a command signal with a voltage value of 24V output to another interface do not occur, but the types of the command signals output by the control systems to different interfaces may be different. For the sake of simplicity of operation, in the present embodiment, the switches S in the three signal switching circuits 211 are operated in a linked manner, where the linked operation means that when one of the switches S is switched to the first resistor R1 corresponding to the connection 5V voltage value, the other switch S is also switched to the first resistor R1 corresponding to the connection 5V voltage value, and when one of the switches S is switched to the second resistor R2 corresponding to the connection 24V voltage value, the other switch S is also switched to the second resistor R2 corresponding to the connection 24V voltage value. Through the arrangement, the operation times of the user can be reduced, and the use of the user is facilitated. In this embodiment, the three ganged switches S are a three-pole double-throw switch S, or a combination of a double-pole double-throw switch and a single-pole double-throw switch, or a combination of three single-pole double-throw switches S. In addition, in other embodiments of the present invention, when the resistance-changing unit 211a in the signal switching circuit 211 has more resistances, at this time, the three ganged switches S are one three-pole multi-throw switch S or a combination of three single-pole multi-throw switches S.
Fourth embodiment
Fig. 10 is a block diagram of a stepping motor driver according to a fourth embodiment of the present invention, and the schematic diagram of fig. 10 is similar to the schematic diagram of fig. 1, and therefore like reference numerals denote like components. The main difference between this embodiment and the first embodiment is that the stepping motor driver includes two command-compatible circuits.
Referring to fig. 10 and 11, the stepping motor driver includes two command compatible circuits 220, the optical coupling unit 550 includes two second optical couplers OC2, input sides of the two second optical couplers OC2 are electrically connected to the two command compatible circuits 220, respectively, and output sides of the two second optical couplers OC2 are electrically connected to the microprocessor 121, respectively.
In the present embodiment, one of the two command-compatible circuits 220 (the upper command-compatible circuit in fig. 11) is configured to receive enable signals with different voltage values, the other command-compatible circuit 220 (the lower command-compatible circuit in fig. 7) is configured to receive direction signals with different voltage values, and the signal switching circuit 211 is configured to receive pulse signals with different voltage values. However, the present invention is not limited thereto, in other embodiments of the present invention, one of the two command-compatible circuits 220 is used for receiving one of three signals, namely, a pulse signal with a different voltage value, a direction signal with a different voltage value, and an enable signal with a different voltage value, the other command-compatible circuit 220 is used for receiving one of the remaining two signals, and the signal switching circuit 211 is used for receiving one of the remaining signals, but this embodiment is excluded.
The invention has the beneficial effects that: the multifunctional motor driver comprises a command switch switching circuit, wherein the command switch switching circuit comprises at least one signal switching circuit, and the signal switching circuit is used for matching and switching different resistance values according to different voltage values of command signals. Therefore, when the signal switching circuit is connected with an external control system, the signal switching circuit can be compatible with control systems of different manufacturers, so that the application range of the signal switching circuit, namely the application range of the motor driver, is expanded. Moreover, when the command signal of one voltage value needs to be changed into the command signal of another voltage value, the operation of matching and switching by the signal switching circuit is very simple.
The multifunctional motor driver further comprises various band-type brake circuits, so that the band-type brake function of the motor driver is realized, and great convenience is brought to use and safety of users.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.