SUMMERY OF THE UTILITY MODEL
To the problem that prior art exists, the utility model provides a five-phase step motor driver.
In order to achieve the above purpose, the utility model discloses technical scheme as follows:
a five-phase stepping motor driver comprises a main control unit, a power supply unit, a USB-to-serial port unit, a driving unit and an optical coupling isolation unit; the corresponding end of the main control unit is electrically connected with the corresponding ends of the power supply unit, the USB-to-serial port unit, the driving unit and the optical coupling isolation unit respectively.
Preferably, the five-phase stepping motor driver further includes a switch unit and a fault indicator light, the switch unit and the fault indicator light are electrically connected to the main control unit respectively, and the switch unit is an 8-position dial switch.
Preferably, the main control unit comprises an MCU control chip and an MCU control chip peripheral circuit.
Preferably, the power supply unit includes a power supply circuit, the power supply circuit includes a voltage reduction circuit and an LDO circuit; the voltage reduction circuit comprises an XL7015E1 chip and peripheral circuits thereof; the external power supply outputs 5V voltage after being stepped down by the step-down circuit, and outputs 3.3V voltage to supply power to the circuit through the LDO circuit; and the corresponding end of the XL7015E1 chip is connected with the corresponding end of the MCU control chip.
Preferably, the optical coupling isolation unit comprises an optical coupling isolation circuit, and the optical coupling isolation circuit comprises a differential filter circuit, an optical coupling device U1, a filter circuit and a decoupling capacitor C3 which are connected in sequence; the model of the optical coupler device U1 is EL0631, and the pulse signal PUL of the optical coupler device U1 is connected to the pulse input end of the MCU control chip.
Preferably, the driving unit includes a five-phase stepping motor and a driving circuit, an output end of the driving circuit is electrically connected to the five-phase stepping motor, and an input end of the driving circuit is connected to the MCU control chip.
The driving circuit comprises a first driving circuit and a second driving circuit; the first drive circuit and the second drive circuit are respectively and electrically connected with the five-phase stepping motor.
The first drive circuit and the second drive circuit both comprise an MP6540 drive chip and a peripheral circuit of the MP6540 drive chip.
Preferably, the USB to serial port unit includes a USB to serial port circuit, which is configured as a HT42B534 chip U6 and its peripheral circuits, a USB 1; the corresponding end of the HT42B534 chip is electrically connected with the corresponding end of the USB 1; and the corresponding end of the HT42B534 chip is connected with the corresponding end of the MCU control chip.
Adopt the technical scheme of the utility model, following beneficial effect has: the utility model realizes the small volume design of the five-phase stepping motor driver by utilizing the existing three-phase motor driving unit according to the development of the power semiconductor technology, simplifies the hardware design and improves the hardware reliability; a USB interface which is convenient to use is designed, and flexible setting of driver parameters is realized in retention, so that debugging is more convenient; an 8-bit dial switch is used for being compatible with subdivision and current setting of a traditional stepping motor driver, a USB communication interface is designed by utilizing flexibility of USB communication, and setting and debugging of driver parameters are realized through corresponding PC end debugging software.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present invention, and should not be construed as limiting the present invention.
In the description of the present invention, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and to simplify the description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore should not be construed as limiting the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically limited otherwise.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "fixed" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood according to specific situations by those skilled in the art.
In the present invention, unless expressly stated or limited otherwise, the first feature "on" or "is connected to" the second feature
"under" may include the first and second features being in direct contact, and may also include the first and second features not being in direct contact, but being in contact with each other through additional features between them. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature.
Referring to fig. 1 to 7, the utility model provides a five-phase stepping motor driver, which comprises a main control unit 1, a power supply unit 2, a USB-to-serial port unit 4, a driving unit 5 and an optical coupling isolation unit 3; the corresponding end of the main control unit 1 is electrically connected with the corresponding ends of the power supply unit 2, the USB-to-serial port unit 4, the driving unit 5 and the optical coupling isolation unit 3 respectively.
The five-phase stepping motor driver further comprises a switch unit 6 and a fault indicator light 7, wherein the switch unit 6 and the fault indicator light 7 are respectively electrically connected with the main control unit 1, and the switch unit is an 8-position dial switch.
The main control unit 1 comprises an MCU control chip and an MCU control chip peripheral circuit; the MCU control chip adopts a TMS320F28034 chip of TI (Texas instruments, USA) company, and is provided with a PWM interface with 5 pairs of complementary outputs.
The five-phase stepping motor driver also comprises a weak current anti-reverse connection circuit 8, wherein the weak current anti-reverse connection circuit 8 comprises an external user input power source VDC, a fuse tube F1, a diode D2 and a capacitor C4; one end of the power supply is connected with a capacitor C4 through a fuse F1.
The power supply unit comprises a power supply circuit 201, and the power supply circuit 201 comprises a voltage reduction circuit and an LDO circuit; the voltage reduction circuit comprises an XL7015E1 chip and peripheral circuits thereof; the external power supply outputs 5V voltage after being stepped down by the step-down circuit, and outputs 3.3V voltage to supply power to the circuit through the LDO circuit; and the corresponding end of the XL7015E1 chip U5 is connected with the corresponding end of the MCU control chip.
The LDO circuit comprises an inductor L1, a diode D3, a resistor R6, a resistor R7, a resistor R8, a capacitor C6 and a capacitor C7; one end of the inductor L1 is connected with one end of the resistor R6 and one end of the resistor R8 respectively; the other end of the inductor L1 is connected with one end of a D3 diode; one end of an XL7015E1 chip U5 is connected with the other end of a diode D3, one end of a resistor R7, one end of a capacitor C6 and one end of a capacitor C7 respectively; the other end of the resistor R8 is connected with the other end of the capacitor C6 and the other end of the capacitor C7 respectively.
The optical coupling isolation unit 3 comprises an optical coupling isolation circuit 301 for receiving pulses and IO instruction signals of an external control system, and the optical coupling isolation circuit 301 comprises a differential filter circuit, an optical coupling device U1, a filter circuit and a decoupling capacitor C3 which are connected in sequence; the differential filter circuit comprises a resistor R1, a resistor R2, a resistor R3, a resistor R4 and a capacitor C1, the anti-interference performance of the receiving circuit can be effectively improved, and the resistance values of the resistors R1-R4 and the capacitance value of the capacitor C1 can be adjusted according to the actual electromagnetic interference level of an application field, so that interference signals of different frequency bands can be filtered; one end of the capacitor C1 is connected with one end of the resistor R1 and one end of the resistor R2 respectively, and the other end of the capacitor C1 is connected with one end of the resistor R3 and one end of the resistor R4 respectively; the other end of the resistor R2 and the other end of the resistor R4 are respectively and electrically connected with the corresponding ends of the optocoupler device; the model of the optical coupler device U1 is EL0631, and a pulse signal PUL of the optical coupler device U1 is connected to a pulse input end of the MCU control chip; the filter circuit comprises a resistor R5 and a capacitor C2 connected in series with the resistor R5; and one end of the decoupling capacitor C3 is respectively connected with one end of the resistor R5 and the eighth end of the optocoupler, and the other end of the decoupling capacitor C3 is respectively connected with one end of the capacitor C2 and the fifth end of the optocoupler.
The optical coupler isolation circuit 301 further comprises a diode D1, the optical coupler device has requirements on reverse voltage, and when the external signal level is connected reversely, the D1 is used for protecting the optical coupler device.
The driving unit 5 comprises a five-phase stepping motor and a driving circuit, the output end of the driving circuit is electrically connected with the five-phase stepping motor, and the input end of the driving circuit is connected with the MCU control chip.
The driving circuit comprises a first driving circuit 501 and a second driving circuit 502; the first driving circuit 501 and the second driving circuit 502 are electrically connected to the five-phase stepping motor, respectively.
The first driving circuit 501 and the second driving circuit 502 both include MP6540 driving chips and peripheral circuits of the MP6540 driving chips.
The MP6540 driving chip U2 comprises an interface A, an interface B and an interface C; the MP6540 driving chip U3 comprises an interface D and an interface E.
The interface A, the interface B and the interface C of the MP6540 driving chip U1 are connected to windings of a five-phase stepping motor, and the IAADC, the IBADC and the ICADC are current feedbacks of the winding interface A, the interface B and the interface C of the five-phase stepping motor; the PWM1A, the PWM1B, the PWM2A, the PWM2B, the PWM3A and the PWM3B are connected to a PWM output pin of the MCU.
The interface D and the interface E in the MP6540 driving chip U3 are connected to the winding of the five-phase stepping motor, and the IDADC and the IEADC are current feedback of the winding D, E of the five-phase stepping motor; the PWM4A, the PWM4B, the PWM5A and the PWM5B are connected to a PWM output pin of the MCU, and the circuit realizes power output and current feedback sampling of the five-phase stepping motor.
The USB-to-serial port unit 4 comprises a USB-to-serial port circuit 401 for communicating with a driver by external PC debugging software; the USB-to-serial port circuit 401 is provided with an HT42B534 chip U6 and peripheral circuits thereof, and a USB 1; the corresponding end of the HT42B534 chip U6 is electrically connected with the corresponding end of the USB 1; and the corresponding end of the HT42B534 chip U6 is connected with the corresponding end of the MCU control chip.
The utility model discloses the theory of operation as follows:
external power source, at first through weak current anti-reverse circuit 8 that connects, the rethread power supply circuit handles to give MCU power supply through 3.3V voltage, five-phase step motor's interface A, interface B, interface C, interface D, interface E all corresponds and corresponds the end with MCU control chip and is connected, opto-coupler isolation circuit 301 simultaneously, receive external control system's pulse and IO command signal, can give MCU control chip with the information transmission who receives, when breaking down, MCU control chip control fault indicator lights.
The above only be the preferred embodiment of the utility model discloses a not consequently restriction the utility model discloses a patent range, all are in the utility model discloses a conceive, utilize the equivalent structure transform of what the content was done in the description and the attached drawing, or direct/indirect application all is included in other relevant technical field the utility model discloses a patent protection within range.