Robot motor fault protection method, robot and storage medium
By receiving the fault signal in the robot motor system and turning off the motor power control circuit, detecting the on-off status of the motor power supply, and promptly disconnecting the main power supply, the problem of damage caused by motor failure is solved and the stability and safety of the robot system are improved.
Patent Information
- Application Number
- CN202410585328.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-11
- Publication Date
- 2024-09-06
AI Technical Summary
Existing robot motor faults cannot be successfully shut down in time, causing the motor to be further damaged and affecting the reliability, safety and stability of the robot system.
The first micro control unit receives the motor fault signal, determines the fault type, shuts down the motor power control circuit when the fault is unrecoverable, detects the motor power on and off status, and sends a fault signal to the main control unit if the power outage fails. Generate control instructions to close the main power control circuit and disconnect the main power supply and motor power supply.
It achieves rapid response to motor failure events and multiple protections to prevent further damage to the motor due to failure to successfully cut off power, improving the reliability and safety of the robot system.
Smart Images

Figure CN118610997A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of motors, and in particular to a robot motor fault protection method, a robot, and a computer-readable storage medium. Background Art
[0002] Nowadays, with the continuous innovation and progress of science and technology, the field of artificial intelligence is gradually entering people's daily lives and playing an increasingly important role, quietly affecting people's lives. Many intelligent robots are replacing traditional manual labor and playing a huge role in many fields such as security, unmanned delivery, and unmanned driving, greatly improving people's life and work efficiency.
[0003] Currently, in the field of mobile intelligent robots, the hub motor has the characteristics of integrating the power, transmission and braking devices into the wheel hub, which makes the motor inside the wheel hub highly integrated and can directly drive the wheel, omitting a large number of transmission components and making the robot structure simpler. As the core component of the mobile intelligent robot, the stability of the hub motor is an important factor in determining whether the robot can successfully perform related tasks.
[0004] In traditional robot chassis motor drive solutions, the motor driver is usually responsible for controlling the start, stop, and speed of the motor. However, once the motor driver fails, the motor may not work properly, or even damage the motor or the entire robot system. Summary of the invention
[0005] The embodiment of the present invention provides a robot motor fault protection method, which can quickly respond to motor failure events and improve the reliability and safety of the robot system.
[0006] In a first aspect, an embodiment of the present invention provides a method for preventing motor failures in a robot, wherein the robot includes a motor, a first microcontroller unit, a second microcontroller unit, and a main control unit, and the method includes:
[0007] The first micro control unit receives a first motor fault signal, and determines a fault type of the motor according to the first motor fault signal, wherein the fault type includes an irrecoverable fault and a recoverable fault;
[0008] When the fault type is an unrecoverable fault, the first micro control unit turns off the motor power control circuit to disconnect the motor power supply from the motor;
[0009] The first micro control unit detects the on / off state of the motor power supply;
[0010] When the motor power fails to be powered off, the first micro control unit sends a second motor fault signal to the main control unit;
[0011] The main control unit generates a control instruction according to the second motor fault signal, and sends the control instruction to the second micro control unit;
[0012] The second micro control unit turns off the main power control circuit according to the control instruction to disconnect the main power supply and the motor power supply.
[0013] In some embodiments, the robot further comprises a motor drive;
[0014] Before the step of the first micro control unit receiving the first motor fault signal, the method further includes:
[0015] The motor driver samples and detects the state of the motor in real time;
[0016] If the motor is in a fault state, the first motor fault signal is generated and sent to the first micro control unit.
[0017] In some embodiments, the method further comprises:
[0018] When the fault type is a recoverable fault, the first micro control unit generates a reset instruction and sends it to the motor driver;
[0019] The motor driver performs reset and restart operations on the motor according to the reset instruction.
[0020] In some embodiments, the first micro control unit detects the on / off state of the motor power supply, including:
[0021] The first micro control unit samples and obtains parameters of the motor power supply, and determines the on / off state of the motor power supply by comparing the parameters with a preset threshold, wherein the parameters are current and / or voltage;
[0022] If the parameter exceeds the preset threshold range, the motor power supply fails to be cut off;
[0023] If the parameter does not exceed the preset threshold range, the motor power is cut off successfully.
[0024] In some embodiments, the method further comprises:
[0025] When the motor is in a fault state, the main control unit acquires fault information of the motor, wherein the fault information includes one or more of the fault occurrence time, fault type, processing steps and processing results;
[0026] The main control unit uploads the fault information to the cloud server so that the cloud server can record and analyze the motor fault.
[0027] In some embodiments, the method further comprises:
[0028] The main control unit starts fault repair diagnosis according to the fault information;
[0029] The main control unit generates a fault response mechanism according to the result of the fault repair diagnosis;
[0030] The main control unit controls the first micro control unit and the second micro control unit to work respectively according to the fault response mechanism.
[0031] In some embodiments, the main control unit obtains the fault information of the motor, including:
[0032] When the fault type of the motor is an unrecoverable fault, the main control unit obtains fault information of the motor.
[0033] In a second aspect, an embodiment of the present invention provides a non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are executed by at least one processor, the at least one processor executes the method described in the first aspect above.
[0034] In a third aspect, an embodiment of the present invention provides a robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect above when executing the computer program.
[0035] Beneficial effects of the embodiments of the present invention: Different from the prior art, the robot motor fault protection method provided by the embodiments of the present invention receives a first motor fault signal through a first microcontroller unit, determines the fault type of the motor according to the first motor fault signal, and when the fault is an unrecoverable fault, shuts down the motor power control circuit through the first microcontroller unit to disconnect the motor power and the motor, and then detects the on and off state of the motor power through the first microcontroller unit. When the motor power fails to be powered off, the second motor fault signal is sent to the main control unit through the first microcontroller unit, and the main control unit generates a control instruction according to the second motor fault signal and sends it to the second control unit. The second microcontroller unit shuts down the main power control circuit according to the control instruction to disconnect the main power and the motor power.
[0036] By detecting the on-off state of the motor power supply through the first microcontroller unit, the on-off state of the motor power supply can be monitored after the motor power supply control circuit is turned off, so that the failure of the motor power supply to be powered off can be discovered in time and corresponding measures can be taken to prevent damage to the motor; by controlling the second microcontroller unit to turn off the main power supply control circuit through control instructions, the connection between the main power supply and the motor power supply can be disconnected in time through the main power supply control circuit when the motor power supply control circuit fails, thereby preventing the motor from being further damaged due to failure to successfully power off; based on the robot motor fault protection method, the motor power supply control circuit can be turned off in time when an irreversible fault occurs in the motor, the motor is powered off, and the on-off state of the motor power supply can be detected, and the main power supply control circuit can be turned off when the motor power supply fails to be powered off, which can effectively improve the reliability and safety of the robot system. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0038] Figure 1 A schematic diagram of an application environment of a robot motor fault protection method provided by an embodiment of the present invention;
[0039] Figure 2 A schematic diagram of a flow chart of a robot motor fault protection method provided by an embodiment of the present invention;
[0040] Figure 3 A schematic flow chart of a robot motor fault protection method provided by another embodiment of the present invention;
[0041] Figure 4 A schematic flow chart of a robot motor fault protection method provided by another embodiment of the present invention;
[0042] Figure 5 A schematic flow chart of a robot motor fault protection method provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0043] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements may be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0045] It should be noted that, if there is no conflict, the various features in the embodiments of the present invention can be combined with each other, all within the scope of protection of the present application. In addition, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in a different order than the module division in the device or the flow chart. In addition, the words "first", "second", "third", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0046] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in this specification and in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.
[0047] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0048] Figure 1 Schematic diagram of the application environment of the robot motor fault protection method provided by the embodiment of the present invention. Figure 1 The robot motor fault protection method is used for a robot 10, which includes a motor 11, a first microcontroller unit 12, a second microcontroller unit 13, a main control unit 14, a motor power control circuit 15, a main power control circuit 16 and a motor driver 17.
[0049] Among them, the motor 11 is the core component of the robot 10, which is used to provide the power required by the robot and drive the robot to move. The motor 11 is the robot chassis motor. For example, the motor 11 can be a hub motor. The hub motor has the characteristics that the power, transmission and braking devices are integrated into the hub. Since the motor is built into the hub, it is highly integrated and can directly drive the wheel, omitting a large number of transmission components, which can make the structure of the robot simpler.
[0050] The first micro control unit 12 is mainly responsible for real-time monitoring of the motor 11 and controlling the motor power control circuit 15 . The first micro control unit 12 can sample and detect key parameters of the motor through an analog-to-digital converter and upload the acquired important data to the main control unit 14 .
[0051] The second micro control unit 13 is mainly responsible for controlling the main power control circuit 16. The second micro control unit 13 receives the control instruction sent by the main control unit 14 and performs corresponding operations according to the control instruction.
[0052] The main control unit 14 is the core control unit of the robot 10, which receives data from the first micro control unit 12 and processes and analyzes the data; the main control unit 14 is responsible for deciding fault response measures, generating control instructions, and controlling the operation of the second micro control unit 13; the main control unit 14 can also send motor fault information to the cloud server 20.
[0053] The motor driver 17 is used to control the start and stop of the motor 11 and to monitor the motor status in real time. The motor driver 17 sends a fault signal to the first micro control unit 12 when an abnormal condition occurs in the motor.
[0054] In order to solve the problem that the motor power cannot be successfully shut down in time when a motor fails, which may cause further damage to the motor and affect the reliability, safety and stability of the robot system. One embodiment of the present invention provides a robot motor fault protection method. The robot motor fault protection method can shut down the motor power control circuit when an irrecoverable fault occurs in the motor, detect the motor power status, and shut down the main power control circuit when the motor power fails, thereby effectively improving the reliability, safety and stability of the robot system.
[0055] The following is a detailed description of the robot motor fault protection method provided by the embodiment of the present invention. Figure 2 The robot motor fault protection method includes but is not limited to the following steps S101-S106:
[0056] S101: A first micro control unit receives a first motor fault signal, and determines a fault type of the motor according to the first motor fault signal, wherein the fault type includes an irrecoverable fault and a recoverable fault.
[0057] In this embodiment, the robot includes a motor, a first microcontroller unit, a second microcontroller unit and a main control unit. Among them, the first microcontroller is mainly responsible for real-time monitoring of the motor and controlling the motor power control circuit, so as to handle and report the motor failure in time and shut down the motor power control circuit when necessary. The second microcontroller unit is used to control the main power control circuit. The main control unit is the core control unit of the robot, which is used to receive data from the microcontroller unit, analyze and process the data, and make decisions.
[0058] The first microcontroller unit is used to receive a first motor fault signal. Receiving the first motor fault signal indicates that the motor has failed. Before processing, it is necessary to determine the type of motor fault in order to select a more reasonable processing measure. Among them, the motor fault types include irrecoverable faults and recoverable faults. An irrecoverable fault is a fault that the robot system cannot recover to normal through its own operation, and a recoverable fault is a fault that the robot system can recover to normal through its own operation. The first microcontroller unit determines the motor fault type based on the first motor fault signal. It should be understood that the first motor fault signal includes relevant information about the motor fault. For example, the first motor fault signal may include the time when the motor fault occurred and the fault type.
[0059] In some embodiments, the robot also includes a motor driver, and before the step of the first microcontroller unit receiving the first motor fault signal, it also includes: the motor driver samples and detects the state of the motor in real time; if the motor is in a fault state, a first motor fault signal is generated and sent to the first microcontroller unit.
[0060] In this embodiment, the motor driver monitors the motor status in real time and samples the relevant parameters of the motor in real time to detect the status of the motor. For example, the motor driver can obtain the real-time operating status of the motor by real-time sampling of the motor's current and / or voltage. When the motor driver detects that the motor is in a fault state, the relevant fault information is recorded and a first motor fault signal is generated. The first motor fault signal is sent to the first micro control unit through a preset communication protocol so that the first micro control unit can start the fault handling process.
[0061] S102: When the fault type is an unrecoverable fault, the first micro control unit turns off the motor power control circuit to disconnect the motor power supply and the motor.
[0062] The motor power control circuit is used to control the start and stop of the motor. Turning off the motor power control circuit can disconnect the motor power supply and the motor, so that the motor is powered off and stops running.
[0063] In this embodiment, when the fault type of the motor is an unrecoverable fault, the first micro control unit shuts down the motor power control circuit to disconnect the motor power supply and the motor, thereby powering off the motor and preventing the motor from being overheated and damaged due to long-term power-on.
[0064] In some embodiments, when the fault type is a recoverable fault, the first micro control unit generates a reset instruction and sends it to the motor driver; the motor driver resets and restarts the motor according to the reset instruction.
[0065] In this embodiment, if the fault type of the motor is a recoverable fault, in order to reduce the damage caused by the fault and restore the robot system to normal operation as soon as possible, an attempt will be made to repair the fault. The first microcontroller unit generates a reset instruction and sends it to the motor driver for execution. After receiving the reset instruction, the motor driver resets the motor according to the reset instruction and attempts to restart the motor.
[0066] S103: The first micro control unit detects the on / off status of the motor power supply.
[0067] It should be understood that in actual use, the motor power control circuit may fail, that is, the first micro control unit takes measures to shut down the motor power control circuit, but due to damage to the components controlling the motor power switch or other reasons, the motor power is not successfully cut off. Therefore, in this embodiment, after shutting down the motor power control circuit, the first micro control unit detects the on-off state of the motor power to determine whether the power is successfully cut off.
[0068] In some embodiments, the first microcontroller unit samples and obtains parameters of the motor power supply, and determines the on / off state of the motor power supply by comparing the parameters with preset thresholds, wherein the parameters are current and / or voltage; if the parameters exceed the preset threshold range, the motor power supply fails to be powered off; if the parameters do not exceed the preset threshold range, the motor power supply is successfully powered off.
[0069] In this embodiment, after the first microcontroller turns off the motor power control circuit, it samples the current and / or voltage of the motor power in real time, processes and analyzes the acquired data, and determines the on / off state of the motor power through a built-in algorithm and threshold comparison. Specifically, the acquired data is compared with a preset threshold. If it exceeds the preset threshold range, the motor power fails to be powered off. If it does not exceed the preset threshold range, the motor power is successfully powered off. The first microcontroller can sample the motor power parameters in real time through a built-in analog-to-digital converter, and the analog-to-digital converter converts the acquired analog signal into a digital signal to facilitate processing by the first microcontroller.
[0070] For example, within 1.5 seconds of turning off the motor power control circuit, the first microcontroller unit samples the voltage of the motor power supply through the built-in analog-to-digital converter. The analog-to-digital converter converts the analog voltage signal into a digital signal, and the first microcontroller unit determines the power-off status of the motor power supply through the built-in algorithm and threshold comparison. If the sampled voltage is between 0V and 1V, it is determined that the power-off is successful. If the sampled voltage is not within this range, it is determined that the power-off fails.
[0071] S104: When the motor power fails to be cut off, the first micro control unit sends a second motor fault signal to the main control unit.
[0072] When the motor power fails to be cut off, the first micro control unit sends the motor fault related information, i.e., the second motor fault signal, to the main control unit for further processing. For example, the second motor fault signal may include the time when the motor fault occurred, the fault type, the processing steps, the processing results, etc.
[0073] In some embodiments, when the motor power is successfully cut off, the first micro control unit sends a third motor fault signal, i.e., information related to the motor fault, to the main control unit, which is uploaded to the database by the main control unit so that maintenance personnel can conduct further analysis to confirm the cause of the fault, repair the fault, and restore the motor to normal operation.
[0074] S105: The main control unit generates a control instruction according to the second motor fault signal, and sends the control instruction to the second micro control unit.
[0075] After the main control unit receives the second motor fault signal sent by the first microcontroller unit, it generates a control instruction according to the signal and sends the control instruction to the second microcontroller unit for execution, wherein the control instruction is used to instruct to shut down the main power control circuit to cut off the power supply to the motor, cut off the power supply to the motor, avoid overheating and damage of the motor due to long-term power-on, and ensure the safety of the motor system and even the entire robot system.
[0076] S106: The second micro control unit turns off the main power control circuit according to the control instruction to disconnect the main power supply and the motor power supply.
[0077] After receiving the control instruction sent by the main control unit, the second microcontroller unit turns off the main power control circuit according to the control instruction to disconnect the main power and the motor power, thereby cutting off the motor power. The main power control circuit is a circuit that controls the main power of the robot chassis. If turning off the motor power control circuit fails to cut off the motor power, the main power of the chassis is turned off by turning off the superior main power control circuit to ensure the safety of the entire robot system.
[0078] In this embodiment, the first microcontroller unit receives a first motor fault signal, determines the fault type of the motor according to the first motor fault signal, and when the fault is an irrecoverable fault, shuts down the motor power control circuit through the first microcontroller unit to disconnect the motor power supply and the motor, and then detects the on / off state of the motor power supply through the first microcontroller unit. When the motor power supply fails to be powered off, the second motor fault signal is sent to the main control unit through the first microcontroller unit, and the main control unit generates a control instruction according to the second motor fault signal and sends it to the second control unit. The second microcontroller unit shuts down the main power control circuit according to the control instruction to disconnect the main power supply and the motor power supply.
[0079] By real-time monitoring of the motor, it is possible to respond quickly when the motor fails. When the motor fails, the first microcontroller receives the first motor fault signal and determines the fault type of the motor. If it is an unrecoverable fault, the motor power control circuit is turned off by the first microcontroller to disconnect the motor power supply and the motor to protect the motor and the robot system. To ensure the protection effect, in this embodiment, the on-off state of the motor power supply is also detected after the motor power supply control circuit is turned off to prevent the situation where the motor power supply fails to be powered off but is not discovered in time, and to avoid the motor being damaged due to the long power-on time caused by this situation. The on-off state of the motor power supply is detected by the first microcontroller, and when the motor power supply fails to be powered off, it can be reported to the main control unit in time to take corresponding measures to prevent the motor from being damaged. When the motor power supply control circuit fails to power off the motor power supply, the main control unit receives the fault signal sent by the first microcontroller, and generates a control instruction according to the fault signal, and controls the second microcontroller to turn off the main power supply control circuit through the control instruction, disconnects the main power supply and the motor power supply in time, and turns off the motor power supply. The above method realizes multiple protections against motor failures, which can prevent the motor from being further damaged due to failure to successfully cut off the power, thereby protecting the entire robot system and improving the reliability and safety of the robot system.
[0080] In some embodiments, see Figure 3 The robot motor fault protection method further includes steps S201-S202:
[0081] S201: When the motor is in a fault state, the main control unit obtains fault information of the motor.
[0082] S202: The main control unit uploads the fault information to the cloud server so that the cloud server can record and analyze the motor fault.
[0083] When the motor is in a fault state, the main control unit obtains the fault information of the motor, wherein the fault information includes one or more of the fault occurrence time, fault type, processing steps and processing results. In some embodiments, the main control unit will further verify and integrate the fault information to ensure the accuracy and completeness of the data. In other embodiments, when the motor data is abnormal and there may be potential risks in the motor, the main control unit will also obtain the fault information of the motor for analysis and processing. After obtaining the fault information, the main control unit integrates and packages the fault information and uploads it to the cloud server for the cloud server to record and analyze the motor fault. The user can view the operating status of the motor through the cloud server, analyze the fault information, and troubleshoot the cause of the fault to perform corresponding processing.
[0084] In some embodiments, see Figure 4 , the robot motor fault protection method also includes steps S301-S303:
[0085] S301: The main control unit starts fault repair diagnosis according to the fault information.
[0086] S302: The main control unit generates a fault response mechanism according to the result of the fault repair diagnosis.
[0087] S303: The main control unit controls the first micro control unit and the second micro control unit to work respectively according to the fault response mechanism.
[0088] After the main control unit obtains the fault information, it responds quickly, performs fault repair diagnosis according to the fault information, processes and analyzes the fault information, and determines the fault repair method and repair time, etc. According to the results of the fault repair diagnosis, a fault response mechanism is generated, that is, a fault handling solution is generated, such as shutting down the power motor control circuit, etc. After the fault response mechanism is generated, the main control unit controls the first micro control unit and the second micro control unit to work respectively according to the fault response mechanism.
[0089] For example, the main control unit obtains the fault information of the motor through the first micro control unit, and performs a fault repair diagnosis based on the fault information, for example, diagnoses the fault type, the fault severity or whether the fault can be resolved by resetting and restarting, etc., and generates a fault response mechanism based on the fault repair diagnosis, such as resetting and restarting the motor, cutting off the power supply of the motor or cutting off the main power supply, etc., and controls the first micro control unit and the second micro control unit to operate respectively according to the fault response mechanism, for example, controlling the first micro control unit to reset and restart the motor according to the fault response mechanism, for example, controlling the first micro control unit to shut down the motor power control circuit according to the fault response mechanism, for example, controlling the second micro control unit to shut down the main power control circuit according to the fault response mechanism, etc.
[0090] In this embodiment, fault repair diagnosis is initiated through the main control unit, a fault response mechanism is generated, and two microcontroller units are controlled to perform corresponding tasks respectively. The two microcontroller units can be responsible for handling corresponding parts of the work respectively, so as to quickly respond to motor failure events, take appropriate measures, reduce damages, and ensure the stability of the robot system.
[0091] In some embodiments, step S201 includes: when the fault type of the motor fault is an unrecoverable fault, the main control unit obtains fault information of the motor.
[0092] When the fault type of the motor failure is an irrecoverable fault, the main control unit obtains the fault information of the motor, where the fault information includes one or more of the fault occurrence time, fault type, processing steps and processing results. When the fault type of the motor is an irrecoverable fault, the motor power supply and / or the total power supply will be powered off. The main control unit obtains the fault information of the motor and uploads it to the cloud server, so that maintenance personnel can remotely obtain the motor fault information through the cloud server, and can use professional analysis tools to determine the motor status and conduct in-depth analysis of the fault, so as to accurately locate possible problems in the robot system and find the cause of the fault. The main control unit collects and uploads data on faults that cannot be handled by the control unit, and hands them over to maintenance personnel for processing, so as to provide more comprehensive protection against motor failures.
[0093] It can be understood that when the fault type of the motor fault is a recoverable fault, the main control unit can ignore the fault information, thereby streamlining the processing process and ensuring the robustness of the robot system.
[0094] The following uses a specific embodiment as an example to illustrate the data processing process of the embodiment of the present invention. Figure 5 , the robot motor fault protection method includes but is not limited to the following steps:
[0095] S401: The motor driver detects whether the motor fails. If the motor fails, step S402 is executed. If the motor does not fail, the detection continues.
[0096] S402: the motor driver sends a first fault signal to the first micro control unit, and executes step S403.
[0097] S403: The first micro control unit detects the fault type of the motor. If the fault type is an irrecoverable fault, step S404 is executed; if the fault type is a recoverable fault, step S411 is executed.
[0098] S404: The first micro control unit turns off the motor power control circuit and sends the fault information to the main control unit, and executes step S405.
[0099] S405: The first micro control unit detects the on / off state of the motor power supply. If the motor power supply is successfully cut off, step S406 is executed; if the motor power supply fails to be cut off, step S408 is executed.
[0100] S406: The first micro control unit sends the fault information to the main control unit, and executes step S407.
[0101] S407: The main control unit uploads the fault information to the cloud server so that the cloud server can record and analyze the motor fault.
[0102] S408: The first micro control unit sends the second motor fault signal to the main control unit, and executes step S409.
[0103] S409: The main control unit generates a control instruction according to the second motor fault signal and sends it to the second micro control unit, and executes step S410.
[0104] S410: The second micro control unit turns off the main power control circuit according to the control instruction.
[0105] S411: The first micro control unit generates a reset instruction and sends it to the motor driver, and then executes step S412.
[0106] S412: The motor driver resets and restarts the motor according to the reset instruction, and executes step S401.
[0107] In this embodiment, the motor driver detects whether the motor fails. If the motor does not fail, the detection continues. If the motor fails, the motor driver generates a first fault signal and sends the first fault signal to the first microcontroller unit; the first microcontroller unit detects the fault type of the motor, and the fault type includes recoverable faults and unrecoverable faults. If the fault type is a recoverable fault, the first microcontroller unit generates a reset instruction and sends it to the motor driver. The motor driver resets and restarts the motor according to the reset instruction, and continues to detect whether the motor fails. If the fault type is an unrecoverable fault, the first microcontroller unit turns off the motor power control circuit to disconnect the motor power supply and the motor, and the fault is The fault information is sent to the main control unit, and after the motor power control circuit is turned off, the first micro control unit detects the on-off state of the motor power. If the motor power is successfully powered off, the first micro control unit sends the fault information to the main control unit, and the main control unit uploads the fault information to the cloud server, so that the cloud server can record and analyze the motor fault and wait for further analysis and confirmation by the maintenance personnel; if the motor power fails to be powered off, the first micro control unit sends the second motor fault signal to the main control unit, and the main control unit generates a control instruction according to the second motor fault signal and sends it to the second micro control unit, and the second micro control unit turns off the main power control circuit according to the control instruction to disconnect the connection between the main power supply and the motor power supply. The present invention can effectively detect motor faults and perform corresponding processing in a timely manner, realize multiple protections against motor faults, and improve the stability and safety of the robot system.
[0108] In summary, the robot motor fault protection method provided by the embodiment of the present invention receives the first motor fault signal through the first microcontroller unit, determines the fault type of the motor according to the first motor fault signal, and when the fault is an irrecoverable fault, shuts down the motor power control circuit through the first microcontroller unit to disconnect the motor power and the motor, and then detects the on and off state of the motor power through the first microcontroller unit. When the motor power fails to be powered off, the second motor fault signal is sent to the main control unit through the first microcontroller unit, and the main control unit generates a control instruction according to the second motor fault signal and sends it to the second control unit. The second microcontroller unit shuts down the main power control circuit according to the control instruction to disconnect the main power and the motor power. Rapid response and multiple protections to motor fault events can be achieved, which effectively improves the stability and reliability of the robot system, and plays a vital role in the long-term application and user experience of the robot.
[0109] The robot motor fault protection method provided by the embodiment of the present invention can respond quickly when the motor fails by real-time monitoring of the motor. When the motor fails, the first microcontroller receives the first motor fault signal and determines the fault type of the motor. If it is an unrecoverable fault, the motor power control circuit is turned off by the first microcontroller to disconnect the connection between the motor power supply and the motor to protect the motor and the robot system; and the motor power supply is detected by the first microcontroller, and the motor power supply is monitored after the motor power supply control circuit is turned off, so that the motor power supply failure can be discovered in time and corresponding measures can be taken to prevent the motor from being damaged; in addition, the second microcontroller is controlled to turn off the main power control circuit by the control instruction, and when the motor power control circuit fails, the main power control circuit can disconnect the connection between the main power supply and the motor power supply in time, thereby preventing the motor from being further damaged due to failure to successfully cut off the power; based on the robot motor fault protection method, the motor power control circuit can be turned off in time when an unrecoverable fault occurs in the motor, the motor is powered off, and the on-off state of the motor power supply is detected. When the motor power supply fails to cut off the power, the main power control circuit is turned off, which can effectively improve the reliability and safety of the robot system.
[0110] Another embodiment of the present invention further provides a robot, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the robot motor fault protection method as described in any one of the above embodiments when executing the computer program.
[0111] Another embodiment of the present invention further provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by at least one processor, the at least one processor executes the robot motor fault protection method as described in any one of the above embodiments.
[0112] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0113] Through the description of the above implementation methods, ordinary technicians in this field can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, it can also be implemented by hardware. Ordinary technicians in this field can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0114] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Under the concept of the present invention, the technical features in the above embodiments or different embodiments may also be combined, the steps may be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they may still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A robot motor fault protection method, It is characterized in that The robot comprises a motor, a first micro control unit, a second micro control unit and a main control unit, and the method comprises: The first micro control unit receives a first motor fault signal, and determines a fault type of the motor according to the first motor fault signal, wherein the fault type includes an irrecoverable fault and a recoverable fault; When the fault type is an unrecoverable fault, the first micro control unit turns off the motor power control circuit to disconnect the motor power supply from the motor; The first micro control unit detects the on / off state of the motor power supply; When the motor power fails to be powered off, the first micro control unit sends a second motor fault signal to the main control unit; The main control unit generates a control instruction according to the second motor fault signal, and sends the control instruction to the second micro control unit; The second micro control unit turns off the main power control circuit according to the control instruction, c.
2. The method according to claim 1, It is characterized in that The robot also includes a motor driver; Before the step of the first micro control unit receiving the first motor fault signal, the method further includes: The motor driver samples and detects the state of the motor in real time; If the motor is in a fault state, the first motor fault signal is generated and sent to the first micro control unit.
3. The method according to claim 2, It is characterized in that The method further comprises: When the fault type is a recoverable fault, the first micro control unit generates a reset instruction and sends it to the motor driver; The motor driver performs reset and restart operations on the motor according to the reset instruction.
4. The method according to claim 1, It is characterized in that The first micro control unit detects the on / off state of the motor power supply, including: The first micro control unit samples and obtains parameters of the motor power supply, and determines the on / off state of the motor power supply by comparing the parameters with a preset threshold, wherein the parameters are current and / or voltage; If the parameter exceeds the preset threshold range, the motor power supply fails to be cut off; If the parameter does not exceed the preset threshold range, the motor power is cut off successfully.
5. The method according to claim 2, It is characterized in that The method further comprises: When the motor is in a fault state, the main control unit acquires fault information of the motor, wherein the fault information includes one or more of the fault occurrence time, fault type, processing steps and processing results; The main control unit uploads the fault information to the cloud server so that the cloud server can record and analyze the motor fault.
6. The method according to claim 5, It is characterized in that The method further comprises: The main control unit starts fault repair diagnosis according to the fault information; The main control unit generates a fault response mechanism according to the result of the fault repair diagnosis; The main control unit controls the first micro control unit and the second micro control unit to work respectively according to the fault response mechanism.
7. The method according to claim 5, It is characterized in that The main control unit obtains the fault information of the motor, including: When the fault type of the motor is an unrecoverable fault, the main control unit obtains fault information of the motor.
8. A robot comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
9. A non-volatile computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by at least one processor, the at least one processor is caused to execute the method according to any one of claims 1 to 7.
