You are on page 1of 34

DIPLOMA IN INDUSTRIAL AUTOMATION ( INSTRUMENTATION)

SMART ANIMAL TRAP USING IOT

MOHAMAD IZZAT FARHAN BIN MOHD NAZRI

DIPLOMA IN AUTOMATION (ELECTRONIC AND


INSTRUMENTATION)

UNIVERSITY COLLEGE TATI


SMART ANIMAL TRAP USING IoT

MOHAMAD IZZAT FARHAN BIN MOHD NAZRI

DIPLOMA IN INDUSTRIAL AUTOMATION (ELECTRONIC &


INSTRUMENTATION)

UNIVERSITY COLLEGE TATI

SMART ANIMAL TRAP USING IoT


MOHAMAD IZZAT FARHAN BIN MOHD NAZRI

DIPLOMA IN INDUSTRIAL AUTOMATION ENGINEERING TECHNOLOGY


(ELECTRONICS AND INSTRUMENTATION )

SMART ANIMAL TRAP USING IoT


BY

MOHAMAD IZZAT FARHAN BIN MOHD NAZRI


(19A06D006)

DIPLOMA IN INDUSTRIAL AUTOMATION ENGINEERING TECHNOLOGY


(ELECTRONICS AND INSTRUMENTATION )

UNIVERSITY COLLEGE TATI

2021/2022

DECLARATION OF THESIS AND COPYRIGHT


Author’s Full Name : MOHAMAD IZZAT FARHAN BIN MOHD NAZRI

Date of Birth : 03/05/2001

Title : SMART ANIMAL TRAP USING IoT

Academic Session : 2020/2021

I declare that this thesis is classified as:

OPEN ACCESS I agree that my thesis to be published as online open access (Full
Text)

I acknowledge that TATI University College reserves the following rights:

1. The Thesis is the Property of TATI University College


2. The Library/Faculty of TATI University College has the right to make copies of
the thesis for the purpose of research only.
3. The Library/Faculty has the right to make copies of the thesis for academic
exchange.

Certified by:
_____________________
( MOHAMAD IZZAT FARHAN )

New IC : 010503-06-0865
Date: 7/7/2021

_______________________
( Supervisor’s Signature )

Name of Supervisor : ENCIK AZMAN BIN ABDUL RAHMAN


Date: 14/8/2021
SUPERVISOR’S DECLARATION

“I/We hereby declare that the work in this thesis is based on my student original work
except for quotations and citations which have been duly acknowledged. I also declare
that it has not been previously or concurrently submitted for any other degree at TATI
University College or any other institutions.”

_______________________________
( Supervisor’s Signature )
Full Name : ENCIK AZMAN BIN ABDUL RAHMAN
Position :
Date :
STUDENT’S DECLARATION

“I hereby declare that all the materials presented in this reports is our own and has not
copied from any materials without references.”

_______________________________
(Author Signature)
MOHAMAD IZZAT FARHAN BIN MOHD NAZRI
7 JULY 2021
ACKNOWLEDGEMENT

In preparation of my final year project, I had to take the help and guidance of some
respected persons, who deserve my deepest gratitude. As the completion of this
assignment gave me much pleasure, I would like to show my gratitude Encik Nazry
Abdul Rahman, Course Instructor, on UCTATI for giving me a good guidelines for this
project throughout numerous consultations. I would also like to expand my gratitude to
all those who have directly and indirectly guided me in writing this assignment.

I would like to express my deep and sincere gratitude to my project supervisor, Encik
Azman Bin Abdul Rahman, for giving golden opportunity to do this wonderful project
on the topic ‘Smart Animal Trap Using IoT ’ and continuously providing invaluable
guidance until the end of the project. His dynamism, vision, sincerity and motivation
have deeply inspired me. His has taught me the methodology to carry out the project
development and to present the project as clearly as possible. It was a great privilege
and honour to work and study under his guidance.
I am extremely grateful for what he has offered me. Lastly, I am extremely grateful to
my parents for their love, prayers, caring and sacrifices for educating and preparing me
for my future.

SMART ANIMAL TRAP BASED ON IOT


BY

MOHAMAD IZZAT FARHAN BIN MOHD NAZRI


( 19A06D006 )

DIPLOMA IN INDUSTRIAL AUTOMATION ENGINEERING TECHNOLOGY


(ELECTRONICS AND INSTRUMENTATION)

UNIVERSITY COLLEGE TATI

