Solar charging method based on charging chip, electronic equipment and storage medium
By dynamically adjusting the charging current of the charging chip and reading the solar panel voltage in real time, the problems of high cost and insufficient adaptability of MPPT technology in the solar charging system are solved, and the effect of low-cost and efficient charging is achieved.
Patent Information
- Application Number
- CN202510117760.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-04-18
AI Technical Summary
In solar charging systems, MPPT technology is costly and lacks adaptability, making it difficult to efficiently adapt to a variety of solar photovoltaic panel specifications.
The charging current of the charging chip is dynamically adjusted through the MCU and the voltage of the solar panel is read in real time. When the voltage does not meet the preset optimal threshold, the adjustment operation is performed cycle to make the solar panel work close to the maximum power point, and the MPPT function is realized.
Reduces system costs, simplifies hardware design, enhances adaptability to different solar panels, and achieves low-cost and efficient charging.
Smart Images

Figure CN119853219A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of solar energy technology, and in particular to a solar charging method based on a charging chip, an electronic device and a storage medium. Background Art
[0002] In solar charging systems, the maximum power point tracking (MPPT) technology is used to ensure that photovoltaic components (such as solar panels) always operate at their maximum power point. That is, by adjusting the output voltage and current of the photovoltaic inverter, the power output of the photovoltaic component reaches the maximum, thereby improving the efficiency of the photovoltaic power generation system.
[0003] However, MPPT technology mainly relies on solar-specific charging chips, which are expensive and increase the overall price of solar charging equipment. In addition, due to the high integration of dedicated charging chips, additional hardware design adjustments may be required when adapting to solar photovoltaic panels of different specifications. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide a solar charging method, electronic device and storage medium based on a charging chip, so as to solve the problems of high cost and insufficient adaptability of MPPT technology in a solar charging system.
[0005] To solve the above technical problems, an embodiment of the present invention provides a solar charging method based on a charging chip, which is applied to an electronic device, wherein the electronic device includes: a solar panel, a charging chip connected to the solar panel, and an MCU connected to the solar panel and the charging chip; the method includes: obtaining the open circuit voltage of the solar panel through the MCU; the MCU controls the charging chip to continuously increase the charging current, and reads the current voltage of the solar panel when the charging current changes, until the current voltage is less than or equal to the product of the open circuit voltage of the solar panel and a preset proportional coefficient; setting the current charging current to the maximum power point, and maintaining charging at the maximum power point.
[0006] An embodiment of the present invention also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the solar charging method based on the charging chip as described above.
[0007] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the solar charging method based on the charging chip as described above.
[0008] In the embodiment of the present invention, the charging current of the charging chip is dynamically adjusted by the MCU, and the voltage of the solar panel is read in real time. When the voltage does not meet the preset optimal threshold adjustment, the MCU cyclically performs the adjustment operation of the charging current, so that the solar panel can always work close to the maximum power point, and the MPPT function is realized without relying on the maximum power point tracking (MPPT) dedicated chip. In addition, the method uses ordinary charging chips to replace high-cost dedicated chips, and only relies on the software control logic of the MCU to complete the charging optimization, which not only reduces the system cost, but also simplifies the hardware design, while enhancing the adaptability to different solar panels, and can effectively achieve the invention purpose of low-cost and efficient charging.
[0009] In addition, the electronic device in the embodiment of the present invention also includes a light sensor connected to the MCU, and the method also includes: the MCU regularly determines the degree of light sensitivity change through the light sensor, and if the degree of light sensitivity change exceeds the preset light sensitivity range, the MCU controls the charging chip to initialize the charging current, and re-executes the search for the maximum power point, and keeps charging at the maximum power point. Since changes in the external environment (such as light intensity, etc.) will affect the output characteristics of the photovoltaic module, the maximum power point will also change accordingly. By introducing the light sensor and the control logic of the MCU, the system can readjust the charging strategy when the ambient light changes significantly, thereby quickly adapting to the new lighting conditions, thereby ensuring that the solar panel always operates close to the maximum power point, thereby improving the charging efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0011] Figure 1 It is a structural diagram of an electronic device of a solar charging method provided in an embodiment of the present application;
[0012] Figure 2 is a flow chart of a solar charging method provided in an embodiment of the present application;
[0013] Figure 3 is a specific example flow chart of a solar charging method provided in an embodiment of the present application;
[0014] Figure 4 This is a flow chart of a maximum power point search in a solar charging method provided in an embodiment of the present application;
[0015] Figure 5is a structural diagram of an electronic device for executing a solar charging method provided in an embodiment of the present application; DETAILED DESCRIPTION
[0016] In solar charging systems, Maximum Power Point Tracking (MPPT) technology is a core technology to improve the efficiency of photovoltaic power generation. The main goal of MPPT is to ensure that photovoltaic modules (solar panels) can operate at their maximum power point (MPP) under any environmental conditions, thereby maximizing energy utilization. The implementation of MPPT relies on the following key principles:
[0017] 1. IV and PV curve analysis: The IV curve of the photovoltaic module changes with environmental conditions, and the peak of the PV curve corresponds to the MPP. By measuring the output voltage and current of the photovoltaic module in real time and combining it with algorithm analysis, the current MPP position can be located.
[0018] 2. Dynamically adjust output parameters: By adjusting the operating parameters (such as voltage or current) of the solar inverter or charging circuit, the system's operating point is moved to the MPP. Common adjustment methods include constant voltage method, perturbation observation method and incremental conductance method.
[0019] 3. Real-time response to environmental changes: Since changes in light intensity and temperature can cause the position of the MPP to shift, MPPT technology needs to have the ability to respond quickly and adjust working parameters in real time to follow the movement of the MPP.
[0020] Currently, MPPT technology usually relies on dedicated solar charging chips. These chips integrate high-precision sensors and complex control algorithms, which can quickly calculate MPP and adjust system parameters to stabilize the photovoltaic modules at the optimal operating point. However, the high production cost of these dedicated chips has led to an increase in the overall price of solar charging equipment, limiting its promotion in price-sensitive markets. In addition, due to the high integration of dedicated chips, they are less flexible and may require additional hardware design adjustments when adapting to photovoltaic modules of different specifications, which further increases the complexity of system design and development costs.
[0021] In summary, in order to address the problems of high cost and insufficient adaptability of MPPT technology in existing solar charging systems, a low-cost solution based on a variable current charging chip is urgently needed, which can not only reduce system costs but also achieve efficient charging in a variety of application scenarios.
[0022] To make the purpose, technical scheme and advantages of the embodiments of the present invention clearer, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the embodiments of the present invention, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can be implemented. The division of the following embodiments is for the convenience of description, and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction.
[0023] One embodiment of the present invention relates to a solar charging method based on a charging chip, which can be applied in Figure 1 The electronic device structure shown includes a solar panel, a charging chip connected to the solar panel, and an MCU connected to the solar panel and the charging chip. Through the architecture of the electronic device, the implementation method includes: obtaining the open circuit voltage of the solar panel through the MCU; the MCU controls the charging chip to continuously increase the charging current, and reads the current voltage of the solar panel when the charging current changes, until the current voltage is less than or equal to the product of the open circuit voltage of the solar panel and the preset proportional coefficient; the current charging current is set to the maximum power point, and the charging is kept at the maximum power point. The charging current of the charging chip is dynamically adjusted by the MCU, and the voltage of the solar panel is read in real time. When the voltage is lower than the preset optimal voltage threshold, the adjustment process is cyclically executed, so that the solar panel can work close to the maximum power point, and the MPPT function is indirectly realized. In addition, the method uses ordinary charging chips to replace high-cost dedicated chips, and only relies on the software control logic of the MCU to complete the charging optimization, which not only reduces the system cost, but also simplifies the hardware design, while enhancing the adaptability to different solar panels, and can effectively achieve the invention purpose of low-cost and efficient charging.
[0024] The implementation details of the solar charging method based on the charging chip in the embodiment of the present invention are specifically described below. The following content is only the implementation details provided for the convenience of understanding and is not necessary for the implementation of this solution.
[0025] The present invention provides a solar charging method based on a charging chip. The method can be applied in Figure 1 The electronic device structure shown includes a solar panel, a charging chip connected to the solar panel, and an MCU connected to the solar panel and the charging chip.
[0026] Specifically, the MCU is connected to the charging chip through the IIC interface, which is used to dynamically set the charging current of the solar panel through the charging chip. The IIC interface supports two-way data communication, allowing the MCU to set the working parameters of the charging chip with high precision, such as adjusting the incremental step value of the current and monitoring the status of the charging chip in real time. In addition, the use of the IIC interface further simplifies the hardware connection and signal transmission design, and improves the overall responsiveness of the system.
[0027] This application uses ordinary charging chips (such as buck-boost charging chips) that are not dedicated to MPPT as core components. Such chips usually have basic current regulation functions, but lack complex dynamic regulation and power optimization algorithms, and need to be optimized in real time by an external controller (such as MCU). In contrast, MPPT dedicated chips integrate a complete maximum power point tracking (MPPT) algorithm and high-precision sensors, which can dynamically adjust the current and voltage at the hardware level so that the solar panel always runs near the maximum power point. However, MPPT dedicated chips are expensive and highly integrated in function. When adapting to solar panels of different specifications, additional hardware design support is often required, which increases development costs and design complexity. Therefore, the electronic device structure design of the embodiment of the present application can not only replace the expensive MPPT dedicated chip with an ordinary charging chip, but also rely on the flexible control logic of the MCU to complete the charging optimization, effectively reducing the hardware cost; it also has good versatility, and can dynamically adjust parameters in combination with the MCU to adapt to various types and specifications of solar panels without additional hardware changes. Thereby greatly improving the system's applicability to different photovoltaic scenarios and reducing design complexity.
[0028] At the same time, the MCU is also directly connected to the solar panel through the ADC interface to read the output voltage signal of the solar panel in real time. The ADC interface is used to convert analog signals into digital signals, which facilitates the MCU to perform real-time calculations of voltage values. In this way, the MCU can accurately grasp the voltage change trend of the solar panel and use it as the basis for subsequent adjustment of the charging current to achieve maximum power point tracking of the solar panel.
[0029] Optionally, the electronic device also includes a battery module connected to the charging chip. The battery module can not only serve as an energy storage device for the solar panel, but also provide the power required for the MCU to operate. During the charging process, the solar panel charges the battery through the charging chip, and the fully charged battery can further provide stable power output for other loads. This structural design not only enhances the energy management capability of the system, but also significantly improves the overall operating efficiency of the device.
[0030] Based on the above hardware architecture, the method flow shown in the following steps can be implemented (such as Figure 2 and Figure 3 ):
[0031] S110, MCU sets the charging current to zero and collects the open circuit voltage of the solar panel.
[0032] Specifically, when the system starts running, the MCU will first turn off the charging function, set the charging current to zero, and collect the open circuit voltage V_oc of the solar panel. The above open circuit voltage is the highest voltage value of the photovoltaic module under the current light intensity, which can accurately reflect the environmental status and output capacity of the solar panel. This value is an important reference for the subsequent search for the maximum power point (MPP). The specific steps include:
[0033] S111, Initialize charging current: MCU sends instructions to the charging chip through the IIC interface to set the charging current to zero, so that the output end of the solar panel is in an open circuit state. In the open circuit state, the system completely eliminates the interference of the load on the voltage measurement, thereby ensuring that the voltage value can truly reflect the characteristics of the photovoltaic module.
[0034] S112, reading of voltage signal: After the charging chip enters the open circuit state, the MCU reads the output voltage signal of the solar panel through the ADC interface and stores the voltage value as the open circuit voltage V_oc. The ADC interface converts the analog signal into a digital signal, so that the MCU can efficiently process the collected data. In addition, the process of collecting the open circuit voltage is time-consuming and will not significantly affect the overall operating efficiency of the system.
[0035] S113, data processing and storage: To improve data reliability, the MCU will sample the collected voltage value multiple times and calculate the average value to reduce the impact of noise and random errors. This process can not only avoid data deviation caused by transient interference, but also improve the accuracy of open circuit voltage, providing a more stable benchmark for subsequent operations.
[0036] S120, the MCU performs the search for the maximum power point by repeatedly adjusting the charging current of the charging chip and monitoring the voltage of the solar panel. In order to ensure that the solar panel always works near the maximum power point, the MCU needs to adjust the charging current and charging voltage simultaneously by gradually adjusting the charging current to indirectly adjust the charging power, thereby locating the MPP under the current working conditions. This process is the core step to achieve maximum power point tracking, such as Figure 3 and Figure 4 , specifically including the following:
[0037] S121, MCU gradually increases the charging current. MCU sends a command to adjust the charging current to the charging chip through the IIC interface, starting from zero current and gradually increasing the charging current with a fixed step value. After each adjustment, the charging chip outputs a new current value according to the command and transmits the system working status to the MCU.
[0038] Optionally, during the above control process, the MCU can choose to adjust the current with the minimum current change amount supported by the charging chip (such as 10 mA) or several times thereof (such as 2 times, 5 times, 10 times) as the step value, which is helpful for accurate search near the maximum power point. The following are specific application scenarios: In the early stage of the search or when approaching the target point, selecting the minimum current change amount can ensure the adjustment accuracy and avoid skipping the optimal point due to excessive adjustment. It is especially suitable for areas that are sensitive to voltage changes; in an environment with stable lighting conditions and obvious voltage change patterns, selecting a multiple of the minimum change amount (such as 50 mA) can significantly reduce the number of adjustments, speed up the search speed, and improve the system response efficiency.
[0039] In addition, in order to balance adjustment accuracy and efficiency, the MCU can dynamically adjust the size of the step value according to the real-time voltage change trend. In the initial search stage, when the relationship between current and voltage is not clear, a larger step value (such as 50 mA) can be used to quickly locate the approximate range of the maximum power point. As the voltage gradually approaches the target value, the MCU can gradually reduce the step value and enter a more refined adjustment stage. This dynamic adjustment strategy can complete the search at the optimal speed and accuracy at different stages.
[0040] In addition, the MCU can also use a gradually decreasing step value during the entire search process. In the initial stage, a 50 mA step value is used for quick adjustment; after entering the middle stage, the step value is reduced to 20 mA; and when approaching the target voltage, it is finally adjusted to the minimum step value of 10 mA. By gradually decreasing the step value, the system can avoid the problem of power point skipping caused by excessive adjustment steps while ensuring efficiency.
[0041] S122, MCU monitors voltage changes in real time and determines whether the maximum power point has been reached. Specifically, after each adjustment of the charging current, the MCU collects the real-time output voltage value Vn of the solar panel through the ADC interface. The ADC interface converts analog signals into digital signals for MCU processing and analysis.
[0042] To ensure the accuracy of the collected data, the MCU can use multiple sampling to calculate the average value of the voltage, thereby reducing the impact of transient noise and random errors. In addition, the process of collecting voltage takes a short time (usually in milliseconds), which can quickly provide data support for subsequent comparisons.
[0043] At the same time, according to the open circuit voltage V_oc, the MCU calculates the target voltage value, that is, V_target = A × V_oc, where A is the preset proportional coefficient. The target voltage value represents the voltage range near the maximum power point and is used to guide the dynamic adjustment of the current.
[0044] In addition, the real-time voltage value Vn collected each time is compared with the target voltage value V_target. Specifically, if Vn ≥ V_target, it means that the current charging current has not reached the maximum power point, and the charging current can be continuously increased; if Vn < V_target, it indicates that the current operating point has approached or reached the maximum power point, and the system stops adjusting the charging current. By dynamically monitoring the voltage change, the MCU can judge in real time whether the current operating point is close to the maximum power point.
[0045] Optionally, the above proportionality coefficient A determines the voltage target value of the maximum power point, and its setting needs to comprehensively consider the characteristics of the solar panel and the actual application scenario. The common range is 0.6 to 0.85, and the specific selection is as follows: for photovoltaic modules with higher conversion efficiency, the value of A is usually set to 0.8 to 0.85 to be closer to the actual maximum power point; for ordinary photovoltaic modules, the value of A is about 0.7 to balance between stability and efficiency; when the light is weak, the value of A is reduced (such as 0.6 to 0.7) to adapt to the characteristic of voltage drop. Moreover, the proportionality coefficient A can also be dynamically adjusted in combination with the data of the light sensor. For example, when the light intensity decreases, the MCU can automatically lower the value of A according to the ambient light sensor data to ensure the continuity and stability of the system operation.
[0046] S123, when reaching the maximum power point, the MCU stops adjusting and records the optimal current value. When the real-time voltage V drops to the target threshold V_target or below, the MCU records the current charging current as the optimal charging current. After recording the optimal charging current, the system switches to the stable charging mode to keep the operating point of the solar panel near the maximum power point, thereby maximizing the energy output efficiency.
[0047] The above strategy of dynamically adjusting the charging current in S120 can effectively adapt to the non-linear characteristics of the solar panel. On the voltage-current characteristic curve of the photovoltaic module, the maximum power point is usually located in the voltage drop interval. By gradually increasing the current and real-time monitoring the voltage change, the system can approach the maximum power point with high accuracy.
[0048] S130, after completing the search for the maximum power point, the MCU instructs the charging chip to continue charging with the optimal current value.
[0049] Specifically, after completing the search for the maximum power point, the MCU locks the optimal charging current as the current output current and instructs the charging chip to continue charging with this current value. At this time, the operating point of the solar panel is stable near the maximum power point, and it can convert light energy into electrical energy with the optimal efficiency.
[0050] Optionally, during the stable charging process, the MCU can continuously monitor the battery's charging status (such as voltage and current) and adjust the charging strategy according to the actual needs of the battery. When the battery is close to full charge, the MCU can switch the charging mode to constant voltage charging to avoid safety hazards caused by overcharging. In addition, to further improve the safety and reliability of the system, overcurrent protection and overtemperature protection functions are added after locking the maximum power point. Once an abnormal state is detected, the MCU will quickly stop the charging process to protect the safety of the device and the user.
[0051] If the voltage still does not reach the target voltage value V_target when the current increases to the maximum value of the charging chip, it is necessary to adaptively increase the proportional coefficient A. For example, by increasing the A value, the voltage target value of the maximum power point is increased, so that the solar panel in the current state reaches the maximum power point.
[0052] Based on the above electronic device architecture, in order to adapt to the dynamic changes of ambient light, the system adds a light sensor connected to the MCU. The light sensor is used to monitor the light intensity on the surface or periphery of the solar panel. Its installation position is usually located in the center or key lighting area of the solar panel to ensure that the light changes can be captured in a timely and accurate manner. The light sensor is connected to the MCU through the SPI interface, and the MCU can read the light value in real time and process the data.
[0053] The role of the light sensor is not only to provide monitoring data of light intensity, but also to provide the MCU with a basis for judging the working status of the photovoltaic module. When the light intensity changes rapidly, the voltage characteristic curve of the photovoltaic module will shift significantly. By obtaining light sensing data in real time, the MCU can dynamically adjust the charging strategy so that the solar panel always works at a position close to its maximum power point. The specific implementation method is as follows:
[0054] S140, MCU periodically calculates the degree of light sensitivity change through the real-time data of the light sensor.
[0055] In the above S140, in order to meet the real-time response requirements and reduce system power consumption, the MCU adopts a dynamically adjusted periodic judgment mechanism to obtain light value data at different time points through the light sensor and calculate the degree of change. Specifically, it includes the following three preset time scenarios:
[0056] 1. First preset time (T1): Figure 3 As shown, after obtaining the open circuit voltage of the solar panel (time t at this time), after a first preset time T1 (such as 10 seconds or 1 minute), that is, when the time reaches t+T1, the MCU collects the light sensitivity value and calculates the current light sensitivity change degree. If the change exceeds the preset range, the readjustment process is started.
[0057] 2. Second preset time (T2): When the system is stably charging and maintaining the maximum power point, after the second preset time (such as 5 minutes or 10 minutes), the MCU collects the light value and compares it with the light data at the previous time point. If it is detected that the light change is out of range, the system is triggered to re-execute the maximum power point search.
[0058] 3. The third preset time (T3): When the result of this judgment is that the degree of light sensitivity change is within the preset range (for example, the change is less than ±5%) and the lighting conditions are relatively stable, the MCU extends the judgment cycle. After a longer time interval (such as 30 minutes or longer), the light sensing data is collected again and the stability of the ambient light is re-evaluated. If the light sensing data is still within the preset range, the system maintains the current charging state; if there is an abnormal change, the readjustment process is started.
[0059] Through the above-mentioned periodic judgment mechanism, the system can maintain sensitive response in a frequently changing environment, while reducing the monitoring frequency and reducing system power consumption when the light is stable.
[0060] S150: When the light sensitivity variation exceeds the preset range, the MCU immediately initializes the output current of the charging chip and re-executes the maximum power point search process. Figure 3 If the light sensitivity value measured at the open circuit voltage is X1, and the value obtained by the MCU in the current state is X2, when the adjustment X1-Z<=X2<=X1+Z is not satisfied (Z is the light sensitivity variation range), the current will be reset to zero and the maximum power point search process will be re-executed.
[0061] Optionally, the degree of light sensitivity change in the above step S150 can be determined by comparing the difference between the current light sensitivity value and the historical reference value. The historical reference value can be selected from the following data scenarios: the light sensitivity value during open circuit voltage measurement, that is, the light sensitivity value recorded when the system is initialized or re-searched for the maximum power point; the light sensitivity value during stable charging, that is, the light sensitivity value when the MCU starts to charge at the maximum power point; the light sensitivity value at the most recent light sensitivity change, that is, the light sensitivity value recorded by the MCU when the last light sensitivity change was determined.
[0062] Optionally, based on the above historical reference values, the specific calculation method of the degree of light sensitivity change includes: the difference between the light sensitivity value during open circuit voltage measurement and the light sensitivity value after the first preset time; the difference between the light sensitivity value during stable charging and the light sensitivity value after the second preset time; the difference between the light sensitivity value when the degree of light sensitivity change is determined to be within the preset range and the light sensitivity value after the third preset time. When the degree of light sensitivity change exceeds the preset range (such as the change in light intensity exceeds ±20%), the MCU considers that the external lighting conditions have changed significantly and starts the adjustment process, including initializing the charging chip and re-searching the maximum power point.
[0063] In step S150, after locating the maximum power point, the operations of S130 to S150 are re-executed. That is, after retaining the optimal current value, the MCU monitors the light sensitivity change of the solar panel for a long time, and starts the maximum power point search process after the light sensitivity change exceeds the preset range.
[0064] Optionally, the rate of change of the light sensitivity value of the above-mentioned light sensor can be used to dynamically adjust the period for judging the degree of light sensitivity change; when the rate of change of the light sensitivity value is faster, the period for judging the degree of light sensitivity change is shortened; when the rate of change of the light sensitivity value is slower, the period for judging the degree of light sensitivity change is extended.
[0065] In the above method, in order to achieve efficient charging of solar panels and optimize system power consumption, the MCU monitors the rate of change of ambient light in real time through the light sensor, and dynamically adjusts the detection cycle and light change judgment frequency based on the rate of change. The light value change rate refers to the degree of change of the light value collected by the light sensor per unit time, which is used to reflect the fluctuation of light intensity. Its calculation method includes:
[0066] 1. Difference method: The rate of change is obtained by calculating the ratio of the difference between two consecutive light-sensing samples and the time interval;
[0067] 2. Sliding average method: Combine multiple sampling data to calculate the average value of the rate of change to smooth out accidental fluctuations. It is suitable for detecting environments with large noise.
[0068] In scenarios where light changes rapidly (such as frequent cloud cover, light source movement, or sudden changes in sunlight angle), the light sensitivity value changes rapidly. At this time, the system may quickly deviate from the maximum power point of the solar panel. To avoid a significant decrease in energy utilization efficiency, the MCU responds quickly through the following strategies:
[0069] 1. Shorten the detection cycle: adjust the frequency of the MCU to judge the degree of light sensitivity change to high-frequency mode (for example, judge the light sensitivity value once per second) to perceive the fluctuation of light intensity more quickly.
[0070] 2. Adjust the charging strategy in real time: Based on the high-frequency processing results, the MCU reinitializes the charging current and starts the maximum power point search to ensure that the system returns to the optimal charging state.
[0071] 3. Abnormal change protection: When an extremely rapid change is detected (for example, the light sensitivity value drops by more than 50% instantly), the MCU can trigger a protection mechanism to suspend charging to avoid circuit overload or other potential risks.
[0072] In scenes with relatively stable lighting (such as sunny days and fixed light sources), the rate of change of light sensitivity is low, and the risk of the system deviating from the maximum power point is small. In order to reduce power consumption, the MCU optimizes operation through the following strategies:
[0073] 1. Extend the detection cycle: adjust the frequency of MCU judging the degree of light sensitivity change to a low-frequency mode (such as judging the light sensitivity value once every 5 minutes or longer) to reduce unnecessary operation frequency.
[0074] 2. Maintain a stable charging mode: When the rate of change of light sensitivity is judged to be small, the MCU maintains the existing charging current to reduce the power consumption caused by frequent adjustments.
[0075] 3. Regular calibration: During the set low-frequency sampling interval, the light value and voltage data are checked at intervals to ensure that the photovoltaic system is still close to the maximum power point.
[0076] In the embodiment of the present invention, steps S110 to S150 are implemented, and the charging current of the charging chip is dynamically adjusted by the MCU, and the voltage of the solar panel is read in real time. When the voltage does not meet the preset optimal threshold adjustment, the MCU cyclically performs the adjustment operation of the charging current, so that the solar panel can always work close to the maximum power point, and the MPPT function is realized without relying on the maximum power point tracking (MPPT) dedicated chip. In addition, the method uses ordinary charging chips to replace high-cost dedicated chips, and only relies on the software control logic of the MCU to complete the charging optimization, which not only reduces the system cost, but also simplifies the hardware design, while enhancing the adaptability to different solar panels, and can effectively achieve the invention purpose of low-cost and efficient charging.
[0077] The steps of the above method are divided only for the purpose of clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0078] In addition, the examples mentioned in the above embodiments can be freely combined, and any combination can be understood as an embodiment. The "embodiment" or "example" appearing in various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0079] Another embodiment of the present invention relates to an electronic device, such as Figure 5As shown, it includes at least one processor S501; and a memory S502 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the solar charging method based on the charging chip as described above.
[0080] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.
[0081] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0082] Another embodiment of the present invention relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0083] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0084] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present invention, and that in actual applications, various changes may be made in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A solar charging method based on a charging chip, characterized in that: Applied to electronic equipment, the electronic equipment comprises: a solar panel, a charging chip connected to the solar panel, and an MCU connected to the solar panel and the charging chip; the method comprises: Obtaining the open circuit voltage of the solar panel through the MCU; The MCU controls the charging chip to continuously increase the charging current, and reads the current voltage of the solar panel when the charging current changes, until the current voltage is less than or equal to the product of the open circuit voltage of the solar panel and a preset proportional coefficient; The current charging current is set to a maximum power point, and charging is continued at the maximum power point.
2. The solar charging method based on the charging chip according to claim 1 is characterized in that: The preset proportionality coefficient has a value range of 0.6 to 0.
85.
3. The solar charging method based on the charging chip according to claim 1 is characterized in that: The MCU controls the charging chip to continuously increase the charging current, including: The MCU controls the charging chip to continuously increase the current charging current by the minimum current change amount that can be adjusted by the charging chip.
4. The solar charging method based on a charging chip according to claim 1, characterized in that: The electronic device further includes a light sensor connected to the MCU, and the method further includes: The MCU periodically determines the degree of light sensitivity change through the light sensor. If the degree of light sensitivity change exceeds a preset light sensitivity range, the MCU controls the charging chip to initialize the charging current, and re-executes the search for the maximum power point to maintain charging at the maximum power point.
5. The solar charging method based on the charging chip according to claim 4 is characterized in that: The periodic determination of the degree of change in light perception includes: The determination of the degree of light sensitivity change is performed after a first preset time of obtaining the open-circuit voltage of the solar panel through the MCU, or after a second preset time of maintaining charging at the maximum power point, or after a third preset time of determining that the degree of light sensitivity change is within a preset light sensitivity range.
6. The solar charging method based on the charging chip according to claim 5 is characterized in that: The method for obtaining the degree of light sensitivity change includes: Obtaining a difference between the light sensitivity value at the open circuit voltage and the light sensitivity value after the first preset time; Or, maintaining the difference between the light sensitivity value when charging at the maximum power point and the light sensitivity value after the second preset time; Or, the difference between the light sensitivity value when determining that the light sensitivity change degree is within the preset light sensitivity range and the light sensitivity value after the third preset time.
7. The solar charging method based on a charging chip according to claim 4, characterized in that: The light sensitivity value change rate of the light sensor is used to dynamically adjust the period for determining the degree of light sensitivity change; When the rate of change of the light sensitivity value is fast, the period of determining the degree of light sensitivity change is shortened; When the rate of change of the light sensitivity value is slow, the period for determining the degree of light sensitivity change is extended.
8. The solar charging method based on a charging chip according to claim 1, characterized in that: The electronic device further comprises a battery connected to the charging chip, and the battery is used to supply power to the MCU.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the solar charging method based on the charging chip as described in any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the solar charging method based on a charging chip according to any one of claims 1 to 8 is implemented.