You are on page 1of 33

Chapter 1

Introduction
1.1 Background
Agriculture is the backbone of Nepalese Economy. In todays world, as we see the rapid
growth in global population, agriculture becomes more important to meet the needs of the
human race. However, agriculture requires irrigation, and with every year we have more
water consumption than rainfall, it becomes critical for growers to find ways to conserve
water while still achieving the highest yield .But at the present era, the farmers have been
using irrigation technique through the manual control in which they 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. Over the past 200 years, farmers in both hill
areas and the Terai of Nepal have developed simple irrigation systems based on diversion
of water from seasonal or permanent streams and rivers. The systems were referred to as
farmer-managed irrigation systems (FMIS). This sort of manual irrigation system provide
variable amount of water that is sometimes excess or sometimes insufficient than that
required for the suitable growth of crops .Thus, the farmer has to toil himself all day and
night to monitor the moisture content in the soil.
The advances in the technologies related to wireless communication has led to the
emergence of several engineering designs to aid the human requirements. As we all know
Agriculture play a significant role in developing country like Nepal and implementing
mobile communication for facilitating farmers is the basic idea of our project. GSM
BASED AUTOMATIC IRRIGATION SYSTEM is a simpler, multipurpose, cost-effective
design to control the on-off mechanism of an electric motor for irrigation in the field via
Short Message Service (SMS). This tends to utilize the availability of GSM network,
mobile phones and electronic circuits to achieve an automated system which is
programmed to work as a thinking device to accomplish this purpose. Besides selfmonitoring the moisture content of the soil, this system will also give auxiliary control to
the user to enable him/her to irrigate the field from a remote place In this system, the motor
work on its own with the help of inputs received from the sensors which is measuring the
moisture content of agricultural land and farmer can monitor whether everything is going
normal or some action is needed to be taken. The entire process is controlled and monitored.
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 motors 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. Automatic Irrigation is a valuable tool
for accurate soil moisture control in highly specialized greenhouse vegetable production
and it is a simple, precise method for irrigation. In this project there are soil moisture
sensors for monitoring the moisture content of soil which continuously inform about the
moisture present in the soil. There is provision of selecting the amount of moisture content
required for different crops. Whether we have to irrigate the rice field that requires more
water or some other crops that require less amount of moisture content, this system provides
suitable moisture for various types of crops. Use of GSM network can work out irrigation
system with low cost. This system monitors land owner's soil moisture, and send message
to the land owner about the status of field and irrigates the field if there is need of irrigation
and the motor is switched off automatically after the necessary condition of moisture is
met.
1

1.2 Objectives
The main the objective of the project will be concentrated towards the development of the
system that works on SMS feature of the mobile phone. The objectives of our system can
be divided into two categories which are as follows.

1.2.1 General objectives


1. To develop effective and convenient automatic irrigation system to increase the
productivity of crops
.
1.2.2 Specific objectives
The secondary objectives of this study are as follows:
1. To develop system that automatically regulate the moisture of the soil.
2. To minimize human labor used in irrigation.
3. To provide convenience in accessing the system from anywhere at any time.
4. To save the time of the owner for the large fields.

Chapter 2
Literature Review
Many research have been done in the agriculture field, most of them are concentrating on
sensors parameters and automatic switching mechanisms of pumps based on sensors
signals. The literature review shows that, with the wide spread use of cellular networks,
automatic irrigation systems have been applied through wireless technology at the farm
area incorporating GSM technology with mobile phone through the mobile network. The
technology is one of the factors which limit the implementation of some of the automated
irrigation system in developing countries.

2.1 Global System for Mobile Communication (GSM)

Figure 2.1.1: GSM Logo

GSM is the most popular and widely used digital mobile telephony system in the world.
According to GSM world, it is now used by over 1.5 billion people all over the world.
Hence the Ubiquity of GSM enables international roaming arrangements between mobile
phone operators and provides their subscribers the use of the phone in many parts of the
world. Besides that, GSM is considered a second generation (2G) cell phone system as both
the signaling and speech channels are digital which differs from the previous technology.
3

Year
1982

GSM Development
European Conference of Postal and
Telecommunications Administrations (CEPT)
created the Group Special Mobile (GSM) to
develop a standard for mobile telephone system in
Europe.

