Odla i vatten

 
 

Description Lamp Part

.

In a Greenhouse its important to get as much light as possible, 6-20 hour/day depending on the plant. This is not possible in the winter time without having additional light. Since light is reduced by 1/4 by double distance its also important to have the light as close to the plant as possible.



Lamp On/Off

Since the Greenhouse is heated up at daytime by the sun i dont want the lamp to go on directly at dusk. I want to keep the heat as long as possible and turn on the lamp X hour before dawn so the total light time is 12-18 hours. By turning them on early in the morning i dont disturb the neighbors and i got the extra heat from the lamp at the coldest time in the Greenhouse.


Lamp Up/Down

Since the light is reduced by distance i want the light to automatic adjust itself to a hight about 1-30 cm above the plant. I have tested the Sharp distance sensor and it give an good accuracy. I also got a motor that can lift and lower the lamp array.


The parts

LDR resistor. Sensor for daylight

PIC16F887 Microprocessor

RTC DS1307 or PCF8583

Sharp GP2D120 4-30cm distance sensor. http://www.sharpsma.com/webfm_send/1205

30W LED lamps in an array

DC motor 12V with gearbox


Inputs/Sensors

Clock RTC DS1307 or PCF8583 YEAR, MONTH, DAY, HOUR, MIN, SEC.

Daylight Sensor LIGHTSENS

The distance to the plant and lower the lamp until its 5-10cm above the plant. DIST

When the Reflector reach the Top position. LAMPTOP


Output

Light on/off. LIGHTOUT

Motor for Reflector Upp/Down MOTOROUT


Variables Programmable

Preprogrammed total light time (6-20 hours) gLIGHTTIME

Preprogrammed lamp distance to plant (1-30cm) gDIST


Variables

Time when the sun go up, (dawn) UPTIME

Time when the sun goes down (dusk) DOWNTIME

Total Suntime (DOWNTIME-UPTIME) SUNTIME


So i need to make a Code that take the SUNTIME from the previous day.

IF the SUNTIME gLIGHTTIME take the UPTIME minus the missing hours and lower and turn on the lamp X hours before UPTIME.


Example. UPTIME 08:00, DOWNTIME 19:00, gives the SUNTIME 11 hours. If the preprogrammed gLIGHTTIME is set to 12 hours the lamp should turn on 1 hour at the time 07:00.





Description Water Tank Part

Consist of a water tank 70Wx40Dx35H. Water is filled with water up to 10 cm. If the Level WLEVEL drop it is automatic filled up by the RPUMP.


The parts

PIC16F887 Microprocessor

RTC DS1307 or PCF8583

Pump Motor Water circulation

Pump Motor Water Refill

Moist Sensor

Temp Sensor Water

Temp Sensor Air

Water Level Sensor



Inputs/Sensors

Clock RTC DS1307 or PCF8583 YEAR, MONTH, DAY, HOUR, MIN, SEC.

Water Temp sensor WTEMPIN

Water Level sensor WLEVELIN

Moist sensor MOISTIN

Air Temp Sensor AIRTEMPIN

CO Sensor COIN

CO2 Sensor CO2IN


Outputs

Waterpump controlled by WPUMPOUT

Waterpump for refill water RPUMPOUT

Nutrions Pump NPUMPOUT

Water Heater controlled by HEATEROUT

Ventialtion Fan FANOUT


Variables Programmable

Preprogrammed time Pump Motor on (0-99min)  gWATERON

Preprogrammed time Pump Motor off (0-99min)  gWATEROFF

Preprogrammed temp Water (5-30C)  gWATERHEATON

Preprogrammed Temp Fan Start (20-35)  gFANON

 

System Control