Disclosure of Invention
The application aims to overcome the defects and shortcomings of the prior art, and provides a solar power supply system which can maximally utilize limited solar energy, so that the tree chest diameter measuring instrument has strong cruising ability and ensures energy supply.
The application is realized by the following technical scheme: a solar power supply system comprising:
the power supply circuit comprises a solar power supply, a capacitor charging switch circuit, a super capacitor and a power supply battery; the super capacitor is connected with the charging output end of the solar power supply through the capacitor charging switch circuit; the super capacitor is used for charging the power supply battery; the power supply battery is used for outputting power supply electric energy;
the data acquisition unit is used for acquiring working environment parameters of the solar power supply and input voltage of the super capacitor;
the solar energy abundance prediction unit is used for predicting a solar energy abundance value according to the working environment parameters of the solar energy power supply and the input voltage of the super capacitor;
and the power supply control unit is used for controlling the capacitor charging switch circuit to be conducted when the solar energy abundance value is larger than the solar energy charging threshold value.
Compared with the prior art, the solar power supply system provided by the application has the advantages that the super capacitor is used as the front-stage buffer of the power supply battery, so that the service life of the power supply battery is prolonged. Through the power supply circuit based on logic control, when the solar power supply system works normally, the power supply control unit is in an ultra-low power consumption sleep mode for most of the time, and only when the solar adequacy reaches the threshold value with sufficient solar energy, the power supply control unit can wake up actively to control each switch circuit in the power supply circuit, so that the total power consumption of the solar power supply system is reduced to the maximum.
Further, the power supply circuit further comprises a battery charging switch circuit, and the battery charging switch circuit is connected between the super capacitor and the power supply battery;
the data acquisition unit is also used for acquiring the average discharge voltage of the super capacitor and the average discharge voltage of the power supply battery;
the power supply control unit is also used for controlling the battery charging switch circuit to be conducted when the average discharging voltage of the super capacitor is larger than a capacitor discharging threshold value, the average discharging voltage of the power supply battery is larger than a battery voltage threshold value and the solar energy abundance value is larger than a power generation threshold value.
Further, the power supply circuit further comprises a battery power supply switch circuit and a solar power supply switch circuit, and the battery power supply switch circuit is connected with a power supply output end of the power supply battery; the solar power supply switch circuit is connected with the power supply output end of the solar power supply;
the power supply control unit is also used for controlling the solar power supply switching circuit to be conducted when the solar energy abundance value is larger than a solar power supply threshold value; and when the solar energy abundance value is smaller than a solar energy power supply threshold value, controlling the battery power supply switch circuit to be conducted.
Further, the solar power supply system further comprises a timer, wherein the timer is used for sending out data acquisition signals at fixed time;
the data acquisition unit is also used for carrying out data acquisition according to the data acquisition signals.
Further, the capacitor charging switch circuit, the battery power supply switch circuit and the solar power supply switch circuit are MOSFET combined control circuits.
Further, the solar energy abundance prediction unit includes:
a conversion efficiency coefficient generation module comprising:
the initial coefficient generation sub-module is used for randomly generating a plurality of initial conversion efficiency coefficients and coding the initial conversion efficiency coefficients aiming at each group of target environment parameters;
the adaptive parameter solving sub-module is used for solving corresponding adaptive environment parameters through an adaptive function according to each initial conversion efficiency coefficient;
the similarity calculation sub-module is used for calculating the similarity between each adaptive environment parameter and the target environment parameter to obtain parameter similarity;
the fitness value calculation sub-module is used for obtaining a fitness value corresponding to the initial conversion efficiency coefficient according to the similarity of each parameter;
the screening submodule is used for screening the initial conversion efficiency coefficient according to the fitness value;
the cross mutation sub-module is used for carrying out cross and mutation treatment on the initial conversion efficiency coefficient if the solution of the fitness function does not reach convergence;
the coefficient determination submodule is used for determining that the current initial conversion efficiency coefficient is the conversion efficiency coefficient corresponding to the corresponding target environment parameter if the solution of the fitness function is converged;
the conversion efficiency coefficient acquisition module is used for acquiring working environment parameters of the solar power supply and acquiring corresponding conversion efficiency coefficients according to the working environment parameters;
and the solar adequacy calculating module is used for obtaining a solar adequacy value according to the conversion efficiency coefficient and the input voltage of the super capacitor.
Further, the fitness function has the expression:
wherein K is a conversion efficiency coefficient, G is the adaptive light intensity, G max For the maximum light intensity of the solar power supply, k is the power generation temperature coefficient, T is the adaptive working temperature, T STC And (5) referencing the temperature for the solar power supply under the maximum illumination intensity.
Further, the screening submodule is used for screening the initial conversion efficiency coefficient by adopting a selection operator according to the fitness value.
Further, the selector is a roulette selector or a random contention selector or a best reservation selector.
Based on the same inventive concept, the application also provides a tree breast diameter measuring instrument, which comprises a breast diameter measuring system and the solar power supply system, wherein the solar power supply system is used for supplying power to the breast diameter measuring system.
For a better understanding and implementation, the present application is described in detail below with reference to the drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of a tree breast diameter measuring apparatus according to the present embodiment includes a breast diameter measuring system 10 and a solar power supply system 20, wherein the breast diameter measuring system 10 is used for measuring a breast diameter of a tree, and the solar power supply system 20 is used for providing electric energy for the breast diameter measuring system 10.
Specifically, the solar power supply system 20 includes a power supply circuit 21, a timer 22, a data acquisition unit 23, a solar energy abundance prediction unit 24, and a power supply control unit 25.
The power supply circuit 21 includes a solar power supply 211, a capacitor charge switch circuit 212, a supercapacitor 213, a battery charge switch circuit 214, a power supply battery 215, a battery power supply switch circuit 216, and a solar power supply switch circuit 217.
The solar power supply 211 is used for collecting solar energy and converting the collected solar energy into electric energy. The solar power supply 211 includes a charging output and a power supply output. The solar power supply 211 may be a monocrystalline silicon photovoltaic panel, a polycrystalline silicon photovoltaic panel or an amorphous silicon photovoltaic panel, and in this embodiment, a plurality of amorphous silicon photovoltaic panels connected in parallel are preferred to increase the power generation current, and in the limited volume requirement, the absorption amount of solar energy is increased as much as possible.
The capacitor charging switch circuit 212 is connected between the charging output terminal of the solar power supply 211 and the supercapacitor 213, and is used for controlling the solar power supply 211 to charge the supercapacitor 213. When the capacitor charging switch circuit 212 is turned on, the solar power supply 211 will charge the super capacitor 213; when the capacitive charge switch circuit 212 is turned off, the solar power supply 211 will not be able to charge the supercapacitor 213. The on and off of the capacitive charge switching circuit 212 will be controlled by the power supply control unit 25.
The super capacitor 213 is an electrochemical device that rapidly stores and supplies high-power electricity, stores electric energy output from the solar power supply 211, and charges the power supply battery 215.
The battery charging switch circuit 214 is connected between the super capacitor 213 and the power supply battery 215, and is used for controlling the super capacitor 213 to charge the power supply battery 215. When the battery charging switch circuit 214 is turned on, the super capacitor 213 will charge the power supply battery 215; when the battery charging switch circuit 214 is turned off, the super capacitor 213 will not be able to charge the power supply battery 215. The on and off of the battery charging switch circuit 214 will be controlled by the power supply control unit 25.
The power supply battery 215 is an energy storage battery, such as a lithium battery, for storing the electric energy output from the supercapacitor 213 and outputting battery-powered electric energy to the chest diameter measurement system 10.
The battery power switch circuit 216 is connected between the power supply output terminal of the power supply battery 215 and the chest diameter measurement system 10, and is used for controlling the discharging of the power supply battery 215. When the battery power switch circuit 216 is turned on, the power supply battery 215 will discharge to provide power to the chest diameter measurement system 10; when the battery power switch circuit 216 is turned off, the power supply battery 215 will stop discharging.
The solar power supply switch circuit 217 is connected between the power supply output end of the solar power supply 211 and the chest diameter measurement system 10, and is used for controlling the solar power supply 211 to supply power to the chest diameter measurement system 10. When the solar power supply switch circuit 217 is turned on, the solar power supply switch circuit 217 discharges to provide electric energy for the chest diameter measurement system 10; when the solar power supply switch circuit 217 is turned off, the power supply output of the solar power supply 211 will stop discharging, and the power supply to the chest diameter measurement system 10 will be stopped.
Thus, when the power supply circuit 21 is in operation, the solar power supply 211 converts solar energy into electrical energy, and charges the super capacitor 213 when the capacitor charging switch circuit 212 is on, and provides electrical energy to the chest diameter measurement system 10 when the solar power supply switch circuit 217 is on; the supercapacitor 213 charges the power supply battery 215 when the battery charging switch circuit 214 is turned on; the power supply battery 215 provides power to the chest diameter measurement system 10 when the battery power switch circuit 216 is on.
In one implementation, the capacitive charge switch circuit 212, the battery charge switch circuit 214, the battery power switch circuit 216, and the solar power switch circuit 217 are implemented as low-power MOSFET combination control circuits.
The timer 22 is used to issue a data acquisition signal when the timing time has arrived. Timer 22 may be an RTC timer internal to the MCU.
The data acquisition unit 23 is configured to acquire the supercapacitor voltage, the power supply battery voltage, and the working environment parameters of the solar power supply 211, and transmit the parameters to the solar energy abundance prediction unit 24 and the power supply control unit 25. Wherein the supercapacitor voltage comprises the input voltage and the average discharge voltage of the supercapacitor 213; the power supply battery voltage is the average discharge voltage of the power supply battery 215; the operating environment parameters of the solar power supply 211 include the intensity of received light and the operating temperature of the solar power supply 211. The data acquisition unit 23 may convert the acquired analog signal into a digital signal through an ADC (analog-to-digital converter).
Preferably, the data acquisition unit 23 performs data acquisition according to the data acquisition signals sent out by the timer 22 at regular time, and the periodic polling of the acquired data can reduce the power consumption of the system.
The solar energy abundance prediction unit 24 is configured to perform data processing by using a solar energy abundance prediction method, so as to obtain a solar energy abundance value. The solar energy abundance prediction unit 24 may be a processor capable of executing a computer program, such as ULP (ultra low power coprocessor), or may be a processing device. Referring to fig. 2 and 3, fig. 2 is a schematic structural diagram of a solar energy abundance prediction unit 24 according to the present embodiment; fig. 3 is a flowchart of a solar energy abundance prediction method performed by the solar energy abundance prediction unit 24. The solar energy abundance prediction unit 24 includes a conversion efficiency coefficient generation module 241, a conversion efficiency coefficient acquisition module 242, and a solar abundance value calculation module 243.
The conversion efficiency coefficient generation module 241 is configured to perform step S1: and generating a corresponding conversion efficiency coefficient aiming at each group of target environment parameters.
Each set of target environmental parameters comprises a received light intensity parameter value or parameter section and an operating temperature parameter value or parameter section, and the parameter values or parameter sections of each set of target environmental parameters are different. The conversion efficiency coefficient is the ratio of the actual output current of the solar power supply 211 to the theoretical maximum output current. When the solar power supply 211 works under different environmental parameters, the corresponding conversion efficiency coefficients thereof will be different, so that a plurality of groups of different target environmental parameters are set, corresponding conversion efficiency coefficients are generated for each group of target environmental parameters and are stored in the RTC storage list together, and then the corresponding conversion efficiency coefficients can be directly inquired from the RTC storage list according to the real-time environmental parameters without real-time generation.
Further, the conversion efficiency coefficient generation module 241 includes an initial coefficient generation sub-module 2411, an adaptation parameter solving sub-module 2412, a similarity calculation sub-module 2413, an adaptation value calculation sub-module 2414, a screening sub-module 2415, a cross variation sub-module 2416, and a coefficient determination sub-module 2417. The initial coefficient generation sub-module 2411 is configured to perform step S11: and randomly generating a plurality of initial conversion efficiency coefficients for each group of target environment parameters and coding.
The initial conversion efficiency coefficient is a candidate conversion efficiency coefficient, and the final conversion efficiency coefficient is obtained by screening from a plurality of initial conversion efficiency coefficients. When the initial conversion efficiency coefficient is randomly generated, the value range of the initial conversion efficiency coefficient is limited to [0,1]. The initial conversion efficiency coefficient is encoded by floating point encoding.
The adaptive parameter solving sub-module 2412 is configured to perform step S12: and solving corresponding adaptive environment parameters through an adaptive function according to each initial conversion efficiency coefficient.
The fitness function is a relation function of conversion efficiency coefficient and environment parameter, and the initial conversion efficiency coefficient is substituted into the fitness function to obtain corresponding adaptive environment parameter, wherein the adaptive environment parameter comprises adaptive light receiving intensity and adaptive working temperature. The fitness function is expressed as:
wherein K is a conversion efficiency coefficient, G is an adaptive light intensity, G max Is the maximum light intensity of the solar power supply 211, k is the power generation temperature coefficient, T is the adaptive working temperature, T STC The temperature is referenced to the solar power supply 211 at maximum illumination intensity.
The similarity calculation submodule 2413 is for performing step S13: and calculating the similarity between each adaptive environment parameter and the target environment parameter to obtain the parameter similarity.
The fitness value calculation submodule 2414 is configured to perform step S14: and obtaining the fitness value corresponding to the initial conversion efficiency coefficient according to the similarity of each parameter.
The higher the parameter similarity is, the higher the fitness value corresponding to the initial conversion efficiency coefficient is.
The screening submodule 2415 is configured to perform step S15: and screening the initial conversion efficiency coefficient according to the fitness value.
The higher the fitness value of the initial conversion efficiency coefficient is, the closer the fitness value is to the accurate conversion efficiency coefficient, and the initial conversion efficiency coefficient with the fitness value higher than a certain threshold value is selected during screening, or one or more initial conversion efficiency coefficients with the highest fitness values are selected.
Preferably, the initial conversion efficiency coefficient is screened by adopting a selection operator, wherein the selection operator can be selected from roulette selection operator, random competition selection operator, optimal reservation selection operator and the like.
The cross mutation sub-module 2416 is configured to perform step S16: and if the solution of the fitness function does not reach convergence, performing intersection and mutation processing on the initial conversion efficiency coefficient.
The initial conversion efficiency coefficient is subjected to cross processing, namely, random bit numbers in two initial conversion efficiency coefficient codes are exchanged, so that a new initial conversion efficiency coefficient is obtained. And performing mutation treatment on the initial conversion efficiency coefficient, namely randomly converting the number of the random bit in the initial conversion efficiency coefficient code into another number to obtain a new initial conversion efficiency coefficient.
The coefficient determination submodule 2417 is configured to perform step S17: if the solution of the fitness function reaches convergence, determining the current initial conversion efficiency coefficient as the conversion efficiency coefficient corresponding to the corresponding target environment parameter.
The conversion efficiency coefficient obtaining module 242 is configured to perform step S2: the working environment parameters of the solar power supply 211 are acquired, and the corresponding conversion efficiency coefficient is acquired according to the working environment parameters.
Wherein, the data acquisition unit 23 acquires the working environment parameters of the solar power supply 211, including the received light intensity and the working temperature. And according to the acquired light intensity and working temperature, inquiring on a stored corresponding table of the working environment parameters and the conversion efficiency coefficients, and reading the corresponding conversion efficiency coefficients.
The solar adequacy value calculation module 243 is configured to execute step S3: and obtaining the input voltage of the super capacitor, and obtaining the solar energy abundance value according to the conversion efficiency coefficient and the input voltage of the super capacitor.
The expression for obtaining the solar energy abundance value according to the conversion efficiency coefficient and the input voltage of the super capacitor is as follows:
V solar =K·V in
wherein V is solar For the solar energy adequacy value, V in Is the input voltage of the super capacitor.
The power supply control unit 25 is configured to control the power supply circuit 21 according to the average discharge voltage and the power supply battery voltage of the super capacitor collected by the data collection unit 23, and the solar energy abundance value predicted by the solar energy abundance prediction unit 24.
Specifically, the power supply control unit 25 controls the on-off of the capacitor charging switch circuit 212 according to the solar adequacy value, and when the solar adequacy value is greater than the set solar charging threshold, a capacitor charging control signal is sent out, and the capacitor charging switch circuit 212 is turned on according to the capacitor charging control signal; when the solar energy abundance value is less than the set solar energy charging threshold, the capacitive charging switch circuit 212 is in a normally closed state.
The power supply control unit 25 controls the on-off of the battery charging switch circuit 214 according to the average discharging voltage of the super capacitor, the average discharging voltage of the power supply battery and the solar energy adequacy value, and when the average discharging voltage of the super capacitor is greater than the set capacitor discharging threshold, the average discharging voltage of the power supply battery is greater than the set battery voltage threshold and the solar energy adequacy value is greater than the set power generation threshold, a battery charging control signal is sent out, and the battery charging switch circuit 214 is turned on according to the battery charging control signal; when the average discharge voltage of the super capacitor is less than the set capacitor discharge threshold, or the average discharge voltage of the power supply battery is less than the set battery voltage threshold, or the solar energy abundance value is less than the set power generation threshold, the battery charge switch circuit 214 is in a normally closed state.
The power supply control unit 25 controls the on-off of the battery power supply switch circuit 216 and the solar power supply switch circuit 217 according to the solar adequacy value, and when the solar adequacy value is greater than the set solar power supply threshold value, a solar power supply control signal is sent out, the battery power supply switch circuit 216 is cut off according to the solar power supply control signal, and the solar power supply switch circuit 217 is turned on according to the solar power supply control signal; when the solar energy abundance value is smaller than the set solar energy power supply threshold value, a battery power supply control signal is sent out, the battery power supply switch circuit 216 is turned on according to the battery power supply control signal, and the solar energy power supply switch circuit 217 is turned off according to the battery power supply control signal.
The power supply control unit 25 may be a processor, a logic gate circuit, or a programmable logic controller (Programmable Logic Controller, PLC) or the like, which can execute a computer program.
Compared with the prior art, the super capacitor is used as the front-stage buffer of the power supply battery, so that the service life of the power supply battery is prolonged. Through the power supply circuit based on logic control, when the solar power supply system 20 works normally, the power supply control unit 25 is in the ultra-low power consumption sleep mode for most of the time, and only when the solar adequacy reaches the threshold value with sufficient solar energy, the power supply control unit 25 can wake up actively to control each switch circuit in the power supply circuit, so that the total power consumption of the solar power supply system 20 is reduced maximally.
Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The apparatus includes one or more processors and memory, wherein the processors are configured to perform the solar energy abundance prediction method of the program-implemented method embodiment; the memory is used for storing a computer program executable by the processor.
Based on the same inventive concept, the present application also provides a computer-readable storage medium, corresponding to the foregoing embodiment of the solar energy abundance prediction method, having stored thereon a computer program that, when executed by a processor, implements the steps of the solar energy abundance prediction method or the power supply control method described in any of the foregoing embodiments.
The present application may take the form of a computer program product embodied on one or more storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-usable storage media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that modifications and improvements can be made by those skilled in the art without departing from the spirit of the application, and the application is intended to encompass such modifications and improvements.