1987

Memorandum of understanding was signed by 13


countries in Europe to develop a common cell
phone system.

1989

GSM responsibility was transferred to ETSI

1990

Phase I of GSM specifications was published.

1991

The first GSM network was launched in Finland

1993

Over 1 million subscribers were using GSM


phone network.

Table 2.1.1: History of GSM

GSM also found a low-cost implementation of the SMS, short message service, which has
since been supported on other cellular phone standards as well. For example, the worldwide
emergency telephone number feature (112) is included. GSM uses narrowband Time
Division Multiple Access (TDMA) for voice and Short Messaging Service (SMS). TDMA
is a technology used in digital mobile phone communication that divides each cellular
channel into 3 time slots to increase the amount of data that can be carried. GSM digitizes
and compresses data, then sends it down a channel with 2 other user data in its own time
slot.
4

2.2 SHORT MESSAGE SERVICE (SMS)


SMS stands for Short Message Service. It is a technology that enables the sending and receiving
of message between mobile phones. SMS first appeared in Europe in 1992. It was included in the
GSM (Global System for Mobile Communication) standards right at the beginning. Later it was
ported to wireless technologies like CDMA and TDMA. The GSM and SMS standards were originally
developed by ETSI. ETSI is the abbreviation for European Telecommunication Standard Institute.
Now the 3GPP (Third Generation Partnership Project) is responsible for the development and
maintenance of the GSM and SMS standards. One SMS message can contain at most 140 bytes
(1120 bits) of data, so one SMS message can contain up to:

1. 160 characters if 7-bit character encoding is used. (7-bit character encoding is


suitable for encoding Latin characters like English alphabets.)
2. 70 characters if 16-bit Unicode UCS2 character encoding is used. (SMS text
messages containing non-Latin characters like Chinese character should use 16-bit
character encoding.)

Once the message is sent the message is received by SMSC, which must then get it to the
appropriate mobile device. To do this the SMSC sends a SMS request to Home Location
Register (HLR) to find the roaming customer. Once HLR receives the request, it responds
to the SMSC with the subscribers status i.e. Inactive or active subscriber is roaming.
If the response is inactive, then the SMSC will hold onto the message for a period of
time. When the subscriber access his device, the HLR sends a SMS notification to the
SMSC and the SMSC will attempt delivery.
The SMSC transfer the message in a Short Message Delivery Point to Point format to the
serving system. The system pages the device, and if it responds, the message gets delivered.
The SMSC receives verification that the message was received by the end user then
categorizes the message a sent and will not attempt to send again. SMS provides a
mechanism for transmitting short message to and from wireless devices. The service makes
a use of a SMSC, which acts as a store and forward system for short messages.

2.3 COMPONENTS DESCRIPTION


ATmega16
ATmega16 is an 8-bit high performance microcontroller of Atmels Mega AVR family
with low power consumption. Atmega16 is based on enhanced RISC (Reduced Instruction
Set Computing, Know more about RISC and CISC Architecture) architecture with 131
powerful instructions. Most of the instructions execute in one machine cycle. Atmega16
can work on a maximum frequency of 16MHz. The operating voltage for ATmega16 is
2.7V to 5.5V at the extended operating temperature of 233K to 153K.
ATmega16 has 16 KB programmable flash memory, static RAM of 1 KB and EEPROM
of 512 Bytes. The endurance cycle of flash memory and EEPROM is 10,000 and 100,000,
respectively. IT also consists of 32*8 general purpose working resistors.
ATmega16 is a 40 pin microcontroller. There are 32 I/O (input/output) lines which are
divided into four 8-bit ports designated as PORTA, PORTB, PORTC and PORTD.
ATmega16 has various in-built peripherals like USART, ADC, Analog Comparator, SPI,
JTAG etc. Each I/O pin has an alternative task related to in-built peripherals. It consists of
10-bit ADC. IT also consists of one 8 bit and one 16 bit General Purpose Timer/counter
with prescaler, compare mode and capture.

Figure2.3.1: Pin configuration of ATmega16

Pin configuration description:


Pin
No.
1

Pin name

Description

Alternate Function

(XCK/T0) PB0

(T1) PB1

