Constant power control apparatus, method, device and storage medium for electronic devices
By obtaining the current correspondence and adjusting the supply current, the problem of electronic devices being unable to operate at constant power under current loop control was solved, and constant power control under different load conditions was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- DREAM INNOVATION TECH (SUZHOU) CO LTD
- Filing Date
- 2022-03-25
- Publication Date
- 2026-06-05
AI Technical Summary
Electronic devices cannot achieve constant power operation under current loop control, especially when the output power decreases as the voltage drops.
The current correspondence is obtained by acquiring the voltage and current acquisition structures, the current supply current is determined, and the current supply is adjusted to the target supply current based on the target power and supply voltage to achieve constant power control.
This method ensures constant power output of electronic devices under different load conditions, avoiding power deviation caused by load changes in traditional methods.
Smart Images

Figure CN116841343B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of computer technology, and specifically relates to a constant power control device, method, apparatus and storage medium for electronic devices. Background Technology
[0002] Currently, motors in household appliances are typically powered by battery packs. For example, the motor in a vacuum cleaner uses a battery pack composed of lithium batteries. However, when a current loop control is used, the motor's output power decreases as the voltage drops, making constant power operation impossible. Summary of the Invention
[0003] The technical problems to be solved by this application include the inability of electronic devices to operate at constant power.
[0004] To address the aforementioned technical problems, this application provides a constant power control device for electronic devices, the constant power control device comprising:
[0005] A voltage acquisition structure is used to acquire the power supply voltage of the electronic device;
[0006] A current acquisition structure connected to the voltage acquisition structure includes a filtering unit and a sampling unit; the current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampled current; and
[0007] A control structure, connected to the current acquisition module and the voltage acquisition structure, is used to acquire a current correspondence, which represents the correspondence between different sampled currents and the corresponding supply currents of each sampled current; determine the current supply current corresponding to the current sampled current in the current correspondence; determine the target supply current based on the target power and the supply voltage; and adjust the current supply current to the target supply current.
[0008] Optionally, the voltage acquisition structure is connected to the sampling unit through the filtering unit;
[0009] or,
[0010] The voltage acquisition structure is connected to the filtering unit through the sampling unit.
[0011] Optionally, the filtering unit includes a resistor and a capacitor connected in series.
[0012] Optionally, the voltage acquisition structure includes a sampling resistor, and the voltage value of the sampling resistor is the supply voltage.
[0013] Optionally, the current correspondence is a linear correspondence.
[0014] On the other hand, this application provides a constant power control method for an electronic device, comprising:
[0015] Obtain the current correspondence, which is used to represent the correspondence between different sampled currents and the supply current corresponding to each sampled current;
[0016] The current supply current corresponding to the current sampling current is determined from the current correspondence relationship; the current sampling current is acquired by the current acquisition structure, which includes a filtering unit and a sampling unit; the current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampling current;
[0017] The target power supply current is determined based on the target power and the supply voltage, wherein the supply voltage is acquired by a voltage acquisition structure, which is used to acquire the supply voltage of the electronic device;
[0018] Adjust the current supply current to the target supply current.
[0019] Optionally, adjusting the current supply current to the target supply current includes:
[0020] Determine the error value between the current supply current and the target supply current;
[0021] Based on the error value, a PID control algorithm is used to adjust the current supply current to the target supply current.
[0022] Optionally, adjusting the current supply current to the target supply current includes:
[0023] Determine whether the time interval between the current time and the end time of the last current regulation is greater than a preset time threshold;
[0024] If the time interval is greater than or equal to a preset time threshold, the current power supply current is adjusted to the target power supply current;
[0025] If the time interval is less than a preset time threshold, the following steps are triggered: determining the current supply current corresponding to the current sampled current in the current correspondence; determining the target supply current based on the target power and supply voltage; and determining whether the time interval between the current time and the end time of the last current regulation is greater than the preset time threshold.
[0026] In another aspect, this application also provides an electronic device, the electronic device comprising: a processor and a memory; the memory storing a program, the program being loaded and executed by the processor to implement the constant power control method of the electronic device provided above.
[0027] In another aspect, this application also provides a computer-readable storage medium, characterized in that the storage medium stores a program, which, when executed by a processor, implements the constant power control method for the electronic device provided above.
[0028] The technical solution provided in this application has the following advantages: by obtaining the current correspondence, which represents the correspondence between different sampling currents and the corresponding supply current; the current supply current corresponding to the current sampling current is determined in the current correspondence; the target supply current is determined based on the target power and the supply voltage; the current supply current is adjusted to the target supply current; the problem of not being able to achieve constant power control of electronic devices can be solved; since the current supply current can be determined based on the current correspondence, and the target supply current of the electronic device can be determined based on the target power and the current supply voltage, the constant power output of the electronic device can be achieved by adjusting the current supply current to the target supply current.
[0029] Furthermore, in traditional constant power control methods for motors, power is adjusted by calculating the voltage across the motor's DQ axis. However, power shifts occur when the motor load changes, failing to achieve true constant power. Therefore, this embodiment employs deep filtering of the supply voltage acquired by the current acquisition structure to obtain the current sampled current. This current sampled current is unaffected by the motor load, thus ensuring consistent power values under different load conditions and achieving constant power control across various load states. Attached Figure Description
[0030] To more clearly illustrate the technical solutions in the specific embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0031] Figure 1 This is a schematic diagram of the structure of a constant power control device for an electronic device provided in one embodiment of this application;
[0032] Figure 2 This is a flowchart of a constant power control method for an electronic device provided in one embodiment of this application;
[0033] Figure 3 This is a flowchart of a constant power control method for an electronic device provided in another embodiment of this application;
[0034] Figure 4This is a block diagram of a constant power control device for an electronic device provided in one embodiment of this application;
[0035] Figure 5 This is a block diagram of an electronic device provided in one embodiment of this application. Detailed Implementation
[0036] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. The application will be described in detail below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0037] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0038] In this application, unless otherwise stated, directional terms such as "upper," "lower," "top," and "bottom" are generally used in relation to the direction shown in the accompanying drawings, or in relation to the vertical, perpendicular, or gravitational direction of the component itself; similarly, for ease of understanding and description, "inner" and "outer" refer to the inner and outer contours of each component itself, but the above directional terms are not intended to limit this application.
[0039] Figure 1 This is a schematic diagram of a constant power control device for an electronic device provided in one embodiment of this application. The electronic device refers to a device in an electronic device whose output power decreases as the supply voltage decreases without constant power adjustment. This electronic device is generally powered by a battery pack. The electronic device can be a motor in a cordless vacuum cleaner, a motor in a hair dryer, a water pump motor in a floor scrubber, etc. This embodiment does not limit the implementation method of the electronic device.
[0040] Optionally, the constant power control device can be installed in the same electronic device as the electronic device, or the constant power control device can be communicatively connected to the electronic device to which the electronic device belongs, so as to realize remote adjustment of the electronic device. This embodiment does not limit the implementation method of the constant power control device.
[0041] like Figure 1 As shown, the constant power control device includes at least: a voltage acquisition structure 110, a current acquisition structure 120 connected to the voltage acquisition structure, and a control structure 130 connected to both the current acquisition module and the voltage acquisition structure.
[0042] The voltage acquisition structure 110 is used to acquire the power supply voltage of electronic devices.
[0043] Schematic, the voltage acquisition structure 110 is connected to the power supply voltage terminal of the electronic device to acquire the power supply voltage of the electronic device. The power supply voltage of the electronic device can be the actual power supply voltage or a processed power supply voltage; this embodiment does not limit the type of power supply voltage of the electronic device.
[0044] For example, the voltage acquisition structure includes a sampling resistor, and the voltage value of the sampling resistor is the supply voltage.
[0045] The current acquisition structure 120 is used to perform deep filtering on the initial voltage of the supply voltage to obtain a DC voltage. The current corresponding to this voltage and the supply current corresponding to the supply voltage satisfy a certain relationship.
[0046] Specifically, the current acquisition structure 120 includes a filtering unit 121 and a sampling unit 122. Accordingly, the current acquisition structure 120 is used to filter the current through the filtering unit 121 and sample the current through the sampling unit 122 to obtain the current sampled current.
[0047] In one example, the voltage acquisition structure 110 is connected to the sampling unit 122 via the filtering unit 121. The supply voltage acquired by the voltage acquisition structure 110 is first filtered by the filtering unit 121 to obtain the filtered voltage; then, the sampling unit 122 samples the filtered voltage to obtain the current sampling current.
[0048] In another example, the voltage acquisition structure 110 is connected to the filtering unit 121 via the sampling unit 122. In this case, the supply voltage acquired by the voltage acquisition structure 110 is first sampled by the sampling unit 122 to obtain the sampled current; then, the filtering unit 121 filters the sampled current to obtain the current sampled current.
[0049] Schematic, the filter unit 121 includes a resistor and a capacitor connected in series. The sampling unit 122 includes an analog-to-digital converter (ADC).
[0050] Optionally, the supply voltage acquired by the voltage acquisition structure 110 is amplified by the operational amplifier circuit and then input to the current acquisition structure 120, so that the supply voltage can be adjusted through the feedback network.
[0051] The control structure 130 is used to acquire the current correspondence; determine the current supply current corresponding to the current sampled current in the current correspondence; determine the target supply current based on the target power and the supply voltage; and adjust the current supply current to the target supply current.
[0052] As described above, the current acquisition structure 120 performs deep filtering on the initial voltage of the supply voltage response, obtaining a relationship between the current sampled current and the current supply current corresponding to the current supply voltage. This relationship is called the current correspondence. In other words, the current correspondence represents the correspondence between different sampled currents and the supply current corresponding to each sampled current. The current correspondence is pre-stored in the constant power control device. Thus, the current supply current can be determined based on the current correspondence, and the target supply current of the electronic device can be determined based on the target power and the current supply voltage. Adjusting the current supply current to the target supply current achieves constant power output of the electronic device.
[0053] To illustrate, the current correspondence is linear. This ensures that each currently sampled current can be uniquely matched with the current supply current.
[0054] The target power is the constant power that the electronic device is expected to achieve. Optionally, the target power is pre-stored in the constant power control device. When the electronic device has at least two operating modes, different operating modes correspond to different target power. This embodiment does not limit the way the target power is set.
[0055] The constant power control method for this electronic device is described below. The following embodiments demonstrate the application of this method... Figure 1 The constant power control device shown is used as an example for illustration. In actual implementation, it can also be used in other devices that are connected to the constant power control device, such as mobile phones, computers, wearable devices, or tablet computers. This embodiment does not limit the application scenario of the constant power control method.
[0056] Figure 2 This is a flowchart of a constant power control method for an electronic device according to an embodiment of this application. The method includes at least the following steps:
[0057] Step 201: Obtain the current correspondence relationship. The current correspondence relationship is used to represent the correspondence between different sampled currents and the power supply current corresponding to each sampled current.
[0058] Optionally, the current correspondence is pre-stored in the constant power control device, or sent to the constant power control device by other devices.
[0059] Indicatively, the methods for obtaining current correspondence include: obtaining the current supply current of the electronic device and the current sampling current corresponding to the current supply current; and generating current correspondence based on multiple sets of sample data composed of the current supply current and the current sampling current.
[0060] Specifically, the current correspondence can be generated based on multiple sets of sample data in the following ways: curve fitting or generation using a preset linear model. This embodiment does not limit the generation method of the current correspondence.
[0061] Optionally, the current correspondence is a linear correspondence, that is, the current current is obtained by multiplying the current sampled current by a certain coefficient and adding a constant.
[0062] Step 202: Determine the current supply current corresponding to the current sampling current in the current correspondence relationship.
[0063] The current sampled current is acquired by the current acquisition structure, which includes a filtering unit and a sampling unit. The current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampled current.
[0064] Step 203: Determine the target supply current based on the target power and supply voltage.
[0065] The power supply voltage is acquired by a voltage acquisition structure, which is used to acquire the power supply voltage of electronic devices.
[0066] Specifically, the target power divided by the supply voltage is the target supply current.
[0067] Optionally, step 203 can be executed after steps 201 and 202; or, it can be executed before steps 201 and 202; or, it can be executed simultaneously with steps 201 and 202. This embodiment does not limit the timing of the execution of step 203.
[0068] Step 204: Adjust the current supply current to the target supply current.
[0069] Schematic, adjusting the current supply current to the target supply current includes: determining the error value between the current supply current and the target supply current; and adjusting the current supply current to the target supply current based on the error value using a proportional-integral-differential (PID) control algorithm.
[0070] Optionally, the constant power control device adjusts the supply current every preset time threshold. In this case, adjusting the current supply current to the target supply current includes: determining whether the time interval between the current time and the end time of the last current adjustment is greater than the preset time threshold; if the time interval is greater than or equal to the preset time threshold, adjusting the current supply current to the target supply current; if the time interval is less than the preset time threshold, triggering the steps of determining the current supply current corresponding to the currently sampled current in the current correspondence relationship; determining the target supply current based on the target power and supply voltage; and determining whether the time interval between the current time and the end time of the last current adjustment is greater than the preset time threshold.
[0071] In summary, the constant power control method for electronic devices provided in this embodiment solves the problem of not being able to achieve constant power control of electronic devices by obtaining a current correspondence relationship, which represents the correspondence between different sampled currents and the corresponding supply current; determining the current supply current corresponding to the current sampled current in the current correspondence relationship; determining the target supply current based on the target power and supply voltage; and adjusting the current supply current to the target supply current. Since the current supply current can be determined based on the current correspondence relationship, and the target supply current of the electronic device can be determined based on the target power and the current supply voltage, adjusting the current supply current to the target supply current can achieve constant power output of the electronic device.
[0072] Furthermore, in traditional constant power control methods for motors, power is adjusted by calculating the voltage across the motor's DQ axis. However, power shifts occur when the motor load changes, failing to achieve true constant power. Therefore, this embodiment employs deep filtering of the supply voltage acquired by the current acquisition structure to obtain the current sampled current. This current sampled current is unaffected by the motor load, thus ensuring consistent power values under different load conditions and achieving constant power control across various load states.
[0073] To better understand the constant power control method for electronic devices provided in this application, an example is given below for illustration. (Refer to...) Figure 3 The method includes at least the following steps:
[0074] Step 31: Determine the target supply current based on the target power and supply voltage;
[0075] Step 32: Determine the current supply current corresponding to the current sampling current in the current correspondence relationship;
[0076] Step 33: Determine if the current adjustment time has been reached; if yes, proceed to step 34; if no, proceed to step 31 again.
[0077] Step 34: Determine the error value between the target supply current and the current supply current;
[0078] Step 35: Adjust the error value using a PID algorithm to obtain the adjustment duty cycle;
[0079] Step 36: Adjust the current power supply current according to the duty cycle adjustment, and repeat step 31 until the electronic device stops working.
[0080] As can be seen from the above process, the current sampling current is not affected by the motor load, which can ensure the power value under different load conditions and achieve constant power control under different load conditions.
[0081] Figure 4 This is a block diagram of a constant power control device for an electronic device according to an embodiment of this application. The device includes at least the following modules: a relationship acquisition module 410, a first determination module 420, a second determination module 430, and a current adjustment module 440.
[0082] The relationship acquisition module 410 is used to acquire the current correspondence relationship, which represents the correspondence between different sampled currents and the power supply current corresponding to each sampled current.
[0083] The first determining module 420 is used to determine the current supply current corresponding to the current sampling current in the current correspondence relationship; the current sampling current is acquired by the current acquisition structure, which includes a filtering unit and a sampling unit; the current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampling current;
[0084] The second determining module 430 is used to determine the target supply current based on the target power and the supply voltage, wherein the supply voltage is acquired by a voltage acquisition structure, and the voltage acquisition structure is used to acquire the supply voltage of the electronic device;
[0085] The current regulation module 440 is used to regulate the current supply current to the target supply current.
[0086] For relevant details, please refer to the above embodiments.
[0087] It should be noted that the constant power control device for electronic devices provided in the above embodiments is only illustrated by the division of the above functional modules when performing constant power control of electronic devices. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the constant power control device for electronic devices can be divided into different functional modules to complete all or part of the functions described above. In addition, the constant power control device for electronic devices provided in the above embodiments and the constant power control method embodiments for electronic devices belong to the same concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0088] Figure 5 This is a block diagram of an electronic device provided in one embodiment of this application. The electronic device may be... Figure 1 The constant power control device includes at least a processor 501 and a memory 502.
[0089] Processor 501 may include one or more processing cores, such as a 5-core processor, an 8-core processor, etc. Processor 501 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 501 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 501 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 501 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0090] Memory 502 may include one or more computer-readable storage media, which may be non-transitory. Memory 502 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 502 is used to store at least one instruction, which is executed by processor 501 to implement the constant power control method of the electronic device provided in the method embodiments of this application.
[0091] In some embodiments, the external parameter calibration device may also optionally include: a peripheral device interface and at least one peripheral device. The processor 501, memory 502, and peripheral device interface can be connected via a bus or signal lines. Each peripheral device can be connected to the peripheral device interface via a bus, signal lines, or a circuit board. Indicatively, peripheral devices include, but are not limited to: radio frequency circuits, touch displays, audio circuits, and power supplies.
[0092] Of course, the external parameter calibration device may include fewer or more components, and this embodiment does not limit this.
[0093] Optionally, this application also provides a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the constant power control method of the electronic device in the above method embodiments.
[0094] Optionally, this application also provides a computer product including a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the constant power control method of the electronic device in the above method embodiments.
[0095] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0096] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
[0097] Obviously, the embodiments described above are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, those skilled in the art can make other variations or modifications without creative effort, and all such variations or modifications should fall within the scope of protection of this application.
Claims
1. A constant power control device for an electronic device, characterized in that, The constant power control device includes: A voltage acquisition structure is connected to the power supply voltage terminal of an electronic device and is used to acquire the power supply voltage of the electronic device. A current acquisition structure is connected to the voltage acquisition structure. The supply voltage acquired by the voltage acquisition structure is amplified by an operational amplifier circuit and then input to the current acquisition structure. The current acquisition structure includes a filtering unit and a sampling unit. The current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampled current. A control structure, connected to the current acquisition structure and the voltage acquisition structure, is used to acquire a current correspondence, which represents the correspondence between different sampled currents and the corresponding supply currents of each sampled current; determine the current supply current corresponding to the current sampled current in the current correspondence; determine the target supply current based on the target power and the supply voltage; and adjust the current supply current to the target supply current.
2. The constant power control device according to claim 1, characterized in that, The voltage acquisition structure is connected to the sampling unit through the filtering unit; or, The voltage acquisition structure is connected to the filtering unit through the sampling unit.
3. The constant power control device according to claim 1, characterized in that, The filter unit includes a resistor and a capacitor connected in series.
4. The constant power control device according to claim 1, characterized in that, The voltage acquisition structure includes a sampling resistor, and the voltage value of the sampling resistor is the supply voltage.
5. The constant power control device according to claim 1, characterized in that, The current correspondence is a linear correspondence.
6. A constant power control method for an electronic device, characterized in that, In a constant power control device for an electronic device as described in any one of claims 1 to 5, the method comprises: Obtain the current correspondence, which is used to represent the correspondence between different sampled currents and the supply current corresponding to each sampled current; The current supply current corresponding to the current sampling current is determined from the current correspondence relationship; the current sampling current is acquired by the current acquisition structure, which includes a filtering unit and a sampling unit; the current acquisition structure is used to filter the current through the filtering unit and sample the current through the sampling unit to obtain the current sampling current; The target power supply current is determined based on the target power and the supply voltage, wherein the supply voltage is acquired by a voltage acquisition structure, which is used to acquire the supply voltage of the electronic device; Adjust the current supply current to the target supply current.
7. The constant power control method according to claim 6, characterized in that, Adjusting the current supply current to the target supply current includes: Determine the error value between the current supply current and the target supply current; Based on the error value, a PID control algorithm is used to adjust the current supply current to the target supply current.
8. The constant power control method according to claim 6, characterized in that, Adjusting the current supply current to the target supply current includes: Determine whether the time interval between the current time and the end time of the last current regulation is greater than a preset time threshold; If the time interval is greater than or equal to a preset time threshold, the current power supply current is adjusted to the target power supply current; If the time interval is less than a preset time threshold, the following steps are triggered: determining the current supply current corresponding to the current sampled current in the current correspondence; determining the target supply current based on the target power and supply voltage; and determining whether the time interval between the current time and the end time of the last current regulation is greater than the preset time threshold.
9. A computer-readable storage medium, characterized in that, The storage medium stores a program that, when executed by a processor, is used to implement the constant power control method for the electronic device as described in any one of claims 6 to 8.
10. An electronic device, characterized in that, The electronic device includes a processor and a memory connected to the processor, the memory storing a program, which the processor executes to implement the constant power control method for the electronic device as described in any one of claims 6 to 8.