Professional Documents
Culture Documents
Report 17F003 and 17F066
Report 17F003 and 17F066
14MT880 PROJECT
Submitted by
ABISHEK.T 17F003
PUSHPARAJ.S 17F066
Guided by
Dr. M. PALANINATHARAJA
Professor of Mechantronics
MADURAI – 15
APRIL 2021
Submitted by
ABISHEK.T 17F003
PUSHPARAJ.S 17F066
Guided by
Dr. M. PALANINATHARAJA
Professor of Mechatronics
MADURAI – 15
APRIL 2021
THIAGARAJARCOLLEGEOF ENGINEERING
(A Govt. Aided, Autonomous Institution, Affiliated to Anna University)
1
MADURAI – 15
BONAFIDE CERTIFICATE
Certified that this is a bonafide record of the 14TMT880 Project & Viva
Voce done byABISHEK.T (17F003), PUSHPARAJ.S (17F066)of Eighth
Semester B.E., Mechatronics Engineering during the year 2020202.
Signature of the Guide Signature of H.D.MCT
2
Engineering Degree in Mechatronics Engineering, is a record of bonafide work. The
results embodied in this report have not been submitted to any other university or
Dr. M.
ABISHEK.T 17F003
(B.E. STUDENT) (GUIDE)
PUSHPARAJ.S 17F066
(B.E. STUDENT)
PALANINATHARAJA
3
ACKNOWLEDGEMENT
We take this opportunity to express our gratitude and deep regards to our
guide Dr. M. Palaninatharaja M.E., Ph.D., Professor and Head of the
Department of Mechatronics Engineering, Thiagarajar college of
engineering. We are extremely grateful to him for providing his valuable
suggestion in completing the project.
We would like to extend our sincere thanks and gratitude to Dr. S.Mercy
Shalinie, M.E., Ph.D., Principal In-charge, Thiagarajar College of
Engineering for providing all the necessary facilities for completing the
project.
LIST OF CONTENTS
Title Page i
Bonafide Certificate ii
Certificate iii
Acknowledgement iv
List of contents v
List of figures vii
List of tables viii
List of symbols ix
Abstract x
1 INTRODUCTION 1
4
1.1 Motivation 11
2.1
Literature Summary 21
CHAPTER PAGE
TITLE
NO. NO.
4 EXISTING METHODOLOGY 27
5 PROPOSED METHODOLOGY
5.1 Introduction 28
5
REFERENCES 37
6
LIST OF FIGURES
FIGURE PAGE
TITLE
NO. NO.
7
LIST OF SYMBOLS & ABBREVIATIONS
SYMBOL /
DESCRIPTION
ABBREVIATION
8
ABSTRACT
This paper outlines how to alert the human ebings who live near the agricultual
fields due to the entry of animals forest side areas. Because of the
overpopulation human beings are supposed to build their house in forest side
areas and they do agriculture near their house since they do agriculture near
forest side areas wild animals can enter into their agricultual fields and may
destroy it. The protection for agricultural fields is developed and presented here,
which indentifies the animals and send messages to the owner of the field by
using wemos di mini and PIR thorugh IOT(Internet of things).
These estimationsc can be used in any type of the agricultural fields. Here the
animals have been sensed by height, weight through PIR sensor.
9
CHAPTER I
INTRODUCTION TO SMART FENCING SYSTEM
1. INTRODUCTION
More than 45% of our countries are covered with the forest area. As becasue
of increase in population, there is a need for more space for human living and
also peopl rely on words from forest and the products such as heating fuel, paper
production etc. Adding on to these,humans started deforestation and this had led
to intervention of animals dwelling. Since, agricultural lands were closer to forest
areas wild animals intervend the agricultural reforms and this leads to loss of
human and agricultural yeilds. To overcome this, farmers established fence to
protect their lands by different ways by iron fence, wood fence, electric fence,
solar fence,aluminium fences, chain link fences, steel fences,temporary fences,
vinyl fences, wood fences.
1.1.MOTIVATION
The need for the smart fencing system has been increased very much higher.
wild animals those wholive near forest side areas. Sending them a messges
when animals enter into the agricultural fields they can go at time and male
animals to move out from the agricultural fields and then they can even protect
themsleves from wild animals. Here by using wemos di mini and pir sensor
through iot animals is indentified. So that humans can protect their agricultural
land and can yeilds lots of product that could make them profit.
10
1.2 WEMOS DI MINI
This is wemos di small scale wifi web of things advancement board based
ESP8266,it is a smaller than normal wifi board dependent on ESP8266EX. 11
computerized input/yield sticks, all pins have interupt/PWM/12C/one wire
upheld( anticipate D0) 1analog info ( 3.3v max input) and a miniature usb
association.The wemos di mini is a great board to develop wifi based oit projects.
It is uses the popular ESP8266 module for its iot operation. Can be handily
modified through usb and requires no extra developer. Utilize this attempted and
tried equipment stage to assemble your iot projects withour stressing over
equipment plan and manufactureThis board lets you jumstart your iot
development by letting you concentrate all your time and effort on software
development.
Wemos DI mini is like a little arduino for a great price. It is based around the
ESP8266, has one analogue part and 11 digital ports. It is programmed via mocro
USB(remote flash via wifi).You can use it with the Ardunino IDE(nodeMCU or
micropython)
It runs from 5V or 3.3V. Logic levels are 3.3V for all ports.
In the event that you utilize the ardunio IDE,there are a great deal of excample
outlines previously gave. This makes life generally simple to have the option to
do what you need. They function admirably with TMP36,DS18B20,RasPio
motivating RGB,LEDs, PIR movement sensors,BME280 barometric pressing
factor/temperature/humaity sensors
Microcontroller ESP-8266EX
11
Digital I/O Pins 11
Flash 4M bytes
Length 34.2mm
Width 25.6mm
Weight 10g
The operating voltage of ESP-8266EX is 3.3V. The digital input pins will be 11
pins. The Analog Input pins will 1 their maximum input is 3.2V. The clock speed
of the ESP-8266 is 80MHz/160Mhz. The flash of wemos di mini will be in 4M
bytes . The length of the wemos di mini will be 34.2 and width will be
25.6. Their average wieght will be 10g
TX TXD TXD
12
RX RXD RXD
D0 IO GPIO16
13
Pin Function ESP-8266 Pin
G Ground GND
5V 5V -
✓ The ESP8266 12E chips comes withf 17 GPIO pins. Not all GPIOs are
uncovered in all ESP8266 advancement sheets, some GPIOs are not prescribed
to utilize, and others have very specifi capacities.
✓ At the occasion, there are a wide assortment of improvement sheets with the
ESP8266 chip that contrast in the quantity of accesible GPIOs, size, structure
factor,etc
✓ One significant thing to see about ESP8266 is that the GPI0 number doesn't
coordinate with the name on the board silkscreen. For example,DO
corresponde to GPIO16 and DI relates through GPlO5
14
✓ The following table relates the correspondence between the names on the
silkscreen and the GPIO number similarly as what pins are the marvelous
use in your exercises, and which moves ones you ought to be continue.The
pin feature in green are OK to utilize. The ones featured in yellow are OK
to utilize, yet you need to focus since they may have startling conduct
principally at boot. The pins featured in red are not prescribed to use as data
sources or yields.
no PWM or I2C
D0 GPIO16 no interrupt HIGH at boot
support
used to wake up from deep
sleep
D1 GPIO5 OK OK
often used as SCL (I2C)
D2 GPIO4 OK OK
D5 GPIO14 OK OK
HIGH boot
D6 GPIO12 OK OK
SPI (SCLK)
D7 GPIO13 OK OK
SPI (MISO)
SPI (MOSI)
15
D8 GPIO15 pulled to SPI (CS)
OK
GND Boot fails if pulled HIGH
RX GPIO3
OK RX pin
HIGH at boot
TX GPIO1
OK HIGH at boot
TX pin debug output is done at
boot, boot fails if pulled
A0 ADC0 LOW
X
Analog
Input
▪ The ESP8266 can be kept from booting if a few pins are pulled LOW or
HIGH. The accompanying rundown shows the condition of the
accompanying pins to BOOT.
▪ GPIO2:pins is high on BOOT, boot failure if pulled LOW
▪ GPIO16: pin is high at BOOT
▪ GPIO0: boot failure initiated if pulled LOW
▪ GPIO15:boot failure if pulled HIGH
▪ GPIO3: pin is high - BOOT
▪ GPIO1: Pin is high - BOOT, boot failure initiated if pulled LOW
▪ GPIO10: Pin high at BOOT ▪ GPIO9: Pin is high at BOOT
The ESP8266 can be held back from booting if a couple of pins are pulled
LOW or HIGH. The going with overview shows the state of the going with pins
on BOOT.
GPIO16,GPIO3,GPIO10,GPIO9
16
Additionally, the other GPIOs, expect GPIO5 and GPIO4, can output a low
voltage signal during boot.
Analog Input
The ESP8266 just backings simple perusing in one GPIO. The GPIO is callled
ADCO and it is generally set apart on the silkscreen as A0.
The most extreme information voltage of the ADCO pins in 0 to 1V in the event
that you are utilizing the ESP866 exposed chip. On the off chance that you are
utilizing an advancement board like the ESP8266 12E NodeMCU pack, the
voltage input range is 0 to 3.3V in light of the fact that those sheets contain an
inside voltage divider.
On-board LED
Most of the ESP8266 development boartds have a build in LED. This is usually
connected GPlO2
The LED works with inverted logic. Send a HIGH signal to turn it off, and a
LOW signal to turn it on
17
RST Pin
When the RST pin is pulled LOW, the ESP8266 resets. This is the same as
pressing the on board RESET button
GPIO0
When GPIO is pulled low, it sets the ESP8266 into bootloader mode. This is the
same as pressing the on board FLASH or BOOT switch.
GPIO16
GPIO16 can be utilized to awaken the ESP8266 from profound rest. To awaken
the ESP8266 from profound sleep,GPIO16 ought to be associated with the RST
pin
I2C
The ESP8266 doesnot have hardware 12C pins, but it can be implemented in
software. So you can use any GPIOs as 12C. usually , the following GPIOs are
used as 12C pins are:
▪ GPIO5: SCL
18
▪ GPIO4: SDA
SPI
▪ GPIO12:MISO
▪ GPIO13: MOSI
▪ GPIO14: SCLK
▪ GPIO15: CS
PWM Pins
.
1.3. Specification and Features :-
19
• Compatile with ardunio
• Compatible with NodeMCU
• Compatible with micropython
20
1.4.WEMOS DI MINI
switches in light of the fact that there are various factors that affecet the sensors
The PIR sensor itself has tow spaces in it, each opening is made of a specail
material that is touchy to IR. The focal point utilized here isn't actually doing a
lot thus we see that the two openings can see out past some distance
fundamentally the affectability of the sensor. At the point when the sensor is
21
idle,both spaces identify a similar measure of IR,the encompassing sum
transmitted from the room or dividers or outside. At the point when a warm
body like a human or creature cruises by, it first catches one portion of the PIR
sensor, which causes positive differential change between the two parts.
At the point when the warm body leaves the detecting territory, the converse
occurs, whereby the sensor creates a negative differntial change. These change
PIR sensors are decently genric and for the most part vary simply in cost and
affectability. By far most of the veritable charm happens with the optics. This is
an extremely shrewd idea for collecting : the PIR sensor and equipment is fixed
and two or three dollars. The point of convergence two or three pennies and can
change the broadness,range, identifying plan, with no problem.In the chart up
top, the focal point is only a peice of plastic, however that implies that the
discovery territory is only two square shapes. Generally we might want to have
an identification region that is a lot bigger. To speck that, we utilize a
straightforward focal point a particularly those found in a camera: they
consolidates an enormous region like a scene into a little one on film or a CCD
sensor. For reasons that will be aparent soon, we might want to make the PIR
focal points little and dainty and flexible from chepa plastic, despite the fact
that it might add bending. Hence the sensors are really.
22
The module can be controlled from volage 4.5V to 20V at the same time,
ordinarily 5V is utilized. When the module is controlled permit the module to
caliberate itself for few minutes,2 minutes is a very much settled time. At that
point merit the yield on the yield pin. Before we investigate the yield we need to
realize that there are two working modes in this sensor, for example, repeatable
(H) and non-repeatable(L) and mode. The repeatable mode is the default mode.
The yield of the sensor can be set by shorting any two pins on the left of the
module . you can likewise see two orange shading potentiometers that can be
utilized to set the affectability and time which will be clarified further beneath.
Repeatable(H) mode
In repeatable(H) mode the yield pin Dout will go high (3.3V) when an individual
is distinguished inside range and goes low after a specific time is set pay OFF time
control potentiometer. In this mode the yield pin will go high regardless of
whether the individual it actually present inside the reach or has left the territory.
The sensivity can be set utilizing the affectability controlled potentiometer.
In I mode the yield pin Dout will go high 3.3V when an individual is identified inside
range and will remain high as long as he/she remains inside the restriction of the
sensors range. When the individual has left the region the pin will go low after the
specific time which can be set utilizing the potentiometer. The affectability can be set
23
utilizing the affectability control potentiometer.
Pyroelectric sensors are by and large used to recognize work infrared illumination
date to their high sensitivities at room temperature. Notwithstanding, they require
the utilization of metallic bundles to protect the delicate component from warm
unsettling influences and electromagnetic clamor, making their scaling down
troublesome. Besides, it is hard for the pyroelectric sensors to distinguish a fixed
human body in light of the fact that the surgace charge produced on the
pytoelectric component disapperas gradully when the human body is positioned.
Thermopile infrared sensors, which are utilized in far off thermoemtry, are
additionally available,but they require similar warm disengagement procedures
and can't react to quick signals. As the sensitivty of thermopiles is one significant
degree lower than pyroelectric infrared sensors, the use of thermopiles is
subsequently restricted to closeness detecting
HgCdTe (MCT) is grounded framework, which ahs been the domiant framework
for mid and longwavelength infrared photon locators. Sequentially associated
MCT photovoltic locators on CdZnTe substrates have alos been created to build
the yield voltage (Piotrowski and Gawron,1995; Piotrowski and Razeghi, 1995).
24
However,MCT experiences shakiness issues because of high fume pressing
factor of Hg and the CdZnTe substrate isn't promptly accessible in huge sizes.
The are two significant materials present in the sensor one is the pyroelectirc gem
which can recognize the warmth signature from a living being people/animls and
the other is a Fresonal focal points which can enlarge the scope of the sensor.
Indeed the while shading things is only a lense that is utilized to broaden the scope
of the sensor, on the off chance that you eliminate the lense you can track down
the Pyroelectric sensor inside it covered inside a defensive metal projecting.
Pin Configuration
25
1 Vcc Input voltage is +5V for typical
applications. Can range from 4.5V- 12V
2 High/Low Ouput
(Dout) Digital pulse high (3.3V) when triggered
(motion detected) digital low(0V) when
idle(no motion detected
26
2D model of the sensor
27
Here PIR Sensor is prepared by the latent infrared sensor PIR is an electronic
sensor that measues infrared IR.Light emanating from objects in its field of view.
They are regularly utilized in PIR based movement dectectors PIR sensors are
ordinarily utilized in security alerts and programmed lighting applications
At the point when an article, like an individual, passes before the backgroung, like a
divider, the temperature at thea point in the sensors field of view will ascend from
room temperature to body temperature,and then back once more. The sensor changes
over the subsequent change in the approaching infrared radiation into an adjustment
of the yield voltage, and this trigerrs the location. Items o comparative temperature
however extraordinary surface charactersitics may likewise have an alternate infrared
discharge pattern,and consequently moving them as for the foundation may trigge the
28
locator.
29
PIR sensors are somewhat conventional and generally change just is cost and
affectability. The majority of the genuine enchantment occurs with the optics. This
is a very smart thought for assembling: the PIR sensor and hardware is fixed and
costs a couple of dollars. The less costs a couple of pennies and can change the
broadness, range, detecting design, without any problem.
At the point when a warm body or creatures and people cross the PIR sensor ti
may recognize them by the infrared raidation by the warmth source development.
PIRs come in numerous design for a wide assortment of utilization. The most
well-known models have various fresnal lenies or morror fragments, a viable
scope of around 10 meters ,and a field of viewbelow 180 degree. Models with
more extensive fields of view,including 360degree, are accessible, commonly
intended to mount on a roof.
Practical Implementation
At the point when a PIR sensor is designed in a differential mode, it explicitly gets
appropriate as a movement identifier gadget. In this mode when a development is
recognized with the view of the sensor, a couple of corresponding heartbeat are
prepared at the yield pin of the sensor. To execute this yield signal for a pratical
setting off of a heap like a hand-off or an information lumberjack or a caution
gadget alert , the differential sign is redressed utilizing a scaffold rectifier and took
care of to a transitorized transfer driver circuit. The contacts of their hand-off
close and open because of the signs from the PIR, enacting the joined burden
across its contacts, recognizing the location of an individual inside the
foreordained limited region.
30
Product design
The PIR sensor is normally mlunted on a printed circuit board containing the
fundamental hardware needed to decipher the signs from the actual sensor. The
total gathering is usally contained inside a lodging, mounted in an area where the
sensor can cover the region to checked.
The lodging will for the most part have a plastic window through which the
infrared energy can enter. Notwithstanding frequently being just transculent to
apparent light, infrared energy can arrive at the sensor through the window on the
grounds that the plastic utilized is straightforward to infrared radiation. The plastic
window decreases the opportunity of unfamiliar articles dust, bugs and so forth…
from clouding the sensor field of view harming the instrument as well as causing
bogus alrams. The window might be utilized as a channel, to restrict the frequency
to 8-14 micrometers, which is nearest to the infrared radiation transmitted by
people. It might likewise fill in as a centering instrument
It is significant that the focal point be mounted a central length away from the PIR
locator. A fresnel focal point is utilized in light of the fact that it is minimal
expense, it is not difficult to mount, and it very well may be made of a plastic that
31
doesn't lessen IR signals.
32
Element window of sensing material
On the off chance that the dynamic components of the PIR sensor are presented to
an adjustment of the surounding temperature field, electrical charges are
separtated inside the sensor components. The voltage across the sensors controls a
J-FET source adherent impedance converter and accordingly regulates the yield
current of the PIR finder.
33
of the human body.
34
Infrared is the segment of the electromagnetic range that falls among microwaves
and noticeable light. Infrared has frequency longer than visisble light however
more limited than microwaves.
Humans,at ordinary internal heat level, sweep most unequivocally in the infrared,
at an approxiamte frequency 10
The detecting components are associated with the end goal that one deducts from
the other.
This course of action makes any sign basic the two components to be dropped. A
body passing before the sensor actuates initial one and afterward the other
component while vibration, and other foundation signals, influence the two
components at the same time and are dropped. The format of the two components
considers most extreme affectability along a solitary hub.
Connecting to PIR
Most PIR modules have a 3 pin association along the edge or bottoms. The pin
out may shift between modules so triple look at the pin. It is frequently
silkscreen on directly close to the association at any rate, our is. One pin will be
ground, another will be signal and the last one will be power. Force is normally
3-5VDC info however might be pretty much as high as 12V. In some cases
bigger modules don't have direct yield and rather work a transfer wherein case
there is ground, power and the two switch associations.
35
PIR SENSOR
This undertaking is expected to use in the spots like banks and other securty
proposed places. This circuit is interfaced with the alert framework that
incorporates IC UM 3561. The UM3561 is a coordinated circuit that takes
computerized input and creates multi tones, for example, an emergency vehicle
or fire motor or police alarms. Thus,if a person is identified by the PIR sensor
cicuit then the advanced yield is created by it. This computerized yield is taken
care of to the IC UM3561 that produces the alarm or caution.
36
As a result of the little actual size of the sensor components, a fresnel focal point
is commonly positioned before the PIR sensor to degree the reach just as
extending the field of view by meltiplying and centering the IR energy onto the
little sensor components. Thusly, the shape and size of the focal point decide the
general discovery point and survey territory. The style of focal point is regularly
picked dependent on the application and decision of sensor position in the climate.
In light of this data, for best results,the sensor ought to be put so development is
across the sensor rather than straight into the sensor and away from wellspring of
high or variable warmth such in AC vents and lights.
CHAPTER II
LITERATURE REVIEW
2. LITERATURE REVIEW
They require far reaching and financially savvy specialist organizations with
various administrations. For this situation distributed computing may offer
information as an administration (DaaS), it costs less when contrasted with the
37
settled administrations which are charging on a settled premise regardless of
usage of administration
38
2.1.1 Study based on wemos di mini
The ESP12-E NodeMCU Kit is quite possibly the most
utilized ESP8266 improvement sheets. It highlights 4MB
of glimmer memory,access to GPIO pins, and one simple
to computerized conventor(ADC) pin with 10 digit goal.
The board has an inherent voltage controller and you can
control up the module utilizing the smaller than expected
USB attachment or the Vin pin.
This is the board we utilize all the more regularly in our Wi-Fi and IoT projects. It
is adaptable and it's extraordinary for fledglings. This module is an incredible
decision. Investigate the connections underneath to discover the ESP8266 12-E
NodeMCU unit on your #1 store.
2.12 Study based on PIR sensor
PIR sensors are also known as PID or Passive Infrared Detectors. Thus, the PIR
sensor can detect infrared radiation that is emitted by particles.
39
2.1.4 Study based on wi-fi
In wireless data transmissions processes, data loss is an important factor that
reduces the robustness of wireless sensor networks (WSNs). In numerous
reasonable designing applications, information misfortune remuneration
calculations are then needed to keep up the vigor, and such calculations are
normally founded on compressive detecting with a huge memory of
microcontrollers required. This paper presents an improved calculation, in light
of irregular demodulator, to beat the trouble of microcontroller-reliance in the
conventional information misfortune calculations. The recently evolved
calculation exhibits the accompanying benefits: low space intricacy; low gliding
point estimations; and low time intricacy. Consequently, it is more appropriate
to be inserted into conventional hubs, contrasting and the customary calculations.
In this paper, a WSN dependent on WiFi is additionally produced for confirming
the adequacy and plausibility of the proposed calculation. Field probe Xinghai
Bay Bridge is finished. Trial results show that the WSN works appropriately and
consistent. Besides, the information misfortune can be remunerated adequately
and proficiently using the current calculation.
Mr. J. Arun pandian. M.E., Loss and injuries to human By using IOT wild animals can
(PhD)MATLABEXPO2018 life be detected and may protect
the crop and humans
40
Sannikommu umamaheswari In any case, this kind of These disadvantages can
21 December 2020 framework has burdens be removed using PIR
like restricted scope of
sensor
sign and helpless view.
CHAPTER III
PROBLEM DESCRIPTION
3. PROBLEM IDENTIFICATION
New small, low-powered devices modeled after the human brain can help make
security smarter by being able to distinguish between a person sneaking around
and trees simply rustling in the wind.
41
3.1 Objectives
Based on the literature survey and problems identified, the objectives are
refined as follows.
• By smart fencing system we can able to be in timely and effective
reaction. This means lower risk and prevention of larger damages of
crops in the fields, then the detection of intruder inside the agricultural
field is identified and protected.
• To protect the crop from animals through smart fencing system
• Over the previous years data and correspondence innovations have been
presented in agribusiness, enhancing sustenance creation and
transportation
• The huge test confronting the security in farming is the communication
between security gadgets and to give them knowledge to control other
electronic gadgets, for example, cameras, repellers and so on to upgrade
security in different fields
• Our fundamental reason for extend is to create restrictive fencing to the
ranch, to maintain a strategic distance from misfortunes because of
creatures. These restrictive fencing shield the harvest from harming that
by implication increment yield of the product. The create framework
won't destructive and damaging to creature and also individuals
CHAPTER IV
METHODOLOGY
4. EXISTING METHODOLOGY
Power fencing system is used all over the world. The electric fences are
formed around the farm field. Continuous power is being sent across the fence.
When any wild animal try to trespass the farm, it gets a shock from the fence.
This shock may even kill the animals. It is not possible to supervise the animals
42
at night.So by using wemos di mini and pir sensor through iot the owner of the
agricultural lands will recieve a messages that some animals have entered into
agricultural lands. By this information the owner might go at time before the
animals can destroy the fields.
CHAPTER V
PROPOSED METHODOLOGY
5. INTRODUCTION
43
5.1 Joining wemos di mini and PIR
Here we connect a PIR module to a Wemos Mini. A passive infrared sensor
(PIR sensor) is an electronic sensor that measures infrared (IR) light radiating
from objects in its field of view.
44
PIRs come in numerous arrangements for a wide assortment of utilizations. The
most widely recognized models have various Fresnel focal points or mirror
fragments, a compelling scope of around ten meters (thirty feet), and a field of
view under 180 degrees. Models with more extensive fields of view, including
360 degrees, are accessible—commonly intended to mount on a roof. Some bigger
PIRs are made with single portion reflects and can detect changes in infrared
energy more than 100 feet from the PIR.
5.2 LAYOUT
1. Vcc to 5v
2. Ground to ground
3. Output to D7
45
Soldering the Headers
In board we insert the male to female board and we must solder. Then insert
male to male connecting pins to wemos di mini and we need to solder. Then we
should connect pins for PIR sensor after that we need to connect wires from
ground to ground, vcc to 5v and output to D0
• From the Arduino website, download & install the latest Arduino IDE
(v1.8 ). Available for Windows, Mac, Linux & ARM.
From Tools > Board > Board Manager, search for D1 mini and install
46
47
Here after installing wemos di mini in ardunio ide we need to select the wemos
di mini in the board manager,after clicking that we need to slect the flash size
for 4mb in name OTA-1019kb
Here after selecting the board in the board manager as wemos di mini then we
need to select the port as com 1 or com 2 which is used to set up an wemos di
mini in the ardunio ide software
Testing:
• From File > Examples > ESP8266 open the Blink Sketch
• Double check the pin asignment (For the D1 mini it should be <pin#
here>)
• Verify the Sketch (check mark)
• Upload the code to the module (right arrow) The LED on the device
should blink!
48
After programming in the ardunio ide we need to check the error and need to
upload the programme in ardunio ide after the wemos di mini programmed it
will show led on and pir sensor connected with the wemos di mini will identify
the motion that given by animals or humans
49
1. Male
2. Female
50
• I utilize a breadboard to patch these on. It helps keep
everything adjusted. I think that its better that utilizing the
assistance. You would like to be cautious since you may
soften the plastic of the breadboard on the off chance that
you heat up the pins to a lot.
• When Soldering you need to ensure you don't utilize a lot weld, it will bring
about a bundle of patch on your pin. On the off chance that you use to minimal
patch or insufficient warmth you can chance no interfacing them completely.
Investigate my last picture to perceive what great weld joint resembles.
5.3 CODING ON ARDUINO IDE
51
5.4 OUTPUT
Open the serial monitor window in the Arduino IDE and unblock and block the
sensor
Thus any animal motion will be detected and give information to the owner
52
CHAPTER VI
RESULTS & DISCUSSIONS
6. INTRODUCTION
6.2 DISCUSSIONS
The Need for the smart fencing system has been incresed very much higher .
Motivation of this idea is to protect agricultural fields ,crops and animals from
wild animals those who live near forest side areas. Sending them a messages
when animals enter into the agricultural fields they can go at time and make
animals to move out from the agricultural fields and then they can even protect
themselves from wild animals. Here by using wemos di mini and pir sensor
53
through iot animals is indentified. So that humans can protect their agricultural
land and can yeild lots of product that could make them profit.
6.3 RESULTS
⚫ Therefore by the wemos di mini ,PIR sensor we can detect the animals that
enter into the agricultural fields.
⚫ We can also protect the human lives from the dangerous animals
CHAPTER VII
CONCLUSION
54
7. CONCLUSION
The future holds a possibility in the development of this project. Here we can use
this is any type of agricultural field . In future we need to put a iron fence around
the agricultural field and keep the connection of wemos di mini and PIR sensor
thorough IOT send information to owner.
55
REFERENCES
10. Viola and jones, “Rapid Object Detection using a Boosted Cascade
of simple Features”, published in Computer Vision and Pattern
Recognition, 2001
56
11. Zamshed Iqbal Chowdhury, HaiderMasudulImtiaz, Moinul
Muhammad Azam, AktarMst. RumanaSumi, and
NafisaShaheraNur, "Design and Implementation of Pyroelectric
Infrared Sensor Based Security System Using Microcontroller," in
Proceeding of the 2011 IEEE Students' Technology Symposium
14-16 January, 2011, lITKharagpur, 2013. [
57