T0: Timer0 External Counter Input.


XCK : USART External Clock I/O
T1:Timer1 External Counter Input

(INT2/AIN0) PB2

(OC0/AIN1) PB3

I/O PORTB, Pin


0
I/O PORTB, Pin
1
I/O PORTB, Pin
2
I/P
I/O PORTB, Pin
3

(SS) PB4

(MOSI) PB5

AIN1: Analog Comparator


Negative I/P
OC0 : Timer0 Output Compare
Match Output
In System Programmer (ISP)
Serial Peripheral Interface (SPI)
I/O PORTB, Pin 5

(MISO) PB6

I/O PORTB, Pin 6

(SCK) PB7

I/O PORTB, Pin 7

RESET

Reset Pin, Active Low Reset

10

Vcc

Vcc = +5V

11

GND

GROUND

12

XTAL2

13

XTAL1

14

(RXD) PD0

15

(TXD) PD1

Output to Inverting Oscillator


Amplifier
Input to Inverting Oscillator
Amplifier
USART Serial Communication
Interface
I/O PORTD, Pin 1

16

(INT0) PD2

17

(INT1) PD3

18

(OC1B) PD4

I/O PORTB, Pin


4

I/O PORTD, Pin


0

I/O PORTD, Pin


2
I/O PORTD, Pin
3
I/O PORTD, Pin

AIN0: Analog Comparator Positive


INT2: External Interrupt 2 Input

External Interrupt INT0


External Interrupt INT1
PWM Channel

Outputs

19

(OC1A) PD5

I/O PORTD, Pin 5

20

(ICP) PD6

I/O PORTD, Pin 6

21

PD7 (OC2)
Output

I/O PORTD, Pin 7

22

PC0 (SCL)

I/O PORTC, Pin 0

23

PC1 (SDA)

I/O PORTC, Pin 1

24

PC2 (TCK)

I/O PORTC, Pin 2

25

PC3 (TMS)

I/O PORTC, Pin 3

26

PC4 (TDO)

I/O PORTC, Pin 4

27

PC5 (TDI)

I/O PORTC, Pin 5

28

PC6 (TOSC1)

I/O PORTC, Pin 6

29

PC7 (TOSC2)

30

AVcc

Timer Oscillator
Pin 1
I/O PORTC, Pin 7 Timer Oscillator
Pin 2
Voltage Supply = Vcc for ADC

31

GND

GROUND

32

AREF

Analog Reference Pin for ADC

33

PA7 (ADC7)

I/O PORTA, Pin 7

ADC Channel 7

34

PA6 (ADC6)

I/O PORTA, Pin 6

ADC Channel 6

35

PA5 (ADC5)

I/O PORTA, Pin 5

ADC Channel 5

36

PA4 (ADC4)

I/O PORTA, Pin 4

ADC Channel 4

37

PA3 (ADC3)

I/O PORTA, Pin 3

ADC Channel 3

38

PA2 (ADC2)

I/O PORTA, Pin 2

ADC Channel 2

39
40

PA1 (ADC1)
PA0 (ADC0)

I/O PORTA, Pin 1


I/O PORTA, Pin 0

ADC Channel 1
ADC Channel 0

Timer/Counter1
Input Capture
Pin
Timer/Counter2
Output Compare
Match
TWI Interface

JTAG Interface

Figure 2.3.2: Pin descriptions and Architecture of ATmega16

The AVR core combines a rich set with 32 general purpose working resisters which are
connected to the Arithmetic Logic Unit (ALU), allowing two independent registers to be
accessed in one single instruction executed in one clock cycle. The resulting architecture
is more code efficient while achieving throughputs up to ten times faster than conventional
CISC microcontroller.
Features of ATmega16:
1. 16 KB of in system programmable flash with Read-Write capabilities
2. 512 bytes of EEPROM
3. 27 general purpose I/O lines
4. 32 general purpose working resistors
5. One UART HW LIN
6. 11 channel 10-bit ADC
7. 10-bit DAC

