Escolar Documentos
Profissional Documentos
Cultura Documentos
2018
BACHELOR OF TECHNOLOGY
SUBMITTED BY
SUPERVISOR
Er.Vivek Mankotia
CERTIFICATE
I hereby certify that the work which is being presented in the Project Report entitled Automatic
irrigation System, in partial fulfillment of the requirements for the award of the degree of
Signature of Students
This is to certify that the above statement made by the student(s) is correct to the best of my
knowledge.
Signature of Supervisor
ACKNOWLEDGEMENT
I would like to place on record my deep sense of gratitude to Mr. Vivek Mankotia, Assistant
Prof. Dept. of Electronics and Communication Engineering, Jawaharlal Nehru Government
Engineering College, Sundernagar, District Mandi, for his stimulating guidance, help and
useful suggestions, continuous encouragement and supervision throughout the course of
present work.
I also wish to extend my thanks to other professors and other colleagues for attending
my seminars and for their insightful comments and constructive suggestions to improve the
quality of this project work.
I am extremely thankful to Prof. Raman Parti, Director, JNGEC, Sundernagar, for providing
me infrastructural facilities to work in, without which this work would not have been possible.
ABSTRACT
Pump be turned on/off, saves a lot time for the farmers. This also gives much needed rest to
the farmers, as they dont have to go and turn the pump on/off manually. The motivation for
this project came from the countries where economy is based on agriculture and the climatic
conditions lead to lack of rains & scarcity of water. The farmers working in the farm lands are
solely dependent on the rains and bore wells for irrigation of the land. Even if the farm land
has a water-pump, manual intervention by farmers is required to turn the pump on/off whenever
needed. The aim of our project is to minimize this manual intervention by the farmer, which is
why we are using a micro-controller (89s52).
The micro-controller based automated irrigation system will serve the following purposes:
1) There is no un-planned usage of water, a lot of water is saved from being wasted. 2) The
irrigation is the only when there is not enough moisture in the soil and the microcontroller
decides when should the pump on/off.
TABLE OF CONTENTS
Chapter 1: INTRODUCTION
Chapter 4
4.1 Conclusion 53
4.2 Future Scope 54
4.3 Reference 55
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION
The continuous increasing demand of the food requires the rapid improvement in food
production technology. In a country like India, where the economy is mainly based on
agriculture and the climatic conditions are isotropic, still we are not able to make full use of
agricultural resources. The main reason is the lack of rains & scarcity of land reservoir water.
The continuous extraction of water from earth is reducing the water level due to which lot of
land is coming slowly in the zones of un-irrigated land.
Another very important reason of this is due to unplanned use of water due to which a
significant amount of water goes waste. In the modern drip irrigation systems, the most
significant advantage is that water is supplied near the root zone of the plants as per requirement
to which a large quantity of water is saved. At the present era, the farmers have been using
irrigation technique in India through the manual control in which the farmers irrigate the land
at the regular intervals. This process sometimes consumes more water or sometimes the water
reaches late due to which the crops get dried.
Water deficiency can be detrimental to plants before visible wilting occurs. Slowed growth
rate, lighter weight fruit follows slight water deficiency. This problem can be perfectly rectified
if we use automatic micro controller based drip irrigation system in which the irrigation will
take place only when there will be intense requirement of water. Irrigation system uses soil
moisture sensor to turn irrigation ON and OFF. These valves may be easily automated by using
controllers and soil moisture sensor. Automating farm or nursery irrigation allows farmers to
apply the right amount of water at the right time, regardless of the availability of labor to turn
valves on and off. In addition, farmers using automation equipment are able to reduce runoff
from over watering saturated soils, avoid irrigating at the wrong time of day, which will
improve crop performance by ensuring adequate water and nutrients when needed maximize
their net profits.
1.2 OBJECTIVE
The Objectives of this project is to design and fabricate an automatic irrigation system
Give the flexibility to the farmer as in case they forgets to irrigate the field
The main component used in the circuit is 8051 controller. In this project moisture sensor
YL69 with comparator YL38 is used which sense the conductivity of soil. The Soil Moisture
Sensor is used to measure the volumetric water content of soil then it turn the motor on/off
In very simplified terms, dry soil is made up of solid material and air pockets, called pore
spaces. A typical volumetric ratio would be 55% solid material and 45% pore space. As water
is added to the soil, the pore spaces begin to fill with water. Soil that seems damp to the touch
might now have 55% minerals, 35% pore space and 10% water. This would be an example
of 10% volumetric water content. The maximum water content in this scenario is 45%
BLOCK DIAGRAM
Figure 1.1
Figure 1.2
AT89S52 microcontroller
8051 programming board
Programming cable
8051 Programmer
DC battery or 12V,1A adaptor
162 LCD
ISP cable
7805 voltage Regulator
10uF electrolytic capacitor
33pF capacitors
12MHz Crystal
Bridge Rectifier
LED
Pot 10k (1/4 watt)
connecting wires
Soldering Wire
Soldering Iron
Op amp
Relay
Water Pump
Diodes
Transistor
Keil compiler
Proteus Professional Suite
ISP Programmer
The sensing arrangement is made by using two stiff metallic rods inserted The project uses
an 8051 series microcontroller which is programmed to receive the input signal of varying
moisture condition of the soil th rough the sensing arrangement. This is achieved by using
an op-amp as comparator which acts as interface between the sensing arrangement and the
microcontroller.Once the controller receives this signal, it generates an output that drives a
relay for operating the water pump. An LCD display is also interfaced to the microcontroller
to display status of the soil and water pump into the field at a distance.
Reset Circuit Design: The reset pin of the microcontroller is kept active till the power supply
is in the specified range and a minimum oscillation level is maintained. In other words to
ensure the supply voltage does not falls below the threshold level of 1.2V and the reset pulse
width is greater than 100ms, we select the values of resistor and capacitor such that RC
>=100ms. Here we select a 10K resistor and a 10uF electrolyte capacitor.
Oscillator Circuit Design: A crystal oscillator is used to provide external clock signal to the
microcontroller. To ensure smooth operation, we connect two ceramic capacitors ranges from
20pF to 40pF. This crystal oscillator is connected between pin 18 and 19 of the
microcontroller.
Compilation of Microcontroller Code: Once the circuit is designed and drawn on a piece
of paper, the next step is to write and compile the code. Here we select the Kiel uVision
software to write the program in C language.
Prior to writing the code, general steps needs to be followed like creating a new project and
selecting the target device or the required microcontroller. Once the code is written, we saved
it with .c extension and then added it to the source file group under the target folder. The code
is then compiled by pressing F7 key.
Once the code is compiled, a hex file is created. In the next step, we use Proteus software to
draw the circuit. The code is dumped into the microcontroller by right clicking on the IC and
then adding the hex file.
CHAPTER 2
HARDWARE DESCRIPTION
A power supply is an electronic device that supplies electric energy to an electrical load. The
primary function of a power supply is to convert electric current from an AC source to a
regulated DC voltage correct voltage or current to power the load. A power supply
convert mains AC for the electronic components.
In general, all the electronic circuits require a source of DC power for their operation. The
89S52 microcontroller also works on a DC power supply. A DC power supply can also be
given by a battery. Batteries are rarely used for these purposes as they are costly and require
supply to DC Power supply. This can be done with the help of regulated power supply circuit.
Figure 2.1
and vice-versa. Transformers are used to increase or decrease the alternating voltages in electric
power applications. Transformers are either step up or step down.
A transformer works on the principle of mutual induction. An e.m.f. is induced in a coil, when
a changing current flows through its nearby coil.
Figure 2.1
2.3 Rectifier: An electrical device which converts an alternating current into direct current
by allowing current to flow in one direction only.
We are using a full wave rectifier for producing D.C. regulated power supply for hooter. A full
wave rectifier is a circuit which converts an A.C. voltage into a pulsating D.C. voltage using
both half cycles of the applied ac voltage. It uses two diodes of which one conducts during one
half cycle while the other conducts during the other half cycle of the applied ac voltage.
smoothen the pulsating or fluctuating D.C. output of a rectifier, a used.A full wave rectifier is
Figure:2.2
2.4 MICROCONTROLLER
programmable input/output peripherals, which are used to interact with things connected to
the chip. A microcontroller is different than a microprocessor which only contains a CPU.
Figure 2.3
By combining a versatile 8-bit CPU with Flash on a monolithic chip, the Atmel
AT89S52 is a powerful microcomputer which provides a highly-flexible and cost-
effective solution to many embedded control applications
The AT89S52 provides the following standard features: 4Kbytes of Flash, 128 bytes of
RAM, 32 I/O lines, two 16-bit timer/counters, five vector two-level interrupt
architecture, a full duplex serial port, and on-chip oscillator and clock circuitry
The Idle Mode stops the CPU while allowing the RAM, timer/counters, serial port and
interrupt system to continue functioning
The Power-down mode saves the RAM contents but freezes the oscillator, disabling all
other chip functions until the next interrupt or hardware reset
Most of the ports of the 89S52 have 'dual function' meaning that they can be used for
two different functions. The first one is to perform input/output operations and the
second one is used to implement special features of the microcontroller like counting
external pulses, interrupting the execution of the program according to external events,
performing serial data transfer or connecting the chip to a computer to update the
software
Each port has 8 pins, and will be treated from the software point of view as an 8-bit
variable called 'register', each bit being connected to a different Input/output pin
There are two different memory types: RAM and EEPROM. Shortly, RAM is used to
store variable during program execution, while the EEPROM memory is used to store
the program itself, that's why it is often referred to as the 'program memory'.
It is clear that the CPU (Central Processing Unit) is the heart of the micro controllers.
It is the CPU that will Read the program from the FLASH memory and Execute it by
interacting with the different peripherals
PIN DESCRIPTION
Figure 2.4
Port 0:
Port 0 is an 8-bit open drain bidirectional I/O port. As an output port, each pin can
sink eight TTL inputs. When 1s are written to port 0 pins, the pins can be used as
high-impedance inputs.
during accesses to external program and data memory. In this mode, P0 has internal
pull-ups.
Port 1:
Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1 output buffer
can sink/source four TTL inputs.
When 1s are written to Port 1 pins, they are pulled high by the internal pull-ups and
can be used as inputs. As inputs, Port 1 pins that are externally being pulled low will
source current (IIL) because of the internal pull-ups.
Port 2:
Port 2 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 2 output
buffers can sink/source four TTL inputs. When 1s are written to Port 2 pins, they are
As inputs, Port 2 pins that are externally being pulled low will source current (IIL)
Port 2 emits the high-order address byte during fetches from external program
memory and during accesses to external data memory that use 16-bit addresses
(MOVX @ DPTR)
In this application, Port 2 uses strong internal pull-ups when emitting 1s. During
accesses to external data memory that use 8-bit addresses (MOVX @ RI), Port 2
Port 2 also receives the high-order address bits and some control signals during Flash
Port 3:
Port 3 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 3 output
buffers can sink/source four TTL inputs. When 1s are written to Port 3 pins, they are
As inputs, Port 3 pins that are externally being pulled low will source current (IIL)
Port 3 receives some control signals for Flash programming and verification.
Port 3 also serves the functions of various special features of the AT89S52, as shown
RST:Reset input
A high on this pin for two machine cycles while the oscillator is running resets the
device.
This pin drives high for 98 oscillator periods after the Watchdog times out.
The DISRTO bit in SFR AUXR (address 8EH) can be used to disable this feature.
In the default state of bit DISRTO, the RESET HIGH out feature is enabled
ALE/PROG:
Address Latch Enable (ALE) is an output pulse for latching the low byte of
This pin is also the program pulse input (PROG) during Flash programming. In
normal operation,
ALE:
It is emitted at a constant rate of 1/6 the oscillator frequency and may be used for
However, that one ALE pulse is skipped during each access to external data
memory.
If desired, ALE operation can be disabled by setting bit 0 of SFR location 8EH.
With the bit set, ALE is active only during a MOVX or MOVC instruction.
Otherwise, the pin is weakly pulled high. Setting the ALE-disable bit has no effect
PSEN:
Program Store Enable (PSEN) is the read strobe to external program memory. When
the AT89S52 is executing code from external program memory, PSEN is activated
twice each machine cycle, except that two PSEN activations are skipped during each
EA must be strapped to GND in order to enable the device to fetch code from external
XTAL1:
Input to the inverting oscillator amplifier and input to the internal clock operating circuit.
D. C. motors are seldom used in ordinary applications because all electric supply companies
furnish alternating current However, for special applications such as in steel mills, mines and
electric trains, it is advantageous to convert alternating current into direct current in order to
use d.c. motors. The reason is that speed/torque characteristics of d.c. motors are much more
superior to that of a.c .motors. Therefore, it is not surprising to note that for industrial drives,
d.c. motors are as popular as 3-phase induction motors Like d.c. generators, d.c. motors are
also of three types viz., series-wound, shunt-wound and compound wound. The use of a
particular motor depends upon the mechanical load it has to drive.
Fleming's left hand rule: If we stretch the first finger, second finger and thumb of our left
hand to be perpendicular to each other AND direction of magnetic field is represented by
the first finger, direction of the current is represented by second finger then the thumb
represents the direction of the force experienced by the current carrying conductor.
Figure 2.8
An LCD is an electronic display module which uses liquid crystal to produce a visible
image. Liquid crystal displays are super-thin technology display screen that are generally
used in laptop computer screen, TVs, cell phones and portable video games. LCDs
technologies allow displays to be much thinner when compared to cathode ray tube technology.
Also, Cathode ray tube draws more power compared to LCDs and are also heavier and bigger.
LCD technology is used for displaying the image in notebook or some other electronic
devices like mini computers. Light is projected from a lens on a layer of liquid crystal. This
combination of coloured light with the grayscale image of the crystal forms the coloured
image. This image is then displayed on the screen.
An LCD is either made up of an active matrix display grid or a passive display grid. Most of
the Smartphones with LCD display technology uses active matrix display, but some of the
older displays still make use of the passive display grid designs.
Most of the electronic devices mainly depend on liquid crystal display technology for their
display. The liquid has a unique advantage of having low power consumption than the LED
or cathode ray tube. Liquid crystal display screen works on the principle of blocking light
rather than emitting light. LCDs requires backlight as they do not emits light by them.
A 16x2 LCD display is very basic module and is very commonly used in various devices and
circuits. These modules are preferred over seven segments and other multi segment LEDs.
The reasons being: LCDs are economical; easily programmable; have no limitation of
displaying special & even custom characters (unlike in seven segments), animations and so
on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this
LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely,
Command and Data.
Command Register: The command register stores the command instructions given to the
LCD. A command is an instruction given to LCD to do a predefined task like initializing it,
clearing its screen, setting the cursor position, controlling display etc. Processing for commands
happen in the command register.
Data Register: The data register stores the data to be displayed on the LCD. The data is the
ASCII value of the character to be displayed on the LCD. When we send data to LCD it goes
to the data register and is processed there. When RS=1, data register is selected.
Figure 2.9
2.8 Resistor
Figure 2.10
A linear resistor is a linear, passive two-terminal electrical component that implements
electrical resistance as a circuit element. The current through a resistor is in direct proportion
to the voltage across the resistor's terminals. Thus, the ratio of the voltage applied across a
resistor's terminals to the intensity of current through the circuit is called resistance.
This relation is represented by Ohm's law:
I= V/R.
equipment. Practical resistors can be made of various compounds and films, as well as
resistance wire (wire made of a high-resistivity alloy, such as nickel-chrome).
Network Resistor
Figure 2.11
A resistor network is a combination of several resistors that are configured into a pattern.
Although most resistor networks use resistors that are connected in series, some resistor
networks use resistors in parallel or series-parallel configurations. The resistors in a network
act as voltage dividers which divide the voltage that is applied to a circuit into smaller
amounts.
2.9 Capacitors
Figure 2.12
2.10 Transistors
Figure 2.13
A transistor is a semiconductor device used to amplify and switch electronic signals and
power. It is composed of a semiconductor material with at least three terminals for connection
to an external circuit. A voltage or current applied to one pair of the transistor's terminals
changes the current flowing through another pair of terminals. Because the controlled (output)
power can be much more than the controlling (input) power, a transistor can amplify a signal.
Today, some transistors are packaged individually, but many more are found embedded in
integrated circuits.
The transistor is the fundamental building block of modern electronic devices, and is
ubiquitous in modern electronic systems. Following its release in the early 1950s the
transistor revolutionized the field of electronics, and paved the way for smaller and cheaper
radios, calculators, and computers, among other things.
2.11 Relays
Figure 2.14
7805 is a voltage regulator integrated circuit. It is a member of 78xx series of fixed linear
voltage regulator ICs. The voltage source in a circuit may have fluctuations and would not give
the fixed voltage output. The voltage regulator IC maintains the output voltage at a constant
value. The xx in 78xx indicates the fixed output voltage it is designed to provide. 7805 provides
+5V regulated power supply. Capacitors of suitable values can be connected at input and output
pins depending upon the respective voltage levels
Pin Description:
Pin
Function Name
No
1 Input voltage (5V-18V) Input
2 Ground (0V) Ground
3 Regulated output; 5V (4.8V-5.2V) Output
Description:
This is the basic L7805 voltage regulator, a three-terminal positive regulator with a 5V fixed
output voltage. This fixed regulator provides a local regulation, internal current limiting,
thermal shut-down control, and safe area protection for your project. Each one of these
voltage regulators can output a max current of 1.5A.
Features:
Output Voltage: 5V
Output Current: 1.5A
Thermal Overload Protection
Short Circuit Protection
2.13 LED :
Light emitting diodes (LEDs) are semiconductor light sources. The light emitted
from LEDs varies from visible to infrared and ultraviolet regions. They operate on low
voltage and power. LEDs are one of the most common electronic components and are
mostly used as indicators in circuits. They are also used for luminance and optoelectronic
applications.
Based on semiconductor diode, LEDs emit photons when electrons recombine with holes
on forward biasing. The two terminals of LEDs are anode (+) and cathode (-) and can be
identified by their size. The longer leg is the positive terminal or anode and shorter one is
negative terminal.
YL 69 moisture sensing probe is used to sense the moisture here. It is simply a fork-shaped
PCB with tracks running on both sides of the legs. Just plug this probe into the soil where
you want to sense the moisture. Image of the YL 69 sensing probe is given below.
Figure 2.15
based on L393 IC. This module just compares the output voltage of the sensing probe with
a reference voltage and switches its voltage appropriately for the microcontroller to read.
Figure 2.16
The output voltage of the sensing probe is connected to the inverting input of the opamp.
When the moisture level is high more current passes through the sensing probe and so the
voltage at the inverting pin will be higher than the reference. The reference can be set using
the trim pot R2. At this condition output of the opamp goes low and sinks the LED D1 to
make it glow. When the moisture is lower than the set point, the opposite happens. So in
simple words, a LOW output of the opamp indicates a high moisture and a HIGH output of
the opamp indicates a low moisture. The output of the opamp is marked as pin D0 on the
sensor YL 38 module. This pin is connected to the microcontroller for further processing.
Figure 2.17
A printed circuit board, or PCB, is used to mechanically support and electrically connect
electronic components using conductive pathways, tracks or signal traces etched from copper
sheets laminated onto a non-conductive substrate. It is also referred to as printed wiring board
(PWB) or etched wiring board. A PCB populated with electronic components is a printed
circuit assembly (PCA), also known as a printed circuit board assembly (PCBA). Printed
circuit boards are used in virtually all but the simplest commercially-produced electronic
devices.
Soldering Iron
A soldering iron is a hand tool most commonly used in soldering. It supplies heat to melt the
solder so that it can flow into the joint between two work pieces.
A soldering iron is composed of a heated metal tip and an insulated handle. Heating is often
achieved electrically, by passing an electric current (supplied through an electrical cord or
battery cables) through the resistive material of a heating element. Another heating method
includes combustion of a suitable gas, which can either be delivered through a tank mounted
on the iron (flameless), or through an external flame.
Soldering irons are most often used for installation, repairs, and limited production work.
Cleaning
When burnt flux and oxidized material begin to accumulate on the tip, they can block heat
transfer and contaminate joints, making soldering difficult or impossible. Therefore, the tips
are periodically cleaned. Many soldering stations come with cellulose sponges which are
dampened and used to wipe a hot iron's tip clean. A wire brush, preferably brass or wire wheel
(mounted on a bench grinder), is sometimes carefully used to remove very severe oxidation,
though this may risk damaging the tip's protective iron plating. A small amount of fresh solder
is usually then applied to the clean tip in a process called tinning. The working surface of the
tip is usually kept tinned (coated with wet solder) to minimize oxidation. Oxidation blocks
heat transfer, corrodes the tip, and contaminates the joint
Soldering Wire
Solder (usually pronounced /sldr/, /sodr/ or in USA /sdr/) is a fusible metal alloy
used to join together metal work pieces and having a melting point below that of the work
piece(s).
Soft solder is what is most often thought of when solder or soldering are mentioned and it
typically has a melting range of 90 to 450 C (190 to 840 F). It is commonly used in
electronics and plumbing. Alloys that melt between 180 and 190 C (360 and 370 F) are the
most commonly used. By definition, using alloys with melting point above 450 C (840 F)
is called 'hard soldering', 'silver soldering' or brazing. Soft solder can contain lead and/or flux
but in many applications lead free solder is used. Perhaps the most common and most familiar
form of solder is as a wire or rod, though plumbers often use bars of solder while jewelers
often use solder in thin sheets which they cut into snippets. Solder can also come in a paste
or as a preformed foil shaped to match the work piece. The word solder comes from the
Middle English word Souder, via Old French soldure and souldur, from the Latin solid are,
meaning "to make solid".
.
Lead solder
Tin/lead solders, also called soft solders, are commercially available with tin concentrations
between 5% and 70% by weight. The greater the tin concentration, the greater the solders
tensile and shear strengths. At the retail level, the two most common alloys are 60/40 Tin/lead
(Sn/Pb) which melts at 370 F or 188 C and 63/37 Sn/Pb used principally in
electrical/electronic work. The 63/37 ratio is notable in that it is a eutectic mixture, which
means:
1) It has the lowest melting point (183 C or 361.4 F) of all the tin/lead alloys; and
2) The melting point is truly a point not a range.
CHAPTER 3
SOFTWARE DESCRIPTION
Keil Software, world's leading developer of Embedded Systems Software, makes ANSI C
simulators, integrated environments, and evaluation boards for the 8051, 251, ARM7, and
Keil development tools offer a complete development environment for Intel, ARM, Cortex-
M, and Cortex-R processor-based devices. They are easy to learn and use, yet powerful
The MDK Core contains all development tools including IDE, Compiler, and Debugger.
The new Pack Installer adds and updates Software Packs for devices, CMSIS, and
middleware.
The Vision IDE combines project management, run-time environment, build facilities,
source code editing, and program debugging in a single powerful environment. Vision is
easy-to-use and accelerates your embedded software development. Vision supports multiple
screens and allows you to create individual window layouts anywhere on the visual surface.
The Vision Debugger provides a single environment in which you may test, verify, and
optimize your application code. The debugger includes traditional features like simple and
complex breakpoints, watch windows, and execution control and provides full visibility to
device peripherals.
With the Vision Project Manager and Run-Time Environment we can create software
application using pre-build software components and device support from Software Packs.
The software components contain libraries, source modules, configuration files, source code
templates, and documentation. Software components can be generic to support a wide range
of devices and applications.
The Proteus Design Suite is a proprietary software tool suite used primarily for electronic
design automation. The software is used mainly by electronic design engineers and
technicians to create schematics and electronic prints for manufacturing printed circuit
boards.
It was developed in Yorkshire, England by Labcenter Electronics Ltd and is available in
English, French, Spanish and Chinese languages.
The micro-controller simulation in Proteus works by applying either a hex file or a debug file
to the microcontroller part on the schematic. It is then co-simulated along with any analog
and digital electronics connected to it. This enables its use in a broad spectrum of project
prototyping in areas such as motor control, temperature control and user interface design
3.3 Program
RS EQU P2.7
RW EQU P2.6
E EQU P2.5
ORG 00H
SETB P3.51
MOV TMOD,#00000001B
MAIN:ACALL DINT
ACALL TEXT1
JB P3.5, NEXT
ACALL LINE2
ACALL TEXT2
CLR P2.0
SJMP EXIT
NEXT:ACALL LINE2
ACALL TEXT3
SETB P2.0
EXIT:ACALL DELAY1
SJMP MAIN
DELAY1:MOV R0,#15D
MOV TL0,#00000000B
SETB TR0
CLR TR0
CLR TF0
DJNZ R0,BACK1
RET
ACALL DISPLAY
MOV A,#"o"
ACALL DISPLAY
MOV A,#"i"
ACALL DISPLAY
MOV A,#"s"
ACALL DISPLAY
MOV A,#"t"
ACALL DISPLAY
MOV A,#"u"
ACALL DISPLAY
MOV A,#"r"
ACALL DISPLAY
MOV A,#"e"
ACALL DISPLAY
ACALL DISPLAY
MOV A,#"C"
ACALL DISPLAY
MOV A,#"o"
ACALL DISPLAY
MOV A,#"n"
ACALL DISPLAY
MOV A,#"t"
ACALL DISPLAY
MOV A,#"r"
ACALL DISPLAY
MOV A,#"o"
ACALL DISPLAY
MOV A,#"l"
ACALL DISPLAY
RET
ACALL DISPLAY
MOV A,#"O"
ACALL DISPLAY
MOV A,#"K"
ACALL DISPLAY
MOV A,#"]"
ACALL DISPLAY
ACALL DISPLAY
MOV A,#"P"
ACALL DISPLAY
MOV A,#"u"
ACALL DISPLAY
MOV A,#"m"
ACALL DISPLAY
MOV A,#"p"
ACALL DISPLAY
ACALL DISPLAY
MOV A,#"O"
ACALL DISPLAY
MOV A,#"F"
ACALL DISPLAY
MOV A,#"F"
ACALL DISPLAY
RET
ACALL DISPLAY
MOV A,#"L"
ACALL DISPLAY
MOV A,#"o"
ACALL DISPLAY
MOV A,#"w"
ACALL DISPLAY
MOV A,#"]"
ACALL DISPLAY
ACALL DISPLAY
MOV A,#"P"
ACALL DISPLAY
MOV A,#"u"
ACALL DISPLAY
MOV A,#"m"
ACALL DISPLAY
MOV A,#"p"
ACALL DISPLAY
ACALL DISPLAY
MOV A,#"O"
ACALL DISPLAY
MOV A,#"N"
ACALL DISPLAY
RET
DINT:MOV A,#0CH
ACALL CMD
MOV A,#01H
ACALL CMD
MOV A,#06H
ACALL CMD
MOV A,#80H
ACALL CMD
MOV A,#3CH
ACALL CMD
RET
LINE2:MOV A,#0C0H
ACALL CMD
RET
CLR RS
CLR RW
SETB E
CLR E
ACALL DELAY
RET
DISPLAY:MOV P0,A
SETB RS
CLR RW
SETB E
CLR E
ACALL DELAY
RET
DELAY: CLR E
CLR RS
SETB RW
MOV P0,#0FFH
SETB E
MOV A,P0
JB ACC.7,DELAY
CLR E
CLR RW
RET
END
4.1 Conclusion
The Microcontroller based irrigation system proves to be a real time feedback control system
which monitors and controls all the activities of irrigation system efficiently. The present
proposal is a model to modernize the agriculture industries at a mass scale with optimum
expenditure. Using this system, one can save manpower, water to improve production and
ultimately profit
GSM can be added for sending SMS to the concerned person in case of any problem.
Other Parameters such as ambient temperature, light intensity & humidity can be
measured.
We can also use solar panel for providing electrical energy in remote area.
4.3 References
http://www.google.co.in/#sclient=psyb&hl=en&source=hp&q=microcontroller+
AT89C52P6+pin+diagram&pbx=1&oq=microcontroller+AT89C52P6
www.electricalprojects.com
Basic electronics by J.B Gupta.
www.circuittoday.com