A kind of LED plant lamp automatic light-supplementing equipment for promoting vegetables or succulent to grow
Technical field
The invention belongs to supplementary lighting for plant growing equipment technical field, more particularly to a kind of promotion vegetables or succulent growth
LED plant lamp automatic light-supplementing equipment.
Background technology
At present in family balcony planting vegetables(Or succulent)Method of the user generally using night not light filling it is extensive
Formula is planted.So influence whether vegetables(Or succulent)Bud differentiation, heading are bloomed, fructufy, also influence whether stem tuber, block
The formation of root, bulb.Many vegetables(Or succulent)When the evening draws on daily due to sunshine irradiation time on daytime not enough,
The unnecessary accumulation of consumption of light saturation degree and the not enough organic substance of light compensation point, can cause plant dry mass to decline to cause it to give birth to
Easily withered and sallow etc. the symptom influence taste in long slow, thin and weak, blade face(Or sight).
And be at present simple and crude under the guidance of existing LED plant lamps light filling technology using the user of light filling technology
Ground is whole night to vegetables(Or succulent)Carry out the irradiation of same brightness.Though the method is than former mode to vegetables(Or fleshiness
Plant)Improved to some extent in terms of illumination is not still still scientific and reasonable light filling mode.
Its LED plant lamp light fillings technology used is only that LED plant lamp light compensating lamps are inserted in machine on 220V electric power plug sockets
The illumination of single illumination whole night is carried out tool, waits power off stopping light filling in the morning after getting up.Although this light filling technology and sheet
Some origins of the implementation of invention, but it wastes electric energy than the present invention, have impact on vegetables(Or succulent)Rest rule
Rule, does not reach the light filling effect of this equipment realization yet.
Existing light filling technology wastes electric energy, it is impossible to intelligent light filling, while have impact on vegetables(Or succulent)Stop
Breath rule does not have best effect, on the contrary to vegetables(Or succulent)Growth serves reaction, is unfavorable for vegetables(Or it is many
Meat plant)Rhizome formation.
The content of the invention
There is provided a kind of saving manpower, energy-conservation, the promotion vegetables of science light filling or fleshiness aiming above mentioned problem by the present invention
The LED plant lamp automatic light-supplementing equipment of plant growth.
To achieve the above object, the present invention is adopted the following technical scheme that, the present invention includes MCU, MCU signal input port
Emitter stage, the signal output port of illuminance sensor, sampling resistor one end, the signal of memory respectively with NPN triode
Output port, the signal output port of Temperature Humidity Sensor, the signal output port of clock chip are connected.
MCU power port is connected with the output port of Switching Power Supply, and the cathode output end mouthful of Switching Power Supply is mended by LED
Light lamp is connected with the colelctor electrode of NPN triode, and the base stage of NPN triode is connected with MCU control signal output mouthful, switch electricity
The input port in source is exchanged with 220V to be connected, and the negative pole port of Switching Power Supply is connected with the sampling resistor other end.
As a kind of preferred scheme, sampling resistor of the present invention uses 1% high precision sampling resistance.
As another preferred scheme, MCU of the present invention power port is connected with the 5V output ports of Switching Power Supply,
The 42V output ports of Switching Power Supply are connected by light emitting diode with the colelctor electrode of NPN triode.
As another preferred scheme, sampling resistor of the present invention is defeated by operation amplifier circuit and MCU signal
Inbound port is connected.
As another preferred scheme, MCU of the present invention uses STM32F103VET6 chips U1, the operation amplifier
Device circuit uses MCP602 chips U3, and the illuminance sensor uses BH1750FVI type illuminance sensor U6, the storage
Device uses W25Q64 chips U10, and the Temperature Humidity Sensor uses DHT11 type Temperature Humidity Sensor U5, and the clock chip is adopted
With DS1302 chips U8.
U1 85 pins are connected with resistance R11 one end, electric capacity C22 one end respectively, C22 other ends ground connection, the R11 other ends point
Be not connected with U3 1 pin, U3 3 pins by resistance R13, R12 respectively with resistance R6 one end, resistance R7 one end, the poles of NPN tri-
Pipe emitter stage is connected, and R7 other ends ground connection, the R6 other ends are connected with resistance R4 one end, NPN triode base stage respectively, the R4 other ends
Connect U1 84 pins.
95,96 pins of U6 6,4 pins respectively with U1 are corresponding to be connected;U6 5 pins respectively with resistance R22 one end, electricity
Hold C26 one end to be connected, C26 other ends ground connection, another termination 3V3 power supplys of R22.
U10 1 pin connects 3V3 power supplys, the connection corresponding with the 30 of U1,31 of U10 6,5 pins by resistance R32.
87 pin of U5 2 pin respectively with resistance R23 one end, U1 are connected, the R23 other ends respectively with 3V3 power supplys, U5 1 pin
It is connected.
U8 2,3 pins are connected with crystal oscillator Y1 two ends respectively, 53,52,51 pins pair of U8 5,6,7 pins respectively with U1
It should connect, U8 5 pins connect 3V3 power supplys by resistance R28, and U8 6 pins connect 3V3 power supplys, U8 7 pins by resistance R27
3V3 power supplys are connect by resistance R26.
U3 7 pin are connected by resistance R20 with U1 86 pin, U3 5 pin by resistance R21 respectively with resistance R1 one end,
Resistance R5 one end is connected, R5 other ends ground connection, another termination LED+ of R1.
As another preferred scheme, U1 of the present invention 82 pin by resistance R36 respectively with resistance R38 one end, three
Pole pipe Q4 base stages are connected, and Q4 emitter stages and R38 other ends ground connection, Q4 colelctor electrodes connect buzzer negative pole, and buzzer positive pole connects 3V3 electricity
Source.
As another preferred scheme, single-chip microcomputer of the present invention passes through operational amplifier to the sampling resistor sampled
Magnitude of voltage after MCP602 processing of circuit is analyzed, with reference to BH1750FVI illuminance sensor of the record inside W25Q64
Intensity of illumination data, DHT11 warm and humid angle value and DS1302 time-division date second data, carried out by pid algorithm comprehensive
Close analysis and adjust, the base stage of triode is controlled by exporting PWM value, the light fillings of LED plant lamps is adjusted and
Control.
As another preferred scheme, program has performed various initialization informations after electricity in single-chip microprocessor MCU of the present invention
Finish, start to read the value n in eeprom chip AT24C02 on correspondence position, then read the illuminance preserved in W25Q64
Value u, then the actual illuminance value of whole day be U=u+n*65536;Whether consistent with setting value contrast U values;If U values are than artificial
Setting(Or program setting)Value it is small, then need other light filling;Section, duration and intensity size then need between at the beginning of light filling
Decision is integrated with reference to the value of other several sensors.
Secondly, the method for comprehensive decision of the present invention is:It is artificial that light saturation point is set to equipment by external button, when
SCM program identify sunshine irradiation when W25Q64 in value more than 65536 after, then to the number of correspondence position in AT24C02
According to adding 1 preservation, and the automatic value newly collected since 0 of the value in W25Q64 overrides preservation;According to U=u+n*65536,
Work as single-chip microcomputer(MCU)The U values recognized are more than or equal to artificial setting, illustrate no longer to need LED light supplementing lamp for plants to mend in addition
Light, program need not start LED light supplement lamp equipment;If U values are less than artificial setting value, program continues downward execution, starts to read
Take the hour register in DS1302 clock chips(0x85H), according to vegetables(Or succulent)Habit and light filling rule
Rule sets empirical value within the period that it can not be shined upon, and this empirical value is automatically recorded with the length of sunshine-duration
Reference frame is provided with W25Q64 correspondence position is stored in for the solar radiation duration of next year;Recognized at one by software program
Can numerical value under, start read BH1750 equipment, whether still see have sunlight irradiation plant;When meeting in DS1302 simultaneously
Inter-register is more than or equal to(>=)Setting value(Reference value)And irradiate vegetables without sunlight simultaneously(Or succulent)Bar
During part read the warm and humid angle value of DHT11, compared with the humiture reference value of the corresponding period set in program, judge whether be
The evening draws on or overcast and rainy never sunlight, vegetables(Or succulent)Proceed by LED light fillings.
Again read off DS1302 month register(0x89H)Value, single-chip microcomputer(MCU)Program is according to month register
Value in (0x89H) makes the contrast and automatic modification of a period of time, and judgement is in season in which of four seasons, while according to monolithic
Machine(MCU)The reference value set in program is contrasted, light saturation degree and light compensation point size that preliminary judgement needs, if people
Work set the light saturation degree and light compensation point size that need by external key, then the value using outside setting is no as reference value
Then with single-chip microcomputer(MCU)The value that inside is set is reference value, the light filling duration and intensity of configuration processor setting.
In addition, of the present invention is T by the numerical value that software program is approved, the scope of the value of SCM program accreditation is:|T-
18|<Start to read BH1750 equipment between=3, i.e. at 15 points in afternoon at 21 points in evening.
Beneficial effect of the present invention.
Technical solution of the present invention is combined by embedded software with hardware design, comprehensive illuminance, light compensativity, surrounding
The vegetables such as ambient temperature and humidity and real-time time(Or succulent)Growth factor, contrasts the compensation of the intensity of illumination manually set
The reference value of point, scientific basis is provided for the intelligent light filling of LED plant lamps.Solve current vegetables(Or succulent)Tradition
Extensive style, unicity and the not scientific defect problem of LED plant lamp light filling technical elements.
Circuit design of the present invention is exquisite, with low cost, changes the design concept that traditional LED etc. controls circuit, becomes and passes
The 220V exchange light compensating lamps of system are designed as 42V dc source power-supply services, and intelligent light filling or closing are by being embedded in equipment
Embedded software program is accurately controlled, and reduces the work of human intervention, so as to save manpower, reduces the waste of electric energy.
In the case that the present invention does not have sunshine irradiation at night using the red blue spectrum promotion vegetables in LED light supplementing lamp for plants
Photosynthesis promotion Fast Growth is still carried out, electric energy is not only saved, while at utmost shortening the growth cycle of plant.
Brief description of the drawings
The present invention will be further described with reference to the accompanying drawings and detailed description.The scope of the present invention not only limits to
In the statement of herein below.
Fig. 1 is schematic block circuit diagram of the present invention.
Fig. 2 is control flow chart of the present invention.
Fig. 3~7 are circuit theory diagrams of the present invention.
Embodiment
As illustrated, the present invention includes MCU, MCU signal input port emitter stage respectively with NPN triode, illumination
Spend the signal output port of sensor, sampling resistor one end, the signal output port of memory, Temperature Humidity Sensor signal it is defeated
Exit port, the signal output port of clock chip are connected.
MCU power port is connected with the output port of Switching Power Supply, and the cathode output end mouthful of Switching Power Supply is mended by LED
Light lamp is connected with the colelctor electrode of NPN triode, and the base stage of NPN triode is connected with MCU control signal output mouthful, switch electricity
The input port in source is exchanged with 220V to be connected, and the negative pole port of Switching Power Supply is connected with the sampling resistor other end.
The sampling resistor uses 1% high precision sampling resistance.
The power port of the MCU is connected with the 5V output ports of Switching Power Supply, and the 42V output ports of Switching Power Supply pass through
Light emitting diode is connected with the colelctor electrode of NPN triode.The present invention passes through Switching Power Supply under traditional civil power 220V alternating voltages
Direct current 5V and 42V are converted into, is powered respectively to single-chip microcomputer (MCU) both positive and negative polarity and with the positive pole of LED light supplement lamp, LED plants
The negative pole of light compensating lamp connects the collector terminal of NPN type triode.The emitter terminal of NPN type triode concatenates 1% sampling with high precision electricity
Resistance is connected with Switching Power Supply negative pole.
The sampling resistor is connected by operation amplifier circuit with MCU signal input port.
The MCU uses STM32F103VET6 chips U1, and the operation amplifier circuit uses MCP602 chip U3, institute
Illuminance sensor is stated using BH1750FVI type illuminance sensor U6, the memory is described using W25Q64 chips U10
Temperature Humidity Sensor uses DHT11 type Temperature Humidity Sensor U5, and the clock chip uses DS1302 chips U8.
U1 85 pins are connected with resistance R11 one end, electric capacity C22 one end respectively, C22 other ends ground connection, the R11 other ends point
Be not connected with U3 1 pin, U3 3 pins by resistance R13, R12 respectively with resistance R6 one end, resistance R7 one end, the poles of NPN tri-
Pipe emitter stage is connected, and R7 other ends ground connection, the R6 other ends are connected with resistance R4 one end, NPN triode base stage respectively, the R4 other ends
Connect U1 84 pins.
95,96 pins of U6 6,4 pins respectively with U1 are corresponding to be connected;U6 5 pins respectively with resistance R22 one end, electricity
Hold C26 one end to be connected, C26 other ends ground connection, another termination 3V3 power supplys of R22.
U10 1 pin connects 3V3 power supplys, the connection corresponding with the 30 of U1,31 of U10 6,5 pins by resistance R32.
87 pin of U5 2 pin respectively with resistance R23 one end, U1 are connected, the R23 other ends respectively with 3V3 power supplys, U5 1 pin
It is connected.
U8 2,3 pins are connected with crystal oscillator Y1 two ends respectively, 53,52,51 pins pair of U8 5,6,7 pins respectively with U1
It should connect, U8 5 pins connect 3V3 power supplys by resistance R28, and U8 6 pins connect 3V3 power supplys, U8 7 pins by resistance R27
3V3 power supplys are connect by resistance R26.
U3 7 pin are connected by resistance R20 with U1 86 pin, U3 5 pin by resistance R21 respectively with resistance R1 one end,
Resistance R5 one end is connected, R5 other ends ground connection, another termination LED+ of R1.This part completes PWM light modulation work(by resistance sampling
Energy.Another termination LED+ of R1, and the part of LED- connection R2 and C3 series connection, SCM program is by pid algorithm to the 84th of U1
Pin carries out PWM brightness adjustment controls, and U1 the 84th pin is connected to Q1 G ends by R4, R6 with G ends are connected and then by R12, R13 quilt
Operational amplifier MCP602 is exaggerated processing, due to the current value that R11 presence is then collected is converted to can be by the of U1
85 pin sampling magnitude of voltage then with R21 by operational amplifier MCP602 and R20 be connected and by U1 86 pin collection electricity
Pressure value does whether both contrasting detections are consistent, prevents from occurring in sampling process big deviation or burr.Such as want to adjust light
Brightness dutycycle is 50%, then is adjusted by the pid algorithm program of this circuit and single-chip microcomputer, mesh can be efficiently and stably reached quickly
's.
82 pin of the U1 are connected with resistance R38 one end, triode Q4 base stages respectively by resistance R36, Q4 emitter stages and
The R38 other ends are grounded, and Q4 colelctor electrodes connect buzzer negative pole, and buzzer positive pole connects 3V3 power supplys.Buzzer is used for prompt message, than
A sound ring of " drop " is had when setting data such as key-press input, or equipment breaks down and continued during whole service
Pipe.
The single-chip microcomputer enters to magnitude of voltage of the sampling resistor sampled after operational amplifier MCP602 processing of circuit
Row analysis, with reference to the warm and humid of the intensity of illumination data, DHT11 for recording the BH1750FVI illuminance sensors inside W25Q64
The time-division date second data of angle value and DS1302, carries out comprehensive analysis and regulation, by exporting PWM value by pid algorithm
Base stage to triode is controlled, and the light filling of LED plant lamps is adjusted and controlled.
Illustrate the data handling procedure of the present invention below in conjunction with the accompanying drawings.
Single-chip microcomputer(MCU)Program has performed various initialization informations and finished after upper electricity, starts to read eeprom chip
Value n in AT24C02 on correspondence position, then reads the value u, then whole day of the illuminance preserved in W25Q64 actual illuminance
It is worth for U=u+n*65536.Whether consistent with setting value contrast U values.If U values are than artificial setting(Or program setting)Value it is small then
It is to need other light filling.Section, duration and intensity size then need to combine other several sensors between at the beginning of light filling
Value is comprehensive to be determined.
The artificial light saturation point set by external button to equipment is 70,000 lux when such as planting tomato, works as single-chip microcomputer
After value during procedure identification sunny light irradiation in W25Q64 is more than 65536, then the data to correspondence position in AT24C02 add 1
Preserve, and the automatic value newly collected since 0 of the value in W25Q64 overrides preservation.According to U=u+n*65536, work as monolithic
Machine(MCU)The U values recognized are more than or equal to 0x11170,(70000 lux, its value is that artificial arranges value or program are set automatically
Put)When explanation no longer need the other light filling of LED light supplementing lamp for plants, program need not start LED light supplement lamp equipment.If U values are small
In 0x11170 then, program continues the downward hour register for performing, starting to read in DS1302 clock chips(0x85H), typically
According to vegetables(Or succulent)Habit and light filling rule set experience within the period that it can not be shined upon
Value(Such as afternoon 18:00), this empirical value can be automatically recorded and be stored in W25Q64 correspondence with the length of sunshine-duration
Position provides reference frame for the solar radiation duration of next year.Under the numerical value approved by software program(This numerical value
It is set to T, the scope of the value of SCM program accreditation is:|T-18|<Start to read between=3, i.e. at 15 points in afternoon at 21 points in evening
BH1750 equipment, overcast and rainy still suffer from the work of light filling equipment and is radiated at vegetables even if thereby may be ensured that continuous many days(It is many
Meat plant)Upper several hours.), start to read BH1750 equipment, whether see still has sunlight in irradiation plant.Met when simultaneously
Time register in DS1302 is more than or equal to(>=)Setting value(Reference value)Such as and simultaneously no sun o'clock sharp in the afternoon 18
Light irradiation vegetables(Or succulent)Condition when read the warm and humid angle value of DHT11, with the temperature of the corresponding period set in program
Humidity reference value is compared, and judges whether it is that the evening draws on or overcast and rainy never sunlight, vegetables(Or succulent)
LED light fillings can be proceeded by.
Each condition more than again reads off DS1302 month register(0x89H)Value, single-chip microcomputer(MCU)Program
The contrast and automatic modification of a period of time can be made according to the value in month register (0x89H), judgement is in which of four seasons
Season, while according to single-chip microcomputer(MCU)The reference value set in program is contrasted, light saturation degree and light that preliminary judgement needs
Compensation point size, if artificial set the light saturation degree and light compensation point size that need by external key, is set with outside
The value put is reference value, otherwise with single-chip microcomputer(MCU)Inside set value be reference value, configuration processor setting light filling duration and
Intensity.
By taking above-mentioned growing tomatoes as an example, work as single-chip microcomputer(MCU)The U values for reading W25Q64 are 0xEA60 (60,000 lux),
It is less than 0x11170 (70,000 lux), and the DS1302 read value is 18:01 is more than the time 18 set:00, while illuminance
Sensor BH1750 value does not continue to increase, then judges that now no sunshine has been radiated at vegetables(Or succulent)
On, it may be possible to need by LED light supplement lamp light filling, because it needs to tie several sensor comprehensive descisions, Suo Youcheng in addition
Sequence continues downward perform.Temperature Humidity Sensor DTH11 is by single-chip microcomputer(MCU)The temperature recognized is 13 °C, the %RH of humidity 15.Read
The month register got is November, then in summary factor considers, is now winter, and this moment without solar irradiation
Penetrate, but its U value is not reaching to predetermined value, it is necessary to LED plant lamp light fillings after sunshine irradiation on daytime, light filling amount is
0x11170 (70,000 lux) -0xEA60 (60,000 lux)=0x2710 (10,000 lux).Program operation pid algorithm opens intelligent light filling mistake
Journey, without artificial extraneous intervention.Above step is performed successively, gradually terminates to light filling process or the first thread sunlight in early morning is general
Impinge upon vegetables(Or succulent)Upper this light filling flow of end.SCM program is emptied automatically after light filling EP (end of program)
AT24C02 records the position that n and W25Q64 records u, then U values are 0, it is meant that new daystart, program initially enters one
New journey.
The present invention is according to various long-day, short-day, day neutral vegetable(Or succulent)Itself benefit to intensity of illumination
Repay a difference and manually set its reference value first, and use single-chip microcomputer(MCU)Program is to actual amount of sunlight, light saturation
Degree, irradiation time carry out composite record and analysis, with reference to ambient temperature and humidity situation at that time using pid algorithm reasonably to LED
Plant lamp light compensating lamp carries out PWM controls and regulation, so as to scientifically and rationally carry out illumination compensation or closing.
It is understood that above with respect to the specific descriptions of the present invention, being merely to illustrate the present invention and being not limited to this
Technical scheme described by inventive embodiments, it will be understood by those within the art that, still can be to present invention progress
Modification or equivalent substitution, to reach identical technique effect;As long as meet use needs, all protection scope of the present invention it
It is interior.