GSM Modem
Modem stands for modulator-demodulator. It is a communication device that can modulate
an analog carrier signal with digital data and transmit, while it also demodulates the
incoming modulated signal to extract the analog information. There can be wired as well
as wireless modems. We are using the later one where in the modem captures the modulated
carrier signal with an antenna connected to it. A GSM Modem is a wireless modem that
works with a GSM wireless network. Like a GSM Mobile Phone, a GSM Modem requires
a SIM card from a wireless carrier in order to operate. Once a GSM Modem is placed and
powered it is ready to function as a receiver and transmitter GSM Modem supports a set of
AT commands. Our project focuses on reading, writing, sending, receiving and deleting
SMS messages via AT commands. The GSM we used is SIM 900 and its works on 9600
bps.

Figure : SIM 900 GSM

10

Moisture sensor (Model: SEN92355P)


This Moisture Sensor can be used to detect the moisture of soil or judge if there is water
around the sensor, let the plants in your garden reach out for human help. They can be very
easy to use, just insert it into the soil and then read it. With the help of this sensor, it will
be realizable to make the plant remind you hey I am thirsty now, please give me some
water. The moisture sensor which can be used to detect the moisture of the soil. When the
soil moisture deficits, the sensor output value will decrease. You can know whether a plant
needs water or not by observing the results that the sensor outputs. Soil moisture sensor
based on soil resistivity measurement. It is a transducer which measures the moisture
contains in the soil and convert it into electrical form. Thus observed value is in analog
form and further more processing it is converted into digital form. This moisture sensor is
easily available in the local market and easy to use. In this sensor there are three pins one
for ground, next for supply and next for signal.

Figure 2.3.4: Moisture sensor (Model: SEN92355P)

11

GSM Mobile Set

Figure2.3.5: simple mobile set


A mobile set or phone is a compatible device that can be moved while we are talking. They
work on cellular networks and offer different services. To get a mobile phone service, one
must subscribe to a GSM service provider. For GSM phones one has to get a SIM card
which contains a unique authentication and subscription programs into the chip. Once the
SIM card is into the mobile set, one can make connection anywhere within the coverage of
the GSM network.

LCD
LCD (Liquid Crystal Display) is an electronic display module commonly used in various
devices and circuits. LCDs are economical, easily programmable, have no limitation of
displaying special and even custom characters and so on. This LCD has two registers
namely Command and Data. 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. 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.

12

Table 2.3.4.1: Pin Function

Figure 2.3.6: Pin Configuration of LCD

13

Regulator IC (LM 7805)


The LM7805 monolithic 3-terminal positive voltage regulators employ internal currentlimiting, thermal shutdown and safe-area compensation, making them essentially
indestructible. If adequate heat sinking is provided, they can deliver over 1.0A output
current. They are intended as fixed voltage regulators in a wide range of applications
including local (on-card) regulation for elimination of noise and distribution problems
associated with single-point regulation. In addition to use as fixed voltage regulators, these
devices can be used with external components to obtain adjustable output voltages and
currents. Considerable effort was expended to make the entire series of regulators easy to
use and minimize the number of external components. It is not necessary to bypass the
output, although this does improve transient response. Input bypassing is needed only if
the regulator is located far from the filter capacitor of the power supply

Figure 2.3.7: IC LM7805

14

REGISTER
Resistor is a component that resists the flow of direct or alternating electric circuit.
Resistors can limit or divide the current, reduce the voltage, protect an electric circuit, or
provide large amounts of heat or light. They are often color coded by three or four color
bands that indicate the specific value of resistance. Resistors obey ohms law, which
states that the current density is directly proportional to the electric field when the
temperature is constant.

Figure 2.3.8: Resistor

LEDS
A light-emitting diode (LED) is a semiconductor light source which is used as indicator
lamps in many devices and is increasingly used for other lighting purposes. The color of
the light (corresponding to the energy of the photon) which is determined by the energy
gap of the semiconductor pattern. LEDs are cheap and faster switching.

15

Figure 2.3.9: LED


Chapter 3
Design and Implementation

Start

Initialise
LCD
And
Motors and
leds

Select the fields


manually

Is
miscall
Received?

Is
Fields
X<<level?

Send the message


to the
Master SIM by
GSM
module

Turn
Off
Motor

Is
X>level?

stop

Figure 3.1: Flowchart

16

3.2 Block Diagram

Figure 2.2: Block diagram of GSM based Automatic Irrigation System


