Professional Documents
Culture Documents
MP-Home Security System Paper
MP-Home Security System Paper
MP-Home Security System Paper
Abstract
Home Automation allows you to access your home control CAM installed. If all sensors and warnings are working, the
devices from your mobile device anywhere in the world. One of system will issue a warning in the telegram when a safety-
related event occurs. Example - fire or smoke alarm. You can
thebiggest benefits of home automation is keeping your home
operate from anywhere in the world. All you need is a Telegram
safe and preventing accidental fires, water leaks, gas leaks and
application with an approved bot and an internet connection to
otherdisasters. This project shows how Telegram can be used in your mobile phone. Only approved/approved users (whose chat
IoT and home automation projects. A home security system with ID is registered) can interact with this Telegram bot. To interact
ESP32 CAM can take and send a photo to notify you via the with your security system and receivealert notifications, you
telegram app and control the door with a chatbot. In this project, need to create a Telegram bot in your smartphone's Telegram
Telegram app with motion sensor and door sensor can be used to application."Bots are third-party applications that run within
take multiple photos to unlock and lock the door. The project also Telegram. Users can interact with Telegram bots by sending
implemented a smoke and gas leak detection system.This way you them messages and commands.Control your bot with HTTPS
can also receive notifications of gas or smoke leaks detected by requests to the bot API. The Arduino IDE is used to program the
the sensor. The system is designed with an IoT module and uses ESP32 CAM board, so please make sure you have the Arduino
an ESP32 microcontroller. This chapter describes the design of IDE installed, which details how to install the ESP board into
the system, its hardware components, software implementation, the Arduino IDE. The ESP32-CAM does not come with a USB
security solutions, communications, collection and monitoring of port, so youwill need a CP2102 or FT232RL USB to TTL serial
processed data, and quantifying the costs of manufacturing and converter connected to your PC. When using Wi- Fi, the ESP32
draws more power than is supplied over USB through these
deploying this system. The proposed systemdetects an intruder in
devices, which can cause the module to crash and reboot. The
the building, triggers an alarm, captures everything with the
top unit worked fine, but the FT232RL did not. If you are using
intruder's camera image, and sends the datato the owner's smart a 5V 3.3V FT232, set the voltage jumper to 3.3V. It may be
mobile phone. Protect your home. possibleto use 5V from the side of the board to power the
Index- Home security. camera's 5V pin. The ESP32-CAM module features an ESP32-S
chip, an OV2640 camera and a microSD card slot. There are
other ESP32-based camera modules that work when pinned to a
I. INTRODUCTION
sketch.
In this project, I used ESP32-CAM to build a home security
system. The system notifies her Telegram app by taking and
sendinga picture when intruders try to break into her home. For
this I used the motion sensor and the door sensor.The project also II. LITERATURE SURVEY
implemented fire, smoke and gas leak detection systems. Using the Some of the recent research works are discussed below.
knowledge gained from the concept of IoT and its application in Anjali Shrivastav et al.,(2018) [1] proposed an idea or a
the medical field, we have investigated and studied many research concept for home automation using ESP32 with Blynk, IR
papers related to our problem. All sensors connected to the ESP32- remote and manual switch to control 8relays with and without
CAM development board. The ESP-CAM is Wi-Fi enabled, so internet and monitor the real time feedback in the Blynk app.
connect it to a wireless router that is also connected to the internet. Automation of device hasa wide scope for this generation as
ESP32 CAM Wi-Fi Module Bluetooth with OV2640 Camera well as in forthcoming generation. In this mobile
Module 2MP for Face Recognition Features a very competitive communication technology is playing a major role in the world
small camera module that can be operated independently as a of automation. This article is fully based on low cost and
minimal system with a footprint of only 40 x 27mm . With deep reliable home control monitoring system for accessing and
sleep current up to 6mA, it is widely used in various IoT controlling devices and appliances remotely using Android
applications.Suitable for smart devices, industrial wireless based smart phone application.
control,wireless monitoring and other his IoT applications. The V. Pravalika, Ch. Rajendra Prasad et al.,(2019) [2]
module adopts a DIP package and can be directly inserted into the proposed a low-cost flexible and reliable home monitoring and
backplane for rapid production of products, providing customers control system with additional security using ESP32, with IP
with a reliable connection mode suitable for applications in connectivity through local Wi-Fi for accessing and controlling
various IoT hardware terminals.To interact with your security devices by formal user remotely using android smart phone
system and receive alert notifications, you need to create a application.. Home monitoring and device control system not
Telegram bot in your smartphone's Telegram application. This only refers to decrease human efforts but also save the energy
Telegram bot allows you to arm/disarm (arm/disarm) your home and time competence. To demonstrate the effectiveness and
security system and all alerts. The Telegram app also allows you to feasibility of this system, in this we present a home monitoring
take/receive live photos of the monitored area with the ESP- system by using ESP32 module.
Diwakar B, Madiha Farheen et al.,(2019) [3] proposed a
low cost and flexible home control and environment monitoring
1
system. It employs an embedded micro-web server
2
sensor, gas sensor, motion sensor etc., have been
III. COMPONENTS REQUIRED integrated with proposed home control
The hardware and Software components required for
Mini PIR motion sensor:
Home security system are
AI thinker ESP32-CAM Dev board A PIR sensor can detect changes in the amount of
Mini PIR motion sensor infrared light that hits the sensor. This depends on the
temperature and surface texture of the object in front of the
Magnetic Door sensor sensor. for objects. B. A person in the background, z. If there
MQ6 gas/smoke detector sensor is a wall, the temperature at that point in the sensor's field of
view will rise from room temperature to body temperature and
FTDI Programmer module then back to body temperature again. The sensor converts the
Solder-less Breadboard resulting change in incident infrared radiation into a change in
output voltage, triggering detection. Objects with similar
Arduino IDE(software) temperatures but different surface properties can also have
Telegram (Android Application) different infrared radiation patterns, so these movements
relative to the background can also trigger the detector. PIRs
come in different configurations for different applications. The
most common models have a number of Fresnel lens or mirror
segments, an effective range of about 10 meters (30 feet), and
a field of view of less than 180°. Models with wider fields of
view including 360° are available and are typically designed
for ceiling mounting. Some large PIRs consist of a single
segment mirror and can detect changes in infrared energy more
than 30 meters (100 feet) from the PIR. PIR with reversible
pointing mirror that allows either a wide range (110° wide) or
a very narrow 'curtain' range, or even a PIR with individually
selectable segments to 'shape' the range I have.
Fig.1 ESP32-CAM
Fig.4 MQ6 gas sensor To use the breadboard, insert the component leads into
the holes. Each set of holes connected by an underlying strip
FTDI Programmer Module: of metal forms a knot. A node is a point in a circuit where two
or more components connect. Connections between different
The original FT232R chip is one of the new chips components are made by inserting their leads into a common
manufactured by FTDI (Future Technology Devices node. Long rows of holes at the top and bottom, identified by
International). Besides being a USB-to-serial UART, it has an red and blue stripes, are typically used for power connections.
onboard EEPROM and an optional clock generator output. The rest of the circuit is built by inserting components and
The chip also includes an FTDIChip-ID feature (giving each connecting them with jumper wires. Solid rather than stranded
chip a unique identifier for security) and a USB terminator. A wire works best for such breadboards.
cloned board (using a cloned chip) would likely eliminate the
unique ID feature, would not contain EEPROM, and would The IC is centered on the board with half of the leads
not be able to invert the signal. Internal clocks (6MHz, on one side of the centerline and half on the other side.
12MHz, 24MHz, and 48MHz) can be brought out of the
device and used to drive a microcontroller or external logic. A few simple hand tools are also very handy to have
The module has a mini-B USB connector, used to connect to on hand. A pair of small wire cutters, often called side cutters,
the USB port of an attached device (such as a PC). The FTDI cut the wire and component leads to length. Small needle nose
USB to TTL Serial Converter module, on the other hand, has pliers for bending and shaping wires and tubes. And, of
breakout pins (Tx, Rx, Vc, and GND) that connect to course, a pair of wire strippers for stripping the ends of jumper
corresponding pins on the microcontroller. Communication is wires. A small screwdriver is also useful for adjusting things
via TTL (transistor-transistor logic). It has a 3.3/5V DC like potentiometers.
jumper and provides 500mA from the Vc pin.
Arduino IDE(software):
The more commonly used pins (RX, TX, VCC, and GND) are
connected to the corresponding pins on the microcontroller
(RX -> TX and TX -> RX).The DTR pin is connected to the
microcontroller's reset pin and triggers an auto-reset signal Fig.6 Arduino IDE (Software)
after the sketch is uploaded.
A program created with the Arduino software (IDE) is called a Telegram optionally offers end-to-end encrypted chat. Cloud
sketch. These sketches are created in a text editor and saved Chat and Groups are encrypted between client and server, so
with the .ino file extension. The editor has text cut/paste and your data is inaccessible to ISPs and other third parties on
find/replace functionality. The message area provides your network. Users can send text and voice messages, make
feedback on saving and exporting and also displays errors. voice and video calls, share unlimited images, documents (2
GB per file), there are many options for sending messages on
The console displays text output from the Arduino software smartphones. Many developers have created many Internet-
(IDE), including full error messages and other information. based messaging apps. In this article, we will discuss his
The bottom right corner of the window shows the configured Telegram, one of the most famous messengers. Also
board and serial port. Toolbar buttons let you review and connected he creates a Telegram NodeMCU based home
upload programs, create sketches, open and save, and open the automation project and controls the device with the Telegram
serial monitor. app.
Telegram is a globally accessible, encrypted, freemium, cross- IV. DESIGN OF PROPOSED SYSTEM
platform, cloud-based centralized instant messaging (IM)
service. The service also offers optional end-to-end encrypted
chat and video calling, VoIP, file sharing, and a few other All sensors connected to the ESP32-CAMdevelopment
features. Released on October 20th. Telegram's servers are board. The ESP32-CAM is Wi-Fi enabled, so connect it to a
located in five data centers around the world, with an wirelessrouter that is also connected to the internet.
operations center in Dubai, United Arab Emirates. A variety of To interact with your security system and be notified of
client apps are available for desktop and mobile platforms, alerts, you need to create a Telegram bot in your smartphone’s
including official apps for Android, iOS, Windows, macOS, Telegramapplication.
and Linux (registration requires an iOS or Android device and With this telegram bot you can arm/disarm (arm/disarm)
a valid phone number). There are also two official Telegram your home security system and all alarms. The Telegram app
web twin apps (WebK and WebZ) and a number of unofficial also allowsyou to take/receive live photos of the monitored
clients using the Telegram protocol. All official Telegram area with ESPCAM installed.
components are open source. However, the server is closed If all sensors and warnings are working, the system
source and proprietary. issues warnings in telegrams when safety-relevant events occur.
[9].https://www.hackster.io/make2explore/home-security- [22] Kumar A., Thakur S., & Bhattacharjee P., (2018). Real time
system-using-esp32- cam- and-telegram-app-dce4f8 monitoring of AMR enabled energy meter for AMI in smart city-an
IoT application, IEEE International Symposium on Smart Electronic
[10].https://www.instructables.com/. Systems (iSES) (Formerly iNiS), IEEE, India.
[11] Benzi F., Anglani N., Bassi E., Frosini L., (2019). Electricity [23]Koay, B.S., Cheah, S.S., Sng Y.H., Chong P.H.J., Shum P., Tong
Smart Meters Interfacing the Households, IEEE Transactions on Y.C., Wang X.Y.,Zuo Y.X., Kuek H.W., (2016). Design and
Industrial Electronics, 58(10), 4487-4494. implementation of Bluetooth Energy Meter, Fourth International
https://doi.org/10.1109/TIE.2011.2107713 Conference on Information, Communications and Signal Processing,
2003 and the Fourth Pacific Rim Conference on Multimedia,
[12] Rashed Mohassel R., Fung, A., Mohammadi, F., & Raahemifar Proceedings of the 2003 Joint, IEEE, Singapore.
K., (2014). A survey on Advanced Metering Infrastructure, https://doi.org/10.1109/ICICS.2003.1292711
International Journal of Electrical Power & Energy Systems, 63,
473-484. https://doi.org/10.1016/j.ijepes.2014.06.025 [24] Kaur, M., Mathew, L., Alokdeep, A., Kumar, A., (2018).
Implementation of Smart Metering based on Internet of Things, IOP
[13] Amin S.M., Wollenberg B.F., (2015). Toward a smart grid: Conference Series: Materials Science and Engineering, 331(1),
power delivery for the 21st century,IEEE Power and Energy 012015. https://doi.org/10.1088/1757-899X/331/1/012015
Magazine, 3(5), 34-41. https://doi.org/10.1109/MPAE.2005.1507024
[25] Ahmed, T., Miah, M., Islam, M., & Uddin, M., (2012).
[14] Chooruang, Komkrit, Kraison Meekul, (2018). Design of an IoT Automatic electric meter reading system: A cost-feasible alternative
energy monitoring system, 16th International Conference on ICT and approach in meter reading for bangladesh perspective using low-cost
Knowledge Engineering (ICT&KE), IEEE. digital wattmeter and wimax technology, arXiv preprint arXiv.
https://doi.org/10.1109/ICTKE.2018.8612412
[26] Wu B., Tan N., (2019). An energy metering and measurement
[15]Govindarajan, R., Meikandasivam S., & Vijayakumar D., SoC with a novel low- power DSP architecture, IEEE Internet of
(2020). Performance Analysis of Smart Energy Monitoring Systems Things Journal, 6(2), 3298–3308.
in Real-time, Engineering, Technology & Applied Science Research,
10(3), 5808-5813. https://doi.org/10.48084/etasr.3566 [27] Woong Hee K, Sunyoung L., Jongwoon H., (2017). Real-time
Energy Monitoring and Controlling System based on ZigBee Sensor
[16] Galina, Mia, Muhammad Wahyu Ramadhani, & Joni Welman Networks, Procedia Computer Science, 5,794-797.
Simatupang, (2019). Prototype of Postpaid Electricity and Water https://doi.org/10.1016/j.procs.2011.07.108
Usage Monitoring System, 2019 International Conference on
Sustainable Engineering and Creative Computing (ICSECC), IEEE.
https://doi.org/10.1109/ICSECC.2019.8907095
[19]Faisal M., Karim T.F., Ridwan Pavel A., Md. Hossen S.,
Hossain Lipu M.S., (2019). Development of Smart Energy Meter for
Energy Cost Analysis of Conventional Grid and Solar Energy, in
2019 International Conference on Robotics,Electrical and Signal
ProcessingTechniques (ICREST)
[20]Prathik, M., Anitha, K., Anitha, V., (2018). Smart energy meter
surveillance using IoT, Proceedings of the International Conference
on Power, Energy, Control andInt. J. Comput. Commun. Inf., 23-35 /
33 IEEE, Bangladesh.Vol. 4 Iss. 1 Year 2022 Paul Stone Macheso &
Doreen Thothoc /2022 Transmission Systems, ICPECTS,
https://doi.org/10.1109/ICPECTS.2018.8521650