Beruflich Dokumente
Kultur Dokumente
This Multi-Utility Protection System project is used for fire detection and then
sending an SMS and call alert to a cellphone. The design is based on Arduino Uno. The
project also includes an LCD and an LED for visual indications, and a buzzer for audio
indication. It has sensory systems including dht11 and moisture sensors along with a
relay switching device. Agricultural equipment includes farm robots, pest controls, and
crops and seeds monitoring systems. This circuit generates an alarm if a fire breaks out
near motors, transformers or other equipment installed in the field. At the same time,
electrical load is automatically switched off. This circuit should be installed near the
equipment to be monitored.
If a fire breaks out, or excessive heat or burning flame is detected near the
equipment, the system generates an alert with visual LED indication and a sound alarm.
Status of the environment in real time, including temperature ,humidity level and status of
the field is displayed on the LCD. The LCD is used to track the temperature . If the level
goes beyond safe limit, immediate action can be taken. Most of the time, workers are in
the field, so they can check various sensor levels through the LCD.
INDEX
1. INTRODUCTION
INTRODUCTION OF PROJECT 1
METHODOLOGY 2
NEED OF EMBEDDED SYSTEMS 4
TYPES OF EMBEDDDED SYSTEMS 6
APPLICATIONS OF EMBEDDED SYSTEMS 7
2. LITERATURE SURVEY
EXISTING SYSTEMS 10
PROPOSED SYSTEM 12
3. BLOCKDIAGRAM
BLOCK DIAGRAM 13
DESCRIPTION 14
4. HARDWAREDESCRIPTION
ATMEGA 328MICROCONTROLLER 15
GSM MODULE SIM800A 21
DHT11 SENSOR 22
MOISURE SENSOR 26
16*2 LCDJHD162A SERIES 28
LED 30
PIEZZO BUZZER 31
5V DUAL CHANNEL RELAY MODULE 32
SUBMERSIBLE MOTOR WITH SPRINKLER 34
POTENTIOMETER 36
S.NO CHAPTER PAGE.NO
5. SOFTWARE DESCRIPTION
ARDUINOIDE1.8.10 37
6 IMPLEMENTATION
.
CIRCUITDIAGRAM 40
CONSTRUCTION AND TESTING 41
RESULT 44
ADVANTAGESANDDISADVANTAGES 46
APPLICATIONS 47
CONCLUSION 48
FUTURESCOPE 49
BIBLIOGRAPHY 50
APPENDIX 51
LIST OF FIGURES
FIG.NO. NAME OF FIGURE PAGE.NO.
2.1 FIRST FIRE ALARM 9
ARDUINO 16
4.1.1 UNO BOARD
PIN DIAGRAM OF 18
4.1.2 ATMEGA 328
GSM 21
4.2.1 MODULE
SIM800A
4.3 DHT11 SENSOR 24
4.6.1 LED 30
LED SCHEMATIC 30
4.6.2
SYMBOL
4.7 PIEZZOBUZZER 31
DUAL CHANNEL 33
4.8 RELAY MODULE
4.10 SPRINKLER 35
4.11 POTENTIOMETER 36
5.3 COMPILING 38
UPLOADING SOURCE 39
5.4 CODE
LIST OF FIGURES
6.5 INDICATION OF
HEAVY WATER 45
LIST OF TABLES
4.5 ELECTRICAL
CHARACTERISTICS OF DHT11
SENSOR 24
1. INTRODUCTION
Introduction
This Multi-Utility Protection System project is used for fire detection and then
sending an SMS and voice alert to a cell phone. The design is based on Arduino Uno. The
project also includes an LCD and an LED for visual indications, and a buzzer for audio
indication. It has sensory system including DHT11 sensor along with a relay switching
device.
Agricultural equipment include farm robots, pest controls, and crops and seeds
monitoring systems. This circuit generates an alarm if a fire breaks out near motors,
transformers or other equipment installed in the field. At the same time, electrical load is
automatically switched off. This circuit should be installed near the equipment to be
monitored.
If a fire breaks out, or excessive heat or burning flame is detected near the equipment,
the system generates an alert with visual LED indication and a sound alarm. Status of the
environ- ment in real time, including temperature and humidity, is displayed on the LCD.
The LCD is used to track the temperature sensor level. If the level goes beyond safe limit,
immediate action can be taken. Most of the time, workers are in the field, so they can
check various sensor levels through the LCD.
GSM-based SMS and voice alert facility is also included. It allows getting the SMS
and voice alert on a cell- phone at home, even at night in case of fire. The owner can then
alert the worker or in charge pre- sent in the field to take appropriate action.
DEPARTMENT OF ECE,MRIET 1
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
1. AT mega 328microcontroller.
2. GSM sim800A module.
3. DHT11sensor.
4. Moisture sensor. 5.16*2LCD.
5. 5V Dual Channel Relay Module.
6. Sprinkler.
Software used:
1. Embedded C programming.
2. Arduino ide version1.8.9.
METHODOLOGY
Embedded Systems:
Physically embedded systems range from portable devices such as digital watches
and MP3 players, to large stationary installations like traffic lights, factory controllers, or
the systems controlling nuclear power plants. In general, "embedded system" is not a
strictly definable term, as most systems have some element of extensibility or
programmability.
DEPARTMENT OF ECE,MRIET 2
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
For example, handheld computers share some elements with embedded systems
such as the operating systems and microprocessors which power them, but they allow
different applications to be loaded and peripherals to be connected. Moreover, even
systems which don't expose programmability as a primary feature generally need to
support software updates. On a continuum from "general purpose" to "embdded", large
application systems will have subcomponents at most points even if the system as a
whole is "designed to perform one or a few dedicated functions", and is thus appropriate
to call "embedded".
History:
Resources:
To save costs, embedded systems frequently have the cheapest processors that can
do the job. This means your programs need to be written as efficiently as possible. When
dealing with large data sets, issues like memory cache misses that never matter in PC
programming can hurt you. Luckily, this won't happen too often- use reasonably efficient
algorithms to start, and opti- mize only when necessary. Of course, normal profilers won't
work well, due to the same reason debuggers don't work well
DEPARTMENT OF ECE,MRIET 3
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
The uses of embedded systems are virtually limitless, because every day new products
are introduced to the market that utilizes embedded computers in novel ways. In recent
years, hardware such as microprocessors, microcontrollers, and FPGA chips have
become much cheaper. So when implementing a new form of control, it's wiser to just
buy the generic chip and write your own custom software for it. Producing a custom-
made chip to handle a particular task or set of tasks costs far more time and money. Many
embedded computers even come with extensive libraries, so that "writing your own
software" becomes a very trivial task indeed. From an implementation viewpoint, there is
a major difference between a computer and an embedded system. Embedded systems are
often required to provide Real- Time response. The main elements that make embedded
systems unique are its reliability and ease in debugging.
Debugging:
Interactive resident debugging, using the simple shell provided by the embedded
operating system (e.g. Forth and Basic)
External debugging using logging or serial port output to trace operation using either a
monitor in flash or using a debug server like the Remedy Debugger which even works for
heterogeneous multi core systems.
DEPARTMENT OF ECE,MRIET 4
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
Unless restricted to external debugging, the programmer can typically load and run
software through the tools, view the code running in the processor, and start or stop its
operation. The view of the code may be as assembly code or source-code.
Reliability:
Embedded systems often reside in machines that are expected to run continuously
for years without errors and in some cases recover by them if an error occurs. Therefore
the software is usually developed and tested more carefully than that for personal
computers, and unreliable mechanical moving parts such as disk drives, switches or
buttons are avoided.
The system cannot safely be shut down for repair, or it is too inaccessible to repair.
Examples include space systems, undersea cables, navigational beacons, bore-hole
systems, and automobiles.
DEPARTMENT OF ECE,MRIET 5
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
The system must be kept running for safety reasons. "Limp modes" are less tolerable.
Often backup s are selected by an operator. Examples include aircraft navigation, reactor
control systems, safety-critical chemical factory controls, train signals, engines on single-
engine aircraft.
The system will lose large amounts of money when shut down: Telephone switches,
factory controls, bridge and elevator controls, funds transfer and market making,
Watchdog timer that resets the computer unless the software periodically notifies the
watchdog
Subsystems with redundant spares that can be switched over to software "limp modes"
that provide partial function.
TYPES OF EMBEDDEDSYSTEMS
These systems take the input in the form of electrical signals from transducers or
com- mands from human beings such as pressing of a button etc.., process them and
produces deStand alone mode. Such embedded systems come under stand-alone
embedded systems. E.g.: micro- wave oven, air conditioner etc...
DEPARTMENT OF ECE,MRIET 6
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
These embedded systems follow an absolute deadline time period i.e.., if the
tasking is not done in a particular time period then there is a cause of damage to the entire
equipment. E.g.: consider a system in which we have to open a valve within 30
milliseconds. If this valve is not opened in 30ms this may cause damage to the entire
equipment.
These embedded systems follow a relative deadline time period i.e.., if the task is not
done in a particular time that will not cause damage to the equipment. E.g.: Consider a
TV remote control system, if the remote control takes a few milliseconds delay it will not
cause damage either to the TV or to the remote control.
• Consumer electronics – Televisions and digital cameras; computer printers; video game
consoles and home entertainment systems like PS4.
• Household appliances – Refrigerators; washing machines, microwave ovens, air
conditioners
• Medical equipment – Scanners like those for MRI, CT; ECG machines; devices to
monitor blood pressure and heartbeat
• Automobiles – Fuel injection systems, anti-lock braking systems, music and
entertainment systems, controls for air-conditioner
• Industrial applications – Assembly lines, systems for feedback, systems for data
collection
• Aerospace – Systems for navigation and guidance, GPS
• Communications – Routers, satellite phones
DEPARTMENT OF ECE,MRIET 7
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
(8086, 80286, 80386, 80486, and the Pentium) or Motorola's 680X0 family
(68000,68010, 68020, 68030, 68040, etc.). These microprocessors contain no RAM, no
ROM, and no I/O ports on the chip itself. For this reason, they are commonly referred to
as general-purpose Microprocessors.
ROM, I/O ports, and a timer all on a single chip. In other words, the processor, the RAM,
ROM, I/O ports and the timer are all embedded together on one chip; therefore, the
designer cannot add any external memory, I/O ports, or timer to it. The fixed amount of
on-chip ROM, RAM, and number of I/O ports in Microcontrollers makes them ideal for
many applications in which cost and space are critical
DEPARTMENT OF ECE,MRIET 8
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
2.LITERATURE SURVEY
INTRODUCTION
The first fire alarm system ever was invented way back in 1852 by Dr. William F.
Channing and Moses Farmer. The system consisted of two fire alarm boxes that each had
a telegraphic key and a handle. If a fire was detected in a home or business, someone
would have to reach inside one of the boxes and crank the handle in order to send an alert
about the fire to a nearby alarm station.
An operator at the station would then take the message and alert a fire department about it
so that they could send help. As you can see, it was quite a process and required several
steps.
The first electric fire alarm system was invented almost four decades later in 1890 by
Francis Robbins Upton. He recognized that, in most cases, people wouldn’t have time to
stand around and crank a handle inside of a box when a fire started. Therefore, his electric
system eliminated the need for this step.
Surprisingly, the design for his system wasn’t all that popular when it was first
introduced, but over time, people started to realize the need for a more advanced fire
alarm system like this one.
DEPARTMENT OF ECE,MRIET 9
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
EXISTING SYSTEM
Design of an Arduino-based home fire alarm system with GSM module
This paper describes the design of a home fire alarm with Arduino-based system by
means of GSM Module. The project purposely is for house safety where the main point is
to avoid the fire accidents occurred to the residents and the properties inside the house as
well. It utilizes Arduino Uno board in conjunction with ATmega328 chip. The main
controller used is certainly the ATmega328 which controls the home fire alert subjected
to the temperature sensor. An LM35 temperature sensor is used to detect the heat from
the fire. An alert message will be sent to the user via short message service (SMS) via
GSM module. When the system detects the temperature of 400 C or more, it will
immediately display an alert notification on LCD display and simultaneously sending an
SMS alert to the users upon the high raise temperature in the house. Results from the test
are documented and discussed. Through this system, it can help users to improve their
safety standards by having immediate response in preventing accidents. This will
eventually allow the users to protect their lives and the properties as well from the
disaster.
DEPARTMENT OF ECE,MRIET 10
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
Security and automation is prime concern in our day to day life. The approach to home
and industrial automation and security system design is almost standardized nowadays. In
this paper, we have tried to increase this standard by combining new techniques and
developed a low cost home and industrial automated security systems. Everyone wants to
be as much as secure as possible. The design of simple hardware circuit enables every
user to use this fire sensor, temperature sensor, gas sensor, smoke sensor at home and
industries.
Monitoring moisture of soil using low cost homemade Soil moisture sensor and
Arduino UNO -2016 3rd International Conference on Advanced Computing
and Communication Systems (ICACCS)
Persistent increase in population of world is demanding more and more supply of food.
Hence there is a significant need of advancement in cultivation to meet up the future food
needs. It is important to know moisture levels in soil to maximize the output. But most of
farmers cannot afford high cost devices to measure soil moisture. Our research work in
this paper focuses on home-made low cost moisture sensor with accuracy. In this paper
we present a method to manufacture soil moisture sensor to estimate moisture content in
soil hence by providing information about required water supply for good cultivation.
This sensor is tested with several samples of soil and able to meet considerable accuracy.
Measuring soil moisture is an effective way to determine condition of soil and get
information about the quantity of water that need to be supplied for cultivation. Two
separate methods are illustrated in this paper to determine soil moisture over an area and
along the depth.
DEPARTMENT OF ECE,MRIET 11
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
possible for one person to be able to keep track of entire farm land about crop and the soil
moisture due to health problems, age and unavailability of a person. To overcome this
problem a solution is proposed to automate the irrigation system using Arduino and
monitoring the farm field by using photos captured by the camera. Depending upon the
level of soil moisture content, the system supplies the water to a farm field by sensing the
soil moisture. The process of producing appropriate amount of water to plants avoids
some of situation like mud cracks, plant disease etc. When the water level reaches the
threshold value it automatically stops, sends the notification of a farm field to the farmers.
This helps in irrigating the field even during night time, so does not require the farmer to
switch on motor manually. Ultimately a farmer can monitor the condition of farm field
from anywhere.
PROPOSED SYSTEM
This Multi-Utility Protection System for agricultural equipment project is used for
fire detection and then sending an SMS and call alert to a cellphone. The design is based
on Arduino Uno. The project also includes an LCD and an LED for visual indications,
and a buzzer for audio indication.It consists of two sensor those are DHT11 and soil
moisture sensor .The DHT11 detects the temperature and humidity at its surroundings
,where soil moisture sensor used to know the moisture level including the status of the
agricultural field .If the temperature crosses the threshold value then it generates an alert
which includes visual , audio indication and by sending the message and call .For sending
the SMS and call alert we use GSM MODULE .
DEPARTMENT OF ECE,MRIET 12
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
3.BLOCKDIAGRAM
BLOCK DIAGRAM
In this chapter the block diagram of the project and design aspect of independent
modules are considered. The block diagram is shown in the below figure 2.1.
DEPARTMENT OF ECE,MRIET 13
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
DESCRIPTION
The above block diagram shows the components individually that are required for
the construction of the circuit. ATMEGA 328 is considered as the heart of the circuit.
The DHT11 sensor identifies the levels and the respected commands are observed on the
LCD.
If a fire breaks out, or excessive heat or burning flame is detected near the
equipment, the system generates an alert with visual LED indication and a sound alarm.
Status of the environment in real time, including temperature and humidity, is displayed
on the LCD. The LCD is used to track the temperature and humidity sensor level. If the
level goes beyond safe limit, immediate action can be taken. Most of the time, workers
are in the field, so they can check various sensor levels through the LCD.GSM-based
SMS and voice alert facility is also included. It allows getting the SMS and voice alert on
a cellphone at home, even at night in case of fire. The owner can then alert the worker or
in-charge present in the field to take appropriate action.
The LCD displays the normal level when the temperature and humidity level are
at normal range. When excessive fire breaks out the DHT11 sensor senses the humidity
and temperature levels and displays as fire acident on the lcd. The immediate visual
indication and audio indication are observed by the LED blinking and the buzzer which
helps the nearby people to take immediate action.
DEPARTMENT OF ECE,MRIET 14
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
4.HARDWARE DESCRIPTION
ATMEGA 328MICROCONTROLLER
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
DEPARTMENT OF ECE,MRIET 15
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
Power:
The Arduino Uno can be powered via the USB connection or with an external power
supply. The power source is selected automatically. External (non-USB) power can come
either from an AC-to-DC adapter (wall-wart) or battery. The adapter can be connected by
plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery
can be inserted in the Gnd and Vin pin headers of the POWER connector. The board can
operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the
5V pin may supply less than five volts and the board may be unstable. If using more than
12V, the voltage regulator may overheat and damage the board. The recommended range
is 7 to 12 volts.
VIN. The input voltage to the Arduino board when it's using an external power source
(as op- posed to 5 volts from the USB connection or other regulated power source). You
can supply voltage through this pin, or, if supplying voltage via the power jack, access it
through this pin.
DEPARTMENT OF ECE,MRIET 16
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
5V.This pin outputs a regulated 5V from the regulator on the board. The board can be
supplied with power either from the DC power jack (7 - 12V), the USB connector (5V),
or the VIN pin of the board (7-12V). Supplying voltage via the 5V or 3.3V pins bypasses
the regulator, and can damage your board. We don't adviseit.
3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current
draw is 50mA.
GND. Ground pins.
Memory:
The ATmega328 has 32 KB (with 0.5 KB used for the bootloader). It also has 2 KB of
SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM
library).
Each of the 14 digital pins on the Uno can be used as an input or output, using
pinMode(), digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin
can provide or receive a maximum of 40 mA and has an internal pull-up resistor
(disconnected by default) of 20-50 kOhms. In addition, some pins have specialized
functions:
Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data.
These pins are connected to the corresponding pins of the ATmega8U2 USB-to-TTL
Serialchip.
PWM: 3, 5, 6, 9, 10, and 11. Provide 8-bit PWM output with the
analogWrite()function.
SPI: 10 (SS), 11 (MOSI), 12 (MISO), 13(SCK).
These pins support SPI communication using the SPI library.
DEPARTMENT OF ECE,MRIET 17
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH
value, the LED is on, when the pin is LOW, it's off. The Uno has 6 analog inputs, labeled
A0 through A5, each of which provide 10 bits of resolution (i.e. 1024 different values).
By default they measure from ground to 5 volts, though is it possible to change the upper
end of their range using the AREF pin and the analogReference() function. Additionally,
some pins have specialized functionality.
TWI: A4 or SDA pin and A5 or SCL pin. Support TWI communication using the
Wire library. There are a couple of other pins on the board:
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. Bring this line LOW to reset the microcontroller. Typically used to add a reset
button to shields which block the one on the board. See also the mapping between
Arduino pins and AT- mega328 ports. The mapping for the Atmega8, 168, and 328 is
identical.
DEPARTMENT OF ECE,MRIET 18
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
1 PC6 Reset
8 GND Ground
22 GND Ground
DEPARTMENT OF ECE,MRIET 19
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
As stated before, 20 of the pins function as I/O ports. This means they can
function as an input to the circuit or as output. Whether they are input or output is set in
the software. 14 of the pins are digital pins, of which 6 can function to give PWM output.
6 of the pins are for analog input/output.2 of the pins are for the crystal oscillator. This is
to provide a clock pulse for the At mega chip. A clock pulse is needed for synchronization
so that communication can occur in synchrony between the At mega chip and a device
that it is connected to.
The chip needs power so 2 of the pins, Vcc and GND, provide it power so that it
can operate. The Atmega328 is a low-power chip, so it only needs between 1.8-5.5V of
power to operate. The Atmega328 chip has an analog-to-digital converter (ADC) inside
of it. This must be or else the Atmega328 wouldn't be capable of interpreting analog
signals. Because there is an ADC, the chip can interpret analog input, which is why the
chip has 6 pins for analog input. The ADC has 3 pins set aside for it to function- AVCC,
AREF, and GND. AVCC is the power supply, positive voltage, that for the ADC.
The ADC needs its own power supply in order to work. GND is the power supply
ground. AREF is the reference voltage that the ADC uses to convert an analog signal to
its corresponding digital value.
Analog voltages higher than the reference voltage will be assigned to a digital
value of 1, while analog voltages below the reference voltage will be assigned the digital
value of 0.Since the ADC for the Atmega328 is a 10-bit ADC, meaning it produces a 10-
bit digital value, it converts an analog signal to its digital value, with the AREF value
being a reference for which digital values are high or low.
Thus, a portrait of an analog signal is shown by this digital value; thus, it is its
digital correspondent value.
The last pin is the RESET pin. This allows a program to be rerun and start over.
DEPARTMENT OF ECE,MRIET 20
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
DEPARTMENT OF ECE,MRIET 21
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
2 TX Transmitter
3 RX Receiver
Working:
Unlike mobile phones, a GSM modem doesn’t have a keypad and display to
interact with. It just accepts certain commands through a serial interface and
acknowledges for those. These commands are called as AT commands. There are a list of
AT commands to instruct the modem to perform its functions. Every command starts
with "AT". That’s why they are called as AT commands. AT stands for attention. In our
simple project, the program waits for the mobile number to be entered through the
keyboard. When a ten digit mobile number is provided, the program instructs the modem
to send the text message and voice call using a sequence of AT commands.
DHT11 SENSOR
The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It
uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and
spits out a digtal Signal on the data pin(no analog input pins needed). It is fairly simple to
use, but requires careful timing to grab data.
DEPARTMENT OF ECE,MRIET 22
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURAL EQUIPMENT
The only real downside of this sensor is you can only get new data from it once
every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.
This sensor can be easily interfaced with any microcontroller such as Arduino to measure
humidity and temperature instantaneously. DHT11 humidity and temperature sensor is
available.DHT11 is a relative humidity sensor.
DHT11 sensor consists of a capacitive humidity sensing element and a thermistor for
sensing temperature. The humidity sensing capacitor has two electrodes with a moisture
holding substrate as a dielectric between them. Change in the capacitance value occurs
with the change in humidity levels. The IC measure, process this changed resistance
values and change them into digital form.
The temperature range of DHT11 is from 0 to 50 degree Celsius with a2-degree accuracy.
Humidity range of this sensor is from 20 to 80% with 5% accuracy. The sampling rate of
this sensor is 1Hz .i.e. it gives one reading for every second. DHT11 is small in size with
operating voltage from 3 to 5 volts. The maximum current used while measuring is
2.5mA.
DEPARTMENT OF ECE,MRIET 23
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
Technical Specifications:-
DEPARTMENT OF ECE,MRIET 24
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
Humidity
8 Bit
Repeatability ±1%RH
0-50℃ ±5%RH
Hysteresis ±1%RH
Temperature
Resolution 1℃ 1℃ 1℃
Repeatability ±1℃
MeasurementRange 0℃ 50℃
DEPARTMENT OF ECE,MRIET 25
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
Applications:
MOISTURE SENSOR
The Moisture sensor is used to measure the water content (moisture) of soil. When
the soil is having water shortage, the module output is at high level; else the output is at
low level. This sensor reminds the user to water their plants and also monitors the
moisture content of soil. It has been widely used in agriculture, land irrigation and
botanical gardening.
The soil moisture sensor consists of two probes that measure the volume of water in the
soil. The two probes allow the electric current to pass through the soil and according to
its resistance, measure the moisture level of the soil.
When there is more water, the soil conducts more electricity, which means that the
resistance will be less. So the moisture level will be higher. Dry soil reduces
conductivity. So, when there is less water, the soil conducts less electricity, which means
it has more resistance. So the moisture level will be lower.
Moisture sensor consist of four pins: VCC, GND, AO, DO. The AO pin changes
according to the amount of moisture in the soil and increases as there is more water in the
soil. The DO pin changes according to the amount of moisture is less than the permissible
amount (which can be changed by the potentiometer on the sensor) the digital pin will be
“1”, otherwise will remain “0”.
Moisture sensor has a detection length of 38mm and a working voltage of 2V-5V. It has a
Fork-like design, which makes it is easy to insert into the soil. The analog output voltage
boosts along with the soil moisture level increases. Using this sensor is quiet easy. You
connect the AO pin to any analog pin and DO pin to any digital pin.
The Soil Moisture Sensor uses capacitance to measure dielectric permittivity of the
surrounding medium. In soil, dielectric permittivity is a function of the water content.
The sensor creates a voltage proportional to the dielectric permittivity, and therefore the
DEPARTMENT OF ECE,MRIET 26
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
water content of the soil. The sensor averages the water content over the entire length
of the sensor.There is a 2 cm zone of influence with respect to the flat surface of the
sensor, but it has little or no sensitivity at the extreme edges. The Soil Moisture Sensor is
used to measure the loss of moisture over time due to evaporation and plant uptake,
evaluate optimum soil moisture contents for various species of plants, monitor soil
moisture content to control irrigation in greenhouses and enhance bottle biology
experiments.
DEPARTMENT OF ECE,MRIET 27
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
LCD (Liquid Crystal Display) screen is an electronic display module and find a
wide range of applications. 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 soon.
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.
DEPARTMENT OF ECE,MRIET 28
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
7 DB0
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
DEPARTMENT OF ECE,MRIET 29
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
LED:
Blue, green, and red LEDs; these can be combined to produce most perceptible
colors, including white. Infrared and ultraviolet (UVA) LEDs are also available.
FIG4.6.1 LED
LEDs are widely used as indicator lights on electronic devices and increasingly in
higher power applications such as flashlights and area lighting. An LED is usually a
small area (less than 1 mm2) light source, often with optics added directly on top of the
chip to shape its radiation pattern and assist in reflection. The color of the emitted light
depends on the composition and condition of the semi conducting material used, and can
be infrared, visible or ultraviolet. Besides lighting, interesting applications include using
UV-LEDs for sterilization of water and disinfection of devices, [4]and as a grow light to
enhance photosynthesis in plants.
DEPARTMENT OF ECE,MRIET 30
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
PIEZZOBUZZER
Features:
The PS series are high-performance buzzers that employ unimorph piezzo electric
ele- ments and are designed for easy incorporation into various circuits. They feature
extremely low power consumption in comparison to electromagnetic units. Because these
buzzers are designed for external excitation, the same part can serve as both a musical
tone oscillator and a buzzer.
Applications:
Uses:
Annunciator panels.
Electronic metronomes.
Game shows.
DEPARTMENT OF ECE,MRIET 31
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
A relay is an electrically operated switch. Current flowing through the coil of the
relay creates a magnetic field which attracts a lever and changes the switch contacts. The
coil current can be on or off so relays have two switch positions and they are double
throw (changeover) switches. Relays allow one circuit to switch a second circuit which
can be completely separate from the first. For example a low voltage battery circuit can
use a relay to switch a 230V AC mains circuit. There is no electrical connection inside the
relay between the two circuits, the link is magnetic and mechanical. The coil of a relay
passes a relatively large current, typically 30mA for a 12V relay, but it can be as much as
100mA for relays designed to operate from lower volt- ages. Most ICs (chips) cannot
provide this current and a transistor is usually used to amplify the small IC current to the
larger value required for the relay coil. The maximum output current for the popular 555
timer IC is 200mA so these devices can supply relay coils directly withoutamplication.
Relays are usually SPDT or DPDT but they can have many more sets of switch
contacts, for example relays with 4 sets of changeover contacts are readily available. For
further information about switch contacts and the terms used to describe them please see
the page on switches. Most relays are designed for PCB mounting but you can solder
wires directly to the pins providing you take care to avoid melting the plastic case of the
relay.
The supplier's catalogue should show you the relay's connections. The coil will be
obvious and it may be connected either way round. Relay coils produce brief high voltage
'spikes' when they are switched off and this can destroy transistors and ICs in the circuit.
To prevent damage you must connect a protection diode across the relay coil. The
animated picture shows a working relay with its coil and switch contacts. You can see a
lever on the left being attracted by magnetism when the coil is switched on. This lever
moves the switch contacts. There is one set of contacts (SPDT) in the foreground and
another behind them, making the relay DPDT.
The relay module is an electrically operated switch that allows you to turn on or
off a circuit using voltage and/or current much higher than a microcontroller could
DEPARTMENT OF ECE,MRIET 32
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
handle. There is no connection between the low voltage circuit operated by the
microcontroller and the high power circuit. The relay protects each circuit from each other.
The each channel in the module has three connections named NC, COM, and NO.
Depending on the input signal trigger mode, the jumper cap can be placed at high level
effective mode which ‘closes’ the normally open (NO) switch at high level input and at low
level effective mode which operates the same but at low level input.
The relay's switch connections are usually labeled COM, NC and NO:
COM = Common, always connect to this, it is the moving part of the switch.
NC = Normally Closed, COM is connected to this when the relay coil is off.
NO = Normally Open, COM is connected to this when the relay coil is on. Connect to
COM and NO if you want the switched circuit to be on when the relay coil is on. Connect
to COM and NC if you want the switched circuit to be on when the relay coil is off.
Specifications:
DEPARTMENT OF ECE,MRIET 33
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
The submersible pump works by pulling the fluid towards itself. During the intake, the
rotating impeller pushes the fluid through the diffuser. From there, the fluid goes to the
surface. The submersible pumps are self-priming as they are already submerged in the
fluid. Cavitation is never an issue and they are also quiet because they work underwater.
Technical Specifications
DC Voltage: 2.5-6V
Maximum lift: 40-110cm / 15.75″-43.4″
Inside diameter of water outlet: 5mm / 0.2″ Diameter: Approx. 24mm / 0.95″
Length: Approx. 45mm / 1.8″
Applications
Hydroponic Systems
DEPARTMENT OF ECE,MRIET 34
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
SPRINKLER
In sprinkler system water is distributed through a system of pipes usually by pumping.
High pressure impact sprinklers themselves move in a circle are driven by a ball drive,
gear drive or impact mechanism.
DEPARTMENT OF ECE,MRIET 35
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
POTENTIOMETER
Although their most obvious use must be for volume controls on radios and other
electronic equipment used for audio.
DEPARTMENT OF ECE,MRIET 36
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
5.SOFTWARE DESCRIPTION
DEPARTMENT OF ECE,MRIET 37
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
You have to tell the Arduino IDE what board you are uploading to. Select the
Tools pull down menu and go to Board. This list is populated by default with the
currently available Arduino Boards that are developed by Arduino.
DEPARTMENT OF ECE,MRIET 38
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
The required source code is compiled and uploaded to the Arduino board by connect- ing
the board using USB. After uploading the testing can be done.
DEPARTMENT OF ECE,MRIET 39
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
6.IMPLEMENTATI ON
CIRCUITDIAGRAM:
DEPARTMENT OF ECE,MRIET 40
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
If a fire breaks out or the field consists of heavy water is detected by the
equipment , the system generates an alert with visual LED indication and a sound alarm.
Status of the environment in real time, including temperature and water level is displayed
on the LCD.
CONSTRUCTION:
Make connections as per the circuit diagram. By using the PCB connect the 5v
and GND supply to all the components where it is necessary. By using the two
potentiometers we can control the backlight and contrast of LCD .When we ON circuit
using the power cable at first it is will show the output as shown in FIG 5.3.1.
Case (I)
For initial testing, light a candle and bring its flame near the DHT11 sensor.
Monitor the Temperature and humidity level on the serial monitor. If the Temperature
goes beyond the threshold level, the buzzer1 sounds an alarm, LED1 glows and
Motor(M1) gets ON. At the same time, it sends an SMS alert and voice alert to the cell
DEPARTMENT OF ECE,MRIET 41
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
number included in the software code.This device also turn off the external load if fire
detects near the motors machines etc. The Temperature level can also be viewed on the
serial monitor and the LCD.
The temperature and the humidity level are displayed on the LCD in terms of
Celsius and relative humidity respectively at normal level before testing.
Case (II)
For initial testing, take water in a beaker and place the soil moisture sensor in it .The
water level is represented in two ways analog and in terms of moisture percentage, field
status is also indicated as DRY and WET based on the digital value. If, the moisture
percentage goes beyond the threshold level, the buzzer1 sounds an alarm ,LED1 glows.
At the same time, it sends an SMS alert and CALL alert to the cell number included in
the software code. All the values of analog, moisture percentage and status of the field
are displayed on the serial monitor and the LCD
DEPARTMENT OF ECE,MRIET 42
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
DEPARTMENT OF ECE,MRIET 43
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
RESULT:
If the temperature crosses the threshold value then accordingly our circuit
generates the alert which is displayed on the LCD as shown in below figure.
DEPARTMENT OF ECE,MRIET 44
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
The above figure shows the indication of alert when the agricultural field consists of
heavy water.
DEPARTMENT OF ECE,MRIET 45
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
The device can be used at any place where sensing of temperature and soil moisture are
required.
The device indicates three different ways which also includes sending a SMS and voice
alert.
The device is low cost for manufacturing.
It also indicates the water levels in agricultural fields using soil moisture sensor.
DISADVANTAGES:
The device cannot sense the temperature beyond the range of DHT11 sensor.
When the device senses an abnormality, it cuts off the relay and does not turn it on auto-
matically when normal conditions are attained.
DEPARTMENT OF ECE,MRIET 46
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
APPLICATIONS
AGRICULTURE
• Used in agricultural fields where soil moisture plays a major role in farming.
• Used in green houses where the plants are grown with regulated climatic conditions.
• These advanced devices will help farmers for more profitable, efficient and safer farming.
INDUSTRIES
• This device detects elevated temperature of machinery in industries.
• In small scale industries like mushroom industries, this alteration s in temperature and
moisture.
OTHER APPLICATIONS
• The device can be used in factories, go-downs and many places where fire accidents take
place.
• As this is used as fire alerting system it can be used in any place to take immediate action
during fire accidents.
DEPARTMENT OF ECE,MRIET 47
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
CONCLUSION
By using this multi-utility protection system for agricultural system ,we can
conclude that this device is not only useful in agricultural applications but also in many
places where fire accidents takes place. The system alerts the person immediately by
sending an SMS or people nearby by LED and audio indication. As it senses the
temperature immediate precautions can be taken before the fire level increases. This is
also used for sensing the moisture level in agriculture fields.
DEPARTMENT OF ECE,MRIET 48
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
FUTURE SCOPE
DEPARTMENT OF ECE,MRIET 49
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
BIBLIOGRAPHY
CONTENTS REFERRED:
PUBLISHED PAPERS :
4. GSM Based Fire Sensor Alarm Using Arduino-International Journal of Scientific &
Engineering Research, Volume 7, Issue 4, April-2016 259 ISSN 2229-55187.
5. Monitoring moisture of soil using low cost homemade Soil moisture sensor and
Arduino UNO - 2016 3rd International Conference on Advanced Computing and
Communication Systems (ICACCS).
WEBSITES VIEWED:
www.electronicsforyou.com
www.arduino.cc
www.electronicshub.org
www.atmel.com
www.wikipedia.com
DEPARTMENT OF ECE,MRIET 50
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
APPENDIX
#include <SoftwareSerial.h>
SoftwareSerial mySerial(A1,A2);
#include <LiquidCrystal.h>
#include <dht.h>
dht DHT;
#define DHT11_PIN 7
const int rs =12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
const int capteur_D = 8;
const int capteur_A = A5;
const int buzz=13; int relay=6;
const int relay1=9;
const int led=A4;
int val_analogique;
const
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup(){
pinMode(capteur_D, INPUT);
pinMode(capteur_A, INPUT);
pinMode(buzz,OUTPUT);
pinMode(relay,OUTPUT);
pinMode(relay1,OUTPUT);
pinMode(led,OUTPUT);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
lcd.print("Multi utility");
lcd.setCursor(0, 1);
lcd.print("Protectionsystem");
delay(1000);
Serial.begin(9600);
mySerial.begin(9600);
Serial.begin(9600);
delay(100);
}
void loop(){
DEPARTMENT OF ECE,MRIET 51
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
DEPARTMENT OF ECE,MRIET 52
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
l
cd.setCursor(0, 1);
lcd.print("moist%:");
lcd.println(moisture_perce
ntage); delay(1000);
lcd.clear();
}
else
{
Serial.println("Digital value : dry");
lcd.setCursor(0, 0);
lcd.print("Field IS DRY");
lcd.setCursor(0, 1);
lcd.print("moist%: ");
lcd.println(moisture_percentage);
delay(1000);
lcd.clear();
}
if ((DHT.temperature)>40)
{
sendsmsfire();
Dialcall();
}
if ((moisture_percentage)>60)
{
sendsmsfire1();
Dialcall1();
}
}
void sendsmsfire()
{
DEPARTMENT OF ECE,MRIET 53
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
mySerial.println("AT\r");
delay(1000);
mySerial.println("AT+CMGF=1\r");
delay(1000);
mySerial.println("AT+CMGS=\"+918639415686\"\r");
delay(1000);
mySerial.println("FIRE ACCIDENT AT YOUR FIELD OR STORAGE ROOM..!!");
delay(1000);
mySerial.println((char)26);
delay(1000);
lcd.setCursor(0, 0);
lcd.print("DANGER FIRE..!!");
lcd.setCursor(0, 1);
lcd.println("FIRE ACCIDENT..!!");
delay(1000);
lcd.clear();
digitalWrite(buzz,HIGH);
digitalWrite(relay,HIGH);
digitalWrite(relay1,HIGH);
digitalWrite(led,HIGH);
}
void Dialcall()
{
mySerial.println("ATD+918639415686;");
}
void sendsmsfire1()
{
mySerial.println("AT\r");
delay(1000);
mySerial.println("AT+CMGF=1\r");
delay(1000);
mySerial.println("AT+CMGS=\"+918639415686\"\r");
delay(1000);
DEPARTMENT OF ECE,MRIET 54
MULTI UTILITY PROTECTION SYSTEM FOR AGRICULTURE EQUIPMENT
DEPARTMENT OF ECE,MRIET 55