The moisture content of the soil is continuously measured by the sensor. Its value and the
status of motor i.e. ON or OFF condition of motor is displayed continuously on the LCD.
Now the user is allowed to select the type of field he wants to irrigate. Whether we have to
irrigate a rice field that requires a lot of water or any other field that require moderate or
the less amount of water, we can directly select the field type from the keypad. If the user
is far from the cultivated area, then he can just give miscall in order to know the moisture
content. If there is a enough moisture in the soil i.e. there is no need to irrigate the field
then the motor is not switched on but if the moisture content is very less i.e. there is a need
of irrigation then the motor is switched on automatically and after the field attains the
required moisture content, then the motor is switched off automatically
17

3.3 Circuit diagram

Figure 2.3.1: Circuit Diagram of GSM BASED IRRIGATION SYSTEM


Circuit diagram description
The LCD of 16X2 displays with 4 bits mode is interfaced with the ATmega16, port C. The
mode used is 4 bits mode for data. The four pins used are transferring data are PC3, PC4,
PC5, PC6 and the EN, RS and RW pins are connected to the pin PC0, PC1, PC2
respectively of the ATmega16. The preset pins ground, Vcc and common are connected
to the pin 1, 2 and 3 of the LCD. The three push to on switch which are used for selecting
the three different types of fields are connected to the port B -PB0, PB1 and PB2
respectively and as fields respective three different types of leds are used and are connected
to the port PB4, PB5 and PB6. The motor driver ULN 2003 is connected with relay to the
pin PB7 and for the force on the extra switch is connected to the pin PB6. The TX and RX
pins of GSM are connected to the PD0 and PD1 of microcontroller respectively. The
moisture sensor is connected the pin 40 of the microcontroller.
18

3.4 Working
GSM based automatic irrigation system consists of four push to on switches, three for crop
selection and one to ON motor forcedly. One of three switches is used to select irrigation
type for a particular crop cultivated in the field. Once the irrigation mode is selected, LCD
displays the moisture contained of the soil as well as displays the state of motor ON or
OFF. It also consists of GSM module LCD and motor to pump water in the field.
When a mode for particular crop is selected, the moisture sensor measures the resistivity
of the soil. Moisture sensor is a transducer which converts the value of moisture contained
in soil into electrical form. The output of moisture sensor is analog in nature. The inbuilt
ADC in ATmega16 converts analog input data into 10-bit digital data. Thus obtained data
is further processed by the processor and displayed in LCD.
Every crop is defined with the lower and higher defined value which is needed for proper
growth. If the value sensed by the moisture sensor is below the lower defined value, motor
automatically ON and pump the water in the field. If higher defined value is met, motor is
OFF again automatically. The state of motor is also displayed in LCD.
If owner of the field want to know the condition of field, staying at home he can call the
number. If call is received at GSM module, the processor send SMS with detail condition
of field to the master SIM.

19

Chapter 4
Software Components
It is often not wise to get a programming into an assembly language if you have high level
programming options that is to say if you have flexibility to write a code into a C language
then you are not supposed to jump into an assembly language. Thus, you have wide
varieties of options for a high level programming in 8051 microcontrollers. The most
common of all is the C language. C language, being a high level language, has many
important advantages over assembly language like portability, automatic proper handling
of various data types including data arithmetic, ease of data organization, ease of expressing
program logic, etc. It is much easier to write a program in C than in assembly language. C
language programming is also much less error prone. The software portion include the
programming of the ATmega16 chip for the whole operation of the designed system. C
language was used to code the program and was converted into hex code to load it into the
flash memory of microcontroller. The program includes the interfacing of sensors and LCD
module unit to the microcontroller. Intel hex code is generated and burnt into the
microcontroller chip using suitable programmer. The software is well commented and easy
to understand.
4.1 C Programming Language
C is a general purpose, block structured, procedural, imperative computer programming
language developed in 1972 by Dennis Ritchie at the bell telephone laboratories for use
with the UNIX operating system. C programming provides low level access to memory,
provide language constructs that map efficiently to machine instruction and require
minimal run time support. In c, all executable code is contained within function parameters
are always passed by value. Pass by reference is achieved in C by explicitly passing pointer
values. Codes written in C are compiled using a compiler. Compiler produce hex files that
we download in to the ROM of the microcontroller. Assembly language produce hex file
that is much smaller than C but programming in assembly is tedious and time consuming.
C-programming language, on the other hand, is less time consuming and much easier to
write but the hex file size produced is much larger than if we used assembly language. The
some of the major reasons for writing programs in C instead of assembly are it is easier and
less time consuming to write in C than assembly. C is easier to modify and update. We can
use code available in function library. C code is portable to other microcontrollers with
little or modification.

