Batch 6
Batch 6
PROTOCOL
ABSTRACT
The main problem in this research is the increasing prevalence of theft and burglary
cases. This incident was caused by the busyness of every person in his daily life so
that he forgot the security of his house. The IoT-based home security system that
utilizes the PIR sensor as a human motion detector and then sends a notification in the
form of notification via SMS or e-mail is one solution to overcome the problem that
was previously proposed in previous research. However, to further clarify the
warnings sent from the system, a home security system is needed that can attach
images in the notification. In this study developed an IoT-based home security system.
The IoT security system developed, can automatically send email alerts by attaching
images when the PIR sensor detects human presence. The IoT system requires a
Arduino UNO as a microcontroller that has been connected to the internet, a PIR
sensor to detect human movement and Camera to win images when there are human
encounters that are within the range of PIR sensors. Experiments in the study show
that the IoT system can automatically send email alerts by attaching images when PIR
sensors detect human presence in various light conditions with a range of 0-5 meters
and the speed of sending email alerts affected by conditions of internet network
connections and files size of image sent.
This project uses regulated 5V, 500mA power supply. Unregulated 12V DC is used
for relay. 7805 three terminal voltage regulator is used for voltage regulation. Bridge
type full wave rectifier is used to rectify the ac output of secondary of 230/12V step
down transformer.
CHAPTER 1
INTRODUCTION TO EMBEDDED SYSTEMS
1.1 INTRODUCTION:
1.3 CHARACTERISTICS:
Seria
l
CPU COM
RAM ROM I/O Port Timer
General Port
MICROCONTR
OLLERS (MC)-
Purpose
Embedded Systems talk with the outside world via peripherals, such as
Serial Communication Interfaces (SCI): RS-232, RS-422, RS-
485etc
Synchronous Serial Communication Interface: I2C, JTAG, SPI,
SSC and ESSI
Universal Serial Bus (USB)
Networks: Ethernet, Controller Area Network, LAN networks,
etc.
Timers: PLL(s), Capture/Compare and Time Processing Units
Discrete IO: aka General Purpose Input/output (GPIO)
Ana log to Digital/Digital to Analog (ADC/DAC)
Tools:
2.1 INTRODUCTION
Ever since the wireless home security systems have become highly
developed research in the field of International Intelligent Building, various
approaches were proposed for designing such systems. In, an LED is used
to monitor the home entryway and once intrusion occurs, the system
enables house owner to change the passkey for the entrance. In, on account
of intrusion, the system notifies the owner by sending SMS to the owner’s
registered phone number that is already preconfigured in the system. The
owner can also remotely control his home by SMS using only his registered
number. In, a system is proposed that comprises of IR sensors to recognize
intruder, Raspberry Pi to capture intruder’s picture, and a GSM modem to
send SMS alongside the hyperlink of the picture. In, a robot is used to
transmit live streaming of the home that can be viewed with a smartphone.
The robot notifies the owner, on account of an intrusion, with the help of a
temperature sensor that is integrated within the robot. In, GSM technology
is used to alert the owner via mail once an intrusion is detected. In, a system
is introduced that includes a raspberry pi and a camera to capture
information and send to a smartphone that is used to remotely observe a
specific location.
The proposed system has been intended to overcome the drawbacks of the
past surveillance systems and to enhance the security, adaptability,
efficiency at whatever point required. Having a security camera system may
infrequently be unimaginable because of the thorough expenses brought
about in the course of the installation. The objective of our system is to
make a smart surveillance system which can provide caution to the owner
remotely by means of notification. It does this by sending an email the
owner’s smartphone when an intrusion is detected. The intrusion is detected
using PIR motion sensor and is activated as soon as a motion is detected.
Once it is activated, it will trigger video recording via the camera module.
As the camera starts recording video, it first cross-matches the face of the
person who enters the room. If it’s a familiar face, for example, that of a
family member, then the detection is completely ignored. In case the face
doesn’t match, indicating the detection of an intruder, the security guard of
that apartment is notified with the help of a buzzer to generate continuous
beeps and an LCD to display on which flat the intrusion has occurred.
Furthermore, an image of the intruder is captured, instantly uploaded in
cloud, and a notification is sent via an email on his phone for the owner to
see who is inside his room. One interesting thing to note here is that the
camera for recording video will be activated for short duration on an
account of an intrusion and as soon as the time exceeds, it will be turned
off. It will again be activated if another intrusion occurs but for a limited
duration, thus making our system more efficient.
2.3.1 BLOCK DIAGRAM OF PROPOSED SYSTEM
Wi-Fi
RPS MODULE
IOT
PIR SENSOR
ARDUINO DC MOTOR
UNO
CAMERA
LCD
SMTP
BUZZER
Power Supply
Arduino UNO
PIR Sensor
Camera
SMTP
Wi-Fi Module
DC Motor
LCD
Buzzer
2.3.3 SOFTWARE COMPONENTS
Arduino IDE
Proteus
IOT TECHNOLOGY
Event driven
Ambient intelligence
Flexible structure
Semantic sharing
When I'll be ready to leave the house, the smart refrigerator will
tell me that there is milk and fruits for my breakfast and I shouldn’t eat
cheese today because I didn’t exercise yesterday. It is so smart that if any
food item has finished or expired- it will connect to the supermarket on
the internet, order my groceries and I would be able to pay sitting from
anywhere anytime through my mobile wallet.
These devices are so smart that they would be collecting data from my
physical movements and will monitor my activities and behavior to
do predictive analysis of my routine and preferences. You would be
amazed at how many such smart devices already exist or are going to be
available in the near future to make up a powerful Internet of Things.
Application Layer
3.9APPLICATIONS:
Sensors have always been an integral part of the factory setup for
security, automation, climate control, etc. This will eventually be
replaced by a wireless system giving the flexibility to make changes to
the setup whenever required. This is nothing but an IoT subnet dedicated
to factory maintenance.
3.9.4 MOBILE:
Smart transportation and smart logistics are placed in a separate
domain due to the nature of data sharing and backbone implementation
required. Urban traffic is the main contributor to traffic noise pollution
and a major contributor to urban air quality degradation and greenhouse
gas emissions. Traffic congestion directly imposes significant costs on
economic and social activities in most cities. Supply chain efficiencies
and productivity, including just-in-time operations, are severely
impacted by this congestion causing freight delays and delivery schedule
failures. Dynamic traffic information will affect freight movement, allow
better planning and improved scheduling. The transport IoT will enable
the use of large scale WSNs for online monitoring of travel times,
origin– destination (O–D) route choice behavior, queue lengths and air
pollutant and noise emissions. The IoT is likely to replace the traffic
information provided by the existing sensor networks of inductive loop
vehicle detectors employed at the intersections of existing traffic control
systems. They will also underpin the development of scenario-based
models for the planning and design of mitigation and alleviation plans,
as well as improved algorithms for urban traffic control, including multi-
objective control systems. Combined with information gathered from the
urban traffic control system, valid and relevant information on traffic
conditions can be presented to travelers. The prevalence of Bluetooth
technology (BT) devices reflects the current IoT penetration in a number
of digital products such as mobile phones, car hands-free sets, navigation
systems, etc. BT devices emit signals with a unique Media Access
Identification (MAC-ID) number that can be read by BT sensors within
the coverage area.
Economic growth
Better environment
Improved competitiveness
3.10.1 SMARTWATCHES
Some open challenges are discussed based on the IoT elements presented
earlier. The challenges include IoT specific challenges such as privacy,
participatory sensing, data analytics, GIS based visualization and
Cloud computing apart from the standard WSN challenges including
architecture, energy efficiency, security, protocols, and Quality of
Service.
3.11.1 ARCHITECTURE
Overall architecture followed at the initial stages of IoT research
will have a severe bearing on the field itself and needs to be investigated.
Most of the works relating to IoT architecture have been from the
wireless sensor networks perspective.
3.11.3 SECURE
REPROGRAMMABLE NETWORKS
AND PRIVACY
Security will be a major concern wherever networks are deployed
at large scale. There can be many ways the system could be attacked—
disabling the network availability; pushing erroneous data into the
network; accessing personal information; etc.
CHAPTER 4
HARDWARE COMPONENTS
Power Supply
Arduino UNO
PIR sensor
Camera
SMTP
Wi-Fi Module
DC Motor
LCD
Buzzer
In this project we have power supplies with +5V & -5V option
normally +5V is enough for total circuit. Another (-5V) supply is used in
case of OP amp circuit.
TRANSFORMER
Transformers are used to convert electricity from one voltage to
another with minimal loss of power. They only work with AC
(alternating current) because they require a changing magnetic field to be
created in their core. Transformers can increase voltage (step-up) as well
as reduce voltage (step-down).
RECTIFIERS
The purpose of a rectifier is to convert an AC wave form into a
DC wave form (OR) Rectifier converts AC current or voltages into DC
current or voltage. There are two different rectification circuits, known as
'half-wave' and 'full-wave' rectifiers. Both use components called diodes
to convert AC into DC.
FILTERS
A filter circuit is a device which removes the ac component of
rectifier output but allows the dc component to the load. The most
commonly used filter circuits are capacitor filter, choke input filter and
capacitor input filter or pi-filter. We used capacitor filter here.
PINOUT
The ESP32 chip comes with 48 pins with multiple functions. Not all pins
are exposed in all ESP32 development boards, and some pins cannot be
used.
There are many questions on how to use the ESP32 GPIOs. What pins
should you use? What pins should you avoid using in your projects? This
post aims to be a simple and easy-to-follow reference guide for the ESP32
GPIOs.
The figure below illustrates the ESP-WROOM-32 pinout. You can use it as
a reference if you’re using an ESP32 bare chip to build a custom board:
3 SPI interfaces
3 UART interfaces
2 I2C interfaces
Although you can define the pins properties on the software, there are
pins assigned by default as shown in the following figure (this is an
example for the ESP32 DEVKIT V1 DOIT board with 36 pins – the pin
location can change depending on the manufacturer).
Additionally, there are pins with specific features that make them
suitable or not for a particular project. The following table shows what pins
are best to use as inputs, outputs and which ones you need to be cautious.
GPIOs 34 to 39 are GPIs – input only pins. These pins don’t have
internal pull-up or pull-down resistors. They can’t be used as outputs, so use
these pins only as inputs:
GPIO 34
GPIO 35
GPIO 36
GPIO 39
GPIO 6 (SCK/CLK)
GPIO 7 (SDO/SD0)
GPIO 8 (SDI/SD1)
GPIO 9 (SHD/SD2)
GPIO 10 (SWP/SD3)
GPIO 11 (CSC/CMD)
The ESP32 has 10 internal capacitive touch sensors. These can sense
variations in anything that holds an electrical charge, like the human skin.
So they can detect variations induced when touching the GPIOs with a
finger. These pins can be easily integrated into capacitive pads and replace
mechanical buttons. The capacitive touch pins can also be used to wake up
the ESP32 from deep sleep.
Those internal touch sensors are connected to these GPIOs:
T0 (GPIO 4)
T1 (GPIO 0)
T2 (GPIO 2)
T3 (GPIO 15)
T4 (GPIO 13)
T5 (GPIO 12)
T6 (GPIO 14)
T7 (GPIO 27)
T8 (GPIO 33)
T9 (GPIO 32)
PIR sensor that Passive Infrared Sensor, passive word indicates PIR Sensor
does not generate or radiate any energy for detection purposes.
PIR Sensors don't detect or measure "HEAT"; they detect the infrared
radiation emitted or reflected from objects.
They are small, inexpensive, low power and easy to use. They are
commonly found at home, medical, factories etc. areas.
SPECIFICATIONS
4.5 SMTP
SMTP is used to send and receive email. It is sometimes paired with IMAP
or POP3 (for example, by a user-level application), which handles the
retrieval of messages, while SMTP primarily sends messages to a server for
forwarding.
FEATURES
802.11 b/g/n
Integrated low power 32-bit MCU
Integrated 10-bit ADC
Integrated TCP/IP protocol stack
Integrated TR switch, balun, LNA, power amplifier and matching
network
Integrated PLL, regulators, and power management units
Supports antenna diversity
Wi-Fi 2.4 GHz, support WPA/WPA2
Support STA/AP/STA+AP operation modes
Support Smart Link Function for both Android and iOS devices
Support Smart Link Function for both Android and iOS devices
SDIO 2.0, (H) SPI, UART, I2C, I2S, IRDA, PWM, GPIO
STBC, 1x1 MIMO, 2x1 MIMO
A-MPDU & A-MSDU aggregation and 0.4s guard interval
Deep sleep power < 5Ua
Wake up and transmit packets in < 2ms
Standby power consumption of < 1.0mW (DTIM3)
+20dBm output power in 802.11b mode.
Operating temperature range -40C ~ 125C
4.7 DC MOTOR
DC motors were the first form of motor widely used, as they could
be powered from existing direct-current lighting power distribution
systems. A DC motor's speed can be controlled over a wide range, using
either a variable supply voltage or by changing the strength of current in its
field windings. Small DC motors are used in tools, toys, and appliances.
The universal motor can operate on direct current but is a
lightweight brushed motor used for portable power tools and appliances.
Larger DC motors are currently used in propulsion of electric vehicles,
elevator and hoists, and in drives for steel rolling mills. The advent of
power electronics has made replacement of DC motors with AC motors
possible in many applications.
E-blocks compatible
Low cost
Compatible with most I/O ports in the E-Block range (requires 5 I/O
lines via 9-way D-type connector)
Ease to develop programming code using Flow code icons
Fundamentals of Liquid Crystal Displays
The term liquid crystal is used to describe a substance in a state
between liquid and solid but which exhibits the properties of both.
Molecules in liquid crystals tend to arrange themselves until they all
point in the same specific direction. This arrangement of molecules
enables the medium to flow as a liquid. Depending on the temperature
and particular nature of a substance, liquid crystals can exist in one of
several distinct phases. Liquid crystals in a nematic phase, in which there
is no spatial ordering of the molecules, for example, are used in LCD
technology.
4.9 BUZZER
SOFTWARE COMPONENTS
In Node MCU Boards the first thing you need is to install the Firmware to
the board the following method works for all Node MCU Boards
1. Open the Node MCU flasher master folder than open the
win32/win64 folder as your computer. Now open the folder
Release than double click ESP8266Flasher.
3. Go to configure tab.
4. Click on the small gear and open up the firmware which you
have downloaded.
After installing the firmware you are ready to do the programming with
the ESP8266
(http://arduino.esp8266.com/stable/package_esp8266com_index.json)
and click OK
1. Go to Tools>Borads>Boards Manager
Step 3: Code...
Now we can do whatever you want with your Node MCU board Following
is an example for led blinking with Node MCU board via web server
In arduino IDE go to tools>Boards>select NODEMCU 1.0 (ESP -
12E Module)
Again, go to tools and select port.
Change the Wi-Fi name and password from the following code.
Now click on Upload button to upload the following code.
Connect the led's positive leg on D9 pin of board and negative to the
ground of the code.
Power up the board and open the serial monitor from arduino IDE
After connecting to the Wi-Fi it will show you the IP address.
Type that IP address on the web browser (Edge, Chrome, Firefox
etc.,)
A webpage will open you can change the status of LED by turning it
ON or OFF.
Application Example:
The input is read from switch pin. If switch is closed, it will read a low.
The LED output pin is set to the opposite of the switch pin. If the switch
is closed, the output pin will be set to a high. A high will turn on the LED.
5.2PROTEUS
5.2.1 INTRODUCTION:
What is the main difference between the dotted PCB and layout PCB?
After completion of designing save with some mane and debug it.
This is virtual simulation means without making circuit we can see the
result in virtually through this software and we can design the PCB layout
to our required circuit with this software.
5.3 MIT APP INVENTER
This step-by-step picture tutorial will guide you through making a talking
app.
Go directly to ai2.appinventor.mit.edu, or click the orange "Create" button from the App
Inventor website.
Log in to App Inventor with a Gmail (or google) user name and password.
Use an existing gmail account or school-based google account to log in to
ai2.appinventor.mit.edu
Type in the project name (underscores are allowed, spaces are not) and
click OK.
You are now in the Designer, where you lay out the "user interface" of your
app.
The Design Window or simply "Designer" is where you lay out
the look and feel of your app, and specify what functionalities it should
have. You choose things for the user interface things like Buttons, Images,
and Text boxes, and functionalities like Text-to-Speech, Sensors, and GPS.
Add a Button
Our project needs a button. Click and hold on the word "Button" in
the palette. Drag your mouse over to the Viewer. Drop the button and a
new button will appear on the Viewer.
If for some reason you cannot connect to the Google Play store, you can
download the AI2 Companion as described here.
First, you will need to go into your phone's settings (#1), choose "Security",
then scroll down to allow "Unknown Sources", which allows apps that are
not from the Play Store to be installed on the phone.
On your phone or tablet, click the icon for the MIT AI Companion to start
the app. NOTE: Your phone and computer must both be on the same
wireless network. Make sure your phones Wi-Fi is on and that you are
connected to the local wireless network. If you cannot connect over Wi-Fi,
go to the Setup Instructions on the App Inventor Website to find out how to
connect with a USB cable.
Get the Connection Code from App Inventor and scan or type it into
Companion app
On the Connect menu, choose "AI Companion". You can connect by:
You will know that your connection is successful when you see your app on
the connected device. So far, our app only has a button, so that is what you
will see. As you add more to the project, you will see your app change on
your phone.
CHAPTER 6
7.1 ADVANTAGES
7.2 APPLICATIONS
CHAPTER 8
The Internet of Things based Smart Motion Detection System has been
successfully implemented with the mechanism of sending email alerts
automatically by adding the results of shooting when there is human
movement. This system can work optimally at a distance between 0-5
meters with various light conditions, but it affects the quality of the
captured image. The average duration of sending an email is 15 seconds
depending on the quality of the image captured by Pi Camera. So that the
response of this system is still categorized as real-time. The weaknesses of
this system are the quality of the image captured that is not clear and has
not got the response yet from the email receiver towards the system when
an email alert is received.
This final section of the report outlines some features that could potentially
be implemented in future releases. The current set of features implement is
a minimum to what a consumer would expect. In future, we can store the
images with help database and we can also increase the processing speed
with help of advanced board.
CHAPTER 9
REFERENCE