Downloadfile
Downloadfile
LIST OF FIGURES…………………………………………………………. 1
ABSTRACT………………………………………………………………….2
1. INTRODUCTION
1.1 Introduction……………………………………………………………3
2. EMBEDDED SYSTEMS
3. HARDWARE DESCRIPTION
3.4 LED…………………………………………………………………..18
3.5 Keypad………………………………………………………….……19
3.6 DC motor….…………………………………………………….…...21
3.7 Buzzer………………………………………………………………..23
1
4. SOFTWARE DESCRIPTION
4.3 Program………………………………………………………………36
5. PROJECT DESCRIPTION………..……………………………………41
7. RESULTS…………………………………………………………………
9. REFERENCES…………………………………………………………50
2
LIST OF FIGURES
Fig.3.4 LED……………………………………………………………..19
Fig.3.12 DC Motor………………………………………………………27
Fig.3.15 Buzzer………………………………
3
CHAPTER-1
INTRODUCTION
1.1 Introduction
Currently almost of the public having an own vehicle, theft is happening on parking and
sometimes driving insecurity places. The safe of vehicles is extremely essential for public
vehicles. Vehicle theft is a growing concern in urban and rural areas, necessitating the
development of smart, affordable, and reliable security systems. This project presents an
AntiTheft Vehicle Control System utilizing the ESP32-CAM, a low-cost Arduino NANO
microcontroller with built-in Wi-Fi and ESP32-camera module. The system is designed to
monitor and respond to unauthorized access attempts by capturing real-time images and
disabling vehicle operation. The core functionality includes intrusion detection using
keypad. Upon detecting suspicious activity when wrong password entered through keypad,
the ESP32-CAM captures an image of the intruder via Wi-Fi to the vehicle owner's mobile
device through email services. Additionally, the system employs a DC motor to disable the
vehicle's ignition control, thereby preventing theft. The system operates autonomously and
can be remotely controlled or monitored via a web interface or mobile application. This
solution offers a compact, cost-effective, and intelligent approach to vehicle security,
combining surveillance, alerting, and control the vehicle automatically.
The main controlling device of the project is Arduino Nano microcontroller. Transistor with
ignition DC motor is interfacing to the Arduino. The main controlling device of the project
is Arduino Nano Microcontroller to achieve this task. Keypad is used for intruder detection
based on entry of wrong password. DC motor works as vehicle for ignition. The system
provides both audible and visual alerts using buzzer alarm and visual alerts buzzer alarm
and ESP32 camera
based email alerts with photo capture of the intruder.
4
1.2 Project overview
Anti-Theft Vehicle with Photo Capture system is designed to enhance vehicle security by
capturing images of potential thieves or unauthorized individuals attempting to access the
vehicle. This system integrates advanced technologies such as cameras, sensors, and GPS
to provide real-time monitoring and alerts.
Key Features:
1. Image Capture: The system captures images of individuals attempting to access the
vehicle without authorization.
2.Real-time Alerts: The system sends real-time alerts to the vehicle owner or authorities
in case of unauthorized access.
3.GPS Tracking: The system tracks the vehicle's location in real-time, enabling recovery
in case of theft.
4.Motion Detection: The system detects motion around the vehicle and triggers alerts or
image capture accordingly.
Objectives:
1.Enhanced Security: Provide an additional layer of security for vehicles to prevent theft
and unauthorized access.
5
1.3 Organization of the Report
Chapter 1 Presents introduction to the overall thesis and the overview of the project. In
the project overview a brief introduction of “ANTI THEFT VEHICLE CONTROL WITH
PHOTO CAPTURE USING ESP32 CAMERA” and its applications are discussed.
Chapter 2 Presents the topic embedded systems. It explains the about what is embedded
systems, need for embedded systems, explanation of it along with its applications.
Chapter 3 Presents the hardware description. It deals with the block diagram of the project
and explains the purpose of each block. In the same chapter the explanation of each module
are considered.
Chapter 4 Presents the software description. It explains the implementation of the project
using Arduino IDE Compiler software.
Chapter 7 Presents the results, conclusion and future scope of the project.
6
CHAPTER -2
EMBEDDED SYSTEMS
7
perform one or a few dedicated functions", and is thus appropriate to call "embedded". A
modern example of embedded system is shown in fig: 2.1.
8
CHAPTER -3
HARDWARE COMPONENTS
3.1 Introduction
In this chapter the block diagram of the project and design aspect of independent modules
are considered. Block diagram is shown in fig: 3.1
9
The main blocks of this project are:
1. Adapter power supply.
3. ESP32 camera.
4. Keypad.
5. DC motor.
6. Buzzer.
7. LED indicators.
3.2 ARDUINO :
10
ARDUINO NANO SPECIFICATIONS
SRAM 2 KB
EEPROM 1 KB
3.3 KEYPAD:
A keypad is a set of buttons arranged in a block or "pad" which usually bear digits another
symbols and usually a complete set of alphabetical letters. If it mostly contains numbers
then it can also be called a numeric keypad. Keypads are found on many alphanumeric
keyboards and on other devices such as calculators, push-button telephones, combination
locks, and digital door locks, which require mainly numeric input.
Keypads are also a feature of some combination locks. This type of lock is often used on
doors, such as that found at the main entrance to some offices.
11
Fig.3.7:4x4 Keypad
Keypad is an array of switch. There will be 2 wires connected each time a button is pressed.
For example; when button ‘1’ is pressed, pin col1 and row1 is connected. There is no
connection between rows and also columns. The button makes it connect. To scan which
button is pressed, users need to scan it column by column and row by row. Make rows as
input and columns as output. For example; set all columns by default. 1st scan, clear (logic
low) column 1 and scan row1-row4 low logic, this will determine which button is pressed
in column1. If one of those buttons is pressed, record it and jump out from the scanning
loop and continue with the action required. If none button is pressed in column1, set it back
to default (logic high) and clear column2. Scan row1-row4 again and this will scan button
press of ‘2’, ‘5’, ‘8’ and ‘0’. And this process is being repeated until all four columns being
completed scanned. For keypad wiring, keypads pins need to pull up or pull down to avoid
floating case happen. Pull up normally connect to 5V and pull down is connect to ground.
4x4 Keypad pin can directly connect to microcontroller or keypad decoder IC for decodes
purpose. However, DIY scanning of keypad consumes a lot of understanding in
programming and more program space. The better way to interface a keypad to the PIC is
to use a keypad encoder in between the keypad and the microcontroller. One of the Keypad
Encoder is the MMC74C922. Simply hook up all the row and the column pins directly to
the encoder and it will output a HIGH pulse on the Data Available pin whenever a key is
pressed. After that, the encoder will output 4 bits of data to the PIC. Please refer
MMC74C922 datasheet for more information.
12
Below is example keypad which connects directly to a PIC microcontroller. This
16-button keypad provides a useful human interface component for
microcontroller projects. Convenient adhesive backing provides a simple way
to mount the keypad in a variety of applications. Working process of
Keypad
Matrix keypads use a combination of four rows and four columns to provide
button states to the host device, typically a microcontroller. Underneath each key
is a pushbutton, with one end connected to one row, and the other end connected
to one column.
13
Fig.3.8: connection of keypad
For example, say your program pulls all four columns low and then pulls the
first row high. It then reads the input states of each column, and reads pin 1
high. This means that a contact has been made between column 4 and row 1,
Features
1. Ultra-thin design.
Key Specifications
Applications
1.Security
2.Menu selection
16
3.6 ESP32 camera:
ESP32 Feature:
1. ESP32-CAM :.
3. Low power 32-bit CPU, can also serve the application processor.
6. Supports UART/SPI/I2C/PWM/ADC/DAC.
9. Supports TF card.
14. Support for serial port local and remote firmware upgrades (FOTA).
Specifications
3. Camera
a. FPC connector.
7. Power Consumption.
18
9. Temperature Range: Operating: -20 ~ 85 ; storage: -40 ~ 90 @
<90%RH.
3.7 D.C. Motor
A dc motor uses electrical energy to produce mechanical energy, very typically through
the interaction of magnetic fields and current-carrying conductors. The reverse process,
producing electrical energy from mechanical energy, is accomplished by an alternator,
generator or dynamo. Many types of electric motors can be run as generators, and vice
versa.
Operation
The DC motor you will find in modem industrial applications operates very similarly to the
simple DC motor described earlier in this chapter. Figure 12-9 shows an electrical diagram of
a simple DC motor. Notice that the DC voltage is applied directly to the field winding and
19
the brushes. The armature and the field are both shown as a coil of wire. In later diagrams, a
field resistor will be added in series with the field to control the motor speed.
When voltage is applied to the motor, current begins to flow through the field coil
from the negative terminal to the positive terminal. This sets up a strong magnetic
field in the field winding. Current also begins to flow through the brushes into a
commutator segment and then through an armature coil. The current continues to
flow through the coil back to the brush that is attached to other end of the coil and
returns to the DC power source. The current flowing in the armature coil sets up
a strong
magnetic field in the armature.
When the voltage is de-energized to the motor, the magnetic fields in the
armature and the field winding will quickly diminish and the armature shaft's
speed will begin to drop to zero. If voltage is applied to the motor again, the
magnetic fields will strengthen and the armature will begin to rotate again.
Applications of DC Motors:
2. Elevators: The best bidirectional motors are DC motors. They are used in
21
3. PC Fans, CD ROM Drives, and Hard Drives: All these things need motors,
very miniature motors, with great precision. AC motors can never imagine
motor is best suited here. Also, you cannot start an engine with a small sized
AC motor,
Fig.3.14: Buzzer
CHAPTER-4
SOFTWARE DESCRIPTION
23
1. Open Arduino IDE.
5. Upload a sketch.
2. Arduino IDE.
3. An Arduino board.
If you haven’t done so already, download Arduino IDE from the software page.
You can find installation instructions here.
24
1. Connect the board to your computer
Next, connect to board to your computer with a USB cable. This will both
power the board and allow the IDE to send instructions to the board. You’ll
need a data USB cable (a charge-only cable will not work), with connectors
that fit both the board and your computer.
3. Micro-B (Nano Family boards (except the classic Nano), MKR Family
boards)
C.
To compile and upload sketches for your board Arduino IDE needs a collection of
files for that board called a board package.
When Arduino IDE detects a board with a missing board package, it may ask you
to install the missing files:
26
Using the board selector
1. If it is unknown, the “Select Other board and port” dialog will open. See
Select board and port in Arduino IDE for details.
to install it:
1. Click on Tools in the menu bar and find the Board row. If a board
2. Hover over the Board row to reveal the installed board packages.
28
3. Click on a board to select it.
SELECT PORTS:
1.Click on Tools in the menu bar and find the Port row. If a board is currently
selected it will be displayed here.
5. Upload a sketch
1.Write a sketch, or use an Example such as Blink (File > Examples >
01.Basics > Blink).
2.Optional: Click the Verify button to try compiling the sketch and check
for errors.
3.Click the Upload button to program the board with the sketch.
29
Your sketch will start running on the board. It will run again each time the
board is reset.
Troubleshooting
1. Make sure you’ve followed the steps before, especially selecting the
board and port correctly.
2. If you can’t find your board in the port menu, or if the Tools > Port
port menu is missing, see If your board does not appear in the port
menu.
3. If you get an upload error, see Errors when uploading a sketch.
Program:
COLS = 4; char
keys[ROWS][COLS] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
}; byte row Pins [ROWS] = {2, 3, 4, 5}; // Connect to R1, R2, R3,
C2, C3,
30
C4
Keypad key pad = Keypad (make Keymap(keys), row Pins, col Pins, ROWS,
COLS);
= 0; int wrong
Attempts = 0;
void setup () {
Pin,
Pin, LOW);
Serial. begin(9600);
31
Delay (500);
Delay (500);
Delay (500);
Delay (500);
Attempts = 0; flag=1;
}
Digital Write (relay Pin, LOW); // Correct password → turn OFF relay
Wrong Attempts = 0;
flag=0;
32
} else
Wrong Attempts++;
>= 3) {
Serial.
Print ln ("A");
Delay (5000);
Delay (50);
33
void buzz ()
Delay (250);
Delay (250);
Delay (250);
Delay (250);
34
CHAPTER- 5
PROJECT DESCRIPTION
In this chapter, schematic diagram and interfacing of ARDUINO NANO with each module
is considered.
35
Fig 5.1: schematic diagram of ANTI THEFT VEHICLE CONTROL WITH
PHOTO
The above schematic diagram of ANTI THEFT VEHICLE CONTROL WITH PHOTO
CAPTURE
USING ESP32 CAMERA explains the interfacing section of each component with micro
controller, ESP
36
Anti-Theft Vehicle Control with Photo Capture using ESP32 Camera
This project aims to design and develop a vehicle security system that
uses an ESP32 microcontroller and camera module to capture photos of
intruders who attempt to access the vehicle with an incorrect password.
The system controls the vehicle ignition, preventing unauthorized access,
and sends the captured photo to the owner's email address.
Key Components
2. ESP32 Camera Module: Captures photos of intruders and sends them to the
owner's email.
37
STEP 1: SWITCHING ON THE PERSONAL HOTSPOT :
38
System Functionality
1. Password Authentication: The system prompts users to enter a password to
access the vehicle.
Potential Impact
1. Reduced Vehicle Theft: The system can help reduce vehicle theft by
3. Increased Owner Peace of Mind: Vehicle owners can have peace of mind
39
CHAPTER-5
ADVANTAGES AND DISADVANTAGES
Advantages:
1. Highly efficient and user-friendly design.
2. Easy to operate.
40
7. Cost-Effective Solution
Utilizes affordable components like the ESP32-CAM, relay modules, and
basic sensors.
9. Instant Alerts
Sends immediate notifications to the user via email, or messaging platforms,
Disadvantages:
1. Power Dependency
Requires continuous power supply; prolonged inactivity or battery drain can
lighting.
3. Security Risks
If not properly secured, the system could be vulnerable to hacking, especially
4. Wi-Fi Disconnections
Intermittent Wi-Fi connections can delay image uploads or alerts, especially in
Applications:
4. Ambulance tracking.
5. This system is used for all type of two wheelers and four wheelers.
7. Fleet Management
Ensures security of commercial vehicles (taxis, delivery vans,
location.
42
9. Two-Wheeler Anti-Theft
Compact size makes it ideal for bikes and scooters to alert owners and
Acts as a smart garage camera and vehicle lock system, integrated into
home security setups.
43
CHAPTER-6
TESTING & RESULTS
6.1 Result:
The project “ANTI THEFT VEHICLE CONTROL WITH PHOTO CAPTURE
USING ESP32
44
CASE 2:WHEN AN UNAUTHORIZED ACCESS IS DETECTED,FOR 3 TIMES THE
CAMERA TENDS TO CAPTURE THE IMAGE.
When an unauthorized attempt of the intruder is detected,for the third attempt the buzzer
will alert and tries to capture the image .The captured image will be sent to the mail.The
sample captured images are as follows:
45
CHAPTER-7
1. By using this project, we can save the time and for vehicle tracking it is very
easy.
2. By interfacing MMC/SD card to the system we can log the path of the
vehicle being traveled.
4. Multi-Level Authentication
Add biometric/fingerprint authentication or RFID-based access to
unlock or start the vehicle.
5. Solar-Powered System
Implement solar panels for power backup, enabling uninterrupted 24/7
operation even when the vehicle is parked for long durations.
47
6. Smart Auto-Lock Mechanism
Integrate with central locking systems to automatically lock the vehicle
if intrusion is detected.
7. Voice-Based Alerts
Use a speaker module (e.g., DFPlayer Mini) to play pre-recorded
warning messages )
48
[1] Asaad M. J. Al-Hindawi, Ibraheem Talib,
GPS/GSM Based System Design”, Science & Information Technology (IJCSIT) Vol
2008.
[3] Vikram Kulkarni & Viswaprakash Babu,
“embedded smart car security system on face
[6] Albert Alexe, R.Ezhilarasie, “Cloud
detection’, special issue of IJCCT,
Computing Based Vehicle Tracking
ISSN(Online):2231-0371, ISSN(Print):0975-
Information Systems”, ISSN: 2229 - 4333 (
Print)
7449,volume-3, issue-1
| ISSN: 0976 - 8491 (Online ) IJCST Vol.