4.2 AVR studio 4


AVR studio 4 is a cross compiler. So first we have to understand the concept of compilers,
cross compilers and library functions. After then we shall learn how to work with AVR
studio.
Concept of compiler
Compilers are programs used to convert a High Level Language to object code. Desktop
compilers produce an output object code for the underlying microprocessor, but not for
other microprocessors. I.E the programs written in one of the HLL like C will compile
the code to run on the system for a particular processor like x86 (underlying microprocessor
in the computer). For example compilers for Dos platform is different from the Compilers
for Unix platform.
The advantage of interpreters is that they can execute a program immediately. Secondly
programs produced by compilers run much faster than the same programs executed by an
interpreter. However compilers require some time before an executable program emerges.
Now as compilers translate source code into object code, which is unique for each type of
computer, many compilers are available for the same language among them AVR C cross
compiler is the latest and advanced. Likewise with the application of AVR Studio different
20

types of functions can be handles like Configure delay function calls, Debug and Simulate
AVR Studio Project , add Header and Source files to AVR Studio Project Flash
Programming using Mega Load and EEPROM in AVR Studio .

Figure 4.2.1 compiling through AVR studio 4


4.3 Proteus
Proteus is software for microprocessor simulation, schematic capture, and printed circuit
board (PCB) design. It is developed by Lab center Electronics.
System components
ISIS Schematic Capture - a tool for entering designs.
PROSPICE Mixed mode SPICE simulation - industry standard SPICE3F5 simulator
combined with a digital simulator.
ARES PCB Layout - PCB design system with automatic component placer, rip-up and
retry auto-router and interactive design rule checking.
VSM - Virtual System Modelling lets cosimulate embedded software for popular
microcontrollers alongside hardware design. System Benefits Integrated package with
common user interface and fully context sensitive help.

21

Chapter 5
DESIGN VERIFICATION
5.1. Testing Hardware
Microcontroller test
Much of the testing with this project involved debugging the micro controller code and
interfacing the micro controller with the wired and PCB designed hardware. The debugging
entailed positioning various print statements throughout the code to see exactly which code
were executed. Oftentimes, it was difficult to determine if a problem was rooted in the
hardware wiring or in the source code. We used the computer monitor to explicitly output
the code executed and the oscilloscope to diagnose any potential hardware problems.
The biggest hurdle we had to overcome was making sure that each input was sent to the
right port of the micro controller. This was ensured with numerous compare statements
within the micro code. Therefore, if the micro controller read signals different than those
expected, this could be easily detected when the program was stuck in an endless loop
outputting error statements. Only when the micro controller recognized a valid input did it
jump to the next loop.
Making sure that the micro controller output the correct signals was also important. This
was verified using a number of test LEDs placed in appropriate locations within in our
circuit. If an LED was erroneously triggered, we first traced it back to the source code to
see if any of the instructions interpreted the inputs incorrectly. Next, we looked at how the
particular component was wired and determined if it was behaving correctly based on the
signal sent to it by the micro controller. Ultimately, this was how many of our debugging
problems were rectified. As a result, interfacing the microcontroller with the rest of our
circuit proved to be long and iterative trial and error process.
Sensor module test
Testing with moisture sensor module really need continuation effort. The sensor was placed
in different places for checking the proper amount of moisture content in the soil such that
microcontroller can detect the change in resistivity of the soil. In this project placing the
moisture sensor at the centre of the field we checked the state of the fields through the
resistivity.
GSM module test
By using the GSM SIM 900 the test was over using AT commands for receiving, sending
and reading the SMS in the user mobile.
5.2 Software testing
The software was coded in C language. C Language is peculiar to the processor. Due to
this fact we test the assembly code in a simulator for 8051.After the result was achieved as
desired, the code was burned converting into HEX file using AVR assembler. The Hex file
was loaded into microcontroller ATmega16 and was tested using led for output.

