0% found this document useful (0 votes)
83 views23 pages

Iot Based Sriprasannaa

This document describes an Arduino-based device for remotely controlling an agricultural motor using SMS messages. The system consists of an Arduino Nano, GSM SIM 800L module, relay, and WiFi antenna. The GSM module allows sending SMS commands to turn the motor on/off from a phone. This automation reduces human labor for irrigation while allowing remote control through inexpensive SMS technology. The goal is to improve agricultural efficiency with low-cost, automated irrigation control.

Uploaded by

sriprasannaa p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
83 views23 pages

Iot Based Sriprasannaa

This document describes an Arduino-based device for remotely controlling an agricultural motor using SMS messages. The system consists of an Arduino Nano, GSM SIM 800L module, relay, and WiFi antenna. The GSM module allows sending SMS commands to turn the motor on/off from a phone. This automation reduces human labor for irrigation while allowing remote control through inexpensive SMS technology. The goal is to improve agricultural efficiency with low-cost, automated irrigation control.

Uploaded by

sriprasannaa p
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

NAAN MUDHALVAN

EMBEDDED SYSTEM DESIGN FOR


INDUSTRIAL APPLICATION
UNIVERSITY COLLEGE OF ENGINEERING
PANRUTI
TITLE: AURDINO BASED OVERLOAD SHUTTINGDOWN DEVICE

DEPARTMENT OF ELECTRICAL AND ELECTRONICS


ENGINEERING

1. 422620105306 P.SRIPRASANNAA
2. 422620105301 V.JEEVA BETHAN
3. 422620105006 V.DEEPA
4. 422620105313 P.SELVAKUMAR

COURSE ABSTRACT
COURSE HEAD OF DEPARTMENT
INSTRUCTOR COORDINATOR
In India, an important growing sector is as agriculture. The
major challenges in agriculture are crop productivity, smart
irrigation system. This paper review the internet of Things (IOT)
based smart agriculture motor control using GSM module. The
purpose of this work is improve the efficiency of the existing
irrigation system and to reduce the human intervention for the
water supply of agriculture area. This project consist of Arduino
Nano, GSM Sim 800L module, Relay, Wifi wireless Gain
antenna. Arduino Nano is the main controlling unit that control
the agriculture motor, GSM module.GSM Sim 800L module is
the transfer the data from motor on and off state to mobile
phone and it receive data from mobile phone to arduino
through a SMS message. The Relay is used to cut-off the motor.
INTRODUCTION
To improve the agricultural yield with fewer resources and
labor troubles, considerable revolutions have been made
during human antiquity. Though, the great population rate
certainly not let the mandate and amount competition through
all these whiles. Affording to the anticipated figures, now 2050,
the biosphere population is probable to trace 9.8 billion, an
growth of almost 25%. In directive to provender this greater,
additional city, and better-off inhabitants, nourishment
manufacture must dual by 2050. Not only for nourishment, but
harvest production is flattering similarly dangerous for
manufacturing positively harvests like fiber, rubber, and gum
are playing significant roles in the costcutting Inopportunely,
only a imperfect helping of the world’s superficial is
appropriate for farming usages due to numerous limits, like
fever, climate, topography, and soil quality, and smooth
greatest of the appropriate zones are not standardized. After
increasing the adaptabilities of sceneries and plant types,
countless new alterations jump to occur that can be
problematic to count. Besides, like land and climate patterns
and population thickness, though fast development is
continually affectation intimidations to the obtainability of
arable land-living.
NEEDS AND OBJECTIVES
NEEDS:
1. This system is cost actual, so that, the agronomists
container has enough money it.
2. The choice-creation module of this scheme are able to
mechanise the irrigation procedure, so that, the farmer’s
physical effort with the irrigation procedure will be fewer.
3. This will development to diminish human physical work for
the crop-turf nursing process and regulatory development.

OBJECTIVES:
1. To encourage the good development of plants and
preserving the right levels of moisture for the soil.
2. Additional impartial can be seen as creation sure there is
backup cover when there is a short period of dearth as this
can withstand the turf sufficient when water levels are
low-slung.
3. Added reason is to calm the troposphere and soil which is
an idyllic situation for plants. What’s more, with steady
irrigation you’ll be intelligent to thinned any elements in
soil or even disappointment damaging salts.
4. Lastly, through irrigation you can inferior the hazards of
soil high-pitched which can upsurge subsurface erosion
from the unusual subversive water flow.
COMPONENTS REQUIRED

S/ Components Name Qty


