Robot power supply method and device and electronic equipment
By optimizing the charging and discharging process of the robot battery through intelligent control switch components, the problem of shortened battery life under high temperature environments is solved, thereby protecting battery performance and improving the stability of robot operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 北京云迹科技股份有限公司
- Filing Date
- 2025-12-12
- Publication Date
- 2026-04-21
AI Technical Summary
The lifespan of robot battery modules is significantly reduced during discharge, especially in high-temperature environments. Traditional power supply modes lead to frequent charge-discharge cycles and heat accumulation, which shortens battery life and affects the stability and reliability of the robot.
By using intelligent control switch components, the electrical connection between the battery module and external power supply equipment and power consumption modules is precisely controlled according to the remaining battery power and ambient temperature, optimizing the charging and discharging process, reducing unnecessary discharge cycles and heat generation, and ensuring that the battery operates within a reasonable power range.
It extends battery life, improves the stability and reliability of robot operation, reduces the cost of maintenance and battery replacement, and ensures the long-term stable operation of the robot.
Smart Images

Figure CN121906740A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of robotics technology, and in particular to a robot power supply method, device, and electronic device. Background Technology
[0002] In current robot operation scenarios, the battery modules upon which these robots rely face severe lifespan challenges, most notably a significant reduction in lifespan during discharge and under high-temperature conditions. Traditional robot power supply methods are relatively simple; the battery continuously supplies power to the user module regardless of its remaining charge level. This uninterrupted discharge process drastically increases the number of charge-discharge cycles, and each cycle causes irreversible damage to the battery's internal chemical structure, accelerating battery aging. Furthermore, batteries inevitably generate heat during discharge, especially under high temperatures, making heat dissipation difficult and prone to overheating. High temperatures accelerate internal chemical reactions, leading to faster performance degradation of battery materials, such as reduced electrode activity and accelerated electrolyte decomposition. These factors combined significantly shorten battery life, resulting in high costs and numerous inconveniences for stable robot operation and long-term use. Summary of the Invention
[0003] This application provides a robot power supply method, device, and electronic device, which aims to effectively solve the problem of reduced battery life under discharge and high temperature environments. By intelligently controlling the power supply method, the battery life is extended, and the stability and reliability of robot operation are improved.
[0004] In a first aspect, this application provides a robot power supply method, the method being used for a robot, the robot including a battery module, a power consumption module, and a switching assembly, the battery module and the power consumption module being respectively connected to the switching assembly; the method includes: When it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, the switch assembly is controlled to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and the switch assembly is controlled to disconnect the electrical connection between the battery module and the power consumption module. After a preset period of time, the remaining power of the battery module is detected; If the remaining power of the battery module is greater than the first preset threshold, the switch assembly is controlled to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device, respectively, and the switch assembly is controlled to connect the electrical connection between the battery module and the power consumption module, so that the battery module supplies power to the power consumption module.
[0005] Secondly, this application provides a robot power supply device for a robot, the robot including a battery module, a power consumption module, and a switch assembly, wherein the battery module and the power consumption module are respectively connected to the switch assembly; the device includes: The first unit is configured to, when it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, control the switch assembly to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and control the switch assembly to disconnect the electrical connection between the battery module and the power consumption module. The second unit is used to detect the remaining power of the battery module after a preset period of time. The third unit is configured to, if the remaining power of the battery module is greater than the first preset threshold, control the switch assembly to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and control the switch assembly to connect the electrical connection between the battery module and the power consumption module, so that the battery module supplies power to the power consumption module.
[0006] Thirdly, this application provides a readable medium including executable instructions, which, when executed by a processor of an electronic device, cause the electronic device to perform any of the methods described in the first aspect.
[0007] Fourthly, this application provides an electronic device including a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method as described in any of the first aspects.
[0008] As can be seen from the above technical solution, the robot power supply method provided in this application effectively addresses and solves the problem of reduced battery life under discharge and high-temperature environments from multiple key aspects through precise and intelligent control of the electrical connection between the battery module, the power consumption module, and the external power supply equipment via a switching component, bringing significant benefits in multiple dimensions. Specifically, when the switching component is detected to be connected to the external power supply equipment, and the remaining power of the battery module is lower than or equal to a first preset threshold, the switching component is quickly controlled to connect the electrical connections between the battery module and the power consumption module and the external power supply equipment respectively, while simultaneously disconnecting the connection between the battery module and the power consumption module. In this way, the external power supply equipment can directly supply power to the power consumption module, so that the battery module basically does not participate in the discharge process at this time, thereby significantly reducing the number of unnecessary battery discharges and effectively reducing the number of charge-discharge cycles caused by frequent discharges. The reduction in the number of charge-discharge cycles means that the frequency of irreversible damage to the internal chemical structure of the battery is reduced, thus slowing down the aging rate of the battery. In addition, due to the reduction in battery discharge, the heat generated by the battery during discharge is also significantly reduced accordingly. Especially in high-temperature environments, this significantly reduces the risk of overheating due to the combined effect of the battery's own heat generation and external high temperatures, preventing the accelerated damage of internal battery materials caused by high temperatures. For example, it slows down the rate of activity reduction in electrode materials and inhibits the intensification of electrolyte decomposition, fundamentally protecting battery performance. Furthermore, after a preset cycle time, the remaining charge of the battery module is detected. If the remaining charge exceeds a first preset threshold, the switching component promptly disconnects the electrical connections between the battery module, the power-consuming module, and the external power supply equipment, while simultaneously connecting the battery module to the power-consuming module, allowing the battery module to supply power to the power-consuming module. This timely power switching strategy ensures that the battery discharges within a relatively reasonable charge range. Compared to traditional power supply modes where the battery may discharge for extended periods in extreme low or high charge states, this method allows the battery to operate within a more suitable charge range, further optimizing the battery discharge process and reducing damage caused by improper discharge. Moreover, this precise charge control helps maintain the battery's internal chemical balance, reducing internal side reactions and further extending battery life. As can be seen, this power supply method, through precise control of the battery charging and discharging process, works synergistically from multiple angles, including reducing the number of discharges, lowering heat generation, and optimizing the discharge range, to comprehensively protect battery performance, effectively slow down battery aging, and significantly extend battery life. This not only improves the stability and reliability of robot operation and reduces downtime and maintenance costs caused by frequent battery replacements due to short battery life, but also lowers the overall operating cost of the robot, providing a strong guarantee for its long-term stable operation.
[0009] The further effects of the aforementioned non-conventional preferred method will be explained below in conjunction with specific embodiments. Attached Figure Description
[0010] To more clearly illustrate the embodiments of this application or the existing technical solutions, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 A flowchart illustrating a robot power supply method provided in this application; Figure 2 A schematic diagram of a robot power supply device provided in this application; Figure 3 This is a schematic diagram of the structure of an electronic device provided in this application. Detailed Implementation
[0012] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0013] The various non-limiting embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0014] See Figure 1 This paper illustrates a robot power supply method according to an embodiment of this application. The method is used for a robot, which includes a battery module, a power consumption module, and a switch assembly. The battery module and the power consumption module are respectively connected to the switch assembly. In this embodiment, the method includes the following steps: S101: When it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, the switch assembly is controlled to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and the switch assembly is controlled to disconnect the electrical connection between the battery module and the power consumption module.
[0015] It should be noted that the battery module is the robot's energy storage unit, providing power to the power-consuming modules. The power-consuming modules are the parts of the robot that consume electrical energy to perform various functions; for example, the robot's drive motors, sensors, and control chips all fall under the category of power-consuming modules.
[0016] It should be noted that the external power supply equipment, which provides power to the robot's battery module and power consumption module, is typically connected to the power grid. In one implementation, the external power supply equipment can be a charging station or an external battery device.
[0017] In this embodiment, the first preset threshold is determined based on the historical usage data, type, and performance of the battery module, as well as the robot's usage scenario and the current ambient temperature. It is understood that the first preset threshold can be fixed, for example, 80% remaining battery power. The first preset threshold can also be dynamically adjusted, determined by considering multiple factors. The first preset threshold can be adjusted based on the battery module's historical usage data, type, and performance, as well as the robot's usage scenario and the current ambient temperature. For example, if the robot uses a lithium battery with poor high-temperature tolerance and frequently operates in high-temperature environments (e.g., above 40°C), considering that high temperatures accelerate battery aging, the first preset threshold may be reduced from the usual 80% to 60% to reduce the battery's discharge time in high-temperature environments. This allows the battery to switch to charging from a charging station more quickly in high-temperature environments, reducing its own discharge and thus extending battery life.
[0018] In this embodiment, the switching assembly includes a first relay, a second relay, and a third relay. The first relay controls the electrical connection between the battery module and the external power supply device to be either on or off. The second relay controls the electrical connection between the power consumption module and the external power supply device to be either on or off. The third relay controls the electrical connection between the battery module and the power consumption module to be either on or off. It can be understood that the switching assembly includes the first, second, and third relays, and is used to control the electrical connection between the battery module, the power consumption module, and the external power supply device, determining the current flow path. The first relay specifically controls the electrical connection between the battery module and the charging pile. When the first relay is closed, the charging pile can charge the battery module; when it is open, the electrical connection is severed. The second relay controls the electrical connection between the power consumption module and the charging pile. When closed, the charging pile supplies power to the power consumption module; when open, it stops supplying power. The third relay controls the electrical connection between the battery module and the power consumption module. When closed, the battery module supplies power to the power consumption module; when open, it prevents the battery module from supplying power to the power consumption module. It should be noted that when controlling the switching assembly to turn on or off the corresponding electrical connection, this is specifically achieved by controlling the corresponding relay to engage or disengage.
[0019] For example, when the robot returns to the charging station to recharge, the charging station establishes a connection with the switching assembly. At this time, the power detection unit monitors the remaining power of the battery module in real time. If the remaining power of the battery module is lower than or equal to a first preset threshold, for example, the first preset threshold is set to 80%, and the detected battery power is 25%, the robot's control center issues a command: to close the first relay, connecting the battery module to the charging station, allowing the charging station to charge the battery module. This is like opening a "power channel" from the charging station to the battery module, allowing current to flow from the charging station to the battery module, replenishing the battery's energy. Then, to close the second relay, connecting the power module to the charging station, allowing the charging station to directly supply power to the power module. At this time, the power required by the power module is directly provided by the charging station, no longer relying on the battery module. Finally, to open the third relay, disconnecting the power connection between the battery module and the power module, preventing the battery module from discharging to the power module even when the charging station is supplying power. This step connects the charging station, the power circuit, and the battery. When the charging station is charging the battery, the connection between the battery and the power circuit is disconnected, and the charging station directly supplies power to the power circuit, effectively reducing the number of times the battery discharges.
[0020] S102: After a preset cycle time, detect the remaining power of the battery module.
[0021] In this embodiment, the battery module includes a power detection unit, which monitors the remaining power of the battery module in real time based on the coulomb counter principle. The power detection unit operates based on the coulomb counter principle, which, simply put, calculates the remaining battery power by accurately measuring the amount of charge passing through the battery during charging and discharging. For example, assuming the battery discharges at a constant current of 1A for 1 hour, according to the formula Q = It (where I is the current and t is the time), the amount of charge discharged is 1Ah. The power detection unit can calculate the remaining battery power in real time by accumulating this change in charge.
[0022] After the charging station supplies power to the battery module and power module for a certain period of time, i.e., after a preset cycle duration, the preset cycle duration can be fixed, such as 10 minutes. Alternatively, it can be set based on the charging characteristics of the battery module and the robot's real-time power demand, and will adjust adaptively. For example, when the robot uses a fast-charging battery and the current power demand is low, the preset cycle duration can be set to 15 minutes; if the battery charging speed is slow and the robot is performing a high-energy-consuming task with high power demand, the preset cycle duration may be shortened to 5 minutes. Assuming the preset cycle duration is set to 10 minutes, after 10 minutes, the power detection unit will again check the remaining power of the battery module.
[0023] In this embodiment, the charging management circuit manages the charging process of the battery module by the external power supply device, and controls the external power supply device to use different charging methods according to the remaining power of the battery module. When the external power supply device supplies power to the battery module, the method further includes: If the remaining power of the battery module is lower than the second preset threshold, the charging management circuit in the battery module controls the external power supply device to charge the battery module with a constant current; if the remaining power of the battery module is equal to or greater than the second preset threshold, the charging management circuit in the battery module controls the external power supply device to charge the battery module with a constant voltage; wherein, the second preset threshold is less than the first preset threshold.
[0024] This can be understood as follows: when the charging station supplies power to the battery module, the charging management circuit controls the charging method based on the remaining battery power. Specifically: if the remaining battery power is below a second preset threshold (assuming the second preset threshold is 20%), when the battery power is detected at 15%, the charging management circuit controls the charging station to charge the battery module using a constant current charging method. For example, if the constant current is set to 2A, the charging station will continuously charge the battery with a 2A current, which can quickly replenish the battery power when it is low. If the remaining battery power is equal to or greater than the second preset threshold, such as when the battery power is detected at 20% or higher, the charging management circuit controls the charging station to charge the battery module using a constant voltage charging method.
[0025] It should be noted that the preset cycle duration can be fixed or adaptively adjusted based on the charging characteristics of the battery module and the robot's real-time power demand. When the battery module charges quickly, such as using fast charging technology, and the robot's current power demand is low, such as in standby mode, the preset cycle duration can be appropriately extended, for example, from the usual 10 minutes to 20 minutes. This is because the battery charges quickly, and the power demand is low, eliminating the need for frequent power level checks to switch power supply modes. Conversely, if the battery charges slowly, and the robot is performing complex tasks with high power demand, the preset cycle duration will be shortened, for example, from 10 minutes to 5 minutes, to more promptly adjust the power supply mode based on the battery level and ensure stable robot operation.
[0026] S103: If the remaining power of the battery module is greater than the first preset threshold, control the switch assembly to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and control the switch assembly to connect the electrical connection between the battery module and the power consumption module so that the battery module supplies power to the power consumption module.
[0027] Understandably, if the power detection unit detects that the remaining power of the battery module is greater than a first preset threshold, for example, if the battery power reaches 85% (greater than the first preset threshold of 80%), the control center issues a new command: the first relay disconnects, cutting off the electrical connection between the battery module and the charging pile, stopping the charging pile from charging the battery module; the second relay disconnects, cutting off the electrical connection between the power consumption module and the charging pile, stopping the charging pile from supplying power to the power consumption module; and the third relay closes, connecting the battery module to the power consumption module, allowing the battery module to supply power to the power consumption module. This achieves the goal of "cutting off the connection between the charging pile and the power consumption circuit when the remaining battery power is greater than the first preset threshold (80% is used as an example here, but the actual setting is the first preset threshold), allowing the battery to supply power to the power consumption module when its power level is high, avoiding the battery being in a fully charged state for a long time and reducing "micro-circulation" losses.
[0028] In one implementation of this embodiment, the method may further include: If an abnormal load is detected in the power module while the battery module is supplying power to the power module, and the output current of the battery module exceeds a preset safety threshold, the switching assembly is controlled to disconnect the electrical connection between the battery module and the power module. At the same time, an alarm mechanism is triggered to prompt the user to check the operating status of the power module or the robot to prevent the battery module from being damaged due to overcurrent.
[0029] It's important to note that during robot operation, when the battery module is responsible for powering the power-consuming modules, the system continuously monitors the load status of the power-consuming modules and the output current of the battery module. An abnormal load on the power-consuming module refers to a change in the load connected to the module that deviates from its normal operating state. This change may cause significant fluctuations in current demand or exceed the normal range. For example, when the robot's robotic arm is operating normally, the motor runs smoothly, the load is stable, and the current remains at a normal level. However, if the robotic arm suddenly encounters an obstacle and gets stuck, the motor needs to overcome greater resistance, causing a sudden increase in load, which constitutes an abnormal load on the power-consuming module.
[0030] A preset safety threshold can be a current upper limit set in advance based on the performance parameters of the battery module. When the output current of the battery module exceeds this value, it may damage the battery. For example, for a certain model of battery module, after testing and analysis, it is determined that its safe operating current upper limit is 10A. Then this 10A is the preset safety threshold.
[0031] Once an abnormal load is detected in the power module and the battery module's output current exceeds a preset safety threshold, the system will react immediately: the third relay in the control switch assembly will quickly disconnect the electrical connection between the battery module and the power module. This is analogous to setting up a "safety gate" in the circuit; when a dangerous situation (excessive current) occurs, the circuit is cut off in time to prevent the excessive current from continuing to damage the battery module. Simultaneously, the system will trigger an alarm mechanism to prompt the user to check the operating status of the power module or the robot. The alarm can take various forms; for example, the robot itself may emit a loud alarm sound while displaying a message on the robot's screen stating "Power module load abnormal, please check"; if the robot supports remote communication, it can also push a notification to the user's mobile app, informing the user of the specific abnormal situation. Through these methods, users are reminded to promptly investigate the problem, preventing damage to the battery module due to prolonged overcurrent, thereby extending battery life and ensuring the normal operation of the robot.
[0032] In one implementation, after the step of detecting the remaining power of the battery module after a preset period of time, the method further includes: If the remaining power of the battery module is lower than or equal to a first preset threshold, the switch assembly is controlled to continue to connect the battery module, the power consumption module and the external power supply device respectively, and the switch assembly is controlled to continue to disconnect the electrical connection between the battery module and the power consumption module.
[0033] If, after a preset period of time, the remaining battery power of the battery module is still lower than or equal to the first preset threshold, for example, if the battery power is detected to be 28% after 10 minutes (lower than the first preset threshold of 80%), the control center will maintain the current state: the first relay will remain closed to continue charging the battery module; the second relay will remain closed to continue supplying power to the power-consuming module; and the third relay will remain open to continue preventing the battery module from discharging to the power-consuming module.
[0034] In another implementation, the external power supply device may also be equipped with an external backup power supply, and the method further includes: When the external power supply device supplies power to the battery module and the power consumption module, if an abnormal voltage is detected in the external power supply device, the switch assembly is controlled to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and the external backup power supply is activated to supply power to the power consumption module. In addition, a notification message of external power supply abnormality is sent to the user equipment.
[0035] While the robot relies on external power supply equipment (such as charging piles) to power the battery module and power consumption module, the system will monitor the voltage output of the external power supply equipment in real time.
[0036] Voltage anomaly refers to a deviation of the voltage output by the external power supply equipment from its normal operating range. For example, under normal circumstances, the voltage output from the charging station to the robot should be stable at a specific value, say 24V, with a certain fluctuation range allowed, such as ±10%, i.e., 21.6V - 26.4V. If the actual output voltage exceeds this range, such as being lower than 21.6V or higher than 26.4V, it is considered a voltage anomaly.
[0037] Once an abnormal voltage is detected in the external power supply, the system immediately takes a series of protective measures. First, the first relay in the control switch assembly disconnects the electrical connection between the battery module and the external power supply, while simultaneously controlling the second relay to disconnect the electrical connection between the power module and the external power supply. This is like setting up two "protective gates" in the circuit, promptly blocking any potential damage to the battery module and the power module caused by the abnormal voltage. Then, the external backup power supply is activated to power the power module. The external backup power supply can be a small emergency battery pack, whose function is to ensure that the robot's power module can still maintain basic operation when the external power supply fails, avoiding problems such as robot work interruption or data loss due to sudden power outages. For example, for inspection robots performing important tasks, when encountering an abnormal voltage at the charging station, the backup power supply can ensure that the robot continues to complete the inspection work in the current area, or at least safely returns to the designated location.
[0038] Simultaneously, the system sends a notification message to the user's device indicating an external power supply anomaly. The user device can be a mobile phone, tablet, or computer. The notification message can be sent in various ways, such as SMS, app push notifications, or email. For example, the robot establishes a connection with the user's mobile app via its built-in wireless communication module (such as Wi-Fi or 4G). When an abnormal charging station voltage is detected, the app will pop up a notification window displaying the message "Charging station voltage abnormal, switched to backup power supply, please check immediately," reminding the user to check and repair the charging station as soon as possible to restore normal power supply. In this way, the user can promptly understand the robot's power supply status and take appropriate measures to ensure the robot's stable operation.
[0039] As can be seen from the above technical solution, the robot power supply method provided in this application effectively addresses and solves the problem of reduced battery life under discharge and high-temperature environments from multiple key aspects through precise and intelligent control of the electrical connection between the battery module, the power consumption module, and the external power supply equipment via a switching component, bringing significant benefits in multiple dimensions. Specifically, when the switching component is detected to be connected to the external power supply equipment, and the remaining power of the battery module is lower than or equal to a first preset threshold, the switching component is quickly controlled to connect the electrical connections between the battery module and the power consumption module and the external power supply equipment respectively, while simultaneously disconnecting the connection between the battery module and the power consumption module. In this way, the external power supply equipment can directly supply power to the power consumption module, so that the battery module basically does not participate in the discharge process at this time, thereby significantly reducing the number of unnecessary battery discharges and effectively reducing the number of charge-discharge cycles caused by frequent discharges. The reduction in the number of charge-discharge cycles means that the frequency of irreversible damage to the internal chemical structure of the battery is reduced, thus slowing down the aging rate of the battery. In addition, due to the reduction in battery discharge, the heat generated by the battery during discharge is also significantly reduced accordingly. Especially in high-temperature environments, this significantly reduces the risk of overheating due to the combined effect of the battery's own heat generation and external high temperatures, preventing the accelerated damage of internal battery materials caused by high temperatures. For example, it slows down the rate of activity reduction in electrode materials and inhibits the intensification of electrolyte decomposition, fundamentally protecting battery performance. Furthermore, after a preset cycle time, the remaining charge of the battery module is detected. If the remaining charge exceeds a first preset threshold, the switching component promptly disconnects the electrical connections between the battery module, the power-consuming module, and the external power supply equipment, while simultaneously connecting the battery module to the power-consuming module, allowing the battery module to supply power to the power-consuming module. This timely power switching strategy ensures that the battery discharges within a relatively reasonable charge range. Compared to traditional power supply modes where the battery may discharge for extended periods in extreme low or high charge states, this method allows the battery to operate within a more suitable charge range, further optimizing the battery discharge process and reducing damage caused by improper discharge. Moreover, this precise charge control helps maintain the battery's internal chemical balance, reducing internal side reactions and further extending battery life. As can be seen, this power supply method, through precise control of the battery charging and discharging process, works synergistically from multiple angles, including reducing the number of discharges, lowering heat generation, and optimizing the discharge range, to comprehensively protect battery performance, effectively slow down battery aging, and significantly extend battery life. This not only improves the stability and reliability of robot operation and reduces downtime and maintenance costs caused by frequent battery replacements due to short battery life, but also lowers the overall operating cost of the robot, providing a strong guarantee for its long-term stable operation.
[0040] like Figure 2The image shows a specific embodiment of a robot power supply device provided in this application. The device described in this embodiment is a physical device used to perform the method described in the above embodiments. Its technical solution is essentially the same as that of the above embodiments, and the corresponding descriptions in the above embodiments also apply to this embodiment. The device described in this embodiment is used for a robot, which includes a battery module, a power module, and a switch assembly. The battery module and the power module are respectively connected to the switch assembly; the device includes: The first unit 201 is configured to, when it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, control the switch assembly to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and control the switch assembly to disconnect the electrical connection between the battery module and the power consumption module; The second unit 202 is used to detect the remaining power of the battery module after a preset period of time; The third unit 203 is used to control the switch assembly to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively if the remaining power of the battery module is greater than the first preset threshold, and to control the switch assembly to connect the electrical connection between the battery module and the power consumption module so that the battery module supplies power to the power consumption module.
[0041] Optionally, the device further includes a fourth unit, configured to, after the step of detecting the remaining power of the battery module after a preset period of time, if the remaining power of the battery module is lower than or equal to a first preset threshold, continue to control the switching component to connect the battery module, the power consumption module and the external power supply device respectively, and continue to control the switching component to disconnect the electrical connection between the battery module and the power consumption module.
[0042] Optionally, the switching assembly includes a first relay, a second relay, and a third relay; the first relay is used to control the electrical connection between the battery module and the external power supply device to be in a conducting state or a disconnected state, the second relay is used to control the electrical connection between the power consumption module and the external power supply device to be in a conducting state or a disconnected state, and the third relay is used to control the electrical connection between the battery module and the power consumption module to be in a conducting state or a disconnected state.
[0043] Optionally, the battery module includes a power detection unit, which is used to monitor the remaining power of the battery module in real time based on the coulomb counter principle.
[0044] Optionally, the first preset threshold is determined based on the historical usage data, type, and performance of the battery module, as well as the robot's usage scenario and current ambient temperature; the preset cycle duration is adaptively adjusted based on the charging characteristics of the battery module and the robot's real-time power consumption needs.
[0045] Optionally, the device further includes a fourth unit, configured to, when the external power supply device supplies power to the battery module, if the remaining power of the battery module is lower than a second preset threshold, control the external power supply device to charge the battery module with a constant current charging method through the charging management circuit in the battery module; if the remaining power of the battery module is equal to or greater than the second preset threshold, control the external power supply device to charge the battery module with a constant voltage charging method through the charging management circuit in the battery module; wherein the second preset threshold is less than the first preset threshold.
[0046] Optionally, the device further includes a fourth unit, configured to, while the battery module is supplying power to the power module, if an abnormal load of the power module is detected and the output current of the battery module exceeds a preset safety threshold, control the switching assembly to disconnect the electrical connection between the battery module and the power module, and simultaneously trigger an alarm mechanism to prompt the user to check the operating status of the power module or the robot, so as to prevent the battery module from being damaged due to overcurrent.
[0047] Optionally, the device further includes a fourth unit, configured to, when the external power supply device supplies power to the battery module and the power consumption module, if an abnormal voltage of the external power supply device is detected, control the switching assembly to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and start the external backup power supply to supply power to the power consumption module, and send a notification message of external power supply abnormality to the user equipment.
[0048] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include RAM, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk storage device. Of course, the electronic device may also include other hardware required for other services.
[0049] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 3 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0050] Memory is used to store instructions for execution. Specifically, instructions for execution are computer programs that can be executed. Memory can include main memory and non-volatile memory, and it provides the processor with execution instructions and data.
[0051] In one possible implementation, the processor reads the corresponding execution instructions from non-volatile memory into main memory and then executes them. Alternatively, it may obtain the corresponding execution instructions from other devices to form a robot power supply device at the logical level. The processor executes the execution instructions stored in the memory to implement the robot power supply method provided in any embodiment of this application through the executed instructions.
[0052] The above is as stated in this application. Figure 1 The method executed by the robot power supply device provided in the illustrated embodiment can be applied to a processor, or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor.
[0053] The steps of the method disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0054] This application also proposes a readable medium that stores execution instructions. When the stored execution instructions are executed by the processor of an electronic device, the electronic device can execute the robot power supply method provided in any embodiment of this application, and specifically be used to perform the above-mentioned evaluation method.
[0055] The electronic devices described in the foregoing embodiments may be computers.
[0056] Those skilled in the art will understand that the embodiments of this application can be provided as methods or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or a combination of software and hardware.
[0057] The various embodiments in this application are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the device embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0058] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0059] The above description is merely an embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of this application should be included within the scope of the claims of this application.
Claims
1. A method for powering a robot, characterized in that, The method is used for a robot, the robot including a battery module, a power module, and a switch assembly, wherein the battery module and the power module are respectively connected to the switch assembly; the method includes: When it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, the switch assembly is controlled to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and the switch assembly is controlled to disconnect the electrical connection between the battery module and the power consumption module. After a preset period of time, the remaining power of the battery module is detected; If the remaining power of the battery module is greater than the first preset threshold, the switch assembly is controlled to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device, respectively, and the switch assembly is controlled to connect the electrical connection between the battery module and the power consumption module, so that the battery module supplies power to the power consumption module.
2. The method according to claim 1, characterized in that, After the step of detecting the remaining power of the battery module after a preset period of time, the method further includes: If the remaining power of the battery module is lower than or equal to a first preset threshold, the switch assembly is controlled to continue to connect the battery module, the power consumption module and the external power supply device respectively, and the switch assembly is controlled to continue to disconnect the electrical connection between the battery module and the power consumption module.
3. The robot power supply method according to claim 1 or 2, characterized in that, The switching assembly includes a first relay, a second relay, and a third relay; the first relay is used to control the electrical connection between the battery module and the external power supply device to be in a conducting state or a disconnected state, the second relay is used to control the electrical connection between the power consumption module and the external power supply device to be in a conducting state or a disconnected state, and the third relay is used to control the electrical connection between the battery module and the power consumption module to be in a conducting state or a disconnected state.
4. The robot power supply method according to claim 1 or 2, characterized in that, The battery module includes a power detection unit, which is used to monitor the remaining power of the battery module in real time based on the coulomb counter principle.
5. The robot power supply method according to claim 1 or 2, characterized in that, The first preset threshold is determined based on the historical usage data, type, and performance of the battery module, as well as the robot's usage scenario and current ambient temperature; the preset cycle duration is adaptively adjusted based on the charging characteristics of the battery module and the robot's real-time power consumption needs.
6. The robot power supply method according to claim 1 or 2, characterized in that, When the external power supply device supplies power to the battery module, the method further includes: If the remaining power of the battery module is lower than the second preset threshold, the external power supply device is controlled by the charging management circuit in the battery module to charge the battery module in a constant current charging mode. If the remaining power of the battery module is equal to or greater than the second preset threshold, the external power supply device is controlled by the charging management circuit in the battery module to charge the battery module in a constant voltage charging mode. Wherein, the second preset threshold is less than the first preset threshold.
7. The robot power supply method according to claim 1 or 2, characterized in that, The method further includes: If an abnormal load is detected in the power module while the battery module is supplying power to the power module, and the output current of the battery module exceeds a preset safety threshold, the switching assembly is controlled to disconnect the electrical connection between the battery module and the power module. At the same time, an alarm mechanism is triggered to prompt the user to check the operating status of the power module or the robot to prevent the battery module from being damaged due to overcurrent.
8. The robot power supply method according to claim 1 or 2, characterized in that, The method further includes: When the external power supply device supplies power to the battery module and the power consumption module, if an abnormal voltage is detected in the external power supply device, the switch assembly is controlled to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and the external backup power supply is activated to supply power to the power consumption module. In addition, a notification message of external power supply abnormality is sent to the user equipment.
9. A robot power supply device, characterized in that, The device is used in a robot, the robot including a battery module, a power module, and a switch assembly, the battery module and the power module being respectively connected to the switch assembly; the device includes: The first unit is configured to, when it is detected that the switch assembly is connected to an external power supply device and the remaining power of the battery module is lower than or equal to a first preset threshold, control the switch assembly to connect the battery module and the power consumption module to the external power supply device respectively, so that the external power supply device supplies power to the battery module and the power consumption module respectively, and control the switch assembly to disconnect the electrical connection between the battery module and the power consumption module. The second unit is used to detect the remaining power of the battery module after a preset period of time. The third unit is configured to, if the remaining power of the battery module is greater than the first preset threshold, control the switch assembly to disconnect the electrical connection between the battery module, the power consumption module and the external power supply device respectively, and control the switch assembly to connect the electrical connection between the battery module and the power consumption module, so that the battery module supplies power to the power consumption module.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory storing execution instructions. When the processor executes the execution instructions stored in the memory, the processor performs the method as described in any one of claims 1-8.