Está en la página 1de 15

1/20/2016

HOME

Greenhouseintelligentcontrolsystem

PROJECTS

GENERAL ARTICLES

TUTORIALS

PROJECT IDEAS

PROJECT SERVICES

Green house intelligent


control system

ADVERTISEMENT

BILAL Malik
August 13, 2014
PIC
microcontrollers
30 Comments

Green house intelligent control system is designed to protect


the plants from more cool and hot weather and additional
control system is included to save power by making fans and
lights automatically turn on and off with the help of intelligent
control system. In this project, the intelligent control system is
developed using microcontroller and sensors. Green house
system has a very important use now a days in the agriculture
field.Some plants need the specific amount of water for their
proper growth and more productivity, therefore farmer should
provide them the proper quantity of water. But its difficult for
the farmer to get a estimation for quantity of moisture in soil.
But in this project moisture sensor is used to to provide this
facility with aintelligent control system.

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

PLEASE SUPPORT
OUR WORK
Our goal is to discover
new solutions and provide
working examples with
1/15

1/20/2016

Greenhouseintelligentcontrolsystem

Page Contents [hide]

video, pictures, code and


schematics. Please
support our efforts.

0.1 Main functionality of project


0.1.1 LM35 Temperature sensor :
0.1.2 Digital temperature sensor using pic microcontroller
0.1.3 Light sensor :
0.1.4 HS1101 Humidity sensor :
0.1.5 Digital humidity sensor using pic microcontroller
0.1.6 Moisture sensor :
0.2 Simulation :
0.2.0.1 Simulation diagram with status of devices :
0.3 Complete circuit diagram :
0.3.0.1 PCB diagram ofschematic of green house system :
0.3.0.2 Applications and future advancements :

SUBSCRIBE TO
BLOG VIA EMAIL
Enter your email address
to subscribe to this blog
and receive notifications
of new posts by email.

1 Code :

MAIN FUNCTIONALITY OF PROJECT


Block diagram below shows the main functionality of green
house intelligent control system. Four sensors are used to
measure different parameters of green house system which
includes temperature sensor, light sensor, humidity sensor,
moisture sensor. Four relays are used to control four respective
loads as given below:

Join 261 other subscribers


Email Address
Subscribe

LM35 TEMPERATURE SENSOR :


When temperature becomes greater than 25 degree,
respective relay become energize to operate thefan and when
temperature becomes lower than 20-degree relay turn off the
fan by getting control signals from microcontroller.
PIC16F877A microcontroller analog to digital converter
module is used to read temperature value and to operate relay
which in turn operate the fan. To know more about temperature
sensor and its working, go through the following article :

DIGITAL
TEMPERATURE
MICROCONTROLLER

SENSOR

USING

PIC

FIND US ON
FACEBOOK
MicrocontrollersLab
6,145likes

LikePage

Bethefirstofyourfriendstolikethis

LIGHT SENSOR :
Light dependent resistor is used as a light sensor. LDR is kind
of variable resistor which resistance changes with the change in
light intensity. So LDR resistance is converted into intensity of
light by using LDR resistance and intensity of light formula.
PIC16F877A microcontroller is used to measure intensity of

RELATED POSTS

light. When intensity of light fall under a certain limit,

sensor using
PIC

microcontroller provide signal to relay to turn on light and when


http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

Digital humidity

2/15

1/20/2016

Greenhouseintelligentcontrolsystem

intensity of light raise upto a certain limit , microcontroller


provide signal to relay to turn off fan. So light sensor is used to
add automatic light switching functionality in the green house
system, if you dont have much money to afford a gardener,
then you can use green house intelligent control system to
make your green house self-operating.

microcontroller
alternating
current
measurement
using pic
microcontroller

HS1101 HUMIDITY SENSOR :


Humidity sensor is used to check level of moisture in air
Because greater or less humidity level in air can also effect
growth of plants. Humidity sensor HS1101 is used to measure
level of moisture in air. HS1101 is a capacitative type humidity