No
1 Arduino Nano board. 1
2 Sim 800L Module. 1
3 2ch 12v relay Module. 1
4 LM7805 Ic. 1
5 BC547 Transistor. 2
6 12v,30A, T Relay. 2
7 IN4007 Diode. 4
8 Wifi wireless Gain Antenna. 1
9 1000uf 25v Capacitor. 2
10 100uf 25v Capacitor. 1
11 1K Resistor. 4
12 2k2 Resistor. 1
13 5k6 Resistor. 2
14 Heat Sink. 1
15 GREEN LED 5mm. 1
16 RED LED 5mm. 2
17 2 Pin Screw terminal connector 5.8mm. 1
18 2 Pin Screw terminal connector 9.5mm 30A. 2
19 Female Berg Strip Connector 2.5mm. 2
20 12v @A Adapter. 1
ARDUI NO NANO

The Arduino Nano is a small, complete, and breadboard-


friendly board based on the ATmega328 (Arduino Nano 3.x).It
has more or less the same functionality of the Arduino
Duemilanove, but in a different package.It lacks only a DC
power jack, and works with a Mini-B USB cable instead of a
standard one. The Arduino Nano is equipped with 30
male I/O headers, in a DIP-30-like configuration, which can be
programmed using the Arduino Software integrated
development environment(IDE), which is common to all
Arduino boards and running both online and offline.
The Arduino Nano has a number of facilities for
communicating with a computer, another Arduino, or other
microcontrollers. The ATmega328 provides UARTN TTL
serial(5V) communication, which is available on digital pins 0
(RX) and 1 (TX).
GSM SIM 800L MODULE

The SIM800L GSM/GPRS module is a miniature GSM


modem that can be used in a variety of IoT projects. SIM800L
supports Quad-band frequency its works on frequencies
850MHz, 900MHz, 1800MHz, and 1900MHz, it can transmit and
receive voice, SMS, and data information with low power
consumption. The SIM800L works on 2G networks, so it will
only work in your country, if 2G networks are available.
A GSM modem or GSM module is a device that
uses GSM mobile telephone technology to provide a wireless
data link to a network. GSM modems are used in mobile
telephones and other equipment that communicates with
mobile telephone networks. They use SIMs to identify their
device to the network.
WIFI WIRELESS GAIN ANTENNA

Our wireless antenna has the advantage of ultra speed and


stable signal, it can increase signal strength effectively and
extend signal to long distance. Easy installation, simply replace
current antenna to increase signal strength.12dBi WIFI antenna,
2.4 GHz 5.8GHz dual band and omni-directional.
Antenna gain is the ratio of the power density in a given
direction to the power density of a reference antenna (using an
ideal radiation source) in the same direction. 
RELAY
2CH 12V RELAY MODULE

The 2 Channels Relay Module is a convenient board


which can be used to control high voltage, high current load
such as motor, solenoid valves, lamps and AC load. It is
designed to interface with microcontroller such as Arduino, PIC
and etc. The relays terminal (COM, NO and NC) is being brought
out with screw terminal. It also comes with a LED to indicate
the status of relay.
12V,30A, T RELAY

This Power relay is used for switching high current AC


devices such as Motors etc. which need to be controlled from
microcontroller or sensor output. 12V T Type Relay can switch
load of 30A at 220-240v connected to it.
ELECTRONICS COMPONENTS
CAPACITOR:

Capacitor, device for storing electrical energy, consisting of


two conductors in close proximity and insulated from each
other.

RESISTOR:

A resistor is an electrical component that limits or


regulates the flow of electrical current in an electronic circuit.
Resistors can also be used to provide a specific voltage for an
active device such as a transistor.
TRANSISTOR: BC 547

A transistor is a semiconductor device used to amplify or


switch electrical signals and power. It is one of the basic
building blocks of modern electronics.

DIODE: IN4007

The 1N4007 is the most commonly used rectifier diode. It


is commonly used in rectifier circuits, protection circuits and
regulator circuits. The lead near to the silver line is the cathode
and the other lead is anode, current is allowed to flow only
form anode to cathode.
LM7805 IC:

LM7805 is one of the most commonly used Positive


Regulator in Electronic circuits to lower down the voltage from
the higher input voltage and it provides a regulated output of
+5V with 2% regulation. 

HEAT SINK:

A Heat sink is a heat reservoir that can absorb an arbitrary