22

6. RESULTS
1. With our project we became successful to demonstrate with regarding the objectives of
the project.
2. The moisture content of the three different types of field were measured successfully.
3. Motor automatically turn on or off with the different level of moisture level content in
the soil.
4. Farmer successfully got the status of his fields whether dry or wet by just giving miscall
from his master mobile.
5. We became successful to meet the moisture content of the crops with their specific level
of moisture content.

23

7. LIMITATIONS
Limitations relating to the software as well as hardware are present. Some of the major
limitation may be grouped as follows.
1. Single moisture sensor only cover the small area of fields
2. Atmospheric moisture contents also brought some fluctuation in the measure value
of soil moisture content
3. Some chemical reaction erode the sensitivity and physical structure of sensor
4. Lack of knowledge about the fixed moisture content require for the particular fields

24

8. APPLICATION AND SCOPE


1. Nowadays due to the increase in the different facilities population is increasing day by
day and since food is one of the basic need of human beings , to make it available for the
billions trillions of people in the world the traditional type of agricultural is not sufficient.
The system we have designed is based on Agricultural technology.
2. In the agricultural countries like Nepal, Maldives and other highly developed countries
which produce the particular amount of agriculture product like Brazil and other European
countries this system can enhance their production in the scientific way.
3. Since farmer can know the status of the fields from anywhere through his/her mobile
and it consumes less time.

25

9. FURTURE ENHANCEMENTS
The scope of our project GSM Based Automatic Irrigation System is immense. The
future implications of the project are very great considering the amount of time, money and
resources it saves. The project we have undertaken can be used as a reference or as a base
for realizing a scheme to be implemented in other projects of greater level such as GSM
pump controller, weather updates using mobile phones, pest control, control farming
vehicles using mobiles, etc. The project itself can be modified to achieve a complete
Automatic Irrigation system which will then create a platform for the user to interface
between him and the agricultural field.

26

10. CONCLUSION
By using Hardware and software knowledge we built the GSM Based Automatic
Irrigation System. We became successful to receive the message about the state of the
field that is whether the land is dry or wet through the GSM interfacing. The result of our
design has met our expectation, in which every components is working well. Our irrigation
system is easy to use, comparatively cheap in that case that by just giving a miscall we can
received the state of the field, Moisture sensor interfacing helps to detect the moisture
content of the fields and comparing the value predefine in the buffer helps to automatically
to turn on/off the motor easily, low power consumption and highly reliable. The LCD also
offer great interface and user can be familiar with the system and know the state of the field
by just reading the message displayed on the LCD. The three push to on switch are
corresponding used for three different crops so that this somewhat meet the requirement of
farmer and farmer are free from the fact of irrigation overflow or underflow problems for
growing the crop.
The system we had design is also secure because the master SIM only can only receive the
message of the state of the field. This system saves the valuable time of the farmers and
free from worrying about the field and helps to increase the production of the crops because
this system provides the defined amount of water to the particular fields.
If we are given the chance to build it again the number of moisture sensor that should cover the
large field will be under the considerations.

27

10. References
1. M. A. Mazidi, J. G. Mazidi & R. D. Mckinlay, The 8051 microcontroller and
Embedded System,prentice hall.(c) 3,No. 2(2006)
2. www.engineersgarage.com
3. http://www.way2project.com
4. www.atmegaavr.com

28

APPENDIX 1.1
COST ESTIMATION
Components
Quantity
ATmega16
1

Price (in Rs)


350

ULN 2003

100

Push to On switch

60

LCD

350

DC motor

300

PCB board, Matrix


Board
Regulator 7805

1,1

380

20

Moisture sensor

920

Relay

35

AccessoriesLEDs, resistors,
wires, transistors,
capacitors, diodes,
solder
GSM moule

As per requirement

500

5500

Documentation

6500

Total price

14985

29

APPENDIX 1.2
Some of the AT commands used in GSM SIM 900 communication

30

Extracted from www.Engineersgarrage.com


31

Successful demonstration with some shot during presentation

32

33

You might also like