Wild Animal

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 7

ARDUINO IDE

Program: Serial.begin (9600);


#include <SoftwareSerial.h> esp8266.begin(115200);
#define USE_ARDUINO_INTERRUPTS true //gps.begin(9600);
Serial.println("AT");
int error; esp8266.println("AT");
int a=0,b=0,c=0,d=0,p=0; if(esp8266.find("OK"))
char inChar; {
#define DEBUG true Serial.println("ok");
#define SSID "UCN" connectWiFi();
}
#define PASS "123456789" }
#define IP "184.106.153.149"
String msg = "GET /update?
void loop()
key=UWKTN6IXISYQSQHT";
{
SoftwareSerial esp8266(2,3);
a=analogRead(A0);

void setup() b=analogRead(A1);

{ c=analogRead(A2);

pinMode(11, OUTPUT); // Sets the trigPin as an d=analogRead(A3);//Serial.print(d);


Output
pinMode(9, OUTPUT); // Sets the echoPin as an Input
20XX
if(a<500||b<500||c<500||d<500) if(esp8266.find("Error"))
{ {
p=1; Serial.print("a");//delay(1000); return;
digitalWrite(11,HIGH);
//Serial.print(p); }
}
else
cmd = msg ;
{
cmd += "&field1=";
p=0;digitalWrite(11,LOW);
cmd += String(p);
}

updateTemp();
cmd += "\r\n";
delay(2000);
} esp8266.print("AT+CIPSEND=");

void updateTemp() esp8266.println(cmd.length());


{ if(esp8266.find(">"))
String cmd = "AT+CIPSTART=\"TCP\",\""; {
cmd += IP;
cmd += "\",80";
esp8266.print(cmd);
esp8266.println(cmd); }
delay(2000);
• {

20XX presentation title 2


if(esp8266.find("OK"))
else
{
{

esp8266.println("AT+CIPCLOSE");
delay(1000);
//Resend...
error=1; return true;
} }
} else
{
boolean connectWiFi() delay(5000);
{ if(esp8266.find("OK"))
esp8266.println("AT+CWMODE=1"); {

delay(2000);
String cmd="AT+CWJAP=\""; delay(1000);
cmd+=SSID; return true;
cmd+="\",\""; }
cmd+=PASS; else
cmd+="\""; {
esp8266.println(cmd); return false;
}
delay(5000); }
i
20XX presentation title 3
PROGRAM
clc;close all;clear all; closePreview(cam)
while 1 img = snapshot(cam);
s = serial('COM11'); imshow(img);
set(s,'BaudRate',9600); imwrite(img,'C:\Users\EKADD\Documents\2.jpg')
mail_to='arunanisha2003@gmail.com'; %replace with your
fopen(s); choice of mail id
service='gmail';

out = fscanf(s) ext='.com';

fclose(s) user_name='servercloud56'; %replace the string with your


user name
delete(s)
password='cloud12345'; %replace the string with your
clear s password (sender's password)
out subject='Anything you want'; %replace the string with
subject of your mail
if out=='a'
body='Type you email content here'; %replace it with content
of your mail
cam=webcam('EasyCamera') attachment='C:\Users\EKADD\Documents\2.jpg';
preview(cam)

20XX 4
props = java.lang.System.getProperties; id = [user_name,'@yahoo.com'];
props.setProperty('mail.smtp.auth','true');
setpref('Internet','SMTP_Server','smtp.mail.yahoo.com');
props.setProperty('mail.smtp.socketFactory.class',
'javax.net.ssl.SSLSocketFactory'); otherwise
email_port='465'; id = [user_name,'@',service,'.com'];
props.setProperty('mail.smtp.socketFactory.port',email_port); setpref('Internet','SMTP_Server',
['smtp.mail.',service,ext]);
switch service
end
% add in different cases based on server settings
%for login through your smtp settings
case 'gmail'
setpref('Internet','E_mail',id);
id = [user_name,'@gmail.com'];
setpref('Internet','SMTP_Username',id);
setpref('Internet','SMTP_Server','smtp.gmail.com');
setpref('Internet','SMTP_Password',password);
case 'live'
sendmail(mail_to,subject,body,attachment)
id = [user_name,'@live.com'];
setpref('Internet','SMTP_Server','smtp.live.com');
end
case 'outlook'
end
id = [user_name,'@outlook.com'];
setpref('Internet','SMTP_Server','smtp-
mail.outlook.com');
case 'yahoo'
20XX presentation title 5
REFERENCES:
[1] Bapat, Varsha, Prasad Kale, Vijaykumar Shinde, Neha Deshpande, and Arvind Shaligram. "WSN application for crop
protection to divert animal intrusions in the agricultural land." Computers and Electronics in Agriculture 133 (2017): 88-96.
[2] J Supreeth, S. K., D. N. Suraj, A. R. Vishnu, and V. Vishruth. "IoT– Wildlife Monitoring, Virtual Fencing with
Deforestation Notifications." (2019).
[3] Patel, Keyur K., and Sunil M. Patel. "Internet of things-IOT: definition, characteristics, architecture, enabling
technologies, application & future challenges." International journal of engineering science and computing 6, no. 5 (2016).
[4] Andavarapu, Nagaraju, and Valli Kumari Vatsavayi. "Wild-animal recognition in agriculture farms using W-COHOG for
agro-security." International Journal of Computational Intelligence Research 13, no. 9 (2017): 2247-2257.
[5] Inayat, Zakira, Abdullah Gani, Nor Badrul Anuar, Shahid Anwar, and Muhammad Khurram Khan. "Cloud-based
intrusion detection and response system: open research issues, and solutions." Arabian Journal for Science and Engineering
42, no. 2 (2017): 399-423.
[6] Zhang, Geng, Dahua Zhang, Dan Li, and Liang Zhou. "Research on key Technologies of Video Intelligent Identification
and Security Management and control system in substation." Int Journal of Simulation--Systems, Sci & Technol 17, no. 20
(2016): 6-1.
[7] Sharma, Rakesh, and Vijay Anant Athavale. "Survey of Intrusion Detection Techniques and Architectures in Wireless
Sensor Networks." International Journal of Advanced Networking and Applications 10, no. 4 (2019): 3925-3937.
[8] Santhiya, S., Y. Dhamodharan, N. E. Kavi Priya, C. S. Santhosh, and M. Surekha. "A smart farmland using Raspberry Pi
crop prevention and animal intrusion detection system." Int. Res. J. Eng. Technology (2018).
[9] Kim, Seung Hyun, and Su Chang Lim. "Intelligent intrusion detection system featuring a virtual fence, active intruder
detection, classification, tracking, and action recognition." Annals of Nuclear Energy 112 (2018): 845-855.
20XX presentation title 6
[10] Koik, Boon Tatt, and Haidi Ibrahim. "A literature survey on animal detection
methods in digital images." International Journal of Future Computer and
Communication 1, no. 1 (2012): 24.
[11] Arunashantha, H. A. S. "Wild animal intrusion on the rural community with special
references to north western slope of Sinharaja Forest Reserve." (2015).
[12] Thirgood, Simon, Rosie Woodroffe, and Alan Rabinowitz. "The impact of human-
wildlife conflict on human lives and livelihoods." CONSERVATION BIOLOGY
SERIES-CAMBRIDGE- 9 (2005): 13.
[13] Distefano, Elisa. "Human-Wildlife Conflict worldwide: collection of case studies,
analysis of management strategies and good practices." Food and Agricultural
Organization of the United Nations (FAO), Sustainable Agriculture and Rural
Development Initiative (SARDI), Rome, Italy. Available from: FAO Corporate Document
repository http://www. fao. org/documents (2005).
[14] Yin, Chuanlong, Yuefei Zhu, Jinlong Fei, and Xinzheng He. "A deep learning
approach for intrusion detection using recurrent neural networks." Ieee Access 5 (2017):
21954-21961.

20XX presentation title 7

You might also like