Methods, devices, systems for voltage detection of electrical components and electrical components.
By acquiring the battery voltage sampling value and operating parameters of the electrical device, it is determined whether calibration is needed. The corresponding preset calibration database is selected to calibrate the battery voltage sampling value, which solves the problem of inaccurate power detection by AD sampling under changing operating conditions and realizes accurate calculation of battery power.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-20
- Publication Date
- 2026-03-13
AI Technical Summary
Existing AD sampling and detection methods may result in inaccurate battery power detection results under conditions such as charger plugging/unplugging or load changes.
By acquiring the battery voltage sampling value and operating parameters of the electrical device, it is determined whether calibration is needed. The corresponding preset calibration database is selected to calibrate the battery voltage sampling value, and the calibrated voltage is obtained to calculate the battery capacity.
Even when the battery voltage sampling value changes abruptly due to operating conditions, it can accurately calculate the battery power, thus improving the accuracy of battery power detection.
Smart Images

Figure CN114814346B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of voltage detection technology, and in particular to a method, apparatus, system, and electrical device for voltage detection. Background Technology
[0002] With the rapid development of science and technology, more and more home appliances (such as air conditioners and air purifiers) are equipped with portable handheld color screen control terminals for controlling these appliances. These handheld color screen control terminals are powered by rechargeable batteries and display the battery level in real time so that users can charge them in time when the battery is low.
[0003] Currently, common battery power detection methods mainly include power management chip detection and AD (analogue-to-digital) sampling detection. Due to cost limitations, handheld color screen control terminals typically use AD sampling detection. AD sampling detection relies on the AD input function of the main control chip of the handheld color screen control terminal and the sampling voltage of the sampling circuit to realize battery power detection. However, when the charger is plugged in or unplugged or the load changes, the sampling voltage of the sampling circuit will change instantaneously, resulting in inaccurate battery power detection results. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, device, system, and electrical device for detecting the voltage of electrical components, addressing the problem of inaccurate battery power detection results from AD sampling.
[0005] A method for detecting the voltage of an electrical device includes: acquiring a sampled battery voltage value and operating parameters of the electrical device; determining whether the sampled battery voltage value needs to be corrected based on the operating parameters; if correction is required, selecting a corresponding preset correction database based on the operating parameters, correcting the sampled battery voltage value to obtain a corrected voltage; the corrected voltage is used to calculate the battery capacity of the electrical device; the preset correction database stores different sampled battery voltage values and corresponding required correction parameters under the corresponding operating parameters.
[0006] The aforementioned electrical device voltage detection method simultaneously acquires battery voltage samples and operating parameters during the detection process. It then analyzes the operating parameters to determine if correction is needed for the acquired battery voltage samples. If correction is required, a corresponding preset correction database is selected based on the operating parameters. The battery voltage samples are then corrected using the required correction parameters from the database, resulting in a corrected voltage used for battery capacity calculation. This approach does not directly calculate battery capacity based on the battery voltage samples. Instead, it analyzes the operating parameters and, if correction is needed, corrects the battery voltage samples using the preset correction database, obtaining a corrected voltage for battery capacity calculation. Even if the battery voltage samples experience instantaneous changes due to the operating conditions of the electrical device, the corrected voltage required for battery capacity calculation can be accurately obtained, effectively improving the accuracy of battery capacity detection results.
[0007] In one embodiment, determining whether the battery voltage sampling value needs to be corrected based on the operating condition parameters includes: determining whether the electrical device is in a charger plugging / unplugging condition or a load change condition based on the operating condition parameters; if it is in a charger plugging / unplugging condition or a load change condition, then the battery voltage sampling value needs to be corrected.
[0008] In one embodiment, the operating condition parameters include the positioning action parameters of the positioning switch of the electrical device. Determining whether the electrical device is in a charger plugging / unplugging condition based on the operating condition parameters includes: receiving the positioning action parameters in real time and determining whether the positioning action parameters have changed; if the positioning action parameters have changed, then the electrical device is in a charger plugging / unplugging condition.
[0009] In one embodiment, the operating condition parameters include the load current value of the electrical device. Determining whether the electrical device is in a load change condition based on the operating condition parameters includes: receiving the load current value in real time and determining whether the load current value has changed; if the load current value changes, then the electrical device is in a load change condition.
[0010] In one embodiment, the step of selecting a corresponding preset calibration database based on the operating condition parameters to correct the battery voltage sample value and obtain a corrected voltage includes: if the operating condition corresponding to the operating condition parameters is a charger plugging / unplugging condition, then the battery voltage sample value is corrected according to a preset plugging / unplugging calibration database to obtain a first corrected voltage; if the operating condition corresponding to the operating condition parameters is a load change condition, then the battery voltage sample value is corrected according to the battery voltage before the load change and a preset load calibration database to obtain a second corrected voltage; wherein the second corrected voltage is consistent with the battery voltage before the load change.
[0011] In one embodiment, the step of correcting the battery voltage sample value according to a preset insertion / removal correction database to obtain a first correction voltage includes: matching the battery voltage sample value with the preset insertion / removal correction database to obtain insertion / removal correction parameters; and correcting the battery voltage sample value according to the insertion / removal correction parameters to obtain the first correction voltage.
[0012] In one embodiment, the step of correcting the battery voltage sample value according to the insertion / removal correction parameter to obtain a first correction voltage includes: if the charger insertion / removal condition indicates that the charger is inserted into the electrical device, then the battery voltage sample value is subtracted from the insertion / removal correction parameter to obtain the first correction voltage; if the charger insertion / removal condition indicates that the charger is removed from the electrical device, then the battery voltage sample value is added to the insertion / removal correction parameter to obtain the first correction voltage.
[0013] In one embodiment, the step of correcting the battery voltage sample value based on the battery voltage before the load change and a preset load correction database to obtain a second corrected voltage includes: obtaining a corresponding preset load correction database based on the battery voltage before the load change; the preset load correction database stores different load current values of the electrical device, battery voltage sample values, and corresponding required correction parameters under the corresponding battery voltage; obtaining load correction parameters based on the load current value of the electrical device, the battery voltage sample value, and the corresponding preset load correction database; and correcting the battery voltage sample value based on the load correction parameters to obtain the second corrected voltage.
[0014] In one embodiment, after determining whether the battery voltage sample value needs to be corrected based on the operating condition parameters, the method further includes: if no correction is needed, calculating the battery capacity based on the battery voltage sample value.
[0015] A voltage detection device for an electrical device includes: a parameter acquisition module for acquiring sampled battery voltage values and operating parameters of the electrical device; a correction judgment module for determining whether the sampled battery voltage values need to be corrected based on the operating parameters; and a voltage correction module for selecting a corresponding preset correction database based on the operating parameters to correct the sampled battery voltage values and obtain a correction voltage if correction is required. The correction voltage is used to calculate the battery capacity of the electrical device. The preset correction database stores sampled battery voltage values and corresponding correction parameters under the corresponding operating parameters.
[0016] A voltage detection system for electrical components includes a voltage sampling circuit, an operating condition detection device, and a processor. The voltage sampling circuit and the operating condition detection device are respectively connected to the processor, and the processor is used to perform voltage detection according to the above-described voltage detection method for electrical components.
[0017] An electrical device includes the aforementioned electrical device voltage detection system. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic flowchart of a voltage detection method for electrical components in one embodiment of this application;
[0020] Figure 2 This is a schematic diagram of a preset calibration database corresponding to the charger plugging and unplugging conditions in one embodiment of this application;
[0021] Figure 3 This is a schematic flowchart of a voltage detection method for electrical components in another embodiment of this application;
[0022] Figure 4 This is a schematic flowchart of a voltage detection method for electrical components in another embodiment of this application;
[0023] Figure 5 This is a schematic diagram of charger plugging and unplugging voltage correction in one embodiment of this application;
[0024] Figure 6 This is a schematic diagram of charger plugging and unplugging voltage correction in another embodiment of this application;
[0025] Figure 7 This is a schematic diagram of voltage correction under load variation conditions in one embodiment of this application;
[0026] Figure 8 This is a schematic diagram of a preset correction database corresponding to load change conditions in one embodiment of this application;
[0027] Figure 9 This is a schematic flowchart of a voltage detection method for electrical components in another embodiment of this application;
[0028] Figure 10 This is a schematic diagram of the battery power calculation process for an electrical device in one embodiment of this application;
[0029] Figure 11 This is a schematic diagram of the structure of a voltage detection device for electrical components in one embodiment of this application;
[0030] Figure 12 This is a schematic diagram of the structure of the voltage detection device for electrical components in another embodiment of this application;
[0031] Figure 13 This is a schematic diagram of the structure of an electrical component voltage detection system in one embodiment of this application. Detailed Implementation
[0032] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings. Preferred embodiments of this application are shown in the drawings. However, this application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a thorough and complete understanding of the disclosure of this application.
[0033] Please see Figure 1 A method for detecting the voltage of an electrical device, comprising steps 102, 104 and 106.
[0034] Step 102: Obtain the battery voltage sampling value and operating parameters of the electrical components.
[0035] Specifically, an electrical device is an electrical appliance powered by a rechargeable battery and requiring a remaining power display or power reminder. The specific type of electrical device is not unique, and this application does not limit it. For example, in one embodiment, the electrical device can be a portable handheld color screen terminal of a household appliance such as an air purifier or air conditioner. Operating parameters are parameters characterizing the working state of the electrical device. The battery voltage sampling value is the sampled value obtained by sampling the battery voltage of the electrical device through a voltage sampling circuit and sending it to the processor.
[0036] During the operation of electrical devices, a voltage sampling circuit installed on the device can sample the battery voltage in real time, obtain the sampled battery voltage value, and send it to the device's processor. Simultaneously, a condition monitoring device installed on the device can monitor its operating conditions in real time, obtain the corresponding operating parameters, and send them to the processor.
[0037] When electrical devices are operating normally, the battery voltage sampled by the voltage sampling circuit directly represents the actual voltage of the battery. Therefore, under these conditions, the battery capacity calculated based on the sampled voltage value is the actual battery capacity. However, when electrical devices are operating abnormally, the battery voltage sampled by the voltage sampling circuit often undergoes sudden changes. If the battery capacity is calculated based on the sampled voltage value under these conditions, the final battery capacity will deviate from the actual battery capacity, resulting in an inaccurate battery capacity detection result.
[0038] Step 104: Determine whether the battery voltage sampling value needs to be corrected based on the operating parameters.
[0039] Specifically, based on operating condition parameters, the processor can determine the actual operating condition of the current electrical device. Under certain operating conditions, calculating the battery capacity based on the collected battery voltage samples will not lead to inaccurate results. However, under other operating conditions, the battery voltage samples may experience sudden changes, resulting in inaccurate battery capacity calculations based on these samples. In this embodiment, determining whether to correct the battery voltage samples based on operating condition parameters aims to analyze the current operating condition of the electrical device and determine if it is a condition that could cause sudden changes in the battery voltage samples. If so, the battery voltage samples need to be corrected.
[0040] Step 106: If calibration is required, select the corresponding preset calibration database according to the operating parameters, and calibrate the battery voltage sampling value to obtain the calibration voltage.
[0041] Specifically, the calibration voltage is used to calculate the battery capacity of electrical devices. A preset calibration database stores sampled battery voltage values under corresponding operating conditions and the corresponding required calibration parameters. Calibration is needed when the electrical device is in an operating condition that could cause a sudden change in the battery voltage sample value. In this case, the battery voltage sample value needs to be calibrated to match the battery voltage before the change, thus enabling accurate battery capacity calculation using the calibrated voltage.
[0042] Since the operating conditions that cause instantaneous changes in battery voltage sampling values are not unique, a preset calibration database can be set for each operating condition that causes instantaneous changes in battery voltage sampling values. In actual calibration operations, after the processor analyzes the operating conditions based on the operating condition parameters to obtain the current operating conditions, it is only necessary to select the corresponding preset calibration database in the processor to perform the calibration operation and obtain the calibration voltage.
[0043] It should be noted that the method for obtaining the preset calibration database is not unique. In one embodiment, under the same operating conditions, battery voltage samples can be collected using measuring tools such as a multimeter when the actual battery voltage is at different levels. The difference between the sampled battery voltage value and the corresponding actual battery voltage can be calculated as a calibration parameter. By using the same method to detect different operating conditions sequentially, the calibration parameters and their corresponding battery voltage samples can be obtained and stored according to different operating conditions, thus forming the preset calibration database corresponding to this type of electrical device.
[0044] For example, in one embodiment, the operating conditions corresponding to the operating parameters are explained using the charger insertion and removal conditions. In this case, a multimeter can be used to collect data. The charger is inserted and removed under different actual battery voltage levels. When the charger is inserted, a sampled battery voltage value is measured using the multimeter, and the difference between this sampled value and the actual battery voltage is calculated to obtain the correction parameters corresponding to charger insertion in the charger insertion and removal conditions. When the charger is removed, a sampled battery voltage value is measured using the multimeter, and the difference between this sampled value and the actual battery voltage is calculated to obtain the correction parameters corresponding to charger removal in the charger insertion and removal conditions. By measuring the actual battery voltage at various different levels in this way, a preset calibration database corresponding to the charger insertion and removal conditions can be constructed.
[0045] Furthermore, in a more detailed embodiment, see reference to Figure 2The figure shows the battery voltage sampling values when the charger is plugged in and unplugged, with the actual battery voltage ranging from 3.10V to 4.20V. It also shows the correction parameters (i.e., the voltage difference shown) required to correct these battery voltage sampling values. Based on this embodiment, when the device is plugged in, the battery voltage sampling circuit collects a value of 3.90V. Therefore, the correction parameter for this value is 0.11V, and the corresponding correction voltage (i.e., the actual battery voltage) is 3.90 - 0.11 = 3.79V. Similarly, when the device is unplugged, the voltage sampling circuit collects a value of 3.90V. Therefore, the correction parameter for this value is 0.10V, and the corresponding correction voltage (i.e., the actual battery voltage) is 3.90 + 0.10 = 4.00V.
[0046] It is understandable that the method for establishing the preset calibration database in other types of operating conditions is similar to that in the charger plugging and unplugging operating conditions, and will not be repeated here.
[0047] The aforementioned electrical device voltage detection method simultaneously acquires battery voltage samples and operating parameters during the detection process. It then analyzes the operating parameters to determine if correction is needed for the acquired battery voltage samples. If correction is required, a corresponding preset correction database is selected based on the operating parameters. The battery voltage samples are then corrected using the required correction parameters from the database, resulting in a corrected voltage used for battery capacity calculation. This approach does not directly calculate battery capacity based on the battery voltage samples. Instead, it analyzes the operating parameters and, if correction is needed, corrects the battery voltage samples using the preset correction database, obtaining a corrected voltage for battery capacity calculation. Even if the battery voltage samples experience instantaneous changes due to the operating conditions of the electrical device, the corrected voltage required for battery capacity calculation can be accurately obtained, effectively improving the accuracy of battery capacity detection results.
[0048] Please see Figure 3 In one embodiment, step 104 includes step 302.
[0049] Step 302: Determine whether the electrical device is in a charger plugging / unplugging condition or a load change condition based on the operating parameters.
[0050] Specifically, if the operating conditions are charger plugging / unplugging or load change conditions, the battery voltage sampling value needs to be corrected. As shown in the above embodiment, the operation of determining whether the battery voltage sampling value needs to be corrected essentially involves determining whether the operating condition of the electrical device is one that causes a sudden change in the battery voltage sampling value. Among the various operating conditions of the electrical device, the main conditions that can cause a sudden change in the battery voltage sampling value are charger plugging / unplugging and load change conditions. Charger plugging / unplugging condition refers to the instant when the battery power of the electrical device is too low and the charger is plugged in to charge it; and the instant when the charging of the electrical device is completed and the charger is unplugged to stop the battery charging. Load change condition refers to the instant when the load of the electrical device suddenly increases or decreases while it is running stably under a certain load, or the instant when the electrical device changes from a dormant state to a loaded operating state. Therefore, the processor only needs to analyze whether the electrical device is in a charger plugging / unplugging condition or a load change condition based on the operating condition parameters to indicate that the currently collected battery voltage sampling value needs to be corrected.
[0051] The solution described above determines whether battery voltage sampling value correction is needed by checking whether the electrical device is in a charger plugging / unplugging state or a load change state. This allows for timely correction of the battery voltage sampling value when the electrical device is in a charger plugging / unplugging state or a load change state, ensuring the accuracy of battery power calculation under these two conditions.
[0052] In one embodiment, the operating condition parameters include the positioning action parameters of the positioning switch of the power device. Determining whether the power device is in a charger plugging / unplugging condition based on the operating condition parameters includes: receiving the positioning action parameters in real time and determining whether the positioning action parameters have changed; if the positioning action parameters have changed, then the power device is in a charger plugging / unplugging condition.
[0053] Specifically, the operating condition detection device includes a position switch, which is installed at the charging interface of the electrical device and connected to the processor. The position switch detects the charging status of the electrical device. The processor determines whether charging is in progress based on the different signals output by the position switch. If the position switch outputs a continuously non-positioned signal, it indicates that no charger is currently inserted into the electrical device for charging. If the position switch outputs a continuously positioned signal, it indicates that the charger is continuously inserted for charging. A change in the position switch output signal indicates a change in the charging status. This change can be from a position signal to a position signal (i.e., the charger is unplugged) or from a non-positioned signal to a position signal (i.e., the charger is inserted). This allows the processor to determine whether the electrical device is in a charger plug-in / unplugged state.
[0054] The above embodiment directly sets a position switch at the charging port of the electrical device, and uses the position switch to detect whether the charger is in the charger plugging / unplugging state. It has the advantages of simple detection method and high detection accuracy.
[0055] In one embodiment, the operating condition parameters include the load current value of the electrical device. Determining whether the electrical device is in a load change condition based on the operating condition parameters includes: receiving the load current value in real time and determining whether the load current value has changed; if the load current value changes, the electrical device is in a load change condition.
[0056] Specifically, when an electrical device is connected to a load and operates stably under that load, the load current value of the device does not change; that is, the load current value remains constant. However, when the load connected to the device increases or decreases, the load current value of the device will change abruptly. Therefore, in this embodiment, the load current value can be detected to determine whether the load on the electrical device has changed, i.e., whether it is in a load-changing operating condition. The above solution, by detecting changes in the load current value, analyzes whether the load on the electrical device has changed, and has high detection accuracy.
[0057] It should be noted that the method for obtaining the load current value is not unique. In one embodiment, for certain types of electrical devices, the load current value generated after the load starts is already determined. For example, the speed settings of a fan, each speed setting corresponds to a different load, and the load current value corresponding to each speed setting is determined during circuit design. Therefore, for this type of electrical device, the processor only needs to combine the operating state to obtain the corresponding load current value.
[0058] In another embodiment, to ensure the accuracy of the acquired load current value, the operating condition detection device further includes a current sampling circuit, which is placed between the battery of the electrical device and the load and connected to the processor to realize the load current value detection operation.
[0059] It is understood that, in a more detailed embodiment, the operating parameters include both the position action signal and the load current value, which can ensure that the electrical device can be accurately detected whether it is in a load change condition or a charger plugging / unplugging condition.
[0060] Please see Figure 4 In one embodiment, a corresponding preset calibration database is selected according to the operating condition parameters to calibrate the battery voltage sampling value and obtain the calibration voltage, including steps 402 and 404.
[0061] Step 402: If the operating condition corresponding to the operating condition parameter is the charger plugging and unplugging condition, then the battery voltage sampling value is corrected according to the preset plugging and unplugging correction database to obtain the first correction voltage.
[0062] Step 402: If the operating condition corresponding to the operating condition parameter is a load change condition, then the battery voltage sample value is corrected according to the battery voltage before the load change and the preset load correction database to obtain the second correction voltage.
[0063] The second correction voltage is consistent with the battery voltage before the load change. Specifically, the preset correction database includes a preset plug-in / plug correction database and a preset load correction database, depending on the operating conditions. The correction voltage is divided into a first correction voltage and a second correction voltage, depending on the correction method used. As in the above embodiments, the operating conditions that cause sudden changes in the battery voltage sampling value mainly correspond to charger plug-in / plug conditions and load change conditions. When the charger is plugged in / plugged in, only the corresponding preset plug-in / plug correction database and the battery voltage sampling value need to be combined for correction processing to obtain the first correction voltage that can accurately calculate the battery capacity. When the appliance is under load change conditions, it is necessary to combine the battery voltage before the load change with the preset load correction database for correction processing to obtain the second correction voltage that can accurately calculate the battery capacity.
[0064] The above scheme selects different preset calibration databases for calibration processing according to different operating conditions of electrical devices, ensuring that the calibration voltage after calibration processing can accurately calculate the battery capacity under the corresponding operating conditions, thereby further improving the accuracy of battery capacity calculation.
[0065] Please see Figure 5 In one embodiment, the battery voltage sample value is corrected according to a preset insertion and removal correction database to obtain a first correction voltage, including steps 502 and 504.
[0066] Step 502: Match the battery voltage sample value with the preset insertion / removal correction database to obtain insertion / removal correction parameters; Step 504: Correct the battery voltage sample value according to the insertion / removal correction parameters to obtain the first correction voltage.
[0067] Specifically, the preset insertion / removal calibration database stores different battery voltage sample values, as well as the insertion / removal calibration parameters required to correct the current battery voltage sample value to the actual battery voltage. Then, during the calibration operation, only the acquired battery voltage sample value needs to be calibrated according to the insertion / removal calibration parameters to obtain the corresponding first calibration voltage.
[0068] Further, please refer to Figure 6 In one embodiment, step 504 includes steps 602 and 604.
[0069] Step 602: If the charger plugging / unplugging condition indicates that the charger is inserted into the device, the battery voltage sample value is subtracted from the plugging / unplugging correction parameter to obtain the first correction voltage; Step 604: If the charger plugging / unplugging condition indicates that the charger is unplugged from the device, the battery voltage sample value is added to the plugging / unplugging correction parameter to obtain the first correction voltage.
[0070] Specifically, the charger plugging / unplugging condition can be either the charger being inserted into the charging port of the device or the charger being unplugged from the charging port. The sudden change in battery voltage sampling value caused by the charger being inserted into the charging port essentially increases the battery voltage sampling value; the sudden change in battery voltage sampling value caused by the charger being unplugged essentially decreases the battery voltage sampling value. Therefore, in the charger plugging / unplugging condition, specifically when the charger is inserted into the device, the correction operation for the battery voltage sampling value is to subtract the plugging / unplugging correction parameter from the collected battery voltage sampling value to obtain the actual battery voltage. In the charger plugging / unplugging condition, specifically when the charger is unplugged from the device, the correction operation for the battery voltage sampling value is to add the plugging / unplugging correction parameter to the collected battery voltage sampling value to obtain the actual battery voltage.
[0071] Please see Figure 7 In one embodiment, the battery voltage sample value is corrected based on the battery voltage before the load change and a preset load correction database to obtain a second corrected voltage, including steps 702, 704 and 702.
[0072] Step 702: Obtain the corresponding preset load correction database based on the battery voltage before the load change; Step 704: Obtain the load correction parameters based on the load current value of the electrical device, the sampled battery voltage value, and the corresponding preset load correction database; Step 706: Correct the sampled battery voltage value based on the load correction parameters to obtain the second correction voltage.
[0073] Specifically, a pre-set load correction database stores different load current values of electrical devices, battery voltage sampling values, and corresponding correction parameters under the corresponding battery voltage. The battery voltage before the load change is the actual battery voltage before the load change. The method for obtaining the battery voltage before the load change is not unique; it varies depending on the operating conditions of the electrical device before the load change. If the electrical device is in normal operation before the load change, meaning the battery voltage sampling value does not change abruptly due to the operating conditions, the battery voltage sampling value collected before the load change can be directly used as the battery voltage before the load change. However, if the electrical device experienced charger plugging / unplugging before the load change, then the battery voltage before the load change is the first correction voltage after correction using the above method.
[0074] Once the processor obtains the battery voltage before the load change, it can select the corresponding preset load correction database. Then, by combining the obtained load current value and the battery voltage sampling value, it can correct the battery voltage sampling value to the battery voltage before the load change, which is the second correction voltage. Then, the battery power is calculated using the second correction voltage to obtain the actual battery power and display it. This avoids sudden changes in the displayed battery power due to load changes (such as fluctuations in the remaining battery power bars), thus maintaining the accuracy of the displayed power of the electrical device.
[0075] The preset load correction database will vary depending on the battery voltage before the load change. For example, in one embodiment, please refer to... Figure 8 This explanation uses an example where the battery voltage before the load change is 3.6V, and no load is connected before the load change. The diagram shows the load correction parameter (i.e., the difference between the battery voltage sample and 3.6V) required to correct the battery voltage sample value to the pre-load voltage when the battery voltage before the load change is 3.6V and the load current is within the range of 0-500mA. For example, when the load starts, the load current is 100mA, and the processor receives a battery voltage sample value of 3.578V. The corresponding load correction parameter is 0.022V. After voltage correction, the second corrected voltage is 3.578 + 0.022 = 3.6V.
[0076] It should be noted that, in another embodiment, the load current value in the preset load correction database can also be the difference between the current load current value and the load current value before the change. Different choices can be made according to actual needs.
[0077] Understandable. Figure 8 The diagram only illustrates the state where an increase in load causes a drop in the battery voltage sample value. Correspondingly, under this type of load change condition, it is necessary to combine the battery voltage sample value and the load current value to obtain a load correction parameter. The battery voltage sample value is then added to the load correction parameter to obtain the actual battery voltage. In other embodiments, the battery voltage sample value may also increase due to a decrease in load. In this case, after obtaining the load correction parameter, the battery voltage sample value needs to be subtracted from the load correction parameter to obtain the current actual battery voltage.
[0078] Please see Figure 9 In one embodiment, after step 104, the method further includes step 108.
[0079] Step 108: If no calibration is required, calculate the battery capacity based on the sampled battery voltage value.
[0080] Specifically, when the processor analyzes operating parameters, there are situations where it is not necessary to correct the battery voltage sampling value. This means the electrical device is operating normally, and the battery voltage sampling value obtained in this case can represent the actual battery voltage value, thus allowing for battery capacity calculation. This solution allows for direct calculation of battery capacity using only the battery voltage sampling value when correction is not required, effectively improving the efficiency of battery capacity calculation.
[0081] To facilitate understanding of the technical solution of this application, the following detailed embodiments will be used to explain and illustrate this application.
[0082] For details, please refer to the relevant documents. Figure 10 First, the processor acquires operating parameters (including positioning parameters and load current value) and battery voltage sampling value. Based on the positioning parameters, it analyzes that the electrical device is currently in a charger plugging / unplugging state, meaning the positioning parameters have changed from in position to not in position (or from not in position to in position). The processor then matches the battery voltage sampling value with a preset plugging / unplugging correction database to obtain plugging / unplugging correction parameters. If the charger is plugged in, the battery voltage sampling value is subtracted from the plugging / unplugging correction parameters to obtain the first correction voltage; if the charger is unplugged, the battery voltage sampling value is added to the plugging / unplugging correction parameters to obtain the first correction parameter. This is used to calculate the battery level, ensuring accurate battery level display.
[0083] When analyzing the load current value to determine if the electrical device is under load variation, the battery voltage before the load change is further obtained. This can be either the sampled battery voltage value collected before the load change, or a first correction voltage corrected from the sampled battery voltage value before the load change, depending on the actual requirements. Then, the battery voltage before the load change is matched with the corresponding preset load correction parameters, and the load correction parameters are obtained by combining the obtained load current value and the sampled battery voltage value. Finally, a second correction voltage, identical to the battery voltage before the load change, is calculated based on the sampled battery voltage value and the load correction parameters (adding if the load increases and subtracting if the load decreases). This allows for the accurate calculation of the battery capacity.
[0084] Please see Figure 11 A voltage detection device for electrical components includes a parameter acquisition module 112, a correction judgment module 114, and a voltage correction module 116.
[0085] The parameter acquisition module 112 is used to acquire the battery voltage sampling value and operating parameters of the electrical device; the correction judgment module 114 is used to determine whether the battery voltage sampling value needs to be corrected based on the operating parameters; the voltage correction module 116, if correction is required, selects the corresponding preset correction database according to the operating parameters to correct the battery voltage sampling value and obtain the correction voltage. The correction voltage is used to calculate the battery capacity of the electrical device; the preset correction database stores different battery voltage sampling values and corresponding required correction parameters under the corresponding operating parameters.
[0086] In one embodiment, the correction judgment module 114 is further configured to determine whether the power device is in charger plugging / unplugging condition or load change condition based on the operating condition parameters.
[0087] In one embodiment, the correction judgment module 114 is also used to receive the bit action parameters in real time and determine whether the bit action parameters have changed; if the bit action parameters have changed, the electrical device is in the charger plugging and unplugging condition.
[0088] In one embodiment, the correction judgment module 114 is also used to receive the load current value in real time and determine whether the load current value has changed; if the load current value changes, the electrical device is in a load change condition.
[0089] In one embodiment, the voltage correction module 116 is further configured to, if the operating condition corresponding to the operating condition parameter is a charger plugging / unplugging condition, correct the battery voltage sample value according to a preset plugging / unplugging correction database to obtain a first corrected voltage. If the operating condition corresponding to the operating condition parameter is a load change condition, correct the battery voltage sample value according to the battery voltage before the load change and a preset load correction database to obtain a second corrected voltage.
[0090] In one embodiment, the voltage correction module 116 is further configured to match the battery voltage sample value with a preset insertion / removal correction database to obtain insertion / removal correction parameters; and to correct the battery voltage sample value according to the insertion / removal correction parameters to obtain a first correction voltage.
[0091] In one embodiment, the voltage correction module 116 is further configured to, if the charger plug-in / plug-out condition indicates that the charger is inserted into the device, subtract the battery voltage sample value from the plug-in / plug-out correction parameter to obtain a first correction voltage; and if the charger plug-in / plug-out condition indicates that the charger is unplugged from the device, add the battery voltage sample value to the plug-in / plug-out correction parameter to obtain the first correction voltage.
[0092] In one embodiment, the voltage correction module 116 is further configured to obtain a corresponding preset load correction database based on the battery voltage before the load change; the preset load correction database stores different load current values of electrical devices, battery voltage sampling values, and corresponding required correction parameters under the corresponding battery voltage; obtain load correction parameters based on the load current values of electrical devices, battery voltage sampling values, and the corresponding preset load correction database; and correct the battery voltage sampling values based on the load correction parameters to obtain a second correction voltage.
[0093] Please see Figure 12 In one embodiment, the electrical device voltage detection device further includes a conventional power calculation module 122. The conventional power calculation module 122 is used to calculate the battery power based on the battery voltage sample value if no calibration is required.
[0094] Specific limitations regarding the voltage detection device for electrical components can be found in the limitations of the voltage detection method for electrical components described above, and will not be repeated here. Each module in the aforementioned voltage detection device for electrical components can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the corresponding operations of each module.
[0095] The aforementioned electrical device voltage detection device simultaneously acquires battery voltage samples and operating parameters during the detection process. It then analyzes the operating parameters to determine if correction is needed for the acquired battery voltage samples. If correction is required, a corresponding preset correction database is selected based on the operating parameters. The battery voltage samples are then corrected using the required correction parameters from the preset correction database, resulting in a corrected voltage used for battery capacity calculation. This scheme does not directly calculate battery capacity based on the battery voltage samples; instead, it analyzes the operating parameters and, if correction is needed, corrects the battery voltage samples according to the preset correction database. The corrected voltage is then used for battery capacity calculation. Even if the battery voltage samples experience instantaneous changes due to the operating conditions of the electrical device, the corrected voltage required for battery capacity calculation can be accurately obtained, thus effectively improving the accuracy of battery capacity detection results.
[0096] Please see Figure 13 A voltage detection system for electrical components includes a voltage sampling circuit 132, a working condition detection device 134, and a processor 136. The voltage sampling circuit 132 and the working condition detection device 134 are respectively connected to the processor 136, which is used to perform voltage detection according to the above-mentioned voltage detection method for electrical components.
[0097] Specifically, the electrical component voltage detection method is as described in the above embodiments and accompanying drawings, and will not be repeated here. The above-described electrical component voltage detection system simultaneously acquires the battery voltage sample value and operating parameters of the electrical component during the detection process. Then, it analyzes the operating parameters to determine whether the currently acquired battery voltage sample value needs correction. If correction is required, a corresponding preset correction database is selected based on the different operating parameters. The battery voltage sample value is then corrected using the required correction parameters corresponding to the battery voltage sample value in the preset correction database, ultimately obtaining a corrected voltage for calculating the battery capacity. In this scheme, after obtaining the battery voltage sample value, the system does not directly calculate the battery capacity based on the sample value. Instead, it analyzes the operating parameters and, if correction is needed, corrects the battery voltage sample value according to the preset correction database, obtaining a corrected voltage which is then used for battery capacity calculation. Even if the battery voltage sample value undergoes a sudden change due to the operating conditions of the electrical component, the corrected voltage required for battery capacity calculation can be accurately obtained, thereby effectively improving the accuracy of the battery capacity detection results.
[0098] An electrical device includes the aforementioned electrical device voltage detection system.
[0099] Specifically, as shown in the above embodiments and accompanying drawings, the electrical device voltage detection system can be any type of electrical device that is powered by a rechargeable battery and has the requirement of displaying or reminding users of remaining power, such as a portable handheld color screen terminal for household appliances such as air purifiers and air conditioners.
[0100] The aforementioned electrical components, during operation, can simultaneously acquire battery voltage samples and operating parameters. They then analyze the operating parameters to determine if correction is needed for the acquired battery voltage samples. If correction is required, a corresponding preset correction database is selected based on the operating parameters. The battery voltage samples are then corrected using the required correction parameters from the preset correction database, ultimately yielding a corrected voltage for battery capacity calculation. This scheme does not directly calculate battery capacity based on the battery voltage samples; instead, it analyzes the operating parameters and, if correction is needed, corrects the battery voltage samples according to the preset correction database, obtaining a corrected voltage for battery capacity calculation. Even if the battery voltage samples experience instantaneous changes due to the operating conditions of the electrical components, the corrected voltage required for battery capacity calculation can be accurately obtained, thus effectively improving the accuracy of battery capacity detection results.
[0101] 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.
[0102] 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 patent application. 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.
Claims
1. A method of detecting the voltage of an electrical device, characterized by, The method comprises the following steps: acquiring a battery voltage sampling value and a working condition parameter of an electrical device; the working condition parameter comprises a to-position action parameter of a to-position switch of the electrical device and a load current value; determining whether the battery voltage sampling value needs to be corrected according to the working condition parameter; if the battery voltage sampling value needs to be corrected, selecting a corresponding preset correction database according to the working condition parameter, correcting the battery voltage sampling value to obtain a corrected voltage; the corrected voltage is used to calculate the battery power of the electrical device; the preset correction database stores different battery voltage sampling values and corresponding required correction parameters under corresponding working condition parameters; the step of determining whether the battery voltage sampling value needs to be corrected according to the working condition parameter comprises: determining whether the electrical device is in a charger plugging condition or a load changing condition according to the working condition parameter; if the electrical device is in the charger plugging condition or the load changing condition, the battery voltage sampling value needs to be corrected; wherein the step of determining whether the electrical device is in the load changing condition according to the working condition parameter comprises: acquiring the load current value in real time, and determining whether the load current value changes; if the load current value changes, the electrical device is in the load changing condition; the step of correcting the battery voltage sampling value according to the working condition parameter to obtain the corrected voltage comprises: if the working condition corresponding to the working condition parameter is the charger plugging condition, correcting the battery voltage sampling value according to a preset plugging correction database to obtain a first corrected voltage; if the working condition corresponding to the working condition parameter is the load changing condition, obtaining a corresponding preset load correction database according to the battery voltage before the load changes; the preset load correction database stores different load current values, battery voltage sampling values and corresponding required correction parameters of the electrical device under corresponding battery voltages; obtaining a load correction parameter according to the load current value, the battery voltage sampling value and the corresponding preset load correction database of the electrical device; correcting the battery voltage sampling value according to the load correction parameter to obtain a second corrected voltage; wherein the second corrected voltage is consistent with the battery voltage before the load changes.
2. The method of claim 1, wherein, the step of determining whether the electrical device is in the charger plugging condition according to the working condition parameter comprises: acquiring the to-position action parameter in real time, and determining whether the to-position action parameter changes; if the to-position action parameter changes, the electrical device is in the charger plugging condition.
3. The method of claim 1, wherein the voltage of the electrical device is detected by a voltage sensor. the step of correcting the battery voltage sampling value according to the preset plugging correction database to obtain the first corrected voltage comprises: matching the battery voltage sampling value with the preset plugging correction database to obtain a plugging correction parameter; correcting the battery voltage sampling value according to the plugging correction parameter to obtain the first corrected voltage.
4. The method of claim 3, wherein, the step of correcting the battery voltage sampling value according to the plugging correction parameter to obtain the first corrected voltage comprises: if the charger plugging condition indicates that the charger is inserted into the electrical device, subtracting the plugging correction parameter from the battery voltage sampling value to obtain the first corrected voltage; If the charger plug-in condition represents that the charger is unplugged from the electrical device, the battery voltage sampling value is added to the plug-in correction parameter to obtain a first corrected voltage.
5. The method of claim 1, wherein, After determining whether the battery voltage sampling value needs to be corrected according to the condition parameter, the method further comprises: If no correction is needed, the battery power is calculated according to the battery voltage sampling value.
6. A voltage detection device for electrical components, characterized in that, The method comprises: a parameter acquisition module configured to acquire a battery voltage sampling value of an electrical device and a condition parameter; the condition parameter comprises a to-position action parameter of a to-position switch of the electrical device and a load current value; a correction determination module configured to determine whether the battery voltage sampling value needs to be corrected according to the condition parameter; a voltage correction module configured to, if the correction is needed, select a corresponding preset correction database according to the condition parameter, correct the battery voltage sampling value to obtain a corrected voltage; the corrected voltage is used to calculate the battery power of the electrical device; the preset correction database stores different battery voltage sampling values and corresponding required correction parameters under corresponding condition parameters; the correction determination module is further configured to determine whether the electrical device is in a charger plug-in condition or a load change condition according to the condition parameter; if the electrical device is in the charger plug-in condition or the load change condition, the battery voltage sampling value needs to be corrected; wherein determining whether the electrical device is in the load change condition according to the condition parameter comprises: receiving the load current value in real time, and determining whether the load current value changes; if the load current value changes, the electrical device is in the load change condition; the voltage correction module is further configured to, if the condition corresponding to the condition parameter is the charger plug-in condition, correct the battery voltage sampling value according to a preset plug-in correction database to obtain a first corrected voltage; if the condition corresponding to the condition parameter is the load change condition, obtain a corresponding preset load correction database according to the battery voltage before the load change; the preset load correction database stores different load current values, battery voltage sampling values and corresponding required correction parameters of the electrical device under corresponding battery voltages; obtain a load correction parameter according to the load current value, the battery voltage sampling value and the corresponding preset load correction database of the electrical device; correct the battery voltage sampling value according to the load correction parameter to obtain a second corrected voltage; wherein the second corrected voltage is consistent with the battery voltage before the load change.
7. A voltage detection system for electrical components, characterized in that, The method comprises a voltage sampling circuit, a condition detection device and a processor; the voltage sampling circuit and the condition detection device are connected to the processor; the processor is configured to perform voltage detection according to the electrical device voltage detection method of any one of claims 1-5.
8. An electric device characterized by comprising: The method comprises the electrical device voltage detection system of claim 7.
Citation Information
Patent Citations
Estimation method and terminal device of electricity quantity of battery
CN103176132A
Method for detecting electric quantity of rechargeable battery
CN110794315A
Self-adaptive battery electric quantity monitoring method and system
CN114509684A