1/20/2016
HOME
Gr een house intel li gent contr ol system
PROJECTS
G GE ENERAL ARTICLES
TUTORIALS
PROJECT IDEAS
PROJECT SERVICES
Green house intelligent control system
ADVERTISEMENT
BILAL Malik
A Au ugust 13, 2014 PIC microcontrollers 30 Comments
Green house house intelligent control system is designed to protect protect the plants plants from more cool c ool and hot weather and additional addit ional control system is included to save save power by making fans and lights automatically turn on and off with the help of intelligent control system. In this project 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 growth and more productivity, therefore therefore farmer should should provide them the proper quantity of water. But it’s 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 a intelligent control system.
PLEASE SUPPORT OUR WORK Our goal is to discover new solutions and provide working examples with
http://mi cr ocontr ol ler sl ab.com/gr een- house- intel l igent- contr ol - system /
1/15
1/20/2016
Green house intelligent control system
Page Contents [hide]
video, pictures, code and schematics. Please
0.1 Main functionality of project
support our efforts.
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 of schematic of green house system :
SUBSCRIBE TO BLOG VIA EMAIL
0.3.0.2 Applications and future advancements :
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
Join 261 other subscribers
house intelligent control system. Four sensors are used to measure different parameters of green house system which
Email Address
includes temperature sensor, light sensor, humidity sensor, moisture sensor. Four relays are used to control four respective
Subscribe
loads as given below:
LM35
SENSOR :
When
temperature
becomes
greater
than
25
degree,
respective relay become energize to operate the fan and when temperature becomes lower than 20-degree relay turn off the fan
by
getting
PIC16F877A
control
signals from
FIND US ON FACEBOOK
microcontroller.
microcontroller analog to digital converter
module is used to read temperature value and to operate relay
Microcontrollers 6,145 likes
which in turn operate the fan. To know more about temperature sensor and its working, go through the following article : Like Page
DIGITAL
TEMPERATURE
SENSOR
USING
PIC
MICROCONTROLLER
Be the first of your friends to like
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.
RELATED POSTS
PIC16F877A microcontroller is used to measure intensity of
Digital humidity
light. When intensity of light fall under a certain limit,
sensor using
microcontroller provide signal to relay to turn on light and when
PIC
http://microcontrollerslab.com/green-house-intelligent-control-system/
2/15
1/20/2016
Green house intelligent control system
intensity of light raise upto a certain limit , microcontroller
microcontroller …
provide signal to relay to turn off fan. So light sensor is used to add automatic light switching functionality in the green house
alternating
system, if you don’t have much money to afford a gardener,
current
then you can use green house intelligent control system to
measurement
make your green house self-operating.
using pic microcontroller …
HS1101 HUMIDITY SENSOR :
Speed control
Humidity sensor is used to check level of moisture in air
of DC motor
Because greater or less humidity level in air can also effect
using
growth of plants. Humidity sensor HS1101 is used to measure
microcontroller
level of moisture in air. HS1101 is a capacitative type humidity
part 2 …
sensor, So additional circuit is used to convert change in capacitance of humidity sensor into frequency and frequency
Digital
is measured with the help of microcontroller. Measured
Ammeter
frequency is converted back into humidity using a algorithm in
circuit using pic
microcontroller programming. To know more about humidity
microcontroller …
sensor and its working, I suggest you to go through following
Speed control
article :
of DC motor
DIGITAL
HUMIDITY
SENSOR
USING
using PIC
PIC
microcontroller
MICROCONTROLLER
part 1 … If
humidity
becomes
greater
than
a
specified
limit,
microcontroller gives a signal to respective relay to turn on
MULTIPLE
sprinter which is used to maintain a humidity level in the air and
INPUT CHARGE
when
CONTROLLER
humidity
level
comes
back
to
a
normal
limit,
microcontroller gives a signal to respective relay to turn off sprinter.
MOISTURE SENSOR :
FOR RENEWABLE ENERGY … metal detector robot using pic
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,
microcontroller …
the resistance of wire strip starts decreasing and similarly when
DS18S20
moisture decreases, resistance become higher. PIC16F877A
interfacing with
used to measure moisture level and to turn on and off water
pic and avr
pump with the help of relay.
microcontroller …
Block diagram of complete project is shown below:
http://microcontrollerslab.com/green-house-intelligent-control-system/
3/15
1/20/2016
Green house intelligent control system
block digram of green house system
SIMULATION : For simulation purpose, I have connected four LED’s 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/green-house-intelligent-control-system/
4/15
1/20/2016
Green house intelligent control system
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/green-house-intelligent-control-system/
5/15
1/20/2016
Green house intelligent control system
schematic of green house system In above schematic of green house system, blue arrow shows connection for senors and back arrow shows relay and lcd connection point. PCB DIAGRAM OF SCHEMATIC 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/green-house-intelligent-control-system/
6/15
1/20/2016
Green house intelligent control system
// LCD module connections sbit LCD_D7 at RB2_bit; sbit LCD_D6 at RB3_bit; sbit LCD_D5 at RB4_bit; sbit LCD_D4 at RB5_bit; sbit LCD_EN at RB6_bit; sbit LCD_RS at RB7_bit;
sbit LCD_D7_Direction at TRISB2_bit; sbit LCD_D6_Direction at TRISB3_bit; sbit LCD_D5_Direction at TRISB4_bit; sbit LCD_D4_Direction at TRISB5_bit; sbit LCD_EN_Direction at TRISB6_bit; sbit LCD_RS_Direction at TRISB7_bit; // End LCD module connections //********************LRD variables***************** int light= 0; char ldr[7]; char on[6]="On "; char off[7]="Off "; //************************temperature variables**** int temp; char temper[7]; //******************************frequency meter var int value,freq,humidity; char humid[7]; int moist=0; char moiste[7]; char fan_flag,pump_flag,light_flag,sprinkle_flag; //************************************************* void READ_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; } } void read_ldr() { unsigned int adc_value=0; adc_value=ADC_Read(1); light = 100 ‐ adc_value/10.24; if(light>=92) // SWITCH of the light when light is { http://microcontrollerslab.com/green-house-intelligent-control-system/
7/15
1/20/2016
Green house intelligent control system
PORTD.F6=0; light_flag=0; } else { PORTD.F6=1; light_flag=1; }
} void READ_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; } } void data_converstion(void) { inttostr(light,ldr); inttostr(temp,temper); inttostr(moist/50,moiste); IntToStr(humidity, humid); } void display1(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/green-house-intelligent-control-system/
8/15
1/20/2016
Green house intelligent control system
Lcd_Chr_Cp(' '); } void display2(void) {
Remember this is not a complete code, you can purchase complete
code
from
me
by
contacting
me
at
[email protected]
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 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/green-house-intelligent-control-system/
9/15
1/20/2016
Green house intelligent control system
embedded and power electronics Engineering. Contact me if you need my project services. My email address:
[email protected]
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 don’t 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@g 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/green-house-intelligent-control-system/
10/15
1/20/2016
Green house intelligent control system
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? i’ll 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/green-house-intelligent-control-system/
11/15
1/20/2016
Green house intelligent control system
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/green-house-intelligent-control-system/
12/15
1/20/2016
Green house intelligent control system
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/green-house-intelligent-control-system/
13/15
1/20/2016
Green house intelligent control system
I fall in love with this project…Can 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
[email protected] 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/green-house-intelligent-control-system/
14/15
1/20/2016
Green house intelligent control system
Notify me of follow-up comments by email. Notify me of new posts by email.
RECENT POSTS
POPULAR POSTS
SU
Electronic lock using pic microcontroller
Electronic lock using pic
HUMANOID robotic ARM using pic
microcontroller
microcontroller
December 23, 2015
PA No Comments
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/green-house-intelligent-control-system/
p P S
S
15/15