Professional Documents
Culture Documents
Iot PBL
Iot PBL
BACHELOR OF TECHNOLOGY
in
By
Dhesurya kella
22331A0480
II B.Tech I Sem
Under Supervision of
Mr.K.Rakesh,M.E(Ph.D)
D.Assistant Professor
i
DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
MAHARAJ VIJAYARAM GAJAPATHI RAJ COLLEGE OF ENGINEERING (A)
CERTIFICATE
This is to certify that the IoT PBL report for “camera surveillance robot using esp 32 cam
module” is being submitted by Dhesurya kella (22331A0480), in partial fulfilment of the
requirements for the award of the Degree of Bachelor of Technology in Electronics
and Communication Engineering is a work done by her under my supervision during
the academic year 2023-24.
ii
.ACKNOWLEDGMENT
With reverence and humility, I thank my supervisor Mr. K. RAKESH, D.Assistant Professor
for his wholehearted co-operation, unfailing inspiration, and benevolent guidance. Throughout
the internship, his useful suggestions, constant encouragement has given a right direction and
shape to my learning.
We consider it our privilege to express our deepest gratitude to Dr. SHAIK MASTAN VALI,
Professor and Head of the Department for his valuable suggestions and constant motivation
that greatly helped the project work to get successfully completed.
We thank Dr. R.Ramesh, Principal, for extending his utmost support and cooperation in
providing all the provisions for the successful completion of the project.
We sincerely thank to all the members of the staff of the department of Electronics and
Communication Engineering for their sustained help in our pursuits.
With great solemnity and sincerity, we offer our profuse thanks to our management,
MANSAS for providing all the resources to complete our project successfully.
We thank all those who contributed directly or indirectly in successfully carrying out this work.
iii
MISSION AND VISION OF THE INSTITUTE
Institute Vision
Maharaj Vijayaram Gajapathi Raj College of Engineering strives to become a centre par
excellence for technical education where aspiring students can be transformed into skilled and
well-rounded professionals with strong understanding of fundamentals, a flair for responsible
innovation in engineering practical solutions applying the fundamentals, and confidence and
poise to meet the challenges in their chosen professional spheres.
Institute Mission
The management believes imparting quality education in an atmosphere that motivates learning
as a social obligation which we owe to the students, their parents/guardians and society at large
and hence the effort is to leave no stone unturned in providing the same with all sincerity.
● Establish a unique learning environment to enable the students to face global challenges
by using local technologies in Electronics and Communications.
● Establish centres of excellence in niche technologies to include the spirit of innovation
and creativity in faculty and students.
● Provide the environment for collaborative and inter disciplinary activities that enables
students to develop industry ready and entrepreneurial skills.
● Provide ethical and value-based education to serve humanity by developing socially
sensitive engineers.
iv
PROGRAM OUTCOMES(POS)
PO2: Problem analysis: Identify, formulate, review research literature, and analyze
complex engineering problems reaching substantiated conclusions using first principles of
mathematics, natural sciences, and engineering sciences.
PO3: Design/development: Design solutions for complex engineering problems and design
system components or processes that meet the specified needs with appropriate consideration
for the public health and safety, and the cultural, societal, and environmental considerations.
PO5: Modern tool usage: Create, select, and apply appropriate techniques, resources, and
modern engineering and IT tools including prediction and modelling to complex engineering
activities with an understanding of the limitations.
PO6: The engineer and society: Apply reasoning informed by the contextual knowledge
to assess societal, health, safety, legal and cultural issues and the consequent responsibilities
relevant to the professional engineering practice.
PO8: Ethics: Apply ethical principles and commit to professional ethics and responsibilities
and norms of the engineering practice.
v
PO9: Individual and teamwork: Function effectively as an individual, and as a member
or leader in diverse teams, and in multidisciplinary settings.
PO12: Life-long learning: Recognize the need for and have the preparation and ability to
engage in independent and life-long learning in the broadest context of technological change.
PSO1: An ability to design and implement complex systems in the areas related to Analog and
Digital Electronics, Communication, Signal processing, RF & Microwave, VLSI and
Embedded systems.
vi
ABSTRACT
This system harnesses the inherent mobility of the robot chassis, facilitating dynamic
movement and enabling video capture across diverse environments and locations. Operational
control is facilitated through an intuitive and feature-rich web interface hosted directly on the
ESP32-CAM board. Through this interface, users wield comprehensive control over the robot's
movements, access live video streams in real-time, and capture snapshots from the ongoing
video feed with unparalleled ease and convenience.
The scope of applications for the Surveillance Robot using ESP32-CAM transcends
boundaries, finding relevance in diverse sectors. From fortifying home security measures to
monitoring remote or inaccessible locations, and even extending its utility to industrial
surveillance, its adaptability and multifaceted functionality make it a versatile and
indispensable tool.
The blend of affordability, seamless operation, and the intuitiveness of its interface positions
this surveillance robot as an accessible and indispensable solution for individuals seeking
robust and remotely accessible surveillance capabilities in their surroundings.
vii
CONTENTS
PAGE NO.
CERTIFICATE ii
ACKNOWLEDGEMENT iii
PROGRAM OUTCOMES v
ABSTRACT vii
CONTENTS viii
LIST OF FIGURES x
1.1 Introduction 1
viii
2.2 software introduction and tools 13
Chapter-6: CONCLUSION 15
Chapter-7: BIBLOGRAPHY 15
LISTS OF FIGURES
ix
Figure. No Figure Name No
x
CHAPTER-1
INTRODUCTION TO IoT -PBL
1.1 INTRODUCTION:
The “Surveillance Robot using ESP32-CAM” is a pioneering amalgamation of the
ESP32-CAM development board and a mobile robot chassis, establishing a dynamic
mobile surveillance platform. Featuring the ESP32-CAM board's cost-effective
integration of a compact camera module and Wi-Fi connectivity, this system enables real-
time video capture across diverse environments.
With the ESP32 CAM module, it is possible to create a surveillance robot that can be
controlled remotely from a computer or a mobile device. The robot can be programmed
to move around a specific area and capture images or videos of the surroundings. The
images and videos can be transmitted wirelessly to the remote-control station, where they
can be viewed and analysed in real-time.
Controlled via an intuitive web interface on the ESP32-CAM board, users command the
robot's movements, access live video streams, and capture snapshots effortlessly.
Incorporating computer vision algorithms for motion detection, including object
tracking, the system autonomously identifies defined motions and alerts users
accordingly.
With applications spanning from enhancing home security to monitoring remote
locations, the Surveillance Robot using ESP32-CAM presents an accessible, agile, and
adaptable solution for remote surveillance needs.
1.2 PROBLEM DEFINITION:
Demand for cost-effective, adaptable surveillance solutions in security, industry, and
home automation is rising. Existing systems face limitations in cost, mobility, and
usability, hindering widespread adoption.
The project aims to develop a surveillance robot using the ESP32-CAM module, known
for its remote monitoring capabilities. This module integrates a camera, Wi-Fi, and
Bluetooth, enabling seamless integration and remote control within robot systems.
1
The ESP32 CAM module's compact design delivers high-quality imagery and allows
intuitive control via the ESP32 microcontroller. Its wireless connectivity facilitates
remote control from computers or mobile devices, enabling programmed movements,
real-time image capture, and wireless data transmission to control stations.
Leveraging the ESP32 CAM module offers advantages such as superior imaging, remote
control feasibility, and wireless data transmission. Its user-friendly integration eliminates
the need for additional hardware.
2
1.4 PROPOSED WORK:
1. Hardware Integration and Functionality:
Integrate the ESP32-CAM module into the robot system, incorporating
camera, Wi-Fi, and Bluetooth functionalities.
Ensure smooth operation and synchronization of hardware components
for efficient surveillance operations.
2. Control Interface Development:
Develop an intuitive web interface enabling remote control and
monitoring.
Enable real-time streaming, image capture, and transmission
functionalities for enhanced surveillance capabilities.
3. Image Processing and Analysis:
Implement algorithms for image and video analysis, focusing on motion
detection and tracking.
Enhance surveillance efficacy by enabling automated detection and
alert mechanisms.
4. Optimization of Wireless Connectivity:
Ensure robust and reliable wireless data transmission between the robot
and control station.
Optimize connectivity for real-time streaming and data exchange,
enhancing surveillance effectiveness.
5. Usability and Integration Refinements:
Prioritize user-friendly design elements for seamless integration and
control.
Eliminate dependencies on additional hardware, ensuring practicality
and ease of use.
6. Cost-Effectiveness and Adaptability:
Aim for an affordable solution adaptable to various industries and
surveillance scenarios.
Enhance flexibility and adaptability in different operational
environments.
3
7. Testing and Validation:
Conduct comprehensive testing to validate functionalities and reliability
across diverse surveillance scenarios.
Ensure the system's robustness and performance in real-world
surveillance applications.
4
1.6 ORGANIZATION OF WORK:
1. Hardware Integration and Setup:
Objective: Integrate ESP32-CAM module and configure motor
controls.
Tasks: Assemble robot chassis and mount ESP32-CAM.
Configure motor pins and servo connections.
Ensure synchronized operation of integrated components.
2. Software Development:
Objective: Develop a web-based control interface and implement
server functionalities.
Tasks: Create HTML/CSS/JS interface for remote control.
Implement server-side functionalities for WebSocket communication.
Develop control logic for robot movement and camera control.
3. Camera Configuration and Streaming:
Objective: Set up camera functionalities and enable live streaming.
Tasks: Configure camera-related constants and pins.
Initialize the camera module and define streaming mechanisms.
Ensure consistent video transmission over WebSocket.
4. Motion Control and Motor Functions:
Objective: Enable controlled movement of the robot.
Tasks: Define functions for different movement directions (forward,
backward, left, right).
Implement logic to control motor movement based on user input.
5. Wireless Connectivity and Server Deployment:
Objective: Ensure stable wireless connections and host the server.
Tasks: Set up Wi-Fi connectivity for remote access.
Deploy and host the server on ESP32 for user interaction.
6. Testing and Optimization:
Objective: Validate system functionalities and optimize performance.
Tasks: Conduct rigorous testing across various scenarios.
Optimize code for efficiency and reliability.
Troubleshoot connectivity or control issues.
5
7. Documentation and Iterative Refinement:
Objective: Document the project and iterate for improvements.
Tasks: Create comprehensive documentation for code, functionalities,
and usage.
Gather feedback for enhancements and implement necessary
iterations.
8. Deployment and User Guidance:
Objective: Deploy the system and provide guidance for users.
Tasks: Install the system in targeted environments.
Prepare user manuals or guides for system operation and control
6
CHAPTER – 2
7
Fig 2.1.1.2 pins of ESP 32 CAM
2. MOTOR DRIVER: The L298N is a popular motor driver IC (integrated circuit) that
can control the direction and speed of DC motors and stepper motors. It can handle
up to 2 amps of continuous current per channel, and has a wide input voltage range
of 5V to 35V. The L298N has two H-bridge circuits, which are used to control the
direction of the motor. Each H-bridge consists of four transistors that can be
controlled independently. By switching these transistors on and off in the correct
sequence, the motor can be driven in either direction. Fig.2.1.2 L298N Motor driver
8
FIG 2.1.2.1 MOTOR DRIVER
To use the L298N, you need to connect it to your microcontroller or other control
circuitry. There are several pins on the L298N shown in Fig 2.1.2 that you need to
connect to: ENA and ENB: These are the enable pins for channels A and B,
respectively. You can connect these to digital output pins on your microcontroller to
enable or disable the motor channels. IN 1, IN2, IN3, and IN4:. By setting the correct
combination of high and low signals on these pins, you can control the direction and
speed of the motor. OUTI, OUT2, OUT3, and OUT4: These are the output pins that
connect to the motor. To connect the L298N to a motor, you need to connect the
motor to the OUT pins, and also connect the motor power supply to the L298N's V+
and GND pins. It's important to note that the L298N can get quite hot when driving
high-current motors, so you should use a heat sink to dissipate the heat. You should
also be careful not to exceed the maximum current ratings of the L298N, or you may
damage the IC.
9
3. FDTI PROGRAMMER: Devices International, and an FTDI programmer is a device
used to program and communicate with electronic devices that use FTDI chips for
their USB communication. An FTDI programmer in Fig 2.1.3.1 typically consists of
a USB-to serial converter chip from FTDI and a connector that can be used to
interface with the target device. The programme provides a simple and reliable way
to communicate with the device, allowing for the transfer of data and programming
instructions between the device and a computer. Fig. 2.1.3.2FTDI Programmer FTDI
programmers are commonly used to program and debug microcontrollers, such as
those based on the Atmel AVR and Microchip PIC architectures. They are also used
in other applications where a USB-to serial interface is needed, such as in GPS
receivers, data loggers, and other electronic devices. In addition to providing a USB-
to-serial interface, FTDI programmers often include additional features such as
voltage regulation, programmable clock sources, and other features that make them
useful for a wide range of applications. Overall, FTDI programmers are an essential
tool for many electronics designers and developers, providing a reliable and easy-to-
use method for programming and communicating with a wide range of electronic
devices. i) Pin configuration of FDTI Programmer FTDI chips and programmers
typically use a 6-pin connector called a “FTDI cable” or “FTDI header”. The pinout
of the FTDI cable or header is as follows:
• DTR (Data Terminal Ready)
• RXD (Receive Data)
• TXD (Transmit Data)
• VCC (Voltage Supply)
• CTS (Clear to send)
• GND (Ground)
Here's a brief description of each pin:
DTR - This pin is used to reset the microcontroller or target device. The
programmer sends a signal to this pin to reset the device before uploading
new code.
RXD - This pin is used to receive data from the target device. Data is
transmitted from the target device to the programmer through this pin.
TXD - This pin is used to transmit data to the target device. Data is transmitted
from the programmer to the target device through this pin.
10
VCC - This pin provides power to the target device. The voltage level can
vary depending on the programmer and the target device, but it's typically 3.3
V or 5 V. CTS - This pin is used for flow control. It tells the target device
when it's safe to transmit data.
GND - This pin provides a common ground reference for the programmer and
the target device.
It's important to note that the pinout may vary depending on the specific FTDI
programmer or cable being used.
ESP32- FTDI
CAM Programmer
GND GND
5V VCC (5V)
U0R TX
U0T RX
GPIO 0 GND
11
4. GEAR MOTORS: A gear motor is a type of motor that incorporates a gearhead,
which is a gear assembly that is designed to reduce the speed of the motor while
increasing its torque. Gear motors are widely used in a variety of industrial,
commercial, and consumer applications that require precise and controlled
movement. The motor in a gear motor can be an AC motor or a DC motor, and the
gearhead can consist of various types of gears, such as spur gears, worm gears,
helical gears, or planetary gears. The gearhead is typically attached to the motor
shaft and is designed to convert the high-speed, low torque output of the motor into
a lower-speed, higher torque output. Gear motors are used in many applications,
such as robotics, conveyor systems, industrial machinery, automotive equipment,
and many more. They are preferred over regular motors because they provide
greater control, accuracy, and efficiency. In addition, gear motors are generally
more reliable and have a longer lifespan than regular motors. When selecting a gear
motor, it is important to consider the application and the specific requirements, such
as the Required torque and speed, the duty cycle, the environment, and the power
source.
12
2.2SOFTWARE INTRODUCTION AND TOOLS
SOTWARE USED: Arduino IDE (Integrated Development Environment) is a software
platform used to program and develop applications for the Arduino microcontroller boards.
Arduino is an opensource hardware and software platform used to build electronics
projects, which is designed for makers, hobbyists, and professionals. The Arduino IDE
provides a simple and user-friendly interface to write, compile, and upload code to Arduino
boards. It supports the C and C++ programming languages, and also provides a range of
libraries and functions that can be used to interface with various sensors, actuators, and
other components.. It is compatible with various operating systems, including Windows,
Mac, and Linux. The Arduino IDE is also open-source, which means that the source code
is available for anyone to view and modify. The Arduino IDE (Integrated Development
Environment) is a software tool used to write and upload code to a variety of
microcontrollers, including the ESP32-CAM.The ESP32-CAM is a development board that
combines an ESP32- S chip, a camera module, and other components to create a versatile
platform for building Internet of Things (IoT) projects. To program the ESP32-CAM using
the Arduino IDE, you will need to install the ESP32 board package in the IDE and select
the appropriate board and port settings. You will also need to install any necessary libraries
for your project. Once you have everything set up, you can use the Arduino IDE to write
code for the ESP32-CAM and upload it to the board via a USB cable.
14
CHAPTER – 4
CONCLUSION
In conclusion, the surveillance robot using ESP32-CAM is a promising project that can be
used for various applications, such as monitoring and surveillance of homes or offices. The
ESP32-CAM module provides a compact and cost-effective solution for capturing images
and streaming video. By integrating it with a robot platform, it is possible to remotely control
the robot and view live video footage from the camera. With the increasing demand for
remote monitoring and surveillance, this project has the potential to provide a practical and
affordable solution for many different scenarios.
CHAPTER-5
BIBLOGRAPHY
References:
1. Arthi., et al. “Smart Spy Surveillance Robot System” International Journal Research
& Technology (IJERT) ISSN:2278- 0181, Special Issue-2018.
2. “Design and Implementation of SPY Robot”, IJARIIE-ISSN (0)-4396, Vol- 5 Issue-
5 2019. 3. Liu, C., et al.
3. "Design and implementation of a wireless surveillance robot based on ESP32-
CAM." IEEE Access, vol. 9, 2021, pp. 14582-14591.
4. Kumar, S., et al. "Design and implementation of a low-cost surveillance robot for
indoor applications." International Journal of Computer Applications, vol. 180, no.
18, 2018, pp. 9-14.
5. Wang, Y., et al. "Design and implementation of a wireless robot for environmental
monitoring." Sensors, vol. 21, no. 1, 2021, p. 36.
6. Nagendra, N., et al. "Design and implementation of a low-cost surveillance robot
using Raspberry Pi." International Journal of Innovative Technology and Exploring
Engineering, vol. 8, no. 12, 2019, pp. 46-50.
7. YouTube (channel name : hash electronics)
https://youtu.be/tyY7AN132Xs?si=yTDN4-T79jz13aXO
15