Battery charging and discharging method and system suitable for lamp
By using geographical location and electricity price information in lamps, combined with recent electricity price prediction and machine learning algorithms, the mains power supply and battery discharge strategies are dynamically adjusted, the problems of peak and trough of electricity consumption are solved, the electricity cost of lamps is reduced and the electricity energy is optimized use.
Patent Information
- Application Number
- CN202411367044.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-29
- Publication Date
- 2025-01-07
AI Technical Summary
The existing technology is difficult to effectively solve the problem of shortage of electricity supply during peak electricity consumption and excessive electricity during low electricity consumption, resulting in high electricity costs for lamps.
By obtaining the geographical location and electricity price information of the lamps based on the latitude and longitude, using the recent electricity price prediction and machine learning algorithm to determine the target electricity price period, dynamically adjust the main power supply and battery discharge strategies, optimize the charging and discharge operations, and select the lowest electricity price period for main power supply or Charge.
It significantly reduces the electricity cost of lamps, optimizes the use of electricity, extends the service life of the battery, reduces resource waste, and realizes the effective utilization of energy.
Smart Images

Figure CN119275890A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting power supply, and in particular to a battery charging and discharging method and system suitable for lamps. Background Art
[0002] As the living standards of Chinese people continue to improve, a large number of high-energy-consuming equipment are being used. Electricity is a special commodity that cannot be stored. During peak hours, electricity is in short supply, and during low hours, electricity is in great excess. This has brought difficulties to both electricity production and grid dispatching. In order to solve the contradiction between electricity supply and demand, a control method has been adopted, namely, increasing the price of electricity during peak loads and reducing the price of electricity during low loads, that is, implementing time-of-use pricing. Encourage more electricity use during low load hours, encourage non-continuous production departments to avoid peak load electricity use, and reduce peak loads and fill valleys.
[0003] In order to reduce the electricity cost of lamps, the patent application with application number "200710041333.9" discloses a method for charging and discharging lamps by charging batteries during off-peak hours and supplying power to the batteries during peak hours. However, some cities use real-time electricity prices, and the electricity prices during peak hours and off-peak hours are not constant, so the electricity cost of lamps is still relatively high. Summary of the invention
[0004] The purpose of the present invention is to provide a battery charging and discharging method and system suitable for lamps, so as to solve the problem of insufficient power supply during peak power consumption and great surplus power during low power consumption, and reduce the electricity cost by intelligently selecting the time period with the lowest electricity price for mains power supply or charging.
[0005] The present invention provides a battery charging and discharging method applicable to a lamp, comprising:
[0006] Get the location and electricity price information of the lamps based on longitude and latitude;
[0007] The target electricity price period is predicted by the day-ahead electricity price at the location of the lamp, and the corresponding charging and discharging strategy is executed to determine whether the current lamp is in the target electricity price period, where the target electricity price period is the period with the lowest electricity price on the day;
[0008] Dynamically adjust the grid power supply and battery discharge strategies according to the real-time electricity price and the actual usage of the lamps to optimize the charging and discharging strategies;
[0009] The maximum energy storage threshold of the battery and the remaining battery power are obtained to calculate the required charging amount, and the charging time is calculated based on the required charging amount. Charging is then matched to the target electricity price period according to the charging time.
[0010] Preferably, the determining whether the current lamp is in a lighting period includes:
[0011] If the lamp is in the target electricity price period within the lighting period, the lamp is powered and charged by the mains;
[0012] If the lamp is in a non-target electricity price period within the lighting period, the lamp will be powered by the battery equipped with the lamp.
[0013] Preferably, the target electricity price period includes a period with the lowest electricity price during the lighting period and a period with the lowest electricity price during the non-lighting period.
[0014] Preferably, the step of judging whether the current lamp is in the target electricity price period and executing the corresponding charging and discharging strategy includes:
[0015] Intelligent scheduling of the charging timing and power supply strategy of the battery equipped with the lamp further includes:
[0016] If the optimal electricity price period during the lighting period is the target electricity price period, the mains electricity is used to power the lamps and charge the batteries at the same time;
[0017] If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains electricity is not supplied all day, when the mains electricity is available, use the mains electricity to power the lamps and charge the batteries at the same time;
[0018] If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains power is supplied all day, only the mains power is used to power the lamps during the lighting period, and the battery is not charged.
[0019] Preferably, the step of determining whether the current lamp is in the target electricity price period and executing the corresponding charging and discharging strategy further includes:
[0020] Calculate the battery's discharge time to get the length of time the battery can support the lamp to continue working at the current power level;
[0021] According to the lighting time of the lamp and the discharge time of the battery, calculate the power supply time that the mains needs to intervene during the lighting period;
[0022] According to the electricity price forecast of the location of the lamp in the previous day, the time period with the lowest electricity price during the lighting period is selected to supply power through the mains.
[0023] Preferably, the strategy of dynamically adjusting the mains power supply and battery discharge according to the real-time electricity price and the actual use of the lamp to optimize the charging and discharging strategy further includes:
[0024] By judging whether the predicted target electricity price period is in the non-lighting period, the charging strategy of the lamp battery is adjusted to optimize the charging and discharging operation;
[0025] If the predicted target electricity price period is during the non-lighting period, charging will be prioritized during this period.
[0026] Preferably, the charging and discharging strategy includes:
[0027] Full charge and discharge strategy: the battery is fully discharged every day and fully charged during the target electricity price period;
[0028] Under-discharge strategy: When the utility electricity price reaches the minimum price, the utility electricity is used first instead of the battery.
[0029] Full discharge but not full charge strategy: fully discharge the battery every day and decide the charging amount based on the expected power consumption the next day.
[0030] Preferably, the charging time is calculated according to the required charging amount, and charging is performed according to the charging time matching the target electricity price period, including:
[0031] The formula for calculating the minimum electricity price is as follows:
[0032] According to the total discharge time of the battery and the total discharge time of the mains, the rated working time of the lamp is calculated as follows: T = t1 + t2;
[0033] The relationship between the charge and discharge capacity of the battery and the mains is as follows: Q1 = Q3, and Q1 < Q0; where Q1 = P*t1,
[0034] Q2=P2*t2, Q3=P3*t3, P3*t3=P*t1, P2=P;
[0035] By calculating the minimum electricity charge C_min, we can get the battery discharge time and the mains power supply time, and get the target electricity price period according to the real-time electricity price. The calculation formula is as follows:
[0036] Among them, P and P2 are the rated power of the lamp, P2 is the battery charging power, P3 is the battery charging power, T is the rated working time of the lamp, t1 is the total discharge time of the battery, t2 is the total time the AC power supplies the lamp, t3 is the total charging time of the battery, Q0 represents the maximum energy storage capacity of the battery or the initial power before the discharge begins, Q1 is the power supplied by the battery to the lamp, Q2 is the power supplied by the AC power to the lamp, Q3 is the power charged by the AC power to the battery, n is the number of time periods set by yourself, C_min is the minimum electricity charge, f(t) represents the function of time, which is used to calculate the electricity price or power consumption in different time periods.
[0037] The present invention also provides a battery charging and discharging system suitable for a lamp, comprising:
[0038] The acquisition module is used to obtain the geographical location and electricity price information of the lamps based on longitude and latitude;
[0039] The charging and discharging module is used to predict the target electricity price period based on the day-ahead electricity price of the location of the lamp, and to determine whether the current lamp is in the target electricity price period to execute the corresponding charging and discharging strategy. The target electricity price period is the period with the lowest electricity price of the day;
[0040] An optimization module is used to dynamically adjust the strategies of mains power supply and battery discharge according to the real-time electricity price and the actual usage of the lamps to optimize the charging and discharging strategies;
[0041] The matching charging module is used to obtain the maximum energy storage threshold of the battery and the remaining battery power to calculate the required charging amount, and calculate the charging time according to the required charging amount, and match the target electricity price period according to the charging time for charging.
[0042] The present invention also provides an electronic device, comprising:
[0043] A memory, the memory being used to store a processing program;
[0044] A processor, wherein when executing the processing program, the processor implements the battery charging and discharging method applicable to the lamp as described in the embodiment of the present invention.
[0045] With respect to the prior art, the present invention has the following beneficial effects:
[0046] The present invention provides a battery charging and discharging method suitable for lamps. The geographical location of the lamps is obtained through longitude and latitude, and combined with local electricity price information, basic data is provided for formulating charging and discharging strategies. The historical electricity price data, machine learning algorithms and other technologies are used to predict the changes in electricity prices in the future, so as to determine the lowest electricity price period. The strategies of mains power supply and battery discharge are dynamically adjusted according to the real-time electricity price and the actual use of the lamps to achieve the best economic benefits. A variety of strategies such as full charging and discharging, partial discharge, and full discharge but not full charging are provided to meet the needs of different users and optimize the use of electric energy. The method can intelligently judge the relationship between the lighting period and the electricity price period, automatically select the best power supply and charging time, and calculate the required charging amount and charging time according to the maximum energy storage threshold, remaining power and expected power consumption of the battery, so as to ensure charging in the target electricity price period and reduce electricity cost. The above-mentioned charging in the period with low electricity price and reasonable arrangement of battery discharge can significantly reduce electricity bill expenditure; the reasonable charging and discharging strategy reduces the number of battery charging and discharging cycles, thereby extending the battery life; the optimized power supply strategy ensures the effective use of energy and reduces resource waste.
[0047] The present invention selects the cheapest electricity period during the lighting period by predicting the local day-ahead electricity price, and uses the city electricity for power supply and charging during the cheap period, and uses the battery for power supply during the relatively expensive period, which is more cost-effective.
[0048] The present invention changes the charging strategy of the lamp battery by determining whether the cheapest time period predicted by the local day-ahead electricity price is in a non-lighting time period. If the cheapest time period in the lighting time period is the cheapest time period of the day, the mains will charge the battery while supplying power to the lamp. If the cheapest time period in the lighting time period is not the cheapest time period of the day, and the mains is not powered all day, the mains will charge the battery while supplying power to the lamp. If the cheapest time period in the lighting time period is not the cheapest time period of the day, and the mains is powered all day, the mains will only supply power to the lamp, thereby reducing costs.
[0049] The present invention calculates the charging time according to the required charging amount, and matches the charging time with the base price time period of the non-lighting time period for charging, which has lower cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 Schematic diagram of the steps of a battery charging and discharging method applicable to a lamp in an embodiment of the present invention. DETAILED DESCRIPTION
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Embodiment 1
[0053] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0054] It should be noted that the concepts such as "once" and "second" mentioned in the present application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0055] It should be noted that the modifications of "one" and "plurality" mentioned in the disclosure of this application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0056] like Figure 1As shown, an embodiment of the present invention provides a battery charging and discharging method applicable to a lamp, comprising:
[0057] S1: Obtain the geographical location and electricity price information of the lamp according to the longitude and latitude, obtain the city / city / district / street information where the lamp is located according to the longitude and latitude, thereby obtaining the local day-ahead electricity price forecast, and the local day-ahead electricity price can be directly predicted based on the Xinzhi Electricity Trading Assisted Decision Platform; In this embodiment, select a map service API that supports geocoding and integrate it into your system according to the provider's documentation to integrate the map service API; match the address obtained from the geocoding service with the electricity price database to determine the corresponding electricity price; use the Pandas library in Python for data processing, and use Sc i kit-l earn or TensorFlow to build a prediction model to obtain the local day-ahead electricity price forecast data. It can be understood that the geocoding service is used to convert the longitude and latitude of the lamp into specific address information. This process is usually completed by calling the API of the map service provider, such as Amap, Baidu Map, etc. These API services allow developers to enter longitude and latitude and return detailed address information, including country, city, district, street, etc. Once the specific address information is obtained, the next step is to obtain local electricity price information, which can be obtained by accessing the public data of the power company or a third-party energy information service. If it is not real-time data, you can look for databases and websites provided by government energy departments or power companies that list electricity prices in different regions.
[0058] S2: predicting the target electricity price period based on the day-ahead electricity price at the location of the lamp, and determining whether the current lamp is in the target electricity price period to execute the corresponding charging and discharging strategy, where the target electricity price period is the period with the lowest electricity price on the day;
[0059] In this embodiment, the method for realizing the cheapest period of electricity price prediction for the geographical location of the lamp involves multiple steps and techniques, which generally include data collection, prediction model construction, real-time data processing and decision making. The following is the specific implementation process: Step 1, data collection: Geographic location information: First, accurate geographic location information is required, which is usually obtained through GPS or geographic information system (GIS). Historical electricity price data: Collect electricity price data for the past period of time in the area, including peak and valley electricity price periods and their corresponding electricity prices. Weather and seasonal data: Since electricity prices are affected by seasons and weather, such as air conditioning use, these data also need to be taken into consideration. Step 2, prediction model construction: Time series analysis: Use historical electricity price data for time series analysis to identify the change pattern of electricity prices over time. Machine learning algorithm: Apply machine learning algorithms, such as random forests, support vector machines or neural networks, to predict changes in electricity prices within the next day based on historical data and influencing factors such as historical electricity prices, weather forecasts, holidays and other information. Optimization algorithm: Combine the prediction results and use the optimization algorithm to determine the period when the lowest electricity price is expected. Step 3. Real-time data processing: Real-time monitoring: Real-time monitoring of current grid load, weather conditions, etc., in order to adjust the forecast model in a timely manner. Data synchronization: Feedback real-time data to the forecasting system to ensure the accuracy and timeliness of the forecast. Step 4. Decision making: Optimal charging / discharging strategy: According to the forecast of the cheapest electricity price period on the day before, formulate the charging and discharging strategy of the lamp battery to reduce costs. Automatic control: Integrate automatic control functions in the smart lamp system to automatically adjust the working mode of the battery according to the electricity price forecast. Step 5: User interface and feedback: User notification: Display the expected lowest electricity price period to the user, allowing the user to manually adjust or optimize the settings. Performance monitoring: Monitor the accuracy of the system's forecast and the effectiveness of the charging and discharging strategy, and provide feedback and improvement methods. Through these steps, the future electricity price trend in a specific area can be effectively predicted, and the power use of the lamps can be optimized accordingly to achieve the purpose of cost saving.
[0060] Specifically, in S2, determining whether the current lamp is in a lighting period includes:
[0061] If the lamp is in the target electricity price period within the lighting period, the lamp is powered and charged by the mains;
[0062] If the lamp is in a non-target electricity price period during the lighting period, the lamp is powered by the battery equipped with the lamp. In this way, the cheapest electricity price period during the lighting period is selected according to the local day-ahead electricity price forecast. The lamp is powered and charged by the mains during the cheap period, and powered by the battery during the relatively expensive period, which is more cost-effective. In the embodiment, when the lamp needs to be turned on, the system first uses the battery equipped with the lamp to power it. The purpose of this is to use the electric energy stored in the battery to reduce the dependence on the mains during the peak electricity period when the electricity price is higher, thereby reducing costs.
[0063] It can be understood that the above-mentioned charging and discharging method of the lamp battery defines a peak and valley time. The battery starts to supply power when the peak power period comes, and supplies power and charges through the mains when the battery is out of power. However, the mains power at this time is not the cheapest period during the peak power period. According to the local day-ahead electricity price forecast, the cheapest period during the lighting period is selected, and power is supplied and charged during the cheap period, and the battery is used for power supply during the relatively expensive period, which is more cost-effective.
[0064] Furthermore, in S2, determining whether the current lamp is in the target electricity price period and executing the corresponding charging and discharging strategy further includes:
[0065] Calculating the battery's discharge time to get the length of time the battery can support the lamp to continue working at the current power level is crucial for subsequent power management because it determines when to switch to the mains power supply and when the battery needs to be recharged;
[0066] According to the lighting time of the lamp and the discharge time of the battery, calculate the power supply time that the mains needs to intervene during the lighting period. This calculation takes into account the total lighting time of the lamp and the time that the battery can support alone to ensure that the lamp can work normally during the entire lighting period;
[0067] The system selects the time period with the lowest electricity price during the lighting period based on the day-ahead electricity price forecast for the location of the lamp. Based on the local day-ahead electricity price forecast, the system identifies the time period with the cheapest electricity price during the lighting period. The system then uses the mains electricity during these time periods, as using the mains electricity during the period with lower electricity prices can further reduce electricity bills.
[0068] S3: Dynamically adjust the mains power supply and battery discharge strategies according to the real-time electricity price and the actual use of the lamps to optimize the charging and discharging strategies, such as extending or shortening the lighting time, to ensure the best electricity savings under different electricity price structures and lamp use modes;
[0069] Intelligent scheduling of the charging timing and power supply strategy of the battery equipped with the lamp further includes:
[0070] If the optimal electricity price period during the lighting period is the target electricity price period, the mains power is used to power the lamps and charge the batteries at the same time; it can be understood that if the period with the cheapest electricity price during the lighting period is the cheapest period of the day, the mains power will be used to power the lamps and charge the batteries at the same time.
[0071] If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains power is not supplied all day, the mains power will be used to power the lamps and charge the batteries at the same time when the mains power is available; it can be understood that if the period with the cheapest electricity price during the lighting period is not the cheapest period of the day, and the mains power is not supplied all day, then the mains power will charge the batteries while powering the lamps.
[0072] If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains supply is available all day, only the mains supply is used to supply power to the lamps during the lighting period, and the battery is not charged. It can be understood that if the cheapest period during the lighting period is not the cheapest period of the day, and the mains supply is available all day, the mains supply only supplies power to the lamps. The above changes the charging strategy of the lamp battery based on whether the cheapest period predicted by the local day-ahead electricity price is in the non-lighting period. If the cheapest period during the lighting period is the cheapest period of the day, the mains supply charges the battery while supplying power to the lamp. If the cheapest period during the lighting period is not the cheapest period of the day, and the mains supply is not available all day, the mains supply charges the battery while supplying power to the lamp. If the cheapest period during the lighting period is not the cheapest period of the day, and the mains supply is available all day, the mains supply only supplies power to the lamps. Thereby reducing costs.
[0073] Preferably, the target electricity price period includes the period with the lowest electricity price during the lighting period and the period with the lowest electricity price during the non-lighting period. The period with the cheapest electricity price in a day is not necessarily the non-lighting period during the day, and the non-lighting period is not the cheapest electricity price at the beginning. If you start charging directly during the non-lighting period, the cost may also be high.
[0074] The local day-ahead electricity price is used to predict whether the cheapest period is during the non-lighting period to change the charging strategy of the lamp battery, thereby reducing costs. The required charging amount is calculated based on the battery's maximum energy storage threshold and the remaining battery power, and then the charging time is calculated based on the required charging amount. Charging is performed according to the charging time matching the base price period.
[0075] In step S3, dynamically adjusting the strategies of mains power supply and battery discharge according to the real-time electricity price and the actual use of the lamp to optimize the charging and discharging strategy further includes:
[0076] By judging whether the predicted target electricity price period is in the non-lighting period, the charging strategy of the lamp battery is adjusted to optimize the charging and discharging operation;
[0077] If the predicted target electricity price period is during the non-lighting period, charging will be prioritized during this period.
[0078] S4: Obtain the maximum energy storage threshold of the battery and the remaining battery power to calculate the required charging amount, and calculate the charging time based on the required charging amount, and match the target electricity price period for charging according to the charging time.
[0079] In this embodiment, the battery can select the following three charging and discharging methods, that is, the charging and discharging strategies include:
[0080] Full charge and discharge strategy: The battery is fully discharged every day and fully charged during the target electricity price period, that is, the battery is fully discharged and fully charged every day;
[0081] Partially discharged strategy: When the utility electricity price reaches the minimum price, the utility electricity is used first, and the battery is not fully discharged. This is because sometimes the utility electricity is very cheap when the battery is powered, and charging the battery itself costs money, so it is better to switch from battery power to utility power.
[0082] Full discharge but not full charge strategy: fully discharge the battery every day, and decide the charging amount based on the expected power consumption of the next day, that is, fully discharge the battery, but not fully charge it. The amount of charge should take into account the new round of battery discharge on the next day. The battery power only needs to meet the battery discharge amount on the next day.
[0083] In this embodiment, in step S4, the charging time is calculated according to the required charging amount, and charging is performed according to the charging time matching the target electricity price period, including:
[0084] The formula for calculating the minimum electricity price is as follows:
[0085] According to the total discharge time of the battery and the total discharge time of the mains, the rated working time of the lamp is calculated as follows: T = t1 + t2;
[0086] The relationship between the charge and discharge capacity of the battery and the mains is as follows: Q1 = Q3, and Q1 < Q0; where Q1 = P*t1,
[0087] Q2=P2*t2, Q3=P3*t3, P3*t3=P*t1, P2=P;
[0088] By calculating the minimum electricity charge C_min, we can get the battery discharge time and the mains power supply time, and get the target electricity price period according to the real-time electricity price. The calculation formula is as follows:
[0089] Among them, P and P2 are the rated power of the lamp, P3 is the battery charging power, T is the rated working time of the lamp, t1 is the total discharge time of the battery, t2 is the total power supply time of the lamp provided by the mains, t3 is the total charging time of the battery, Q0 represents the maximum energy storage capacity of the battery or the initial power before discharge, Q1 is the power supply of the battery to the lamp, Q2 is the power supply of the mains to the lamp, Q3 is the power charged by the mains to the battery, n is the number of time periods set by yourself, C_min is the minimum electricity fee, f(t) represents the function of time, which is used to calculate the electricity price or power in different time periods. The charging time is calculated according to the required charging amount, and the charging is carried out according to the charging time matching the bottom price time period of the non-lighting time period, which is lower in cost.
[0090] By calculating the minimum electricity charge C_min, the discharge time of the battery and the power supply time of the mains can be obtained, and the cheapest time period can be obtained according to the real-time electricity price. Specifically, by obtaining C_min of each time period, the value of the lowest mains price within the mains power supply time range can be obtained by comparing and verifying in multiple sections. For example, if there are 10 sections, the smallest section can be taken as the final result, and it can be obtained that the mains power is supplied during the target period, and it is the cheapest to charge the battery during the target period.
[0091] Embodiment 2
[0092] Based on the same inventive concept, the present invention provides a battery charging and discharging system suitable for a lamp, comprising:
[0093] The acquisition module is used to obtain the geographical location and electricity price information of the lamps based on longitude and latitude;
[0094] The charging and discharging module is used to predict the target electricity price period according to the electricity price of the day before the location of the lamp, and to determine whether the current lamp is in the lighting period to execute the corresponding charging and discharging strategy. The target electricity price period is the period with the lowest electricity price on the day;
[0095] An optimization module is used to dynamically adjust the strategies of mains power supply and battery discharge according to the real-time electricity price and the actual usage of the lamps to optimize the charging and discharging strategies;
[0096] The matching charging module is used to obtain the maximum energy storage threshold of the battery and the remaining battery power to calculate the required charging amount, and calculate the charging time according to the required charging amount, and match the target electricity price period according to the charging time for charging.
[0097] Embodiment 3
[0098] In some embodiments of the present application, an electronic device is further provided. The electronic device includes a memory and a processor, wherein the memory is used to store a processing program, and the processor executes the processing program according to instructions. When the processor executes the processing program, the battery charging and discharging method applicable to the lamp in the above-mentioned embodiment is implemented.
[0099] In some embodiments of the present application, a readable storage medium is further provided, which may be a non-volatile readable storage medium or a volatile readable storage medium. The readable storage medium stores instructions, and when the instructions are executed on a computer, an electronic device including the readable storage medium executes the aforementioned battery charging and discharging method applicable to a lamp.
[0100] It is understandable that, for the aforementioned battery charging and discharging methods applicable to lamps, if they are all implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.
[0101] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0102] The program code involved in executing the technical solution disclosed in the present application can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also conventional procedural programming languages such as C language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on the remote computing device, or completely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A battery charging and discharging method suitable for a lamp, characterized in that: include: Get the location and electricity price information of the lamps based on longitude and latitude; The target electricity price period is predicted by the electricity price of the day before the location of the lamp, and the corresponding charging and discharging strategy is executed to determine whether the current lamp is in the lighting period. The target electricity price period is the period with the lowest electricity price of the day. Dynamically adjust the grid power supply and battery discharge strategies according to the real-time electricity price and the actual usage of the lamps to optimize the charging and discharging strategies; The maximum energy storage threshold of the battery and the remaining battery power are obtained to calculate the required charging amount, and the charging time is calculated based on the required charging amount. Charging is then matched to the target electricity price period according to the charging time.
2. The battery charging and discharging method for a lamp as claimed in claim 1, characterized in that: The step of determining whether the current lamp is in the target electricity price period includes: If the lamp is in the target electricity price period, the lamp is powered and charged by the mains; If the lamp is in a non-target electricity price period, the lamp will be powered by the battery equipped with the lamp.
3. The battery charging and discharging method for a lamp as claimed in claim 1, characterized in that: The target electricity price period includes a period with the lowest electricity price during the lighting period and a period with the lowest electricity price during the non-lighting period.
4. The battery charging and discharging method for a lamp as claimed in claim 3, characterized in that: The step of determining whether the current lamp is in the target electricity price period and executing the corresponding charging and discharging strategy includes: Intelligent scheduling of the charging timing and power supply strategy of the battery equipped with the lamp further includes: If the optimal electricity price period during the lighting period is the target electricity price period, the mains electricity is used to power the lamps and charge the batteries at the same time; If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains electricity is not supplied all day, when the mains electricity is available, use the mains electricity to power the lamps and charge the batteries at the same time; If the optimal electricity price period during the lighting period is not the target electricity price period, and the mains power is supplied all day, only the mains power is used to power the lamps during the lighting period, and the battery is not charged.
5. The battery charging and discharging method for a lamp as claimed in claim 1, characterized in that: The step of determining whether the current lamp is in the target electricity price period and executing the corresponding charging and discharging strategy further includes: Calculate the battery's discharge time to get the length of time the battery can support the lamp to continue working at the current power level; According to the lighting time of the lamp and the discharge time of the battery, calculate the power supply time that the mains needs to intervene during the lighting period; According to the electricity price forecast of the location of the lamp in the previous day, the time period with the lowest electricity price during the lighting period is selected to supply power through the mains.
6. The battery charging and discharging method for a lamp as claimed in claim 3, characterized in that: The strategy of dynamically adjusting the mains power supply and battery discharge according to the real-time electricity price and the actual use of the lamp to optimize the charging and discharging strategy further includes: By judging whether the predicted target electricity price period is in the non-lighting period, the charging strategy of the lamp battery is adjusted to optimize the charging and discharging operation; If the predicted target electricity price period is during the non-lighting period, charging will be prioritized during this period.
7. The battery charging and discharging method for a lamp as claimed in claim 1, characterized in that: The charging and discharging strategy includes: Full charge and discharge strategy: the battery is fully discharged every day and fully charged during the target electricity price period; Under-discharge strategy: When the utility electricity price reaches the minimum price, the utility electricity is used first instead of the battery. Full discharge but not full charge strategy: fully discharge the battery every day and decide the charging amount based on the expected power consumption the next day.
8. The battery charging and discharging method for a lamp as claimed in claim 5, characterized in that: The step of calculating the charging time according to the required charging amount and matching the target electricity price period for charging according to the charging time comprises: The formula for calculating the minimum electricity price is as follows: According to the total discharge time of the battery and the total discharge time of the mains, the rated working time of the lamp is calculated as follows: T = t1 + t2; The relationship between the charge and discharge capacity of the battery and the mains is as follows: Q1 = Q3, and Q1 < Q0; where Q1 = P*t1, Q2=P2*t2, Q3=P3*t3, P3*t3=P*t1, P2=P; By calculating the minimum electricity charge C_min, we can get the battery discharge time and the mains power supply time, and get the target electricity price period according to the real-time electricity price. The calculation formula is as follows: Among them, P and P2 are the rated power of the lamp, P3 is the battery charging power, T is the rated working time of the lamp, t1 is the total discharge time of the battery, t2 is the total time the AC power supplies the lamp, t3 is the total charging time of the battery, Q0 represents the maximum energy storage capacity of the battery or the initial power before discharge, Q1 is the power supplied by the battery to the lamp, Q2 is the power supplied by the AC power to the lamp, Q3 is the power charged by the AC power to the battery, n is the number of time periods set by yourself, C_min is the minimum electricity charge, and f(t) represents the function of time, which is used to calculate the electricity price or power consumption in different time periods.
9. A battery charging and discharging system suitable for a lamp, characterized in that: include: The acquisition module is used to obtain the geographical location and electricity price information of the lamps based on longitude and latitude; The charging and discharging module is used to predict the target electricity price period according to the electricity price of the day before the lamp is located, and to determine whether the current lamp is in the lighting period to execute the corresponding charging and discharging strategy. The target electricity price period is the period with the lowest electricity price on that day. An optimization module is used to dynamically adjust the strategies of mains power supply and battery discharge according to the real-time electricity price and the actual usage of the lamps to optimize the charging and discharging strategies; The matching charging module is used to obtain the maximum energy storage threshold of the battery and the remaining battery power to calculate the required charging amount, and calculate the charging time according to the required charging amount, and match the target electricity price period according to the charging time for charging.
10. An electronic device, characterized in that: include: A memory, the memory being used to store a processing program; A processor, wherein when executing the processing program, the processor implements the battery charging and discharging method applicable to the lamp as claimed in any one of claims 1 to 8.
Citation Information
Patent Citations
Illumination power supply method for economizing electric charge by time-sharing electricity price
CN101315158A