Motor control circuit, motor control method and vehicle
By designing multiple control modules and detection modules in the motor control circuit to handle the monitoring and control of the motor respectively, the problem of motor control resource overload in the existing technology is solved, and the real-time performance and efficiency of motor control are improved.
Patent Information
- Application Number
- CN202310187092.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-03
AI Technical Summary
In existing motor control circuits, a single chip needs to handle multiple tasks, so chip resources cannot be used solely for motor control, resulting in slower algorithm operation and lagging information collection and processing, affecting the real-time performance of motor control.
Design a motor control circuit, including at least two control modules and a detection module. Each control module is connected to the corresponding motor. The detection module is connected to each motor and control module to control the motor by generating monitoring signals and enable signals. , and use the detection module to perform error checking and generate a second enable signal to control the motor.
It improves the calculation efficiency and real-time control of the motor control circuit, ensuring that each control module focuses on its corresponding motor, and the detection module is responsible for overall monitoring and verification, avoiding the problem of resource overload.
Smart Images

Figure CN118589908A
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the technical field of circuit control, and more particularly to a motor control circuit, a motor control method, and a vehicle. Background Art
[0002] The related motor control circuit is often designed to control multiple motors with a single chip, or to control a single motor with a single chip while also detecting the motor or circuit.
[0003] Based on this, in the above-mentioned motor control circuit, each chip has to perform multi-tasking or multi-threading work. In addition to executing the motor control logic tasks, it also has to perform internal signal interaction, verification of motor operation parameter signals, and communication with the outside of the motor control circuit. As a result, the on-chip resources of the chip cannot be used solely for motor control, or solely for detection, which further leads to problems such as slower algorithm operation and delayed information acquisition and processing in the motor control circuit, and seriously affects the real-time performance of motor control. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a motor control circuit, a motor control method and a vehicle.
[0005] Based on the above purpose, the present application provides a motor control circuit, including: at least two control modules and one detection module;
[0006] Wherein, each control module is electrically connected to a corresponding preset motor, and each control module is configured to generate a first monitoring signal and a first enabling signal corresponding to the motor;
[0007] The detection module is electrically connected to each motor, and the detection module is configured to generate a second monitoring signal corresponding to each motor;
[0008] The detection module is also electrically connected to each of the control modules, and the detection module is also configured to obtain a first monitoring signal of each of the control modules, and generate a second enabling signal according to the first monitoring signal and the second monitoring signal;
[0009] Each of the control modules is further configured to control the corresponding motor using the first enable signal and the second enable signal.
[0010] Further, generating a second enable signal according to the first monitoring signal and the second monitoring signal includes:
[0011] The second enable signal is generated only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
[0012] Furthermore, the circuit also includes: at least two acquisition modules;
[0013] Each of the acquisition modules is electrically connected to the corresponding preset motor and is configured to acquire a working signal of the motor;
[0014] The acquisition module is also electrically connected to the control module corresponding to the motor and to the detection module. The acquisition module is also configured to send the acquired working signal to the corresponding control module and the detection module.
[0015] Further, each of the acquisition modules includes: at least one sensor among a current sensor, a speed sensor and a temperature sensor;
[0016] Wherein, the current sensor is electrically connected to the corresponding preset motor, and is electrically connected to the detection module and the corresponding control module, and the current sensor is configured to collect the current signal of the corresponding preset motor and send it to the detection module and the corresponding control module;
[0017] The speed sensor is electrically connected to the corresponding preset motor, and is electrically connected to the detection module and the corresponding control module. The current sensor is configured to collect the speed signal of the corresponding preset motor and send it to the detection module and the corresponding control module.
[0018] The temperature sensor is electrically connected to the corresponding preset motor, and is electrically connected to both the detection module and the corresponding control module. The temperature sensor is configured to collect a temperature signal of the corresponding preset motor and send it to the detection module and the corresponding control module.
[0019] Further, each control module includes: a control operation unit, an enabling switch, a buffer and an inverter;
[0020] The control operation unit is electrically connected to the corresponding acquisition module and to the enable switch, and the control operation unit is configured to generate the first monitoring signal by performing a logic operation on the received working signal and send it to the detection module; generate the first enable signal by using the received external instruction of the circuit and send it to the enable switch;
[0021] The enabling switch is electrically connected to the detection module and is configured to receive the first enabling signal from the control operation unit, receive the second enabling signal from the detection module, and determine a pulse control signal using the first enabling signal and the second enabling signal;
[0022] The buffer is electrically connected to the enable switch and configured to receive the pulse control signal from the enable switch;
[0023] The inverter is electrically connected to the buffer and to the corresponding preset motor, and the inverter is configured to control the voltage applied to the corresponding preset motor according to the pulse control signal sent from the buffer.
[0024] Further, the detection module includes: a signal conversion unit, a verification operation unit, and an external bus port;
[0025] The signal conversion unit is electrically connected to each of the acquisition modules, and is configured to generate the second monitoring signal by performing a logic operation on the received working signal, and send the generated second monitoring signal to the verification operation unit;
[0026] The external bus port is electrically connected to a preset local area network bus and is configured to receive the external instruction from the local area network bus; the external bus port is also electrically connected to the verification operation unit and is configured to send the external instruction to the verification operation unit;
[0027] The verification operation unit is configured to verify the error between the first monitoring signal and the second monitoring signal, and generate the second enable signal according to the verification result and the external instruction.
[0028] Furthermore, each control module further comprises a first internal bus port; the detection module further comprises a second internal bus port;
[0029] wherein the first internal bus port is electrically connected to the second internal bus port;
[0030] The first internal bus port is configured to obtain the first monitoring signal from the control operation unit and send the first monitoring signal to the second internal bus port using an internal serial peripheral interface protocol;
[0031] The second internal bus port is configured to receive the first monitoring signal from the first internal bus port using the internal serial peripheral interface protocol, and send the first monitoring signal to the verification operation unit;
[0032] The second internal bus port is further configured to obtain the external instruction from the external bus port and send the external instruction to the first internal bus port using an internal serial peripheral interface protocol;
[0033] The first internal bus port is further configured to receive the external instruction from the second internal bus port using the internal serial peripheral interface protocol, and send the external instruction to the control operation unit.
[0034] Further, the control operation unit includes a first enable control terminal, and the first enable terminal is configured to output the first enable signal to the enable switch;
[0035] The verification operation unit includes a second enable control terminal, wherein the second enable terminal is configured to output the second enable signal to the enable switch;
[0036] The enable switch is configured to execute a logical connection relationship between the first enable signal and the second enable signal, and generate the pulse control signal according to the execution result of the logical connection relationship.
[0037] Based on the same inventive concept, the present application also provides a motor control method, including:
[0038] Using the detection module to receive external instructions corresponding to at least two preset motors sent from the outside of the motor control circuit, and sending the external instructions to the control modules corresponding to each motor through the internal serial peripheral interface protocol;
[0039] Using the detection module and the control module to collect the working signal of each motor respectively;
[0040] The control module generates a first monitoring signal corresponding to each motor by performing a logic operation on the working signal of each motor, and sends the first monitoring signal to the detection module, and generates a first enabling signal corresponding to each motor by using an external instruction corresponding to each motor;
[0041] The detection module generates a second monitoring signal corresponding to each motor by performing a logic operation on the working signal of each motor;
[0042] Instructing the detection module to receive the first monitoring signal from the control module, and verify the first monitoring signal and the second monitoring signal, generate a second enable signal according to the verification result and the external instruction, and send the second enable signal to the control module;
[0043] The control module is enabled to perform a logical connection relationship between the first enable signal and the second enable signal to control each corresponding motor.
[0044] Further, generating a second enable signal according to the verification result and the external instruction includes:
[0045] The second enable signal is generated according to the external instruction only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
[0046] Based on the same inventive concept, the present application also provides a vehicle, which includes a motor control circuit as described in any one of the above.
[0047] Based on the same inventive concept, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the motor control method as described in any one of the above items is implemented.
[0048] Based on the same inventive concept, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the motor control method as described above.
[0049] From the above description, it can be seen that the motor control circuit, motor control method and vehicle provided by the present application, in a motor control circuit including at least two motors, are based on the at least two control modules set up, by setting a unique corresponding motor for each control module to detect and control it, and using the set detection module to control each control module, and comprehensively consider the computing power resources of the detection module and each control module to construct the motor control circuit, so that each control module only generates a first monitoring signal and a first enable signal for the corresponding motor, and the detection module can generate a second monitoring signal and a second enable signal for each motor according to the first monitoring signal, so that each control module uses the first enable signal and the second enable signal to control the corresponding motor, and the detection module uses the first monitoring signal and the second monitoring signal to monitor each motor and the entire motor control circuit, so that the control and monitoring of the motor are performed by different modules respectively, thereby improving the overall computing efficiency and control real-time performance of the motor control circuit. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0051] Figure 1 A first circuit diagram of a motor control circuit according to an embodiment of the present application;
[0052] Figure 2 A second circuit diagram of the motor control circuit according to an embodiment of the present application;
[0053] Figure 3 A third circuit diagram of the motor control circuit according to an embodiment of the present application;
[0054] Figure 4 A fourth circuit diagram of the motor control circuit according to an embodiment of the present application;
[0055] Figure 5 is a fifth circuit diagram of the motor control circuit according to an embodiment of the present application;
[0056] Figure 6 is a sixth circuit diagram of the motor control circuit according to an embodiment of the present application;
[0057] Figure 7 is a seventh circuit diagram of the motor control circuit according to an embodiment of the present application;
[0058] Figure 8 A flow chart of a motor control method according to an embodiment of the present application;
[0059] Fig. 9 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0061] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connecting" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0062] As described in the background technology section, the related motor control circuit still cannot meet the circuit control requirements in actual production.
[0063] In the process of implementing the present application, the applicant discovered that the main problem with the relevant motor control circuit is that the relevant motor control circuit is often designed to use a single chip to control multiple motors, or to use a single chip to control a single motor while also requiring detection of the motor or circuit.
[0064] Based on this, in the above-mentioned motor control circuit, each chip has to perform multi-tasking or multi-threading work. In addition to executing the motor control logic tasks, it also has to perform internal signal interaction, verification of motor operation parameter signals, and communication with the outside of the motor control circuit. As a result, the on-chip resources of the chip cannot be used solely for motor control, or solely for detection, which further leads to problems such as slower algorithm operation and delayed information acquisition and processing in the motor control circuit, and seriously affects the real-time performance of motor control.
[0065] Based on this, one or more embodiments in the present application provide a motor control circuit.
[0066] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0067] In this embodiment, when multiple motors are provided in the circuit, in order to control the motors, a corresponding control module can be provided for each motor, and a detection module can be provided in the circuit to utilize the detection module to detect the operating status of each motor, and control the motor corresponding to the control module through the control module according to the instruction requirements outside the circuit.
[0068] refer to Figure 1 A motor control circuit 1 according to an embodiment of the present application includes: at least two control modules 100 and one detection module 200 .
[0069] Each control module 100 is provided with a chip for processing computing requirements, such as an MCU (micro control unit) chip, and the detection module 200 is also provided with a chip for processing computing requirements, such as an MCU chip.
[0070] Each control module 100 is electrically connected to a corresponding preset motor 300 , and each control module 100 is configured to generate a first monitoring signal and a first enabling signal corresponding to the motor 300 .
[0071] In this embodiment, if Figure 1 As shown, a motor control circuit 1 having two motors 300 is used as a specific example, wherein, in order to control Figure 1The two motors 300 can be each configured with a corresponding control module 100, that is, two control modules 100 are set, and each control module 100 uniquely corresponds to one motor 300; and each motor 300 is electrically connected to the corresponding control module 100 to transmit relevant signals for controlling and detecting the motor 300 between the control module 100 and the motor 300.
[0072] Based on this, each control module 100 can generate a first monitoring signal and a first enabling signal for the corresponding motor 300 , and send the generated first monitoring signal to the corresponding detection module 200 .
[0073] The first monitoring signal includes relevant information of the current operation of the corresponding motor 300 , and the first enabling signal includes relevant information of controlling the corresponding motor 300 .
[0074] The detection module 200 is electrically connected to each motor 300 , and the detection module 200 is configured to generate a second monitoring signal corresponding to each motor 300 .
[0075] In this embodiment, if Figure 1 As shown, a detection module 200 is further provided in the motor control circuit 1 , and the two motors 300 are both electrically connected to the detection module 200 , so that relevant signals for detecting the motors 300 are transmitted between the detection module 200 and the motors 300 .
[0076] Based on this, the detection module 200 can generate a second monitoring signal corresponding to each of the two motors 300 , wherein each second monitoring signal includes relevant information about the current operation of the corresponding motor 300 .
[0077] The detection module 200 is also electrically connected to each of the control modules 100 , and the detection module 200 is also configured to obtain a respective first monitoring signal of each of the control modules 100 , and generate a second enabling signal according to the first monitoring signal and the second monitoring signal.
[0078] In this embodiment, if Figure 1 As shown, the detection module 200 is not only electrically connected to each motor 300 , but also electrically connected to each control module 100 .
[0079] The detection module 200 can obtain the first monitoring signal generated by each control module 100 through electrical connection.
[0080] Furthermore, the detection module 200 can use the first monitoring signal obtained above and the second monitoring signal generated by itself to generate a second enable signal for the corresponding motor 300, and can specifically determine whether to generate the second enable signal by verifying the first monitoring signal and the second monitoring signal.
[0081] The second enable signal specifically includes relevant information for controlling the corresponding motor 300 . Based on this, the detection module 200 sends the generated second enable signal to the corresponding control module 100 to control the corresponding motor 300 .
[0082] Each control module 100 is further configured to control the corresponding motor 300 using the first enable signal and the second enable signal.
[0083] In this embodiment, after receiving the second enable signal sent by the detection module 200 , each control module 100 can use the second enable signal and the first enable signal generated by itself to control the corresponding motor 300 .
[0084] Specifically, a logic control mechanism is provided in the control module 100, such as an enable switch 120, based on which a logic operation can be performed on the first enable signal and the second enable signal, and the corresponding motor 300 can be controlled according to the result of the logic operation.
[0085] In other specific examples of the present application, generating a second enable signal according to the first monitoring signal and the second monitoring signal includes:
[0086] The second enable signal is generated only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
[0087] In this embodiment, after the detection module 200 acquires the first monitoring signal of any control module 100, the error between the first monitoring signal and the second monitoring signal may be checked.
[0088] Specifically, an error range can be set in advance. When the error between the first monitoring signal and the second monitoring signal is within the error range, it is considered that the operating parameters of the corresponding motor 300 are correct, no false detection occurs, the motor control circuit 1 is stable, and can continue to operate stably, so a second enable signal can be generated.
[0089] When the error between the first monitoring signal and the second monitoring signal exceeds the error range, or is equal to the boundary of the error range, it is considered that the operating parameters of the corresponding motor 300 are erroneous, or an error detection phenomenon occurs, and the motor control circuit 1 is considered unstable, so the second enable signal is not generated.
[0090] In other specific examples of the present application, the circuit 1 further includes: at least two acquisition modules 400 .
[0091] Each of the acquisition modules 400 is electrically connected to the corresponding preset motor 300 and is configured to acquire a working signal of the motor 300 .
[0092] The acquisition module 400 is also electrically connected to the control module 100 corresponding to the motor 300 , and is also electrically connected to the detection module 200 . The acquisition module 400 is also configured to send the acquired working signal to the corresponding control module 100 and the detection module 200 .
[0093] In this embodiment, if Figure 2 As shown, in a specific example where two motors 300 are provided, a collection module 400 is also provided, wherein each motor 300 is configured with a collection module 400 uniquely corresponding to the motor 300 and is electrically connected to the collection module 400 .
[0094] Based on this, each acquisition module 400 can acquire the working signal of the motor 300 from the corresponding motor 300 , wherein the working signal includes the operation data of the corresponding motor 300 , for example, the current current, speed and temperature of the motor 300 .
[0095] Furthermore, if Figure 2 As shown, each acquisition module 400 is also electrically connected to the corresponding control module 100 , and sends the above-collected working signal of the corresponding motor 300 to the corresponding control module 100 .
[0096] Furthermore, if Figure 2 As shown, each acquisition module 400 is also electrically connected to the detection module 200 , and sends the above-collected working signal of the corresponding motor 300 to the corresponding detection module 200 .
[0097] In another specific example of the present application, Figure 3 As shown, each of the acquisition modules 400 includes at least one sensor among a current sensor 410 , a speed sensor 420 and a temperature sensor 430 .
[0098] In this embodiment, each acquisition module 400 is provided with a plurality of sensors for acquiring the operation data of the corresponding motor 300 or signals related to the operation of the motor 300 .
[0099] by Figure 3 For example, each acquisition module 400 is provided with a current sensor 410, a speed sensor 420 and a temperature sensor 430. In some other embodiments, other sensors such as a voltage sensor may also be provided.
[0100] The current sensor 410 is electrically connected to the corresponding preset motor 300, and is electrically connected to both the detection module 200 and the corresponding control module 100. The current sensor 410 is configured to collect the current signal of the corresponding preset motor 300 and send it to the detection module 200 and the corresponding control module 100.
[0101] exist Figure 3 In the specific example shown, the current sensor 410 provided in the acquisition module 400 is electrically connected to the motor 300, such as Figure 3 As shown, the current sensor 410 can collect a current signal from the motor 300 during the current operation based on the electrical connection.
[0102] Furthermore, the acquisition module 400 is also electrically connected to the detection module 200, and is also electrically connected to the corresponding control module 100, such as Figure 3 As shown, the current sensor 410 can send the collected current signal to the corresponding control module 100 and detection module 200 based on electrical connection.
[0103] The speed sensor 420 is electrically connected to the corresponding preset motor 300 , and is electrically connected to both the detection module 200 and the corresponding control module 100 . The speed sensor 420 is configured to collect the speed signal of the corresponding preset motor 300 , and send it to the detection module 200 and the corresponding control module 100 .
[0104] exist Figure 3 In the specific example shown, the speed sensor 420 provided in the acquisition module 400 is electrically connected to the motor 300, such as Figure 3 As shown, the speed sensor 420 can collect a rotation speed signal of the motor 300 during current operation based on electrical connection.
[0105] Furthermore, the acquisition module 400 is also electrically connected to the detection module 200, and is also electrically connected to the corresponding control module 100, such as Figure 3 As shown, the speed sensor 420 can send the collected rotation speed signal to the corresponding control module 100 and detection module 200 based on electrical connection.
[0106] The temperature sensor 430 is electrically connected to the corresponding preset motor 300, and is electrically connected to the detection module 200 and the corresponding control module 100. The temperature sensor 430 is configured to collect the temperature signal of the corresponding preset motor 300 and send it to the detection module 200 and the corresponding control module 100.
[0107] exist Figure 3In the specific example shown, the temperature sensor 430 provided in the acquisition module 400 is electrically connected to the motor 300, such as Figure 3 As shown, the temperature sensor 430 can collect a temperature signal during the current operation from the motor 300 based on an electrical connection.
[0108] Furthermore, the acquisition module 400 is also electrically connected to the detection module 200, and is also electrically connected to the corresponding control module 100, such as Figure 3 As shown, the temperature sensor 430 can send the collected temperature signal to the corresponding control module 100 and detection module 200 based on electrical connection.
[0109] In another specific example of the present application, each control module 100 includes: a control operation unit 110 , an enabling switch 120 , a buffer 130 and an inverter 140 .
[0110] In this embodiment, if Figure 4 As shown, in order to control the motor 300 , the control module 100 corresponding to each motor 300 is provided with an inverter 140 , a buffer 130 , an enabling switch 120 and a control operation unit 110 .
[0111] Among them, the control operation unit 110 is electrically connected to the corresponding acquisition module 400 and to the enable switch 120. The control operation unit 110 is configured to generate the first monitoring signal by performing a logical operation on the received working signal and send it to the detection module 200; generate the first enable signal using the external instructions received from the circuit and send it to the enable switch 120.
[0112] exist Figure 4 In the specific example shown, the control operation unit 110 provided in each control module 100 is electrically connected to the corresponding acquisition module 400, wherein the control operation unit 110 may be, for example, an MCU (micro control unit) chip, such as Figure 4 As shown, the control operation unit 110 can obtain the working signal of the corresponding motor 300 from the acquisition module 400 .
[0113] Furthermore, the control operation unit 110 may perform a logic operation on the collected working signal to generate the first monitoring signal in the aforementioned embodiment.
[0114] Furthermore, the control operation unit 110 is also electrically connected to the detection module 200 . Based on the electrical connection, the control operation unit 110 can send the first monitoring signal to the detection module 200 .
[0115] Furthermore, the control operation unit 110 may receive external instructions from outside the motor control circuit 1 , wherein the external instructions specifically include relevant instructions for controlling the motor 300 generated from outside the motor control circuit 1 .
[0116] Among them, the external instruction outside the motor control circuit 1 can be Figure 4 The external instruction is sent from the motor control circuit outside 2 to the detection module 200 in the motor control circuit 1, and the detection module 200 sends the external instruction to the control operation unit 110; or, it can also be sent to other receiving devices for receiving signals in the control module 100, and sent to the control operation unit 110 by the receiving device.
[0117] In some other embodiments, external instructions outside the motor control circuit 1 can also be sent directly from the outside of the motor control circuit 1 to the control operation unit 110; or, they can also be sent to other receiving devices in the control module 100 for receiving signals, and then sent to the control operation unit 110 by the receiving device.
[0118] Furthermore, the control operation unit 110 can generate a first enable signal according to the external instruction. Specifically, the working condition of the corresponding motor 300 can be judged according to the working signal. When the working condition permits, the first enable signal is generated according to the control method indicated by the external instruction.
[0119] Furthermore, if Figure 4 As shown, the control operation unit 110 is also electrically connected to the enabling switch 120 to send the first enabling signal generated as described above to the enabling switch 120 .
[0120] The enable switch 120 is electrically connected to the detection module 200 and is configured to receive the first enable signal from the control operation unit 110, receive the second enable signal from the detection module 200, and determine a pulse control signal using the first enable signal and the second enable signal.
[0121] In this embodiment, if Figure 4 As shown, in addition to being electrically connected to the control primitive unit, the enabling switch 120 is also electrically connected to the detection module 200 outside the control module 100 .
[0122] Based on this electrical connection, Figure 4 As shown, the enable switch 120 can receive a first enable signal from the control operation unit 110 and a second enable signal from the detection module 200 .
[0123] Furthermore, a logic operation mechanism is provided in the control operation unit, based on which the control operation unit 110 can perform logic operations on the first enable signal and the second enable signal. For example, the enable switch 120 executes a preset logical connection relationship between the first enable signal and the second enable signal, and generates a pulse control signal according to the execution result of the logical connection relationship.
[0124] The buffer 130 is electrically connected to the enabling switch 120 and is configured to receive the pulse control signal from the enabling switch 120 .
[0125] In this embodiment, if Figure 4 As shown, the enabling switch 120 is also electrically connected to a buffer 130 disposed in the control module 100 .
[0126] Based on the electrical connection, the enabling switch 120 can send the pulse control signal generated above to the buffer 130 , and after the buffer 130 receives the pulse control signal, the pulse width is modulated according to the pulse control signal.
[0127] It can be seen that the buffer 130 can pass the pulse width downward through the enable control.
[0128] The inverter 140 is electrically connected to the buffer 130 and to the corresponding preset motor 300 . The inverter 140 is configured to control the voltage applied to the corresponding preset motor 300 according to the pulse control signal sent from the buffer 130 .
[0129] In this embodiment, if Figure 4 As shown, an inverter 140 is also provided in the control module 100 , and the structure of the inverter 140 may be, for example, a three-phase inverter bridge circuit.
[0130] Furthermore, the buffer 130 is also electrically connected to the inverter 140. Based on the electrical connection, the inverter 140 can receive a pulse control signal from the buffer 130 and control the corresponding motor 300 according to the pulse width in the pulse control signal. Specifically, the voltage applied to the motor 300 can be controlled according to the pulse width.
[0131] In another specific example of the present application, the detection module 200 includes: a signal conversion unit 210 , a verification operation unit 220 , and an external bus port 230 .
[0132] In this embodiment, if Figure 5 As shown, in order to control the motor 300 and its corresponding control module 100 , the detection module 200 is provided with a verification operation unit 220 , a signal conversion unit 210 and an external bus port 230 .
[0133] The signal conversion unit 210 is electrically connected to each of the acquisition modules 400 , and is configured to generate the second monitoring signal by performing a logic operation on the received working signal, and send the generated second monitoring signal to the verification operation unit 220 .
[0134] exist Figure 5 In the specific example shown, the signal conversion unit 210 is electrically connected to each acquisition module 400 outside the detection module 200, such as Figure 5 As shown, the signal conversion unit 210 can obtain the working signal of the corresponding motor 300 from each acquisition module 400 .
[0135] Furthermore, the signal conversion unit 210 may perform a logic operation on the collected working signal to generate the second monitoring signal in the aforementioned embodiment.
[0136] Furthermore, the signal conversion unit 210 is also electrically connected to the verification operation unit 220. Based on the electrical connection, the signal conversion unit 210 can send the second monitoring signal corresponding to the motor 300 to the verification operation unit 220 for verification.
[0137] The calibration operation unit 220 may be, for example, a MCU (micro control unit) chip.
[0138] The external bus port 230 is electrically connected to a preset local area network bus and is configured to receive the external instructions from the local area network bus; the external bus port 230 is also electrically connected to the verification operation unit 220 and is configured to send the external instructions to the verification operation unit 220.
[0139] In this embodiment, if Figure 5 As shown, the external bus port 230 is electrically connected to the relevant circuits of the motor control circuit external 2 to obtain relevant instructions from the motor control circuit external 2.
[0140] The relevant circuits outside the motor control circuit 2 may specifically be, for example, a preset local area network, etc., and are electrically connected to a local area network bus in the local area network.
[0141] Furthermore, the relevant instructions obtained by the external bus port 230 from the outside of the motor control circuit 2 may specifically be, for example, external instructions for controlling the motor 300 .
[0142] like Figure 5 As shown, the external bus port 230 is also electrically connected to the verification operation unit 220 in the detection module 200 , and sends the external instruction obtained above to the verification operation unit 220 .
[0143] The verification operation unit 220 is configured to verify the error between the first monitoring signal and the second monitoring signal, and generate the second enable signal according to the verification result and the external instruction.
[0144] In this embodiment, if Figure 5 As shown, after the verification operation unit 220 obtains the second monitoring signal from the signal conversion unit 210 and obtains the first monitoring signal from the control operation unit 110 , it can verify the first monitoring signal and the second monitoring signal.
[0145] Specifically, the error between the first monitoring signal and the second monitoring signal is checked, and when the error meets a preset error range, the check result is considered qualified, and the second enable signal is allowed to be generated.
[0146] Further, based on the qualified verification result, the verification operation unit 220 can generate a second enable signal according to the control mode indicated by the external instruction under the condition that the working condition of the motor 300 allows.
[0147] like Figure 5 As shown, the verification primitive unit sends the second enable control signal to the enable switch 120, so that the enable switch 120 can perform a logic operation according to the first enable signal and the second enable signal.
[0148] In another specific example of the present application, each of the control modules 100 further includes a first internal bus port 150 ; and the detection module 200 further includes a second internal bus port 240 .
[0149] Wherein, the first internal bus port 150 is electrically connected to the second internal bus port 240;
[0150] In this embodiment, if Figure 6 As shown, in order to realize the communication between the detection module 200 and each control module 100 , a first internal bus port 150 is provided in each control module 100 , and a second internal bus port 240 is provided in the detection module 200 .
[0151] The first internal bus port 150 is configured to obtain the first monitoring signal from the control operation unit 110 and send the first monitoring signal to the second internal bus port 240 using an internal serial peripheral interface protocol.
[0152] The second internal bus port 240 is configured to receive the first monitoring signal from the first internal bus port 150 using the internal serial peripheral interface protocol, and send the first monitoring signal to the verification operation unit 220 .
[0153] The second internal bus port 240 is further configured to obtain the external instruction from the external bus port 230 and send the external instruction to the first internal bus port 150 using an internal serial peripheral interface protocol.
[0154] The first internal bus port 150 is further configured to receive the external instruction from the second internal bus port 240 using the internal serial peripheral interface protocol, and send the external instruction to the control operation unit 110 .
[0155] In this embodiment, if Figure 6 As shown, the first internal bus port 150 is also electrically connected to the control operation unit, and the second internal bus port 240 is also electrically connected to the verification operation unit 220 .
[0156] Based on this, the first internal bus port 150 can obtain the first monitoring signal from the verification operation unit 220 and send the first monitoring signal to the second internal bus port 240. After receiving the first monitoring signal, the second internal bus port 240 can send the first monitoring signal to the verification operation unit 220 to enable the verification operation unit 220 to verify the first monitoring signal and the second monitoring signal.
[0157] exist Figure 6 In the specific example shown, the first internal bus port 150 and the second internal bus port 240 may be connected in a communication manner based on an internal serial peripheral interface protocol, and the first monitoring signal may be transmitted according to the internal serial peripheral interface protocol.
[0158] In this embodiment, the first monitoring signal and the external instruction transmitted between the control operation unit 110 and the first internal neutral port 150 can be transmitted by different buses respectively. In some other embodiments, they can also be transmitted by the same bus implementing the same transmission protocol.
[0159] In this embodiment, if Figure 6 As shown, the second internal bus port 240 is also electrically connected to the external bus port 230 .
[0160] Based on this, the second internal bus port 240 can obtain the signal of the external instruction from the external bus port 230 and send the external instruction to the first internal bus port 150. After receiving the external instruction, the first internal bus port 150 can send the external instruction to the control operation unit 110 to enable the control operation unit 110 to generate a first enable signal based on the external instruction.
[0161] exist Figure 6In the specific example shown, the first internal bus port 150 and the second internal bus port 240 may adopt a communication method such as an internal serial peripheral interface protocol to transmit external instructions.
[0162] In this embodiment, the first monitoring signal and the external instruction transmitted between the first internal neutral port 150 and the second internal bus port 240 can be transmitted by different buses respectively. In some other embodiments, they can also be transmitted by the same bus implementing the same transmission protocol.
[0163] In another specific example of the present application, each of the control operation units 110 includes a first enable control terminal 111 , and the first enable terminal is configured to output the first enable signal to the enable switch 120 .
[0164] The checking operation unit 220 includes a second enable control terminal 221 , and the second enable terminal is configured to output the second enable signal to the enable switch 120 .
[0165] In this embodiment, if Figure 7 As shown, in order to realize the transmission of the first enable signal and the second enable signal, a first enable control terminal 111 is provided in each control operation unit 110 , and a second enable control terminal 221 is provided in the detection module 200 .
[0166] exist Figure 7 In the specific example shown, the first enable control terminal 111 in each control operation unit 110 is electrically connected to the enable switch 120 in the control module 100 , and the second enable control terminal 221 is electrically connected to the enable switch 120 in each control module 100 .
[0167] Based on the above electrical connection, each first enable control terminal 111 can send the first enable signal generated in the corresponding control operation unit 110 to the enable switch 120 in the control module 100 .
[0168] Furthermore, the second enable control terminal 221 can send the second enable signal corresponding to each control module 100 to the corresponding enable switch 120 .
[0169] The enable switch 120 is configured to execute a logical connection relationship between the first enable signal and the second enable signal, and generate the pulse control signal according to the execution result of the logical connection relationship.
[0170] In this embodiment, the enabling switch 120 may perform a preset logic connection relationship operation on the received first enabling signal and the second enabling signal.
[0171] In a specific example, the enable switch 120 can perform an AND logical connection relationship between the first enable signal and the second enable signal, and generate a pulse control signal only when the AND logical connection relationship is established.
[0172] That is, the pulse control signal is generated only when the enable switch 120 determines that the first enable signal and the second enable signal are consistent.
[0173] It should be noted that, in some other embodiments, the enable switch 120 can also perform other logical connection relationships such as OR and NOT between the first enable signal and the second enable signal.
[0174] For the convenience of description, the above devices are described in terms of functions and are divided into various modules. Of course, when implementing the embodiments of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0175] It can be seen that the motor control circuit 1 of the embodiment of the present application, in the motor control circuit 1 including at least two motors 300, detects and controls the motor 300 by setting a unique corresponding motor 300 for each control module 100, and uses a set detection module 200 to control each control module 100, and comprehensively considers the computing power resources of the detection module 200 and each control module 100 to construct the motor control circuit 1, so that each control module 100 only generates a first monitoring signal and a first enable signal for the corresponding motor 300, and the detection module 200 can generate a second monitoring signal and a second enable signal for each motor 300 according to the first monitoring signal, so that each control module 100 uses the first enable signal and the second enable signal to control the corresponding motor 300, and the detection module 200 uses the first monitoring signal and the second monitoring signal to monitor each motor 300 and the entire motor control circuit 1, so that the control and monitoring of the motor 300 are respectively performed by different modules, thereby improving the overall computing efficiency and control real-time performance of the motor control circuit 1.
[0176] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a motor control method.
[0177] refer to Figure 8 The motor control method is applied to the motor control circuit in any of the above embodiments, and specifically comprises the following steps:
[0178] Step S801: using a detection module to receive external instructions corresponding to at least two preset motors from outside the motor control circuit, and sending the external instructions to the control modules corresponding to each motor through an internal serial peripheral interface protocol.
[0179] Step S802: Collect the working signal of each motor using the detection module and the control module respectively.
[0180] Step S803, instruct the control module to generate a first monitoring signal corresponding to each motor by performing a logical operation on the working signal of each motor, and send the signal to the detection module, and use the external instruction corresponding to each motor to generate a first enable signal corresponding to each motor.
[0181] Step S804 , instructing the detection module to generate a second monitoring signal corresponding to each motor by performing a logic operation on the working signal of each motor.
[0182] Step S805, instruct the detection module to receive the first monitoring signal from the control module, and verify the first monitoring signal and the second monitoring signal, generate a second enable signal according to the verification result and the external instruction, and send the second enable signal to the control module.
[0183] The step of generating a second enable signal according to the verification result and the external instruction includes:
[0184] The second enable signal is generated according to the external instruction only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
[0185] Step S806: Instruct the control module to perform a logical connection relationship between the first enable signal and the second enable signal to control each corresponding motor.
[0186] The method of the above embodiment is used to control the corresponding motor control circuit in any of the above embodiments, and has the beneficial effects of the corresponding circuit embodiment, which will not be described in detail here.
[0187] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0188] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0189] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the motor control method as described in any of the above embodiments is implemented.
[0190] Fig. 9 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0191] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0192] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0193] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0194] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0195] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0196] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.
[0197] The device of the above embodiment is used to implement the corresponding motor control method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0198] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a vehicle, wherein the vehicle includes a motor control circuit, and the motor control circuit executes the motor method as described in any one of the above-mentioned embodiments.
[0199] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the motor control method described in any of the above embodiments.
[0200] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0201] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the motor control method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0202] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0203] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0204] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0205] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A motor control circuit, characterized in that: The circuit includes at least two control modules and one detection module; Wherein, each control module is electrically connected to a corresponding preset motor, and each control module is configured to generate a first monitoring signal and a first enabling signal corresponding to the motor; The detection module is electrically connected to each motor, and the detection module is configured to generate a second monitoring signal corresponding to each motor; The detection module is also electrically connected to each of the control modules, and the detection module is also configured to obtain a first monitoring signal of each of the control modules, and generate a second enabling signal according to the first monitoring signal and the second monitoring signal; Each of the control modules is further configured to control the corresponding motor using the first enable signal and the second enable signal.
2. The circuit according to claim 1, characterized in that The generating a second enable signal according to the first monitoring signal and the second monitoring signal comprises: The second enable signal is generated only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
3. The circuit according to claim 1, characterized in that The circuit further comprises: at least two acquisition modules; Each of the acquisition modules is electrically connected to the corresponding preset motor and is configured to acquire a working signal of the motor; The acquisition module is also electrically connected to the control module corresponding to the motor and to the detection module. The acquisition module is also configured to send the acquired working signal to the corresponding control module and the detection module.
4. The circuit according to claim 3, characterized in that Each of the acquisition modules includes: at least one sensor selected from the group consisting of a current sensor, a speed sensor, and a temperature sensor; Wherein, the current sensor is electrically connected to the corresponding preset motor, and is electrically connected to the detection module and the corresponding control module, and the current sensor is configured to collect the current signal of the corresponding preset motor and send it to the detection module and the corresponding control module; The speed sensor is electrically connected to the corresponding preset motor, and is electrically connected to the detection module and the corresponding control module. The current sensor is configured to collect the speed signal of the corresponding preset motor and send it to the detection module and the corresponding control module. The temperature sensor is electrically connected to the corresponding preset motor, and is electrically connected to both the detection module and the corresponding control module. The temperature sensor is configured to collect a temperature signal of the corresponding preset motor and send it to the detection module and the corresponding control module.
5. The circuit according to claim 3, characterized in that Each of the control modules comprises: a control operation unit, an enabling switch, a buffer and an inverter; The control operation unit is electrically connected to the corresponding acquisition module and to the enable switch, and the control operation unit is configured to generate the first monitoring signal by performing a logic operation on the received working signal and send it to the detection module; generate the first enable signal by using the received external instruction of the circuit and send it to the enable switch; The enabling switch is electrically connected to the detection module and is configured to receive the first enabling signal from the control operation unit, receive the second enabling signal from the detection module, and determine a pulse control signal using the first enabling signal and the second enabling signal; The buffer is electrically connected to the enable switch and configured to receive the pulse control signal from the enable switch; The inverter is electrically connected to the buffer and to the corresponding preset motor, and the inverter is configured to control the voltage applied to the corresponding preset motor according to the pulse control signal sent from the buffer.
6. The circuit according to claim 5, characterized in that The detection module includes: a signal conversion unit, a verification operation unit, and an external bus port; The signal conversion unit is electrically connected to each of the acquisition modules, and is configured to generate the second monitoring signal by performing a logic operation on the received working signal, and send the generated second monitoring signal to the verification operation unit; The external bus port is electrically connected to a preset local area network bus and is configured to receive the external instruction from the local area network bus; the external bus port is also electrically connected to the verification operation unit and is configured to send the external instruction to the verification operation unit; The verification operation unit is configured to verify the error between the first monitoring signal and the second monitoring signal, and generate the second enable signal according to the verification result and the external instruction.
7. The circuit according to claim 6, characterized in that Each of the control modules further comprises a first internal bus port; the detection module further comprises a second internal bus port; wherein the first internal bus port is electrically connected to the second internal bus port; The first internal bus port is configured to obtain the first monitoring signal from the control operation unit and send the first monitoring signal to the second internal bus port using an internal serial peripheral interface protocol; The second internal bus port is configured to receive the first monitoring signal from the first internal bus port using the internal serial peripheral interface protocol, and send the first monitoring signal to the verification operation unit; The second internal bus port is further configured to obtain the external instruction from the external bus port and send the external instruction to the first internal bus port using an internal serial peripheral interface protocol; The first internal bus port is further configured to receive the external instruction from the second internal bus port using the internal serial peripheral interface protocol, and send the external instruction to the control operation unit.
8. The circuit according to claim 5, characterized in that Each of the control operation units includes a first enable control terminal, wherein the first enable terminal is configured to output the first enable signal to the enable switch; The verification operation unit includes a second enable control terminal, wherein the second enable terminal is configured to output the second enable signal to the enable switch; The enable switch is configured to execute a logical connection relationship between the first enable signal and the second enable signal, and generate the pulse control signal according to the execution result of the logical connection relationship.
9. A motor control method, characterized in that: Applied to the motor control circuit according to any one of claims 1 to 8, the method comprising: Using the detection module to receive external instructions corresponding to at least two preset motors sent from the outside of the motor control circuit, and sending the external instructions to the control modules corresponding to each motor through the internal serial peripheral interface protocol; Using the detection module and the control module to collect the working signal of each motor respectively; The control module generates a first monitoring signal corresponding to each motor by performing a logic operation on the working signal of each motor, and sends the first monitoring signal to the detection module, and generates a first enabling signal corresponding to each motor by using an external instruction corresponding to each motor; The detection module generates a second monitoring signal corresponding to each motor by performing a logic operation on the working signal of each motor; Instructing the detection module to receive the first monitoring signal from the control module, and verify the first monitoring signal and the second monitoring signal, generate a second enable signal according to the verification result and the external instruction, and send the second enable signal to the control module; The control module is enabled to perform a logical connection relationship between the first enable signal and the second enable signal to control each corresponding motor.
10. The method according to claim 9, characterized in that The generating a second enable signal according to the verification result and the external instruction comprises: The second enable signal is generated according to the external instruction only when the error between the first monitoring signal and the second monitoring signal is within a preset error range.
11. A vehicle, characterized in that: The motor control circuit comprises the motor control circuit as claimed in any one of claims 1 to 8.