Speed control
of DC motor
using
microcontroller
part 2

sensor, So additional circuit is used to convert change in


capacitance of humidity sensor into frequency and frequency
is measured with the help of microcontroller. Measured
frequency is converted back into humidity using a algorithm in
microcontroller programming. To know more about humidity
sensor and its working, I suggest you to go through following
article :

DIGITAL
HUMIDITY
MICROCONTROLLER

SENSOR

USING

Digital
Ammeter
circuit using pic
microcontroller
Speed control
of DC motor
using PIC

PIC

If humidity becomes greater than a specified limit,


microcontroller gives a signal to respective relay to turn on
sprinter which is used to maintain ahumidity level in theair and
when humidity level comes back to a normal limit,
microcontroller gives a signal to respective relay to turn off
sprinter.

MOISTURE SENSOR :
Moisture sensor is used to measure level in soil. A wire strip is
used to measure moisture of soil. Wire strip has a specific
resistance at specific moisture, but when moisture increases,
theresistance of wire strip starts decreasing and similarly when
moisture decreases, resistance become higher. PIC16F877A
used to measure moisture level and to turn on and off water
pump with the help of relay.

microcontroller
part 1
MULTIPLE
INPUT CHARGE
CONTROLLER
FOR
RENEWABLE ENERGY
metal detector
robot using pic
microcontroller
DS18S20
interfacing with
pic and avr
microcontroller

Block diagram of complete project is shown below:

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

3/15

1/20/2016

Greenhouseintelligentcontrolsystem

block digram of green house system

SIMULATION :
For simulation purpose, I have connected four LEDs instead of
real load to check project working and code. LCD is used to
display digital values of temperature, light , humidity and
moisture. LCD also display the status of devices either they are
on or off. As shown in the figure below.

simulation of green house system


SIMULATION DIAGRAM WITH STATUS OF DEVICES :

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

4/15

1/20/2016

Greenhouseintelligentcontrolsystem

Simulation diagram with status of devices


In simulation I have used variable resistor for wire strip and
pulse having different frequencies for humidity sensor.
In above circuit diagrams :
L : for light
S : Sprint
F : for fan
P : for pump
T : for temperature
H : for humidity
M : for moisture

COMPLETE CIRCUIT DIAGRAM :


Complete circuit diagrams of green house intelligent control
system and sensors are shown below :

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

5/15

1/20/2016

Greenhouseintelligentcontrolsystem

schematic of green house system


In aboveschematic of green house system, blue arrow shows
connection for senors and back arrow shows relay and lcd
connection point.
PCB DIAGRAM OFSCHEMATIC OF GREEN HOUSE SYSTEM :

PCB diagram of schematic of green house system


APPLICATIONS AND FUTURE ADVANCEMENTS :
So this project can be easily used in any green house system to
make to self-operated and automatic control of devices. You
can also add extra functionality in this project by adding
wireless communication to send values of sensors and status of
devices to someone which is not at remote location.

CODE :
http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

6/15

1/20/2016

Greenhouseintelligentcontrolsystem

//LCDmoduleconnections
sbitLCD_D7atRB2_bit;
sbitLCD_D6atRB3_bit;
sbitLCD_D5atRB4_bit;
sbitLCD_D4atRB5_bit;
sbitLCD_ENatRB6_bit;
sbitLCD_RSatRB7_bit;