2021/2022
TABLE OF CONTENTS

CHAPTER TITLE PAGE

1 INTRODUCTION
1.1 Project background
1.2 Project scopes
1.3 Project Objective
1.4 Problem statement

2 METHODOLOGY
2.1 Project Methodology
2.1.1 Project Block Diagram
2.1.2 Project Flow Chart
2.2 Materials
2.2.1 Wifi arduino ESP8266
2.2.2 Animal cage
2.2.3 18650 Battery
2.2.4 sensor
2.3 Gant chart
2.4 Project Design
2.5 Circuit Development
2.6 Program and software
2.7 Hardware development
2.8 Step operation

3 RESULT
3.1 Result and discussion

4 CONCLUSSION
CHAPTER 1

INTRODUCTION

1.1 PROJECT BACKGROUND


1.Trapping is practissed almost everywhere in the world for a variety of
reasons.trapping provides food and income.Trapping also help to maintain stable and
healthy wildlife populations.Most species can produce more young than their habitat
can support to adulthood.Trapping can also help to protect threathened or
endangered species for exmples,endangered sea turtle egg,black fooed ferret,
whopping cranes and other rare species may need protection from excessive predation
by foxes,racoon and cayates.other than that,trapping also needed for reasearch and
relocation.As examples modern foothold or others restraining traps allow biologyst to
capture,radio collar and realease willdlife unharmed,in order to monitor the animals
and learn more about their behavior and needs.

1.2 PROJECT SCOPES

The scopes of this project are:


1. This trap will send information to the user whether it has successful cum animal
or not,the user does not have to wait near the trap because the information
will be sent via iot to the user’s mobile phone
2. This project will use the battery as the power supply.So,this project will work
depends on the battery life.Whn the battery out of power,we have to switch or
charge the battery to keep the trap works.
3. The main enterence will be closed when the animal touch the bait.It means this
trap will be able to catch only 1 animal every 1 setup.
1.3 PROJECT OBJECTIVES

The objectives of this project are:


1. To build animal traps using iot that can send trap information to user.
2. To use IR sensor for trap trigger.
3. To measure the time that arduino wifi to send the information to users via
mobile phone (wireless communication).

1.4 PROBLEM STATEMENT


Nowadays,there are many people who live depend on agricultural
resources.Agriculture has become a source of finance for them.There are many species
of wildlife that we cannot control their violence which brings adverse effect on crops.If
they use the usual trap for animal , it will be difficult to them to come and check their
traps whether they hit or not.we will try to build a trap that will give the notification on
your phone when the animal hit the trap.
CHAPTER 2

METHODOLOGY

2.1 PROJECT METHODOLOGY

2.1.1 Project Block Diagram


