A kind of LED plant lamp automatic light-supplementing equipment promoting vegetables or succulent growth
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)User's commonly used night not light filling method extensive
Formula is planted.So influence whether vegetables(Or succulent)Bud differentiation, heading are bloomed, fructufy, also influence whether stem tuber, block
Root, the formation of bulb.A lot of vegetables(Or succulent)When the evening draws on daily due to the sunlight time on daytime not,
Light saturation degree and the unnecessary accumulation of consumption of light compensation point deficiency organic substance, can lead to plant dry mass to decline thus leading to its life
Length is slow, thin and weak, easily withered and sallow etc. the symptom impact taste in blade face(Or sight).
And adopt the user of light filling technology to be simple and crude under the guidance of existing LED plant lamp light filling technology at present
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)But improving to some extent in terms of illumination is not still scientific and reasonable light filling mode.
The LED plant lamp light filling technology that it adopts is only that LED plant lamp light compensating lamp is inserted in machine on 220V electric power plug socket
Carry out the illumination of single illumination whole night tool, wait after getting up, power off stopping light filling in the morning.Although this light filling technology and basis
Some origins of 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, have impact on vegetables simultaneously(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.
Content of the invention
The present invention is aiming at the problems referred to above, provides a kind of saving manpower, energy-conservation, the promotion vegetables of science light filling or fleshiness
The LED plant lamp automatic light-supplementing equipment of plant growth.
For achieving the above object, the present invention adopts the following technical scheme that, the present invention includes MCU, the signal input port of MCU
Respectively with the emitter stage of NPN triode, the signal output port of illuminance sensor, sampling resistor one end, memory signal
Output port, the signal output port of Temperature Humidity Sensor, the signal output port of clock chip are connected.
The power port of MCU is connected with the output port of Switching Power Supply, and the cathode output end mouth 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 the control signal output port of MCU, switch electricity
The input port in source is exchanged with 220V and is connected, and the negative pole port of Switching Power Supply is connected with the sampling resistor other end.
As a kind of preferred version, sampling resistor of the present invention adopts 1% high precision sampling resistance.
As another kind of preferred version, the power port of MCU of the present invention is connected with the 5V output port of Switching Power Supply,
The 42V output port of Switching Power Supply is connected with the colelctor electrode of NPN triode by light emitting diode.
As another kind of preferred version, sampling resistor of the present invention is defeated with the signal of MCU through operation amplifier circuit
Inbound port is connected.
As another kind of preferred version, MCU of the present invention adopts STM32F103VET6 chip U1, described operation amplifier
Device circuit adopts MCP602 chip U3, and described illuminance sensor adopts BH1750FVI type illuminance sensor U6, described storage
Device adopts W25Q64 chip U10, and described Temperature Humidity Sensor adopts DHT11 type Temperature Humidity Sensor U5, and described clock chip is adopted
With DS1302 chip U8.
85 pins of U1 are connected with resistance R11 one end, electric capacity C22 one end respectively, and the C22 other end is grounded, and the R11 other end divides
Be not connected with 1 pin of U3,3 pins of U3 pass through resistance R13, R12 respectively with resistance R6 one end, resistance R7 one end, NPN tri- pole
Pipe emitter stage is connected, and the R7 other end is grounded, and the R6 other end is connected with resistance R4 one end, NPN triode base stage respectively, the R4 other end
Connect 84 pins of U1.
The 6 of U6,4 pins are corresponding with 95,96 pins of U1 respectively connects;5 pins of U6 respectively with resistance R22 one end, electricity
Hold C26 one end to be connected, the C26 other end is grounded, R22 another termination 3V3 power supply.
1 pin of U10 connects 3V3 power supply by resistance R32, and 6,5 pins of U10 are corresponding with the 30 of U1,31 to be connected.
2 pin of U5 are connected with 87 pin of resistance R23 one end, U1 respectively, the R23 other end 1 pin with 3V3 power supply, U5 respectively
It is connected.
The 2 of U8,3 pins are connected with crystal oscillator Y1 two ends respectively, 5,6,7 pins, 53,52,51 pins pair with U1 respectively of U8
Should connect, 5 pins of U8 connect 3V3 power supply by resistance R28, and 6 pins of U8 connect 3V3 power supply, 7 pins of U8 by resistance R27
3V3 power supply is connect by resistance R26.
7 pin of U3 are connected with 86 pin of U1 by resistance R20,5 pin of U3 pass through resistance R21 respectively with resistance R1 one end,
Resistance R5 one end is connected, and the R5 other end is grounded, another termination LED+ of R1.
As another kind of preferred version, 82 pin of U1 of the present invention pass through resistance R36 respectively with resistance R38 one end, three
Pole pipe Q4 base stage is connected, and Q4 emitter stage and the R38 other end are grounded, and Q4 colelctor electrode connects buzzer negative pole, and buzzer positive pole connects 3V3 electricity
Source.
As another kind of preferred version, single-chip microcomputer of the present invention is to the sampling resistor sampling through operational amplifier
Magnitude of voltage after MCP602 processing of circuit is analyzed, in conjunction with record in W25Q64 within BH1750FVI illuminance sensor
Intensity of illumination data, the warm and humid angle value of DHT11 and DS1302 time-division date second data, carried out comprehensive by pid algorithm
Close analysis and adjust, by exporting PWM value, the base stage of triode is controlled, the light filling of LED plant lamp is adjusted and
Control.
As another kind of preferred version, the complete various initialization informations of program performing after electricity in single-chip microprocessor MCU of the present invention
Finish, start to read value n on correspondence position in eeprom chip AT24C02, then read the illuminance preserving in W25Q64
Value u, then the actual illuminance value of whole day be U=u+n*65536;Whether contrast U value is consistent with setting value;If U value is than artificial
Set(Or program setting)Value little, then need other light filling;The time started section of light filling, duration and intensity size then need
Value in conjunction with addition several sensors comprehensively determines.
Secondly, the method for comprehensive decision of the present invention is:Manually pass through external button and light saturation point is arranged to equipment, when
After SCM program identifies value in W25Q64 during sunlight more than 65536, then the number to correspondence position in AT24C02
Preserve according to Jia 1, and the value in W25Q64 overrides preservation from 0 value starting newly to be collected automatically;According to U=u+n*65536,
Work as single-chip microcomputer(MCU)The U value recognizing is more than or equal to artificial setting, illustrates that in addition be no longer necessary to LED light supplementing lamp for plants mends
Light, program need not start LED light supplement lamp equipment;If U value is less than artificial setting value, program continues to execute downwards, starts to read
Take the hour register in DS1302 clock chip(0x85H), according to vegetables(Or succulent)Habit and light filling rule
Rule sets empirical value within the time period that it can not be shined upon, and this empirical value is automatically recorded with the length of sunshine-duration
There is provided reference frame with the correspondence position being saved in W25Q64 for the solar radiation duration of next year;Recognized by software program at one
Can numerical value under, start read BH1750 equipment, see whether still have sunlight irradiate plant;When meeting in DS1302 simultaneously
Inter-register is more than or equal to(>=)Setting value(Reference value)And do not have sunlight to irradiate vegetables simultaneously(Or succulent)Bar
Read DHT11 warm and humid angle value during part, compare with the humiture reference value of corresponding time period of setting in program, judge whether be
The evening draws on or overcast and rainy never sunlight, vegetables(Or succulent)Proceed by LED light filling.
Again read off the month register of DS1302(0x89H)Value, single-chip microcomputer(MCU)Program is according to month register
(0x89H) value in make the contrast of a period of time and automatic change, judgement is which in the four seasons in season, simultaneously according to monolithic
Machine(MCU)The reference value setting in program contrasts, and light saturation degree and light compensation point size that preliminary judgement needs, if people
Work arranged the light saturation degree needing and light compensation point size by external key, then with the value of outside setting as reference value, no
Then with single-chip microcomputer(MCU)The value of internal setting is reference value, light filling duration and intensity that configuration processor sets.
In addition, the numerical value approved by software program of the present invention is T, the scope of the value of SCM program accreditation is:|T-
18|<=3, start to read BH1750 equipment between at 15 points in afternoon at 21 points in evening.
Beneficial effect of the present invention.
Technical solution of the present invention is combined with hardware design by embedded software, 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 setting
The reference value of point, provides scientific basis for LED plant lamp intellectuality light filling.Solve current vegetables(Or succulent)Tradition
The extensive style of LED plant lamp light filling technical elements, unicity and not scientific defect problem.
Circuit design of the present invention is exquisite, with low cost, changes the design concept of the control circuits such as traditional LED, becomes and passes
The 220V exchange light compensating lamp of system is designed as 42V dc source power-supply service, intelligent light filling or close by being embedded in equipment
Embedded software program precise control, decreases the work of human intervention, thus saving manpower, decreases the waste of electric energy.
The present invention promotes vegetables in the case that night there is not sunlight using the red blue spectrum in LED light supplementing lamp for plants
Still carry out photosynthesis promotion Fast Growth, not only save electric energy, at utmost shorten the growth cycle of plant simultaneously.
Brief description
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
Statement in 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.
Specific embodiment
As illustrated, the present invention includes MCU, signal input port emitter stage, the illumination with NPN triode respectively of MCU
The degree signal output port of sensor, sampling resistor one end, the signal output port of memory, Temperature Humidity Sensor signal defeated
Exit port, the signal output port of clock chip are connected.
The power port of MCU is connected with the output port of Switching Power Supply, and the cathode output end mouth 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 the control signal output port of MCU, switch electricity
The input port in source is exchanged with 220V and is connected, and the negative pole port of Switching Power Supply is connected with the sampling resistor other end.
Described sampling resistor adopts 1% high precision sampling resistance.
The power port of described MCU is connected with the 5V output port of Switching Power Supply, and the 42V output port of Switching Power Supply passes through
Light emitting diode is connected with the colelctor electrode of NPN triode.The present invention under traditional civil power 220V alternating voltage, by Switching Power Supply
It is converted into direct current 5V and 42V, power to respectively single-chip microcomputer (MCU) both positive and negative polarity and the positive pole with LED light supplement lamp, LED plant
The negative pole of light compensating lamp connects the collector terminal of NPN type triode.The emitter terminal concatenation 1% sampling with high precision electricity of NPN type triode
Resistance is connected with Switching Power Supply negative pole.
Described sampling resistor is connected with the signal input port of MCU through operation amplifier circuit.
Described MCU adopts STM32F103VET6 chip U1, and described operation amplifier circuit adopts MCP602 chip U3, institute
State illuminance sensor and adopt BH1750FVI type illuminance sensor U6, described memory adopts W25Q64 chip U10, described
Temperature Humidity Sensor adopts DHT11 type Temperature Humidity Sensor U5, and described clock chip adopts DS1302 chip U8.
85 pins of U1 are connected with resistance R11 one end, electric capacity C22 one end respectively, and the C22 other end is grounded, and the R11 other end divides
Be not connected with 1 pin of U3,3 pins of U3 pass through resistance R13, R12 respectively with resistance R6 one end, resistance R7 one end, NPN tri- pole
Pipe emitter stage is connected, and the R7 other end is grounded, and the R6 other end is connected with resistance R4 one end, NPN triode base stage respectively, the R4 other end
Connect 84 pins of U1.
The 6 of U6,4 pins are corresponding with 95,96 pins of U1 respectively connects;5 pins of U6 respectively with resistance R22 one end, electricity
Hold C26 one end to be connected, the C26 other end is grounded, R22 another termination 3V3 power supply.
1 pin of U10 connects 3V3 power supply by resistance R32, and 6,5 pins of U10 are corresponding with the 30 of U1,31 to be connected.
2 pin of U5 are connected with 87 pin of resistance R23 one end, U1 respectively, the R23 other end 1 pin with 3V3 power supply, U5 respectively
It is connected.
The 2 of U8,3 pins are connected with crystal oscillator Y1 two ends respectively, 5,6,7 pins, 53,52,51 pins pair with U1 respectively of U8
Should connect, 5 pins of U8 connect 3V3 power supply by resistance R28, and 6 pins of U8 connect 3V3 power supply, 7 pins of U8 by resistance R27
3V3 power supply is connect by resistance R26.
7 pin of U3 are connected with 86 pin of U1 by resistance R20,5 pin of U3 pass through resistance R21 respectively with resistance R1 one end,
Resistance R5 one end is connected, and the R5 other end is grounded, another termination LED+ of R1.This part passes through resistance sampling, completes PWM light modulation work(
Energy.Another termination LED+ of R1, and LED- connects the part of R2 and C3 series connection, SCM program passes through pid algorithm the to U1 the 84th
Pin carries out PWM brightness adjustment control, and the 84th pin of U1 is connected to the G end of Q1 by R4, R6 with G end is connected and then passes through R12, R13 quilt
Operational amplifier MCP602 is exaggerated and processes, due to the current value that the presence of R11 is then collected is converted to can be by the of U1
85 pin sampling magnitude of voltage then with R21 pass through operational amplifier MCP602 and R20 be connected and by U1 86 pin gather electricity
Whether unanimously pressure value does both contrasting detections, prevents big deviation or burr in sampling process.Such as want to adjust light
Brightness dutycycle is 50%, then pass through this circuit and the pid algorithm program of single-chip microcomputer is adjusted, can efficiently and stably reach mesh quickly
's.
82 pin of described U1 are connected with resistance R38 one end, triode Q4 base stage respectively by resistance R36, Q4 emitter stage and
The R38 other end is grounded, and Q4 colelctor electrode connects buzzer negative pole, and buzzer positive pole connects 3V3 power supply.Buzzer is used for information, than
Have a sound ring of " dripping " during as key-press input setting data, or equipment breaks down during whole service and continues
Pipe.
To the sampling resistor sampling, the magnitude of voltage after operational amplifier MCP602 processing of circuit enters described single-chip microcomputer
Row analysis, in conjunction with record in W25Q64 within the intensity of illumination data of BH1750FVI illuminance sensor, DHT11 warm and humid
The time-division date second data of angle value and DS1302, carries out comprehensive analysis and regulation by pid algorithm, by exporting PWM value
The base stage of triode is controlled, the light filling of LED plant lamp is adjusted and controls.
The data handling procedure of the present invention is described below in conjunction with the accompanying drawings.
Single-chip microcomputer(MCU)After upper electricity, the complete various initialization informations of program performing finish, and start to read eeprom chip
Value n on correspondence position in AT24C02, then reads value u of the illuminance preserving in W25Q64, the then actual illuminance of whole day
It is worth for U=u+n*65536.Whether contrast U value is consistent with setting value.If U value sets than artificial(Or program setting)Value little then
It is to need other light filling.The time started section of light filling, duration and intensity size then need with reference in addition several sensors
Value is comprehensive to be determined.
Such as planting artificial light saturation point equipment being arranged by external button during tomato is 70,000 lux, works as single-chip microcomputer
After value in W25Q64 during procedure identification sunny light irradiation is more than 65536, then add 1 to the data of correspondence position in AT24C02
Preserve, and the value in W25Q64 overrides preservation from 0 value starting newly to be collected automatically.According to U=u+n*65536, work as monolithic
Machine(MCU)The U value recognizing is more than or equal to 0x11170,(70000 lux, its value is artificial arranges value or program sets automatically
Put)When illustrate to be no longer necessary to the other light filling of LED light supplementing lamp for plants, program need not start LED light supplement lamp equipment.If U value is little
In 0x11170 then, program continues to execute downwards, starts to read the hour register in DS1302 clock chip(0x85H), typically
According to vegetables(Or succulent)Habit and light filling rule set experience within the time period that it can not be shined upon
Value(Such as afternoon 18:00), this empirical value can be automatically recorded and be saved in the correspondence of W25Q64 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|<=3, start to read between at 15 points in afternoon at 21 points in evening
BH1750 equipment, though thereby may be ensured that continuously many days overcast and rainy still suffer from light filling equipment work be radiated at vegetables(Many
Meat plant)Upper several hour.), start to read BH1750 equipment, see whether still have sunlight irradiating plant.Meet when simultaneously
Time register in DS1302 is more than or equal to(>=)Setting value(Reference value)Such as and simultaneously do not have 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 program setting the corresponding time period temperature
Humidity reference value compares, and judges whether it is that the evening draws on or overcast and rainy never sunlight, vegetables(Or succulent)
LED light filling can be proceeded by.
Again read off the month register of DS1302 according to each above condition(0x89H)Value, single-chip microcomputer(MCU)Program
The contrast of a period of time and automatic modification can be made according to the value in month register (0x89H), which in the four seasons judgement be
Season, simultaneously according to single-chip microcomputer(MCU)The reference value setting in program contrasts, light saturation degree and light that preliminary judgement needs
Compensation point size, if artificial arranged the light saturation degree needing and light compensation point size by external key, is set with outside
The value put is reference value, otherwise with single-chip microcomputer(MCU)The value of internal setting is reference value, the light filling duration that configuration processor sets and
Intensity.
, work as single-chip microcomputer taking above-mentioned growing tomatoes as a example(MCU)The U value reading W25Q64 is 0xEA60 (60,000 lux),
It is less than 0x11170 (70,000 lux), and the value of the DS1302 reading is 18:01 time 18 being more than setting:00, illuminance simultaneously
The value of sensor BH1750 does not continue to increase, then judge now do not had sunlight in vegetables(Or succulent)
Above it may be possible to need by LED light supplement lamp light filling, because it needs knot in addition several sensor comprehensive descision, Suo Youcheng
Sequence continues to execute downwards.Temperature Humidity Sensor DTH11 is by single-chip microcomputer(MCU)The temperature recognizing is 13 °C, humidity 15 %RH.Read
The month register got is November, then comprehensive factors above considers now for winter, and do not had solar irradiation this moment
Penetrate, but after sunlight on daytime, its U value is not reaching to predetermined value, need LED plant lamp light filling, light filling amount is
0x11170 (70,000 lux) -0xEA60 (60,000 lux)=0x2710 (10,000 lux).Program is run pid algorithm and is opened intelligent light filling mistake
Journey, need not manually extraneous intervene.Execute above step successively, gradually arrive that light filling process terminates or the first thread sunlight in early morning is general
Impinge upon vegetables(Or succulent)Upper this light filling flow process of end.After light filling EP (end of program), SCM program empties automatically
AT24C02 records the position that n and W25Q64 records u, then for 0 it is meant that new daystart, program initially enters one to U value
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 adopt single-chip microcomputer(MCU)Program is to actual amount of sunlight, light saturation
Degree, irradiation time carry out composite record and analysis, use pid algorithm reasonably to LED in conjunction with ambient temperature and humidity situation at that time
Plant lamp light compensating lamp carries out PWM control and regulation, thus scientifically and rationally carrying 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 be not limited to this
Technical scheme described by inventive embodiments, it will be understood by those within the art that, still the present invention can be carried out
Modification or equivalent, to reach identical technique effect;As long as meet use needs, all protection scope of the present invention it
Interior.