sbitLCD_D7_DirectionatTRISB2_bit;
sbitLCD_D6_DirectionatTRISB3_bit;
sbitLCD_D5_DirectionatTRISB4_bit;
sbitLCD_D4_DirectionatTRISB5_bit;
sbitLCD_EN_DirectionatTRISB6_bit;
sbitLCD_RS_DirectionatTRISB7_bit;
//EndLCDmoduleconnections
//********************LRDvariables***************************
intlight=0;
charldr[7];
charon[6]="On";
charoff[7]="Off";
//************************temperaturevariables****************
inttemp;
chartemper[7];
//******************************frequencymetervariables*******
intvalue,freq,humidity;
charhumid[7];
intmoist=0;
charmoiste[7];
charfan_flag,pump_flag,light_flag,sprinkle_flag;
//**************************************************************
voidREAD_temp(void)
{
temp=ADC_Read(0);
temp=temp*0.4887;
if(temp>=35)
{
PORTD.F7=1;
fan_flag=1;
}
else
{
PORTD.F7=0;
fan_flag=0;
}
}
voidread_ldr()
{
unsignedintadc_value=0;
adc_value=ADC_Read(1);
light=100adc_value/10.24;
if(light>=92)//SWITCHofthelightwhenlightis90percent
{
http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

7/15

1/20/2016

Greenhouseintelligentcontrolsystem

PORTD.F6=0;
light_flag=0;
}
else
{
PORTD.F6=1;
light_flag=1;
}

}
voidREAD_MOISTURE()
{
moist=ADC_Read(2);
moist=moist*0.0048828125*1000;
if(moist>=2000)
{
PORTD.f5=1;
pump_flag=1;
}
else
{
PORTD.f5=0;
pump_flag=0;
}
}
voiddata_converstion(void)
{
inttostr(light,ldr);
inttostr(temp,temper);
inttostr(moist/50,moiste);
IntToStr(humidity,humid);
}
voiddisplay1(void)
{
lcd_out(1,1,"L=");
lcd_out(1,3,Ltrim(ldr));
Lcd_Chr_Cp('%');
Lcd_Chr_Cp('');
lcd_out(1,11,"H=");
lcd_out(1,13,Ltrim(humid));
Lcd_Chr_Cp('%');
Lcd_Chr_Cp('');
lcd_out(2,1,"T=");
lcd_out(2,3,Ltrim(temper));
Lcd_Chr_Cp(0xdf);
Lcd_Chr_Cp('C');
Lcd_Chr_Cp('');
lcd_out(2,11,"M=");
lcd_out(2,13,Ltrim(moiste));
Lcd_Chr_Cp('%');
http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

8/15

1/20/2016

Greenhouseintelligentcontrolsystem

Lcd_Chr_Cp('');
}
voiddisplay2(void)
{

Remember this is not a complete code, you can purchase


complete code from me by contacting me at
bilalmalikuet@gmail.com

Related Posts

digital
thermometer using
pic microcontroller
and MCP9700

zero crossing
detector circuit
using pic
microcontroller

HUMANOID
robotic ARM using
pic microcontroller

About The Author


Bilal Malik
we providing project services to students and
industry from last 2 years and working as a freelancer. I also
write technical articles related to electrical ,electronics,
http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

9/15

1/20/2016

Greenhouseintelligentcontrolsystem

embedded and power electronics Engineering. Contact me if


you need my project services. My email address:
bilalmalikuet@gmail.com

30 Comments
jos AUGUST 15, 2014
muy buen proyecto es un oroyecto muy
interesante .. no se si podrias pasarme la
informacion a mi correo por favor gracias
Reply

BILAL Malik AUGUST 15, 2014


Write your comment in English, I
dont understand your language.

Reply

julio cesar AUGUST 16, 2014


good project y would like
to be in contact with you
Reply

BILAL Malik
AUGUST 16, 2014

thanks.
sure you can
contact me on
my email ID
bilalmalikuet@gmail.com
Reply

idreesmuhamed OCTOBER 9, 2014


hello , can you send to me all details including the
codes ? and thanks for you .
Reply

M Saqib OCTOBER 18, 2014

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

10/15

1/20/2016

Greenhouseintelligentcontrolsystem

plz send code of green house intelligent control system.


thanks
Reply

QAMAR SHAIKH OCTOBER 19, 2014

HI, GR8 PROJECTS & SITE KEEP IT UP


CAN U PLS SEND ME THE COMPLETE
SIMULATION.CODE,CIRCUITS & PCB
FOR GREEN HOUSE INTELLIGENT CONTROL
SYSTEM
GOD BLESS YOU
REGARDS
ALLAH HAFIZ
QAMAR
KSA
Reply

umi farina NOVEMBER 10, 2014


hi, kindly can you email me your simulation,
schematic, codes for this project?
ill remember you in my prayers
Reply

Henry NOVEMBER 25, 2014


This is an interesting topic and a must do for pic
hobbyist. Good work
Reply

Henry NOVEMBER 25, 2014


please i am interested in the project. Can i get the
complete circuit and the source code? Thank you
in anticipation
Reply

jayr NOVEMBER 30, 2014


hello,,this project is so cool!! plz. can you send me
your simulation, codes, schematic for this cool
project,,,thanks and advance
Reply

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

11/15

1/20/2016

Greenhouseintelligentcontrolsystem

atif mehmood DECEMBER 3, 2014

i like ur project . sir can u send me this project all .


thk
Reply

flexo DECEMBER 11, 2014


hi can you send me the complete schematics with
the code thanks
Reply

smwal DECEMBER 30, 2014


hi please Iwant complete cct and source code
Reply

Javier H JANUARY 6, 2015


This is the project that i was looking for.
Could You please send me all information about
that.
rgds
Javier
Reply

smwal JANUARY 11, 2015


this project is very good iwant learn about it
Reply

Jony Nightfly JANUARY 13, 2015

Nice project, can you please provide schematic


,code and PCB of this project
Best Regards
Reply

joynal JANUARY 20, 2015


Hi,
nice. can you send me code. with pcb
Reply

Muremeri E.M. JANUARY 20, 2015


Good Project. I want to get the information.
Reply

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

12/15

1/20/2016

Greenhouseintelligentcontrolsystem

najye JANUARY 25, 2015


very nice project
thanks for your efforts
can you sen me full project
thank you
Reply

faiz FEBRUARY 6, 2015

I like this project .can you send to me the code


please. thank you
Reply

smwal FEBRUARY 13, 2015


Can i convert frequency to volt by lm331
Reply

faiz MAY 10, 2015

I like to made this project but I can not download


the code .can you send it to me .thank you
Reply

omar MAY 10, 2015


thank you this nice project pleas can yoy send me
the schematic and code.
Reply

hailegebrel nigussie JUNE 11, 2015


how can change .c file to . hex file?
Reply

hailegebrel JUNE 14, 2015


the code dose not convert to hex file.. so what is
the solution?
Reply

ku_az JULY 31, 2015


Hi,
i like this project.Can you send me all information
about this project.
Reply

Ei Ei Aung OCTOBER 23, 2015


http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

13/15

1/20/2016

Greenhouseintelligentcontrolsystem

I fall in love with this projectCan you send me all about it?
Reply

Bilal Malik OCTOBER 23, 2015

Everything is given in project above. But


of you want to purchase complete
project contact me at
bilalmalikuet@gmail.com
Reply

adugna JANUARY 8, 2016


This project is very important and helpful for those
who are engineering spatially computer
engineering .
10q for your effort to help us.
Reply

Leave a Reply
Comment Text*

Name*

Email*

Website

Post Comment
http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

14/15

1/20/2016

Greenhouseintelligentcontrolsystem

Notify me of follow-up comments by email.


Notify me of new posts by email.

RECENT POSTS
Electronic lock using pic microcontroller
HUMANOID robotic ARM using pic
microcontroller
Insulation materials used in transformers
GSM based home devices control system
MULTIPLE INPUT CHARGE CONTROLLER FOR
RENEWABLE ENERGY

Microcontrollers Lab Copyright 2016.

http://microcontrollerslab.com/greenhouseintelligentcontrolsystem/

POPULAR POSTS

SUBSCR

Electronic lock using pic


microcontroller
December 23, 2015

No Comments

PAGES

Contac

privacy

Project

Sitema

Sitemap

15/15

También podría gustarte