amount of heat without significantly changing temperature.
CIRCUIT DIAGRAM
PCB DISGIN
MODEL
EXISTING METHOD
1. With completed hardware, upload the program code with the
phone number from which you are going to send the SMS
commands to the GSM modem.
2. Switch ON the circuit, within 40 seconds the GSM module
would have been connected to a mobile network (with SIM
inserted), the network LED on GSM modem must blink once
every 3 seconds.
3. You will receive a SMS to your phone number which you
entered in the code; saying – System is ready.
4. Now you can send SMS command to the SIM (phone number)
which you inserted to GSM modem. 
CONCLUSION
It can be concluded that the design implemented in
the present work provide portability, flexibility and the data
transmission is also done with low power consumption. The
automation in irrigation system is appropriate and price
adequate for accessing water source of supply for agriculture
management. The regular updates to the server can get project
knowledge to the system and work perfectly for indefinite time
period. Human factor energy and power can be reduced.
APPENDIX
PROJECT CODE:
#include <SoftwareSerial.h>
//sender phone number with country code
const String PHONE = "+916385431257";
//GSM Module RX pin to Arduino 3
//GSM Module TX pin to Arduino 2
#define rxPin 2
#define txPin 3
SoftwareSerial sim800(rxPin,txPin);
#define RELAY_1 7
#define RELAY_2 8
#define RELAY_3 9
String smsStatus,senderNumber,receivedDate,msg;
boolean isReply = false;
void setup() {
digitalWrite(RELAY_1, LOW);
digitalWrite(RELAY_2, LOW);
digitalWrite(RELAY_3, LOW);
delay(7000);
Serial.begin(115200);
Serial.println("Arduino serial initialize");
sim800.begin(9600);
Serial.println("SIM800L software serial initialize");
pinMode(RELAY_1, OUTPUT); //Relay 1
pinMode(RELAY_2, OUTPUT); //Relay 2
pinMode(RELAY_3, OUTPUT); //Relay 3
smsStatus = "";
senderNumber="";
receivedDate="";
msg="";
sim800.print("AT+CMGF=1\r"); //SMS text mode
Reply("POWER ON");
delay(1000);
//delete all sms
sim800.println("AT+CMGD=1,4");
delay(1000);
sim800.println("AT+CMGDA= \"DEL ALL\"");
delay(1000);
}
void loop() {
//////////////////////////////////////////////////
while(sim800.available()){
parseData(sim800.readString());
}
//////////////////////////////////////////////////
while(Serial.available()) {
sim800.println(Serial.readString());
}
//////////////////////////////////////////////////
} //main loop ends
//***************************************************
void parseData(String buff){
Serial.println(buff);
unsigned int len, index;
//////////////////////////////////////////////////
//Remove sent "AT Command" from the response string.
index = buff.indexOf("\r");
buff.remove(0, index+2);
buff.trim();
//////////////////////////////////////////////////
//////////////////////////////////////////////////
if(buff != "OK"){
index = buff.indexOf(":");
String cmd = buff.substring(0, index);
cmd.trim();
buff.remove(0, index+2);
if(cmd == "+CMTI"){
//get newly arrived memory location and store it in temp
index = buff.indexOf(",");
String temp = buff.substring(index+1, buff.length());
temp = "AT+CMGR=" + temp + "\r";
//get the message stored at memory location "temp"
sim800.println(temp);
}
else if(cmd == "+CMGR"){
extractSms(buff);
if(senderNumber == PHONE){
doAction();
//delete all sms
sim800.println("AT+CMGD=1,4");
delay(1000);
sim800.println("AT+CMGDA= \"DEL ALL\"");
delay(1000);
}
}
//////////////////////////////////////////////////
}
else{
//The result of AT Command is "OK"
}
}
//************************************************************
void extractSms(String buff){
unsigned int index;
index = buff.indexOf(",");
smsStatus = buff.substring(1, index-1);
buff.remove(0, index+2);
senderNumber = buff.substring(0, 13);
buff.remove(0,19);
receivedDate = buff.substring(0, 20);
buff.remove(0,buff.indexOf("\r"));
buff.trim();
index =buff.indexOf("\n\r");
buff = buff.substring(0, index);
buff.trim();
msg = buff;
buff = "";
msg.toLowerCase();
}
void doAction(){
if(msg == "1"){
digitalWrite(RELAY_1, HIGH);
Reply("MOTOR ON");
delay(5000);
digitalWrite(RELAY_1, LOW);
}
else if(msg == "2"){
digitalWrite(RELAY_2, HIGH);
Reply("MOTOR OFF");
delay(5000);
digitalWrite(RELAY_2, LOW);
}
else if(msg == "3"){
digitalWrite(RELAY_3, HIGH);
Reply("LIGHT ON");
}
else if(msg == "4"){
digitalWrite(RELAY_3, LOW);
Reply("LIGHT OFF");
}
smsStatus = "";
senderNumber="";
receivedDate="";
msg="";
}
void Reply(String text)
{
sim800.print("AT+CMGF=1\r");
delay(1000);
sim800.print("AT+CMGS=\""+PHONE+"\"\r");
delay(1000);
sim800.print(text);
delay(100);
sim800.write(0x1A); //ascii code for ctrl-26 //sim800.println((char)26); //ascii code for ctrl-26
delay(1000);
Serial.println("SMS Sent Successfully.");
}

You might also like