Block diagram show that the input which is the sensor will detect if anithing
happen to the cage and it will be a signal sending to the processor which is wifi
arduino.wifi arduino will send the information to users via mobile phone (wireless
communication.
2.1.2 Project Flow Chart
Flow chart below show the process of the project work from the beginning
untill end.first we have to switch on an setup the trap.Then,we have to wait for
sensor detecting the animal.when the animal detected in the trap,arduino will sent
the information to the mobile phone via IoT.In the end of project, the user will get
the information about the trap.
2.2 MATERIALS

2.2.1 Wifi Arduino Uno ESP8266


Wifi arduino uno ESP8266 will be used as a tool to send the information to the
users via mobile phone(wireless communication). Starting with Arduino IDE 1.6.4, the
software allows installation of third-party platform packages using Boards Manager.
There are packages available for Windows, Mac OS, and Linux (32 and 64 bit).
Install Arduino 1.6.5 from the Arduino website. Start Arduino and open Preferences
window. Enter http://arduino.esp8266.com/stable/package_esp8266com_index.json
into Additional Board Manager URLs field. Add multiple URLs, separating them with
commas.This link actually used to search the boards from Arduino IDE.
2.2.2 Animal cage
Animal cage used to be the trap for the animal that need the bait as the usual
trap in order to catch the animal. The animal trap with the mechanical spring
used to close the main enterance for the trap.The width of the trap is 33cm.
The length of the trap is 60cm. The trap provide a place for animal food that
will be the bait that can attract the animal. Once the animal touch the bait, the
main enterance will be closed immidietly. This trap I have been purchased by
online shopping in shopee.

2.2.3 Power bank


This project will use power bank to supply the power to arduino.We can charge
this supply when out of power. The power bank that I used in this project
represented by PINENG that will store 20000mAh capacity of power. The power
bank provide two port for output and one port for input. There are two port
for output which supply 5V 2.1A and 5V 1.0A. The powerbank also have the
digital display that show the percentage of battery life powerbank. One of the
port is the input port that can support 5V 2A. The powerbank will supply 5V to
on the ESP 8266.
2.2.4 Infrared Sensor
Sensor works to detect if the animal hit the trap and send the signal to
Arduino and later the information will sent to the user. . An infrared sensor
(IR sensor) is a radiation-sensitive optoelectronic component with a spectral
sensitivity in the infrared wavelength range 780 nm … 50 µm. IR sensors are
now widely used in motion detectors, which are used in building services to
switch on lamps or in alarm systems to detect unwelcome guests. In a
defined angle range, the sensor elements detect the heat radiation (infrared
radiation) that changes over time and space due to the movement of people.
Such infrared sensors only have to meet relatively low requirements and are
low-cost mass-produced items. InfraTec does not supply such products,
InfraTec develops, produces and sells pyroelectric detectors.The sensor
have 3 pin for output, ground and VCC.
2.3 Gant Chart
The gant chart show the activity and process to complete my final year project
wish is the smart trap using IoT. The gant chart shows my activity from week 1
untill week 13.
2.4 PROJECT DESIGN

figure shown the project design of my project. The sensor will be on the side of the
cage.The sensor placement is accoding to the distance of the sensor detacting. My
circuit will be covered to protect from the animal and the weather.
2.5 CIRCUIT DEVELOPMENT

Figure shows ESP8266 wifi module that already connected to Infra red sensor.Pin 5V at
Arduino board connected to the VCC pin at IR sensor.Then pin ground at Arduino
boards connected to the ground pin at IR sensor.last, the output pin at IR sensor was
connected to port D5 at Arduino board.
Figure shows the connection for power supply which is power bank that has been
connected to Arduino board. This power supply directly supply 5V to turn on the
Arduino. One of the LED at IR sensor will light up if the sensor blocked by something.
2.6 Program and Software

The software that used in this project is Arduino IDE. Coding that have been created
have to put in this software and start searching the library for ESP 8266 and blynk.The
SSID Name and the password of the wifi also include in this coding.Then the coding will
be upload to Arduino board
Blynk apps that have been downloaded from apps store can set up our pop up
notification.This apps can connect with Arduino board with wifi connection.This app
also gift the notification went our project is offline.
2.7 Hardware Development

The hardware development begin with assemble the component in one box that can
protect the circuit.Then the circuit box with the component should stick it on the
side of the trap.
Figure shows the complete hardware which is the trap that has been stick with the
circuit box and sensor.
2.8 Step Operation

Firstly, setup the trap and the bait for animal. Then start to turn the power supply to
run the project. Once the project was supply to the power supply, the project is
ready to connect with our mobile phone.
Then, turn on your mobile hotspot and the Arduino board will connect
automatically to our mobile phone. All this happen in one condition which is the
network SSID and wifi password coding have been upload to Arduino boards.
Lastly, when sensor detect the animal or any obstacles, blynk will send the
notification on our mobile phone “ALERT: Animal Trapped”.
When the power bank out of power and the Arduino stop running, blynk will send
the notification that “Your smart trap with IoT went offline.
CHAPTER 3

RESULT

3.1 Expected Results

In the end of this project we will see how sensor work to detect the animal in
the cage and be the signal sending device.The user will get the information about the
trap through the notification on their mobile phone.the notification sent to mobile
phone if any animals hit the trap.

If the sensor detacting the animal in the cage, Blynk automatically send the notification
on our mobile phone.
Attempt Time responses(s)
1st 5 seconds
2nd 7 seconds
3rd 6 seconds

Table shows the time of the sensor response detaction and send the notification on
mobile phone. Data recorded for three attempt. First attempt, the project take 5
seconds to send the notification to mobile phone. Second attempt it took 7 seconds
and the third attempt it took 6 seconds.
4.0 Conclusion
• From the result I can conclude that sensor will emmidiately detect the animal in
the cage and the time of notification will sent to our mobile is very short. We
can know if there are animal trapped or not in 7 second or less. In conclussion
this project will help the people who work as agricultural to protect their
plantation from the wildlife.the user will know if thre are animal hit the trap
instantly.So,it will fix the problem that the animal dead before we come to visit
the trap.we will also don”t need to be worry and wait near the trap

You might also like