Motor driving system
By introducing level conversion circuits and control modules into the motor drive system, the software redevelopment problem caused by driver chip replacement is solved, and the automatic compatibility and cost savings of the driver chip are achieved.
Patent Information
- Application Number
- CN202422005906.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2034-08-15
AI Technical Summary
In the prior art, motor drive systems need to redevelop software and increase costs when replacing driver chips, resulting in increased management difficulties.
The level conversion circuit is used to combine a control module, a driving chip and a driving interface, and the level conversion circuit is used to flip the enable signal to ensure compatibility between the driving chip and the microcontroller, and there is no need to change the microcontroller control method.
Automatic compatibility between different driver chips is achieved, avoiding the cost and cycle of redeveloping control software and reducing management difficulty.
Smart Images

Figure CN223285759U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of motor control, in particular to a motor drive system. Background Art
[0002] Motors are the most commonly used power devices in drive systems. They power robots, sweepers, plotters, film cutters, labelers, and laminators. When designing a motor drive, the first step is to select a corresponding driver chip. Based on this chip, the peripheral circuitry is designed. A circuit board is then fabricated, and the driver chip is used to drive the motor to achieve specific functions, such as movement and rotation.
[0003] In the existing technology, a single-chip microcomputer is often used in conjunction with a driver chip to drive the motor. The single-chip microcomputer outputs a high level or a low level on the enable pin to control whether the motor starts working. For example, when the high level is valid, the single-chip microcomputer controls the enable pin to be high while outputting the control signal. At this time, the motor only performs corresponding actions according to the control signal when the enable high level is obtained.
[0004] During the design and development process, when the driver chip and peripheral circuitry are configured and the motor needs to be upgraded, the upgrade is difficult because the driver chip and peripheral circuitry cannot be modified, and the microcontroller may need to be replaced. For example, a common control method is to set the enable pin of the driver chip to an active low level. After the microcontroller is powered on, it first outputs a high level to prevent the motor from rotating. After the software enters the control menu and clicks the start button, the GPIO pin outputs a low level (matching the active low level of the driver chip), allowing the motor to rotate.
[0005] When customers report that the motor speed is insufficient or the torque is too low, further development is required. For example, increasing the drive current from 2A to 4A requires replacing the driver chip. When replacing the driver chip, the specification sheet must be checked. If the enable pin of the new driver chip accepts a high level as valid, then the original software uses a high level after the microcontroller is turned on. When the driver module is connected, the motor rotates uncontrollably upon power-on. In this case, the software control method needs to be modified to adapt to the new driver, resulting in the need to redevelop the driver software and application software, increasing costs and cycles, and increasing management difficulty.
[0006] That is to say, how to use the circuit to achieve the adaptation of the high and low levels on the driver chip enable ENABLE. When the driver chip that originally enabled ENABLE at a high level is replaced with a driver chip that enables ENABLE at a low level, the level flip conversion is achieved through the circuit, so that the microcontroller side can continue to work according to the original control and drive mode without changing the working mode of the microcontroller. This is the technical problem to be solved by this patent. Utility Model Content
[0007] The purpose of the present utility model is to provide a motor drive system, aiming to solve the technical problem in the prior art that the software needs to be redeveloped and the cost is increased during the later development of the motor.
[0008] The utility model provides a motor drive system.
[0009] The system includes: a motor, a control module, a level conversion circuit, a driver chip and a driver interface, wherein the control module is used to output an enable control signal.
[0010] The level conversion circuit is electrically connected to the control module, and the level control circuit is used to receive the enable control signal and convert the enable control signal into an enable signal.
[0011] The driving chip is used to receive the enable signal and send a control signal in an enabled working state, wherein the control signal includes a mode signal for controlling the working mode of the motor.
[0012] The driving interface is electrically connected between the driving chip and the motor. The driving interface outputs a driving voltage or current to the motor according to the mode signal, so that the motor operates according to the control method of the mode signal.
[0013] The enable control signal includes a low level, and the low level is output to the driver chip after passing through the level conversion circuit. The enable signal detected by the driver chip is a high level.
[0014] Among them, the control module is a single-chip microcomputer, which outputs an enable control signal to the level conversion circuit. The driver chip includes an enable terminal, which is connected to the level conversion circuit. The enable terminal is used to monitor the enable signal to determine whether the driver chip is working.
[0015] Among them, the driving interface includes a control input end and a control output end; the driving chip includes a control end; the control end is connected to the control input end and the control output end of the driving interface, and the control output end is connected to the motor.
[0016] The level conversion circuit includes: a constant source terminal, a first resistor, a second resistor, a third resistor, a fourth resistor and a PNP transistor.
[0017] One end of the first resistor is connected to the constant source terminal and one end of the second resistor, the other end of the first resistor is connected to one end of the fourth resistor and the base of the PNP transistor, the base of the transistor is used to receive the enable control signal, the other end of the second resistor is connected to the emitter of the transistor, and the collector of the transistor is connected to the enable end; one end of the third resistor is connected to the enable end, and the other end of the third resistor is grounded.
[0018] The constant source terminal provides a 5V constant voltage. When the transistor is turned on, the 5V constant voltage forms a high level at the enable terminal after voltage division by the third resistor and the second resistor. The system disclosed in the utility model can achieve voltage inversion at the enable terminal through a level conversion circuit, thereby overcoming the shortcomings of the existing technology and saving the cost of redeveloping control software. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the circuit principle and modules of the motor drive system of the utility model. DETAILED DESCRIPTION
[0020] The present invention will be further described and explained below in conjunction with specific embodiments and accompanying drawings:
[0021] Please refer to Figure 1 , a motor driving system 100, the system 100 includes: a motor M1, a control module 10, a level conversion circuit 20, a driving chip U9, and a driving interface MD1.
[0022] Among them, the control module 10 is used to output an enable control signal M1_EN; the level conversion circuit 20 is electrically connected to the control module 10, and the level control circuit 20 is used to receive the enable control signal M1_EN and convert the enable control signal M1_EN into an enable signal X; the driver chip U9 is used to monitor the enable signal X and send a control signal in an enabled working state, and the control signal includes a mode signal for controlling the working mode of the motor; the drive interface MD1 is electrically connected between the driver chip U9 and the motor M1, and the drive interface MD1 outputs a drive voltage or current to the motor M1 according to the mode signal, so that the motor M1 operates according to the control mode of the mode signal;
[0023] The enable control signal M1_EN includes a low level, which is output to the driver chip U9 after passing through the level conversion circuit 20 , and the enable signal X detected by the driver chip U9 is a high level.
[0024] Specifically, the control module 10 is a single-chip microcomputer, which outputs an enable control signal M1_EN to the level conversion circuit 20. The drive chip U9 includes a control terminal 90 and an enable terminal ENABLE. The enable terminal ENABLE is connected to the level conversion circuit 20. The enable terminal ENABLE is used to monitor the enable signal X to determine whether the drive chip U9 is working; the drive interface MD1 includes a control input terminal (STEP, DI R) and a control output terminal (XM1A, XM1B, XM2A, XM2B); the control terminal 90 is connected to the control input terminal (STEP, DI R) and the control output terminal (XM1A, XM1B, XM2A, XM2B) of the drive interface MD1, and the control output terminal (XM1A, XM1B, XM2A, XM2B) is connected to the motor M1.
[0025] The level conversion circuit 20 includes a constant source terminal +M5V, a first resistor R1, a second resistor R2, a third resistor R161, a fourth resistor R154, and a transistor Q7.
[0026] One end of the first resistor R1 is connected to the constant source terminal +M5V and one end of the second resistor R2, the other end of the first resistor R1 is connected to one end of the fourth resistor R154 and the base of the PNP transistor Q7, the base of the transistor Q7 is used to receive the enable control signal, the other end of the second resistor is connected to the emitter of the transistor Q7, and the collector of the transistor Q7 is connected to the enable terminal ENABLE; one end of the third resistor R161 is connected to the enable terminal ENABLE, and the other end of the third resistor R161 is grounded.
[0027] The working process of this system is as follows:
[0028] 1. The enable terminal ENABLE of the driver chip U9 of the present invention is active when it is high. That is, the driver chip U9 will not start operating until it detects that the enable signal X on the enable terminal ENABLE is high. After power is applied, the control module 10 outputs a high level to the level conversion circuit 20. Since transistor Q7 is a PNP type, that is, transistor Q7 is turned on only when the base is low, transistor Q7 is turned off at this time. The enable terminal ENABLE is forced to a low level through the third resistor R161, and the driver chip U9 does not operate.
[0029] Compared with the driver chip enable terminal before the replacement in this application, the low level is valid, so when the control module 10 outputs a high level without passing through the level conversion circuit 20, the original driver chip does not work.
[0030] The enable terminal ENABLE of the replaced driver chip U9 is valid at a high level. When the control module 10 outputs a high level, the enable terminal ENABLE of the new driver chip U9 is a low level after passing through the level conversion circuit 20. Similarly, the driver chip U9 does not work. Therefore, before and after replacing the driver chip with different enable signals, when the control signal output by the control module 10 is a high level, the driver chip is in a non-working state.
[0031] 2. After power-on, the control module 10 outputs a low level to the level conversion circuit 20. Since the transistor Q7 is a PNP type, that is, the transistor Q7 is turned on only when the base is low, the transistor Q7 is turned on at this time, and the 5V voltage on the constant source terminal +M5V is divided by the third resistor R161 and the second resistor R2 at the enable terminal ENABLE. Among them, the third resistor R161 can be selected as 10K, and the second resistor R2 can be selected as 1K. After voltage division, the enable terminal ENABLE removes the 0.2-0.5V voltage drop on the transistor Q7, and the enable terminal ENABLE voltage is 4.05V, which is greater than 3V; among them, the high-level threshold signal of the driver chip U9 is 2.5V. At this time, the voltage greater than 3V is a high level, and the driver chip U9 starts to work. The driver chip U9 outputs a duty cycle control signal to the STEP pin of the driver interface MD1 through the control terminal 90, outputs a motor forward and reverse control signal to the DIR pin, and outputs a motor drive voltage to the control output terminals (XM1A, XM1B, XM2A, XM2B), thereby rotating the motor.
[0032] Compared with the driver chip before replacement in this application, the enable end is valid at a low level, so when the control module 10 outputs a low level, the original driver chip works; and the driver chip U9 after replacement, the enable end ENABLE is valid at a high level. When the control module 10 outputs a low level, the enable end ENABLE of the new driver chip U9 is high after passing through the level conversion circuit 20, and the same driver chip U9 works. Therefore, before and after replacing the driver chip with different enable validity, when the control signal output by the control module 10 is a low level, the driver chip U9 is in a working state.
[0033] The utility model realizes that when different driver chips are replaced, the control module 10 automatically realizes control and is compatible with each other without replacing the control program of the control module 10 through the level conversion circuit 20.
[0034] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model, rather than to limit the scope of protection of the utility model. Although the utility model has been described in detail with reference to the preferred embodiments, ordinary technicians in this field should understand that the technical solution of the utility model can be modified or replaced by equivalents without departing from the essence and scope of the technical solution of the utility model.
Claims
1. A motor drive system, characterized in that: The system comprises: motor; A control module, configured to output an enable control signal; a level conversion circuit, electrically connected to the control module, the level conversion circuit being configured to receive the enable control signal and convert the enable control signal into an enable signal; a driver chip, configured to monitor the enable signal and send a control signal in an enabled working state, wherein the control signal includes a mode signal for controlling the working mode of the motor; a drive interface electrically connected between the drive chip and the motor, the drive interface outputting a drive voltage or current to the motor according to the mode signal, so that the motor operates in accordance with the control method of the mode signal; The enable control signal includes a low level, and the low level is output to the driver chip after passing through the level conversion circuit, and the enable signal detected by the driver chip is a high level.
2. The motor drive system according to claim 1, wherein: The control module is a single-chip microcomputer, which outputs an enable control signal to the level conversion circuit. The driver chip includes an enable terminal, which is connected to the level conversion circuit. The enable terminal is used to monitor the enable signal to determine whether the driver chip is working.
3. The motor drive system according to claim 2, wherein: The driving interface includes a control input terminal and a control output terminal; the driving chip includes a control terminal; the control terminal is connected to the control input terminal and the control output terminal of the driving interface, and the control output terminal is connected to the motor.
4. The motor drive system according to claim 3, wherein: The level conversion circuit includes: Hengyuan terminal; a first resistor, one end of the first resistor being connected to the constant source terminal and one end of the second resistor, the other end of the first resistor being connected to one end of a fourth resistor and a base of a PNP-type transistor, the base of the transistor being configured to receive the enable control signal, the other end of the second resistor being connected to the emitter of the transistor, and the collector of the transistor being connected to the enable terminal; a third resistor, one end of the third resistor is connected to the enable end, and the other end of the third resistor is grounded.
5. The motor drive system according to claim 4, wherein: The constant source terminal provides a constant voltage of 5V. When the transistor is turned on, the 5V constant voltage forms a high level at the enable terminal after voltage division by the third resistor and the second resistor.