project report (autosaved)
TRANSCRIPT
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 1/78
GREENHOUSE MONITORING SYSTEM
CHAPTER 1
INTRODUCTION
We live in a world where everything can be controlled and
DOEACC CENTRE 1
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 2/78
GREENHOUSE MONITORING SYSTEM
operated automatically, but there are still a few important sectors in our
country where automation has not been adopted or not been put to a fully fledged
use, perhaps because of several reasons one such reason is cost. One such field is
that of agriculture. Agriculture has been one of the primary occupations of mansince early civilizations and even today manual interventions in farming are
inevitable. Greenhouses form an important part of the agriculture and horticulture
sectors in our country as they can be used to grow plants under controlled
climatic conditions for optimum produce. Automating a greenhouse envisages
monitoring and controlling of the climatic parameters which directly or indirectly
govern the plant growth and hence their produce. Automation is process control of
industrial machinery and processes, thereby replacing human operators.
CURRENT SCENARIO
Greenhouses in India are being deployed in the high altitude regions wherethe sub-zero temperature up to -!" # ma$es any $ind of plantation almostimpossible and in arid regions where conditions for plant growth are hostile. %hee&isting set-ups primarily are'
MANUAL SETUP:
%his set-up involves visual inspection of the plant growth, manual irrigation of
plants, turning O( and O)) the temperature controllers, manual spraying of the
fertilizers and pesticides. It is time consuming, vulnerable to human error and hence
less accurate and unreliable.
PARTIALLY AUTOMATED SETUP'
%his set-up is a combination of manual supervision and partial automationand is similar to manual set-up in most respects but it reduces the labour involved in
terms of irrigating the set-up.
FULLY AUTOMATED:
%his is a sophisticated set-up which is well e*uipped to react to most of the
climatic changes occurring inside the greenhouse. It wor$s on a feedbac$ system
which helps it to respond to the e&ternal stimuli efficiently. Although this set-up
DOEACC CENTRE 2
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 3/78
GREENHOUSE MONITORING SYSTEM
overcomes the problems caused due to human errors it is not completely automated
and e&pensive.
PROPOSED MODEL FOR AUTOMATION OF GREENHOUSE%he proposed system is an embedded system which will closely monitor and
control the microclimatic parameters of a greenhouse on a regular basis round the cloc$
for cultivation of crops or specific plant species which could ma&imize their
production over the whole crop growth season and to eliminate the difficulties
involved in the system by reducing human intervention to the best possible
e&tent. %he system comprises of sensors, microcontroller and li*uid crystal
display.
When any of the above mentioned climatic parameters cross a safety
threshold which has to be maintained to protect the crops, the sensors sense the
change and the microcontroller reads this from the data at its input ports
after being converted internally to a digital form by the internal A+# of the
microcontroller. %he microcontroller then performs the needed actions by
employing relays until the strayed out parameter has been brought bac$ to itsoptimum level. ince a microcontroller is used as the heart of the system, it ma$es
the setup low cost and effective never the less. As the system also employs a #+
display for continuously alerting the user about the condition inside the
greenhouse, the entire setup becomes user friendly.
%hus, this system eliminates the drawbac$s of the e&isting setups mentioned in
the previous section and is designed as an easy to maintain, fle&ible and low costsolution.
DOEACC CENTRE 3
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 4/78
GREENHOUSE MONITORING SYSTEM
CHAPTER 2
BLOCK DIAGRAM
DOEACC CENTRE 4
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 5/78
GREENHOUSE MONITORING SYSTEM
)ig. shows bloc$ diagram of our proect /greenhouse monitoring and control system0. %hisproect consists of following bloc$s'
ensors.a1 %emperature sensor.
b1 ight sensor.c1 2umidity sensor.
d1 3oisture sensor.
3icrocontroller unit.
ignal conditioning circuit.
45&6 #+ display.
+river circuit 78elays1
a1 %emperature relay.
b1 2umidity relay.
c1 ight relay.
d1 oil moisture relay
9eyboard
:ower supply.
CHAPTER 3
BLOCK DIAGRAM DESCRIPTION
DOEACC CENTRE 5
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 6/78
GREENHOUSE MONITORING SYSTEM
Sensors
ensor are basically use to convert physical *uantity in electrical form there aredifferent sensor are available for various physical *uantity. In our proect wecontrol four parameters they are %emperature, light, humidity, moisture .)or thisfour parameters we use four different sensors.
a Te!"era#$re sensor%We are going to use 3;< for measuring temperature as it gives output in analog
form and re*uire critical signal conditioning. (ational semiconductor=s 3;< I#
has been used for sensing the temperature. It is an integrated circuit sensor that canbe used to measure temperature with an electrical output proportional to the
temperature 7in "#1. %he temperature can be measured more accurately with it than
using a thermistor. %he operating circuit is shown in figure. %he output voltage of
3;< is converted to temperature in "#.
%emp.7"#1 > 7 ?4!!1@4 "#
)igure' %emperature sensor circuit
& H$!'('#) sensor
We are going to use type (2- humidity sensor use in air conditioner system this
sensor since surrounding relative humidity and convert it in mille volt.
DOEACC CENTRE 6
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 7/78
GREENHOUSE MONITORING SYSTEM
)igure' 2umidity sensor circuit
* L'+,# sensor%
3ost common way to convert light intensity in to electrical form is +8
7ight dependent resistor1. %his special resistor gives change in resistance with
respect to change in light. %his +8 can be used in combination with variable
resistance to ma$e a voltage divider circuit.
( So'- !o's#$re sensor%
%o sense moisture in soil, carbon material rod can give change in
continuity with respect to water. %his is further connected to logic gates so when
moisture is full water pump is off.
A#!e+a. /M'*ro*on#ro--er
DOEACC CENTRE 7
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 8/78
GREENHOUSE MONITORING SYSTEM
)igure' :in out of Atmega
We have chosen this microcontroller because of its following features -
2igh-performance, ow-power AB8C-bit 3icrocontroller
Advanced 8I# Architecture
:owerful Instructions D 3ost ingle-cloc$ #ycle E&ecution
;6 & General :urpose Wor$ing 8egisters
)ully tatic Operation
Fp to 45 3I: %hroughput at 45 32z
On-chip 6-cycle 3ultiplier
H'+, En($ran*e Non0o-a#'-e Me!or) se+!en#s 9 ytes of In-ystem elf-programmable )lash program memory
<46 ytes EE:8O3
49 yte Internal 8A3 Write@Erase #ycles' 4!,!!! )lash@4!!,!!! EE:8O3
+ata retention' 6! years at <"#@4!! years at 6<"#
Optional oot #ode ection with Independent oc$ its
In-ystem :rogramming by On-chip oot :rogram
%rue 8ead-While-Write Operation
:rogramming oc$ for oftware ecurity
Per'",era- Fea#$res %wo -bit %imer@#ounters with eparate :rescaler, one #ompare 3ode
One 45-bit %imer@#ounter with eparate :rescaler, #ompare 3ode, and#apture
DOEACC CENTRE 8
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 9/78
GREENHOUSE MONITORING SYSTEM
3ode
8eal %ime #ounter with eparate Oscillator
%hree :W3 #hannels
-channel A+# in %H): and H)(@3) pac$age
Eight #hannels 4!-bit Accuracy 5-channel A+# in :+I: pac$age
i& #hannels 4!-bit Accuracy
S'+na- *on('#'on'n+ *'r*$'#%his bloc$ includes signal conditioning circuits for all the sensors.
12 L'4$'( Cr)s#a- D's"-a) Mo($-e
)igure' #+ interface
%o show parameter such as temperature, light intensity, humidity,moisture. We use Alpha numeric display instead of segment #+ displaybecause on segment reading and writing alphanumeric such as J,H,W,3 is *uitedifficult so we use alphanumeric display which has two column of 45 charactereach i.e. we can write up to ;6 characters.
Dr'er *'r*$'#
DOEACC CENTRE 9
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 10/78
GREENHOUSE MONITORING SYSTEM
)igure' +river circuit
8elay is basically a switching device to turn on or turn off particular devices. In
our proect we use electromagnetic type induction relay operated at 46v dc thefunction of this relay is as follows'
a Te!"era#$re re-a)
%his relay turns on or off air conditioning system so that surrounding temp is
maintained at that particular temperature.
& H$!'('#) re-a)
%his relay can turn on or off air condition system or fogger so that
relative humidity is constant.
* L'+,# re-a)
%his relay can turn on or off surrounding electrical light bulb so that
light intensity is constant in room.
( Mo's#$re re-a)
%his unit can turn on or off water pump according to sensing of relative moisture.
Ke)"a(
%here are switches to select the parameter and set the value of parameter.
DOEACC CENTRE 10
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 11/78
GREENHOUSE MONITORING SYSTEM
Po5er s$""-)
)igure' :ower supply
)or all I#, we re*uire < v +.#., K46v dc,-46v dc supply which can be generated by
step down transformer, full wave bridge rectifier, filter condenser and voltage
regulator I#. %wo supply voltages are re*uired for the circuit. A +# or A# 46B
mains adapter is connected to bridge rectifier 7+4- +1 via #( connector.
A%megais supplied with a regulated <B from a !< fi&ed voltage regulator. %he
unregulated voltage of appro&imately 46B is re*uired for the relay driving circuit.
DOEACC CENTRE 11
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 12/78
GREENHOUSE MONITORING SYSTEM
CHAPTER6
CIRCUIT 7ORKING AND
OPERATION
DOEACC CENTRE 12
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 13/78
GREENHOUSE MONITORING SYSTEM
Greenhouse monitoring system specially made for to control the
greenhouse environment. %he circuit has two main functions, monitoring and
control. It can measure humidity,temperature,light intensity and soil moisture.
%here is a microcontroller A%3EGA wich constantly monitors all the inputs of
the sensors and simultaneously controlles the output. %emperature sensor 3;<
gives analog output according to the variation and temperature. %he +8 is
interfaced with the microcontroller according to the levels of light intensity in
numeric form. It shows bright, dim or mid. We are using :O% to vary the humidity
input signal. %here are two copper probes to be immersed in a soil according to the
continuity between the copper probes, it detects the soil moisture. Fsing $eypad
we can set the values of the four parameters. According to the set values of the
parameters , the output devices are O( and O)). %herefore the environment is
controlled for temperature , humidity, soil moisture and light intensity.
DOEACC CENTRE 13
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 14/78
GREENHOUSE MONITORING SYSTEM
CHAPTER 8
SCHEMATIC DIAGRAM
DOEACC CENTRE 14
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 15/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 15
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 16/78
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 17/78
GREENHOUSE MONITORING SYSTEM
To *a-*$-a#e a-$e o9 9'-#er *a"a*'#or:0)or calculating the filter capacitor we use the following formula# > <i @ Bpf 741Where, # > value of filter capacitor
i > load currentf > fre*uency of A# supplyBp > bridge output
ince we are using 3!< the dropout voltage for 3!< is 7min. value1 6BAnd allowing 4!L of ripple we get the value of Bp as D Bp > <K6K!.> K!.Bp > .B
%he supply is designed such that it provides a load current of 4A.I > 4A
%he fre*uency of the A# supply is <!2z substituting these values in e*. no. 741We get the value of # as# > !.!4; )ut this value of # is very large and in such cases we can use two capacitorsAnd connect them in parallel.o we choose the two values as#4 > !.4μ) and #6 > 4!!! μ)2ence # > !.!!4 )(ow the voltage rating of the capacitor should not be less than
DOEACC CENTRE 17
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 18/78
GREENHOUSE MONITORING SYSTEM
4. ? Brms 761Where Brms is the secondary voltage of the transformer and it is 46Bubstituting the value in e*. 761We get 45.B thus we choose #6 as an electrolytic capacitor with voltage rating45B.
Re*#'9'er Ra#'n+s:-41 %he ma&imum average current 7I1 should not be less than ma&imum load#urrent 7I1. ut I > 4A thus we select I > I > 4A61 :ea$ inverse voltage rating 7Brms1 should not be less than 6. ? Brms plusA safety margin upto <!L higher to allow for line transients thus if we%a$e Brrm > 4!!!B we get after solving about <;;.5B.6!
;1 et 8s be the source resistance due to transformer winding and let its min.Balue be 8sm > !<M the ma&imum instantaneous surge current is given by
74. Brms D 4.<1 @ 8sm 7;14.< is subtracted because of voltage loss in the bridge.%hus I)3 is calculated to be ;!.5A by substituting the values in e*. no. 7;1%hus for the rectifier we choose diodes I(!!.
APPLICATIONS:041 %his circuit is eminently suitable as an electronic door loc$.61 %his circuit can be used as the switching section of a burglar alarm.;1 %his circuit can be used as an ignition bloc$ing device.
CHAPTER
PCB DESIGNDOEACC CENTRE 18
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 19/78
GREENHOUSE MONITORING SYSTEM
:# designing is very important part in whole proect. A wrong
:# design may cause electromagnetic interference, noise, ordisturbance. As this proect is access control system related so there arestrict border of accuracy so any e&ternal interference or faulty design or
neglecting rule should not there.
:# designing can be done either manually or on computer. +esigning a
:# using software is recommended practice, because it saves designertime, it improves accuracy to great e&tent, it re*uires less efforts.
)or designing we have used #A+%A8 software, it is widely used :#
designing software. While using #A+%A8 software designer shouldta$e care of following things'
4. #omponent of similar type should be placed in group.6. #omponent arrangement should be from left to right
horizontally N top to bottom vertically.;. Arrange components in systematic order, referring circuit.
. #omponent for internal adustments such as I8 sensor,switches etc. should be arranged near the board edge.
<. %a$e care of stray capacitance.5. 9eep the signal path as short as possible.
. upply trac$s 7vcc, gnd1 should have sufficient width.. Analog and digital circuits on the same :# should have
independent ground networ$.
. %rac$s should not overlap over each other.4!. %rac$ should have angle of <".
DOEACC CENTRE 19
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 20/78
GREENHOUSE MONITORING SYSTEM
APOF% )O8 G8EE(2OFE 3O(I%O8I(G P%E3
DOEACC CENTRE 20
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 21/78
GREENHOUSE MONITORING SYSTEM
:# +EIG( )O8 G8EE(2OFE 3O(I%O8I(G P%E3
DOEACC CENTRE 21
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 22/78
GREENHOUSE MONITORING SYSTEM
I9#8EE( +8AWI(G
DOEACC CENTRE 22
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 23/78
GREENHOUSE MONITORING SYSTEM
O+E8 3A9 +8AWI(G
CHAPTER .DOEACC CENTRE 23
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 24/78
GREENHOUSE MONITORING SYSTEM
PCB FABRICATION
%1 Ne+a#'e +enera#'on
%1%1 Re4$'re!en# 9or ne+a#'e +enera#'on ith film, reprographic camera, developer solution, fi&erolution, stop bath.%1%2 Pro*ess o9 ne+a#'e +enera#'on
#lean the upper and lower bed of camera with the cotton cloth.
%a$e two trays with 6<!ml water in each of them ta$e third tray and ta$e*uic$ fi&er solution in it.
9eep artwor$ on lower bed of camera on focuses of camera switch of lightschec$ dimensions on upper bed change distance between two beds to setscale.
witch off flashes of camera cut lith film and put emulsion side facingtowards lower side and apply vacuum
. E&pose for 45 second. %a$e grams of each of developer A and in firsttray.
%a$e 6-; drops of acetic acid in second tray and this will be stop bath.
(ow ta$e 6<!ml fi&er. (ow turn off vacuum ta$e out film dip into
developer and sha$e tray gently soon you will see result. %ime of developing depends on solution temperature and solution
concentration.
DOEACC CENTRE 24
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 25/78
GREENHOUSE MONITORING SYSTEM
8ole of visual inspection is very important for this stage. 8inse film in
water and put it in stop bath again rinse film and put it in fi&er for almost <-4!min.
%his will generate negative from artwor$.
%his film is highly sensitive to light so it should be saved from light. +evelopingtime should be correct as under developed film causes shorted trac$s and overdeveloped film causes open trac$s. 8insing is necessary after each stapes used innegative generation. )inally generated negative is not sensitive to light it can bepreserved for 4-6 years.
%2 GENERATION OF PCB
%2%1 CLEANING#leaning is very important stage as if any impurity remains on board there will bedefinitely faulty transfer. Generally cleaning is done with washing powder andscrubber and this process of cleaning is $nown as manual cleaning. After cleaningboard is $ept into oven.
%2%2 COATING%o ma$e board sensitive to light it is coated with :84!6! 7li*uid photo resist1.Biscosity of :8 plays important role in coating to ma$e solution thin thinner canbe added.
%2%3 E;POSINGIn this stage lith film is placed on coated board and e&posed to ultraviolet light forappro&imately min.
%2%6 DE<ELOPINGoard is developed in :8 developer for 4';! min. after developingQ board isdipped in to dye.
%2%8 ETCHINGEtching is chemical process of removing unwanted copper from a developedboard. Etching time depends upon solution temperature and solution concentration.After etching :8 coating and dye is removed by striping solution.
%2% CUTTINGIn this process board is cut to final size.
%2% DRILLING
oard is drilled with high speed drilling machine for insertion of leads ofcomponents.
DOEACC CENTRE 25
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 26/78
GREENHOUSE MONITORING SYSTEM
%2%. TINNING+rilled board is coated with li*uid flu&, soldering metal is heated to propertemperatureQ and board is dragged from soldering bath gently and cleaned withisopropyl alcohol.
%inning process increases solder ability of board, protect copper from corrosion,increases mechanical strength, increases conductivity of board.
%2%= SOLDERING)irstly clean soldering pads insert component lead gently hold soldering iron and
metal together, ta$e metal out than iron. 9eep angel of iron between ! -6! .
DOEACC CENTRE 26
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 27/78
GREENHOUSE MONITORING SYSTEM
CHAPTER =
SPECIFICATIONS
SR%NO COMPONENTS RATINGS >UANTITY
?1 8EI%O8 7 49 1 7 49 1 ?2 8EI%O8 7 4! 9 1 7 4! 9 1 6
?3 8EI%O8 7 5! ohms1 7 5! ohms 1 4
?6 #A:A#I%O8 7 66!μf, 6<v 1 7 66!μf, 6<v 1 4
?8 F(6!!; F(6!!; 4
? ridge rectifier7 W!G 1 7W!G1 4
? E+
?. A% 3EGA A%mega 4
?= 3 !< 3!< 4
1? # < #< 611 8EAP 7 46B dc1 :+% 46B
12 I.# O#9E%74 pin1 4 :I( +I: 6
13 I.# O#9E%745 pin1 45 :I( +I: 4
16 9EP:A+7;&41 ;J4matri& 4
18 #+745&6 dot matri&1 45&6 dot matri& 4
1 :# 7glass epo&y1 44!mm&!mm 4
1 #O((E#%O8745 :I(1 ip 4
1. #O((E#%O87; :I(1 ip 5
1= #O((E#%O876 :I(1 ip 6
2? 3;< 3;< 4
DOEACC CENTRE 27
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 28/78
GREENHOUSE MONITORING SYSTEM
21 +8 7<mm1 +8 4
22 :8EE% 74!91 4!9 4
23 :F2 %O O( WI%#2E - ;
26 A+A:%E8 746B1 46B 4
28 A+A:%E8 3A%I(G :A8% - 42 :OWE8 O( WI%#2 - 4
CHAPTER 11
COSTING @ ESTIMATION
DOEACC CENTRE 28
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 29/78
GREENHOUSE MONITORING SYSTEM
#osting and estimation is necessary to $now the capability of
our product with the e&isting product in the mar$et.
METHODOLOGY
%here are three steps of costing and estimation those are'
• In'#'a- es#'!a#'on
%his estimation is done before producing the product. It is guide to get
rough idea of the product cost.
• Ha-9 "o#en#'a- "roe*# !e#,o(
%his estimation is done after completing some part of product to chec$whether estimation is correct or wrong. %he errors produced will be
eliminated during this estimation. It also $eeps trac$ with economicalfeasibility of the manufacturing process.
• Es#'!a#'on a9#er *o!"-e#'on o9 "ro($*#
A prototype is made before actual mass production to get as ideafeasibility of the product, hence some modification in circuit or
enclosure is possible. o as to get the e&act costing and estimation isdone after the prototype is made.
In costing and estimation the cost compromises of the followingelements'
4. +evelopment cost6. +irect material cost
;. %echnology N production cost. Overheads
%he product e&ecution at +OEA## is done at prototype levelN not on prototype level N not on the production level, hence we can
ta$e only material cost into account. )or estimation it is necessary togenerate process routine, process routine is generated because it gives
idea to producer about se*uence of operation, so that product can beproduced according to process routines.
%he process routine contains following information'4. %he se*uence operations necessary to produce the product.
6. +epartment in which the operation ta$es place.;. %he machine on which the operation to be completed.
DOEACC CENTRE 29
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 30/78
GREENHOUSE MONITORING SYSTEM
. A brief description of operation to be completed.
<. %he shop order corresponding to the operation.
SR%NO COMPONENTS >TY% RATE TOTAL
1 8EI%O8 7 49 1 10 60
2 8EI%O8 7 4! 9 1 6 10 203 8EI%O8 7 5! ohms1 4 10 10
6 #A:A#I%O8 7 66!μf, 6<v 1 4 80 80
8 F(6!!; 4 180 180
ridge rectifier7 W!G 1 4 1?0 1?0
E+ 20 .0
. A% 3EGA 4 18?0 18?0
= 3 !< 4 1?0 1?0
1? # < 6 80 1?0
11 8EAP 7 46B dc1 :+% 2?0 .?012 I.# O#9E%74 pin1 6 80 1?0
13 I.# O#9E%745 pin1 4 80 80
16 9EP:A+7;&41 4 2?0 2?0
18 #+745&6 dot matri&1 4 12?0 12?0
1 :# 7glass epo&y1 4 3?0 3?0
1 #O((E#%O8745 :I(1 4 2?0 2?0
1. #O((E#%O87; :I(1 5 80 3?0
1= #O((E#%O876 :I(1 6 60 .0
2? 3;< 4 680 680
21 +8 7<mm1 4 1?0 1?0
DOEACC CENTRE 30
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 31/78
GREENHOUSE MONITORING SYSTEM
22 :8EE% 74!91 4 0 0
23 :F2 %O O( WI%#2E ; 80 180
26 A+A:%E8 746B1 4 18?0 18?0
28 A+A:%E8 3A%I(G :A8% 4 0 0
2 :OWE8 O( WI%#2 4 1?0 1?0 TOTAL Rs% ?0
CHAPTER 12
APPLICATIONS ANDAD<ANTAGES
DOEACC CENTRE 31
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 32/78
GREENHOUSE MONITORING SYSTEM
A""-'*a#'ons:
%he greenhouse monitoring system can control the greenhouse environment set at
particular values. %his product is specially made artificial greenhouses which use
air conditioning systems, incandescent bulbs, fogger and drip irrigation. :lants can
be grown in controlled for a healthy life.
A(an#a+es:
:lant grown in controlled environment will be healthy.
It is easy to use
It can be used for any plant as it can be set to any value of the parameter.
ow cost and user friendly.
+ecrease labour cost.
ave time as there will be no need to chec$ temperature, humidity, light
intensity and soil moisture.
It is easy for maintenance.
DOEACC CENTRE 32
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 33/78
GREENHOUSE MONITORING SYSTEM
CHAPTER 13
PROGRAMMING DESIGN
Rinclude [email protected]
@@Rinclude Sstdio.hT
Rinclude Sstring.hT
Rinclude SavrUeeprom.hT
Rinclude SutilUdelay.hT
Rinclude Vlcd.hV
Rdefine fogger 4@@:+!
DOEACC CENTRE 33
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 34/78
GREENHOUSE MONITORING SYSTEM
Rdefine lamp 6@@:+4
Rdefine heater @@:+6
Rdefine pump @@:+;
Rdefine Out:ort :O8%+
Rdefine ampMO))71 7Out:ort N> 74SS:+411
Rdefine ampMO(71 7Out:ort X> 74SS:+411
Rdefine 2eaterMO))71 7Out:ort N> 74SS:+611
Rdefine 2eaterMO(71 7Out:ort X> 74SS:+611
Rdefine )oggerMO))71 7Out:ort N> 74SS:+!11
Rdefine )oggerMO(71 7Out:ort X> 74SS:+!11
Rdefine :umpMO))71 7Out:ort N> 74SS:+;11
Rdefine :umpMO(71 7Out:ort X> 74SS:+;11
void how3ain3enu71Q
void et%emp71Q
void et8h71Q
void etlight71Q
void :umpMonMoff71Q
void chec$Malrm71Q
unsigned int $u,$$Q
uintMt temp,tempMset,rh,rhMset,pump,pumpMset,temp4,3emYZQ
uintMt light,lightMset,mystrYZQ
void delayMms7unsigned int de1
[
unsigned int rr,rr4Q
for 7rr>!QrrSdeQrrKK1
[
for7rr4>!Qrr4S!!Qrr4KK1 @@;<
[
asm7VnopV1Q
DOEACC CENTRE 34
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 35/78
GREENHOUSE MONITORING SYSTEM
\
\
\
int readMadc7char ch1
[
A+3FJ > 7!b!4!!!!!! X ch1Q
A+#8A > !&#Q
while 7]7A+#8A N 74SSA+I)111Q
$u > A+#Q
A+#8A X> 4SSQ
@@$u > 7$p @ 6<<1 ^ 4!!!Q
return $uQ
\
void Wait71
[
uintMt iQ
for7i>!QiS6!QiKK1
MdelayMloopM67!1Q
\
uintMt :8EBM:I(#>!&))Q
^@ )unction to test the current status of $eys7! to 61
returns
! if (O% pressed
4 if :ressed ^@
uintMt Get9eytatus7uintMt $ey1
[
return 7]7:I(# N 74SS$ey111Q
\
@^
DOEACC CENTRE 35
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 36/78
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 37/78
GREENHOUSE MONITORING SYSTEM
#+Writetring7V Anil 9umar V1Q
#+WritetringJP7!,4,V 76!!@+@<1 V1Q
delayMms74!!!1Q
@@eepromMreadMbloc$77void^1N8A3string, 7const void^1N(onBolatiletring, 4!1Q
eepromMreadMbloc$77void^1N3em, 7const void^14, 1Q
tempMset > 3emY!ZQ
rhMset > 3emY4ZQ
lightMset > 3emY6ZQ
pumpMset > 3emY;ZQ
++8# > !&!!Q
@@:O8%#X>774SS:#51X74SS:#<1X74SS:#11Q
++8+ > !b!!!!4444Q
:O8%#X>774SS:#<1X74SS:#11Q
while741
[
uintMt iQ
float $pQ
#+#lear71Q
#+Writetring7V%' # '+ryV1Q
#+WritetringJP7!,4,V82' L '+imV1Q
$p > readMadc7!1Q
$$ > $pQ
$p > 77$p @ 61 ̂ 4!1Q @@ %emp reading
#+WriteIntJP7;,!,$p,;,41Q @@ )loat value
if7$$ T tempMset1
2eaterMO))71Q @@2eater O))
else
2eaterMO(71Q @@2eater O(
$$ > readMadc741Q @@ 82 reading
DOEACC CENTRE 37
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 38/78
GREENHOUSE MONITORING SYSTEM
$p > $$Q
$p > 7$p @ 4!6;1 ^ 4!!!Q
#+WriteIntJP7;,4,$p,,41Q
if7$$ T rhMset1
)oggerMO))71Q @@)ogger O))
else
)oggerMO(71Q @@)ogger O(
$$ > readMadc761Q
$p > $$Q @@ ight reading
$p > 77$p @ 4!6;1 ^ 4!!1Q
$$ > $pQ
@@#+WriteIntJP7;,4,$$,;,!1Q
if7$$ S 5!1[
#+WritetringJP746,4,VriV1Q
ampMO))71Q @@ight O))
\
else if775! S $$1 NN 7$$ S !11[
#+WritetringJP746,4,V3idV1Q
ampMO))71Q @@ight O))
\
else if7$$ T 41[
#+WritetringJP746,4,V+imV1Q
ampMO(71Q @@ight O(
\
if77:I(# N !&!11[
#+WritetringJP746,!,V+ryV1Q
:umpMO(71Q @@:ump O(
\
DOEACC CENTRE 38
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 39/78
GREENHOUSE MONITORING SYSTEM
if7]7:I(# N !&!11[
#+WritetringJP746,!,VWetV1Q
:umpMO))71Q @@:ump O))
\
@@#+WritetringJP7!,4,V82' L '+imV1Q
@@8ead adc and update display
@@Wait ome time and $eep testing $ey input
for7i>!QiS6!QiKK1
[
if7Get9eytatus7<11
[
@@Go %o 3ain 3enu
how3ain3enu71Q
MdelayMloopM67!1Q
MdelayMloopM67!1Q
MdelayMloopM67!1Q
\
MdelayMloopM67<!!!1Q
\
\
\
@@--------------------------------------------------------------------------------------------------@@
void how3ain3enu71
[
@@%he 3ain 3enu
char ^menuMitemsYZ>[ Vet %empV,
Vet 8hV,
Vet ightV,
Vet :umpV,
DOEACC CENTRE 39
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 40/78
GREENHOUSE MONITORING SYSTEM
VHuitV
\Q
uintMt menuMcount><Q
uintMt selected>!Q
MdelayMloopM67!1Q
MdelayMloopM67!1Q
while741
[
#+#lear71Q
#+Writetring7V 3ain 3enu V1Q
#+WritetringJP76,4,menuMitemsYselectedZ1Q
#+WritetringJP7!,4,VSV1Q
#+WritetringJP74<,4,VTV1Q
if7Get9eytatus7<11
[
@@eft 9ey7(o 41 is pressed
@@#hec$ that it was not pressed previously
if7]Get:rev9eytatus7<11
[
if7selected ]>!1
selected--Q
\
\
if7Get9eytatus711
[
@@8ight 9ey7(o !1 is pressed
@@#hec$ that it was not pressed previously
if7]Get:rev9eytatus711
[
DOEACC CENTRE 40
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 41/78
GREENHOUSE MONITORING SYSTEM
if7selected ]>7menuMcount-411
selectedKKQ
\
\
if7Get9eytatus7511
[
@@Enter 9ey :ressed
@@#hec$ that it was not pressed previously
if7]Get:rev9eytatus7511
[
@@#all Appropriate )unction
switch 7selected1
[
case !'
et%emp71Q
brea$Q
case 4'
et8h71Q
brea$Q
case 6'
etlight71Q
brea$Q
case ;'
:umpMonMoff71Q
brea$Q
case '
returnQ@@Huit
\
DOEACC CENTRE 41
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 42/78
GREENHOUSE MONITORING SYSTEM
\
\
:8EBM:I(#>:I(#Q
MdelayMloopM67<!!!1Q
\
\
void et%emp71
[
uintMt sel>!Q
while741
[
#+#lear71Q
#+Writetring7V!! +O(E +#elV1Q
#+WriteIntJP7!,!,tempMset,6,!1Q @@ no float value
@@+raw :ointer
#+WritetringJP7sel^;,4,V__V1Q
@@Input Fp $ey
if7Get9eytatus7<11
[
if7]Get:rev9eytatus7<11
[
if7sel>>!1
[
@@temperature set
if7tempMset>>1
[
tempMset>4Q
\
else
DOEACC CENTRE 42
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 43/78
GREENHOUSE MONITORING SYSTEM
[
tempMsetKKQ
\
\
if7sel >> 41
[
@@O9
brea$Q
\
\
\
@@Input +own
if7Get9eytatus711
[
if7]Get:rev9eytatus711
[
if7sel>>!1
[
@@%emp set
if7tempMset>>41
[
tempMset>Q
\
else
[
tempMset--Q
\
\
if7sel >> 41
DOEACC CENTRE 43
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 44/78
GREENHOUSE MONITORING SYSTEM
[
@@O9
brea$Q
\
\
\
if7Get9eytatus7511
[
if7]Get:rev9eytatus7511
[
@@#hange election
if7sel>>41
sel>!Q
else
selKKQ
\
\
:8EBM:I(#>:I(#Q
MdelayMloopM67;!!!!1Q
\
@@-------------------EE:8O3-------------------------------
3emY!Z > tempMsetQ
3emY4Z > rhMsetQ
3emY6Z > lightMsetQ
eepromMwriteMbloc$ 77const void^1N3em, 7void ^14, 1Q
@@--------------------------------------------------------
#+#lear71Q
#+Writetring7V3essage ]V1Q
#+WritetringJP7!,4,V(ew %emp etV1Q
DOEACC CENTRE 44
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 45/78
GREENHOUSE MONITORING SYSTEM
uintMt iQ
for7i>!QiS4!QiKK1
MdelayMloopM67!1Q
\
@@--------------------------------------O( %I3E------------------------------------------------------------
void et8h71
[
uintMt sel>!Q
@@ read time from EE:8O3
while741
[
#+#lear71Q
#+Writetring7V!! +O(E 82V1Q
#+WriteIntJP7!,!,rhMset,6,!1Q @@ no float value
@@+raw :ointer
#+WritetringJP7sel^;,4,V__V1Q
@@Input Fp $ey
if7Get9eytatus7<11
[
if7]Get:rev9eytatus7<11
[
if7sel>>!1
[
@@2our
if7rhMset>>1
[
rhMset>4Q
\
else
DOEACC CENTRE 45
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 46/78
GREENHOUSE MONITORING SYSTEM
[
rhMsetKKQ
\
\
if7sel >> 41
[
@@O9
brea$Q
\
\
\
@@Input +own
if7Get9eytatus711
[
if7]Get:rev9eytatus711
[
if7sel>>!1
[
@@2our
if7rhMset>>41
[
rhMset>Q
\
else
[
rhMset--Q
\
\
if7sel >> 41
DOEACC CENTRE 46
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 47/78
GREENHOUSE MONITORING SYSTEM
[
@@O9
brea$Q
\
\
\
if7Get9eytatus7511
[
if7]Get:rev9eytatus7511
[
@@#hange election
if7sel>>41
sel>!Q
else
selKKQ
\
\
:8EBM:I(#>:I(#Q
MdelayMloopM67;!!!!1Q
\
@@-------------------EE:8O3-------------------------------
3emY!Z > tempMsetQ
3emY4Z > rhMsetQ
3emY6Z > lightMsetQ
eepromMwriteMbloc$ 77const void^1N3em, 7void ^14, 1Q
@@--------------------------------------------------------
#+#lear71Q
#+Writetring7V 3essage ]V1Q
#+WritetringJP7!,4,V(ew 82 etV1Q
DOEACC CENTRE 47
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 48/78
GREENHOUSE MONITORING SYSTEM
uintMt iQ
for7i>!QiS4!QiKK1
MdelayMloopM67!1Q
\
@@--------------------------------------- O)) %I3E---------------------------------------------
void etlight71
[
uintMt sel>!Q
@@ read from EE:8O3
while741
[
#+#lear71Q
#+Writetring7V!! +O(E ightV1Q
#+WriteIntJP7!,!,lightMset,6,!1Q @@no float value
@@+raw :ointer
#+WritetringJP7sel^;,4,V__V1Q
@@Input Fp $ey
if7Get9eytatus7<11
[
if7]Get:rev9eytatus7<11
[
if7sel>>!1
[
@@light set
if7lightMset>>1
[
lightMset>4Q
\
DOEACC CENTRE 48
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 49/78
GREENHOUSE MONITORING SYSTEM
else
[
lightMsetKKQ
\
\
if7sel >> 41
[
@@O9
brea$Q
\
\
\
@@Input +own
if7Get9eytatus711
[
if7]Get:rev9eytatus711
[
if7sel>>!1
[
if(light_set==1)
[
lightMset>Q
\
else
[
lightMset--Q
\
\
if7sel >> 41
DOEACC CENTRE 49
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 50/78
GREENHOUSE MONITORING SYSTEM
[
brea$Q
\
\
\
if7Get9eytatus7511
[
if7]Get:rev9eytatus7511
[
@@#hange election
if7sel>>41
sel>!Q
else
selKKQ
\
\
:8EBM:I(#>:I(#Q
MdelayMloopM67;!!!!1Q
\
@@(ow save time to EE:8O3------------------------------------------------------------------
3emY!Z > tempMsetQ
3emY4Z > rhMsetQ
3emY6Z > lightMsetQ
eepromMwriteMbloc$ 77const void^1N3em, 7void ^14, 1Q
@@-----------------------------------------------------------------------------------------
#+#lear71Q
#+Writetring7V 3essage ]V1Q
DOEACC CENTRE 50
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 51/78
GREENHOUSE MONITORING SYSTEM
#+WritetringJP7!,4,V(ew ight etV1Q
uintMt iQ
for7i>!QiS4!QiKK1
MdelayMloopM67!1Q
\
@@------------------------------------------------alram on and off------------------
void :umpMonMoff71
[
uintMt sel>!Q
@@ read from EE:8O3
while741
[
#+#lear71Q
#+Writetring7V--- +O(EV1Q
#+WriteIntJP7!,!,pumpMset,6,!1Q @@ no float value
if7pumpMset1
[
#+WritetringJP7!,!,VA#%V1Q
\
else
[
#+WritetringJP7!,!,V+E#V1Q
\
#+WritetringJP7sel^5,4,V__V1Q
if7Get9eytatus7<11
[
if7]Get:rev9eytatus7<11
[
if7sel>>!1
DOEACC CENTRE 51
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 52/78
GREENHOUSE MONITORING SYSTEM
[
if7pumpMset>>!1
[
pumpMset>4Q
\
else
[
pumpMset>!Q
\
\
if7sel >> 41
[
brea$Q
\
\
\
if7Get9eytatus711
[
if7]Get:rev9eytatus711
[
if7sel>>!1
[
if7pumpMset>>!1
[
pumpMset>4Q
\
else
[
pumpMset>!Q
DOEACC CENTRE 52
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 53/78
GREENHOUSE MONITORING SYSTEM
\
\
if7sel >> 41
[
brea$Q
\
\
\
if7Get9eytatus7511
[
if7]Get:rev9eytatus7511
[
if7sel>>41
sel>!Q
else
selKKQ
\
\
:8EBM:I(#>:I(#Q
MdelayMloopM67;!!!!1Q
\
@@-------------------EE:8O3-------------------------------
3emY!Z > tempMsetQ
3emY4Z > rhMsetQ
3emY6Z > lightMsetQ
3emY;Z > pumpMsetQ
eepromMwriteMbloc$ 77const void^1N3em, 7void ^14, 1Q
@@--------------------------------------------------------
DOEACC CENTRE 53
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 54/78
GREENHOUSE MONITORING SYSTEM
#+#lear71Q
#+Writetring7V 3essage ]V1Q
#+WritetringJP7!,4,V:ump etV1Q
uintMt iQ
for7i>!QiS4!QiKK1
MdelayMloopM67!1Q
\
CHAPTER 16
DATASHEETS
DOEACC CENTRE 54
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 55/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 55
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 56/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 56
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 57/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 57
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 58/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 58
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 59/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 59
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 60/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 60
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 61/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 61
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 62/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 62
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 63/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 63
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 64/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 64
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 65/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 65
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 66/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 66
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 67/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 67
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 68/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 68
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 69/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 69
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 70/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 70
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 71/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 71
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 72/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 72
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 73/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 73
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 74/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 74
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 75/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 75
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 76/78
GREENHOUSE MONITORING SYSTEM
DOEACC CENTRE 76
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 77/78
GREENHOUSE MONITORING SYSTEM
BIBLOGRAPHY
BOOK AUTHOR :ractical electronicshandboo$
an inclair N `ohn+unton
%he !<4 microcontrollerand Embedded systems
3uhammad Ali 3azidi,`anice Gillespie 3azidi,
8olin +.3c$inal:rinciple electronics A.:.3alvino
:rinted circuit board design W. #. osshart
NOMENCLATURE
I8' infraredIO' input@output
DOEACC CENTRE 77
8/13/2019 Project Report (Autosaved)
http://slidepdf.com/reader/full/project-report-autosaved 78/78
GREENHOUSE MONITORING SYSTEM
#+' A digital display that uses li*uid crystal cells
E+' ight Emitting +iode8A3' 8andom Access 3emory
8A3' tatic 8andom Access 3emory
EE:8O3' Electrically Erasable :rogrammable 8ead Only 3emory