Professional Documents
Culture Documents
Final Project
Final Project
Bachelor of Technology
In
Submitted By
i
Deptt. of Electronics and Communication Engineering
G. L. BAJAJ INSTITUTE OF TECHNOLOGY AND MANAGEMENT
[Approved by AICTE, Govt. of India & Affiliated to A.K.T.U (Formerly U.P.T.U), Lucknow]
CERTIFICATE
Certified that Md.Arif Khan , Ayush Gupta, Mohit Tiwari, Karan Mishra
have carried out the Minor project work presented in this report entitled
“BLUETOOTH CAR WITH BUILT IN METAL DETECTOR” for
the award of Bachelor of Technology in Electronics and
Communication Engineering during the Academic session 2022-23
from Dr. A.P.J. Abdul Kalam Technical University (Formerly
U.P.T.U), Lucknow. The project embodies result of the work and studies
carried out by Student himself and the contents of the report do not form
the basis for the award of any other degree to the candidate or to anybody
else.
ii
TABLE OF CONTENTS
iv
LIST OF TABLES
v
LIST OF FIGURES
FIGURE NO. TITLE PAGE NO.
FIG- 2.1 CIRCUIT DIAGRAM 9
FIG- 2.2 WORKING OF MODEL 10
FIG- 3.1 ARDUINO UNO CROSS SECTION 14
FIG- 3.2 SERVO MOTOR 15
FIG- 3.3 FINGERPRINT SENSOR 15
FIG-3.4 BATTERY 16
FIG- 3.5 JUMPING WIRE 17
FIG- 3.6 SWITCH 17
FIG- 3.7 POWER CORD 18
FIG- 3.7 USB CORD 18
FIG- 3.8 BARREL BOLT LATCH 19
FIG- 3.9 ARDUINO IDE 20
vi
ABSTRACT
vii
CHAPTER-1
INTRODUCTION
1.1 OVERVIEW
1
1.3.1 ADVANTAGES
I. Real-Time Threat Detection: The integration allows for instant detection of metallic
objects near the vehicle, enabling real-time alerts and quick responses to potential
security threats.
II. User-Friendly Experience: Bluetooth connectivity facilitates seamless integration with
the vehicle's systems, providing a user-friendly interface for monitoring and
controlling security features.
III. Customizable Security Levels: Users can customize the sensitivity of the metal
detector system, reducing the likelihood of false alarms and ensuring effective threat
discrimination.
IV. Deterrence Effect: The presence of a metal detector system can act as a deterrent,
discouraging potential thieves and vandals from attempting unauthorized access or
tampering with the vehicle.
V. Integration with Other Security Systems: The technology can be integrated with other
security measures, creating a comprehensive security ecosystem for the vehicle.
1.3.2 LIMITATIONS
I. False Alarms: Depending on the sensitivity settings, the system may generate false
alarms, triggered by benign metallic objects such as keys or coins, leading to potential
inconvenience for the vehicle owner.
II. Environmental Interference: Adverse environmental conditions, such as
electromagnetic interference or metallic surroundings, may impact the accuracy and
reliability of the metal detector system.
III. Cost and Complexity: Implementing and maintaining such an integrated system may
involve additional costs, and the complexity of the technology could pose challenges
for some users.
IV. Power Consumption: Constant Bluetooth connectivity and metal detector operation
may contribute to increased power consumption, impacting the overall energy
efficiency of the vehicle.
V. Limited Range: Bluetooth technology has a limited range, and the effectiveness of the
system may diminish as the distance between the vehicle and a potential threat
increases.
2
I.4 APPLICATIONS
I. Anti-Theft Protection: Enhancing security by detecting unauthorized access attempts
and providing real-time alerts to vehicle owners.
II. Secure Parking Solutions: Monitoring the vehicle surroundings during parking,
ensuring an extra layer of security with immediate alerts for detected metallic objects.
III. Tamper Detection: Identifying illicit attempts to tamper with the vehicle's
components, triggering alerts for prompt intervention.
IV. Keyless Entry Security: Preventing unauthorized keyless entry attempts through the
detection of metallic devices, with instant owner notifications.
V. Belongings Security: Extending security to valuables inside the vehicle, with
Bluetooth alerts for detected metallic objects in the vicinity.
VI. Customizable Security Settings: Allowing users to adjust sensitivity levels based on
specific scenarios, minimizing false alarms.
VII. Emergency Response Integration: Automatic alerts to emergency response systems
in critical situations, enhancing overall security and safety.
VIII. Comprehensive Security Ecosystem: Forming part of a broader security framework
by collaborating with other advanced features for a robust defense against potential
threats.
4
Enhanced privacy measures are essential to address growing concerns. Implementing robust
privacy safeguards ensures that the data collected by the integrated system is handled
securely, respecting user privacy and aligning with stringent data protection regulations.
Augmented reality (AR) integration explores the incorporation of AR displays within the
vehicle's interface. This feature provides real-time visualizations of detected threats, offering
the driver an intuitive and informative means of understanding and responding to security
alerts.
Finally, the evolution towards self-learning security profiles becomes evident. This capability
involves continuous adaptation of the system's security profiles based on historical data and
user behavior, enhancing its predictive capabilities and responsiveness to potential threats.
These future improvements collectively aim to make the Bluetooth car integrated with a
metal detector system more intelligent, adaptable, and efficient, ensuring a high level of
security for vehicle owners in the dynamic landscape of automotive technology.
5
CHAPTER-2
CIRCUIT DIAGRAM AND WORKING
2.1.1 Circuit Diagram (Metal Detector)
L = (μo * N2 * A) / l
Where,
L- Inductance in Henries
μο- Permeability, its 4π*10-7 for Air
N- Number of turns
A- Inner Core Area (πr2) in m2
l- Length of the Coil in meters
When any metal comes near to the coil then coil changes its inductance. This change
in inductance depends upon the metal type. It's decreases for non-magnetic metal and
increases for ferromagnetic materials like iron. Depending on the core of the coil,
inductance value changes drastically. In the figure below you can see the air-cored
inductors, in these inductors, there will be no solid core. They are basically coils left in
6
the air. The medium of flow of magnetic field generated by the inductor is nothing or air.
These inductors have inductances of very less value
7
2.2.1 Working Model Of Metal Detector
(Off State)
(On State)
8
(Off State)
(On State)
CHAPTER-3
DESIGN SPECIFICATIONS AND COMPONENT
9
DESCRIPTION
16. Wheels _
17. ARDUINO IDE (R3) --
TABLE 3.1 Component Used
10
Replaceable chip the ATmega328P can easily be replaced, as it is not soldered to the board.
EEPROM the ATmega328P also features 1kb of EEPROM, a memory which is not erased
when powered off Battery Connector the Arduino UNO features a barrel plug connector, that
works great with a standard 9V battery.
Microcontroller
ATmega328P
U
S
USB connector B
-
B
PWM pins 6
UART Yes
I2C Yes
Communication
SPI Yes
I/O Voltage 5V
11
Input voltage (nominal) 7-12V
Clock speed
ATmega16
U2
USB-Serial Processor 16 MHz
2KB
SRAM,
32KB
Memory FLASH,
1KB
ATmega328P EEPROM
Weight 25 g
Width 53.4 mm
12
VIN: The input voltage to the Arduino/Genuino board when it is using an external
power source (as opposed to 5 volts from the USB connection or other regulated
power source). You can supply voltage through this pin, or, if supplying voltage
via the power jack, access it through this pin.
5V: This pin outputs a regulated 5V from the regulator on the board. The board canbe
supplied with power either from the DC power jack (7 - 20V), the USB
connector (5V), or the VIN pin of the board (7-20V). Supplying voltage via the
5V or 3.3V pins bypasses the regulator, and can damage the board.
3V3: A 3.3 volt supply generated by the on-board regulator. Maximum current draw is
50 mA.
Reset: Typically used to add a reset button to shields that block the one on the board.[7]
13
3.2 MOTER DRIVER
14
3.3 HC-05 BLUETOOTH
module:
FIG 3.3 HC-05 BLUETOOTH MODULE
Bluetooth Version: The HC-05 is based on Bluetooth 2.0 (with Enhanced Data Rate - EDR)
and supports the Serial Port Profile (SPP). It can establish a wireless serial communication
link between devices.
Operating Modes:
Master Mode: The HC-05 can act as a master device and connect to other Bluetooth devices
(e.g., smartphones).
Slave Mode: It can also act as a slave device and be paired with a master device (e.g., another
HC-05 module).
Communication Range: The communication range of the HC-05 typically ranges from 10 to
20 meters, depending on the specific conditions and environment.
Serial Communication: The HC-05 module simplifies Bluetooth communication by
emulating a serial port (UART). This makes it easy to integrate into microcontroller projects
that use serial communication, as data can be sent and received using standard UART
commands.
15
Operating Voltage: The HC-05 typically operates on 3.3V, making it compatible with a wide
range of microcontrollers and embedded systems. However, some modules might support a
wider voltage range.
16
3.4 BATTERY
17
3.5 JUMPER WIRE
A jump wire is an electrical wire, or group of them in a cable, with FIG- 3.5- JUMPING WIRE
a connector or pin at each end, which is normally used to interconnect the components of a
breadboard or other prototype or test circuit, internally or with other equipment or
components, without soldering.
3.6 SWITCH
A push-button (also spelled push button) or simply button is a simple switch mechanism for
controlling some aspect of a machine or a process. Buttons are typically made out of hard
material, usually plastic or metal. The surface is usually flat or shaped to accommodate the
18
human finger or hand, so as to be easily depressed or pushed. Buttons are most often biased
switches, although many un-biased buttons (due to their physical nature) still require a spring
to return to their unpushed state.
The Arduino Nano is a compact and versatile microcontroller board that is part of the Arduino
family. It is designed for projects that require a small form factor, making it suitable for
applications with limited space. Here are some key features and components of the Arduino
Nano:
19
The Nano's versatility is evident in its array of digital and analog input/output pins, making it
adaptable to diverse electronic components. It accommodates sensors, actuators, and other
peripherals, fostering a wide range of project possibilities.
To ensure a stable power supply, the Nano integrates a voltage regulator, allowing it to
operate within the 7-12V range. This feature enhances flexibility by enabling the use of
various power sources.
For ease of use and development efficiency, the Nano comes equipped with a reset button for
program restarts. Additionally, it incorporates a pre-loaded bootloader, streamlining the
programming process via the Arduino Integrated Development Environment (IDE). The
bootloader facilitates programming through the USB connection, eliminating the need for an
external programmer.
The Nano's visual indicators include LEDs for power status and data transmission/reception
over USB. These indicators contribute to troubleshooting and provide valuable feedback
during the development process.
Popular in the maker community, the Arduino Nano finds applications in robotics,
automation, and rapid prototyping due to its compact form factor and versatility. Its user-
friendly features make it accessible for beginners and valuable for seasoned developers
engaged in a broad spectrum of electronic Microcontroller: The Arduino Nano is typically
equipped with an Atmel AVR microcontroller, such as the ATmega328P or ATmega168.
These microcontrollers are commonly used in Arduino boards and provide a good balance of
performance and power efficiency.
Microcontroller: It typically features an Atmel AVR microcontroller, such as the
ATmega328P, which is commonly used in various Arduino boards.
Clock Speed: The microcontroller runs at a clock speed of 16 MHz, determining the rate at
which it processes instructions.
Memory: The Nano has Flash memory for program storage and SRAM for runtime data
storage. Commonly, it comes with 32KB of Flash memory and 2KB of SRAM.
USB Interface: Equipped with a USB-to-serial converter chip (e.g., CH340 or FTDI
FT232RL), allowing easy connection to a computer or other devices for programming and
communication.
20
I/O Pins: Provides a range of digital and analog input/output pins, allowing connection to
various sensors, actuators, and other electronic components.
Voltage Regulator: Includes a voltage regulator for powering the board from a wider range
of sources (typically 7-12V), ensuring a stable voltage supply.
Reset Button: A reset button allows restarting the program or initiating the bootloader for
programming.
LED Indicators: Features LEDs indicating power status, data transmission/reception over
USB, and other status information.
Bootloader: Comes with a pre-loaded bootloader, facilitating programming using the
Arduino IDE over USB without requiring an external programmer.
The Arduino Nano is popular among hobbyists, students, and professionals for its small form
factor and versatility. It is commonly used in projects such as robotics, automation, and
prototyping, providing a convenient and compact platform for various electronic applications.
A copper coil typically refers to a length of copper wire wound into a series of loops or turns.
This configuration is commonly used in various applications across different fields, thanks to
the unique properties of copper. Here are some aspects related to copper coils:
21
3.9 USB CORD
The USB 2.0 specification was released in 2000 and increased the amount of bandwidth from
12 Mbit/s to 480 Mbit/s (Megabits per second).
This cable features a standard Type-A USB connector on one end and a standard Type-B
connector on the other. For example, you can plug the Type-A connector into your computer,
then plug the Type-B connector into a device with a Type-B port. Printers and servers often
have Type-B ports.
3.10 LED
22
Light Emitting Diodes, commonly known as LEDs, represent a pivotal advancement in
lighting technology. These semiconductor devices function based on the phenomenon of
electroluminescence, wherein the application of an electric current to a semiconductor
material induces the emission of light. The core structure of an LED consists of a
semiconductor, often composed of gallium arsenide or similar compounds, doped to create a
p-n junction.
One of the hallmark features of LEDs is their remarkable energy efficiency. Compared to
traditional incandescent and fluorescent lights, LEDs convert a higher proportion of electrical
energy into visible light, minimizing heat generation and reducing overall power
consumption. This energy efficiency not only contributes to cost savings but also aligns with
global efforts towards sustainable and eco-friendly lighting solutions. Another key attribute is
the extended lifespan of LEDs. Devoid of a filament prone to burning out, LEDs can endure
tens of thousands of operational hours. This longevity translates to reduced maintenance
requirements, lower replacement costs, and increased reliability in various lighting
applications.
LEDs are available in an extensive array of colors without the need for external filters. The
color of emitted light is determined by the energy bandgap of the semiconductor material,
allowing for versatile applications in colored lighting and diverse display technologies .
drop, compact design, and suitability for high-frequency applications. Its versatility and
reliability make it a staple in the toolbox of electronics enthusiasts and professionals alike.
3.12 BUZZER
FIG-3.12 BUZZER
A buzzer is an electromechanical device designed to produce a distinct sound or tone when an
electric current is applied. It consists of a coil of wire, an armature (a movable component),
and a diaphragm or membrane. Buzzer operation involves the conversion of electrical energy
into mechanical vibrations, resulting in an audible sound. Typically, a buzzer's coil is wound
around a magnetic core. When an electric current passes through the coil, it generates a
magnetic field that interacts with the armature, causing it to move. This movement, in turn,
affects the attached diaphragm. The diaphragm's vibrations produce compressions and
rarefactions in the surrounding air, creating sound waves that our ears perceive as a distinctive
buzzing or beeping sound. Buzzer designs can vary, leading to different types of buzzers,
including piezoelectric and electromagnetic variants. Piezoelectric buzzers employ a
piezoelectric crystal that deforms when subjected to an electric field, generating vibrations
and sound. On the other hand, electromagnetic buzzers use an electromagnetic coil to drive
the diaphragm and produce sound.
Buzzers find application in various scenarios, serving as alerting devices, indicators, or
components in interactive systems. Common uses include alarm systems, timers, appliances,
electronic games, and industrial machinery. The distinctive and attention-grabbing sound of a
buzzer makes it an effective tool for signaling or indicating specific events. In electronic
circuits, buzzers are relatively simple to integrate, requiring a power source to activate the coil
25
and generate sound. Some buzzers are designed to produce a single tone, while others can be
more complex, capable of generating different tones or melodies based on the applied voltage
or frequency.
Overall, the buzzer's simplicity, reliability, and versatility make it a widely used component in
electronics, contributing to its prevalence in everyday devices where audible alerts or
notifications are essential for user interaction and awareness.
3.13 CAPACITOR
FIG-3.13 CAPACITOR
A ceramic capacitor is a fundamental electronic component widely used in electrical circuits
for its ability to store and release electrical energy. It belongs to the family of capacitors,
which are devices that store electric charge and are crucial in various applications, including
filtering, coupling, and decoupling within electronic circuits. The basic structure of a ceramic
capacitor involves two parallel plates made of ceramic material, usually composed of
ferroelectric materials like barium titanate or other ceramic compounds. The ceramic material
acts as the dielectric, separating the two plates. The dielectric properties of the ceramic
determine the capacitor's capacitance value and its performance characteristics. One notable
characteristic of ceramic capacitors is their compact size and relatively low cost compared to
other capacitor types. They come in various shapes and sizes, including surface mount and
through-hole configurations, making them versatile and suitable for a wide range of electronic
applications. Ceramic capacitors are known for their stability over a broad range of
temperatures, making them reliable in diverse operating environments. However, their
capacitance can be affected by factors such as voltage and frequency, leading to variations
known as voltage coefficient and temperature coefficient.
There are two primary types of ceramic capacitors:
Class 1 and Class 2.
26
Class 1 Ceramic Capacitors: These capacitors offer high stability and precision in terms of
capacitance values. They are commonly used in applications where accuracy and stability are
critical, such as in resonant circuits and tuning applications.
Class 2 Ceramic Capacitors: These capacitors are known for their higher capacitance values
and are often used in coupling and decoupling applications. They are less stable than Class 1
capacitors but are suitable for situations where precise capacitance values are not crucial.
Despite their advantages, ceramic capacitors may exhibit piezoelectric effects, generating
3.14 RESISTOR
FIG-3.13 RESISTOR
A resistor is a fundamental electronic component that impedes the flow of electric current in a
circuit. Its primary function is to resist the flow of electrons, thereby controlling the amount of
current passing through it. This opposition to the flow of current is measured in ohms, the unit
of electrical resistance. Resistors are crucial for regulating the voltage and current levels in
electronic circuits, ensuring that devices operate within safe and desired parameters. Resistors
come in various types, shapes, and sizes, but they all share the common characteristic of
introducing resistance into a circuit. The most common type is the fixed resistor, which has a
constant resistance value that does not change. Variable resistors, on the other hand, allow the
adjustment of resistance manually or through external factors, providing flexibility in
27
controlling the circuit's parameters. These components play a vital role in dividing voltage,
limiting current, and protecting sensitive components from damage due to excessive current.
They find applications in a wide range of electronic devices, from simple LED circuits to
complex microprocessor-based systems. Resistors are integral to signal processing, providing
precise control over signal levels in amplifiers, filters, and other electronic circuits. Resistors
are typically made of materials with high resistivity, such as carbon or metal alloys, to
efficiently impede the flow of electrons.
The physical size, shape, and material composition of a resistor influence its power-handling
capability and tolerance, ensuring compatibility with specific circuit requirements.
28
other accessories are designed with aerodynamics in mind to create a cohesive and
streamlined profile. Wheels play a significant role in TT gear, with deep-section rims
designed to cut through the air more efficiently. The choice of tires and their inflation pressure
also contributes to reducing rolling resistance and enhancing overall speed. Riders may use
disc wheels for the rear, further improving aerodynamics.TT gear is a result of advancements
in materials, aerodynamics, and
engineering, with a focus on maximizing a cyclist's speed and efficiency during time trials.
Athletes carefully select and customize their equipment based on the specific demands of the
course and weather conditions. The pursuit of marginal gains in aerodynamics and efficiency
through TT gear reflects the meticulous nature of competitive cycling and the constant quest
for improved performance against the clock.
3.16 WHEEL
FIG-3.16 WHEEL
A DC motor and wheel is a basic mechanical system that converts electrical energy into
mechanical energy. The DC motor is an electrically powered device that consists of a rotating
armature (the moving part of the motor) and a stationary field magnet. The armature is
attached to the wheel, which rotates when the DC motor is energized.
The speed and direction of the rotation of the wheel are determined by the voltage and
direction of the current applied to the motor. By controlling the voltage and direction of the
current, the DC motor and wheel can be used to perform a variety of tasks, such as driving a
vehicle or operating a machine.
In short, a DC motor and wheel is a simple and reliable system that can be used to convert
electrical energy into mechanical motion.
29
FIG- 3.9 - ARDUINO IDE
The open-source Arduino software (IDE) makes is easy to write code and upload it to the
board. It runs on windows, MAX OS X, and Linux. The environment is written in java and
based on processing and other open-source software. The Arduino integrate Development
Environment or Arduino software (IDE) contains a text editor for writing code, a message
area, a text console, a toolbar with buttons for common function and a series of menus. It
connects to the Arduino and Genuine hardware to upload the program and communication
with them.
CHAPTER-4
SOURCE CODE
4.1 SOURCE CODE
4.1.1 SOURCE CODE FOR BT CAR
char t;
void setup() {
pinMode(13,OUTPUT); //left motors forward
pinMode(12,OUTPUT); //left motors reverse
pinMode(11,OUTPUT); //right motors forward
pinMode(10,OUTPUT); //right motors reverse
30
pinMode(9,OUTPUT); //Led
Serial.begin(9600);
}
void loop() {
if(Serial.available()){
t = Serial.read();
Serial.println(t);
}
19if(t == 'F'){ //move forward(all motors rotate in forward direction)
digitalWrite(13,HIGH);
digitalWrite(11,HIGH);
}
else if(t == 'B'){ //move reverse (all motors rotate in reverse direction)
digitalWrite(12,HIGH);
digitalWrite(10,HIGH);
}
else if(t == 'L'){ //turn right (left side motors rotate in forward direction, right side motors
doesn't rotate)
digitalWrite(11,HIGH);
}
else if(t == 'R'){ //turn left (right side motors rotate in forward direction, left side motors
doesn't rotate)
digitalWrite(13,HIGH);
}
else if(t == 'W'){ //turn led on or off)
digitalWrite(9,HIGH);
}
else if(t == 'w'){
digitalWrite(9,LOW);
}
31
else if(t == 'S'){ //STOP (all motors stop)
digitalWrite(13,LOW);
digitalWrite(12,LOW);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
}
delay(100);
}
4.1.2 SOURCE CODE FOR METAL DETECTOR
#define capPin A5
#define buz 9
#define pulsePin A4
#define led 10
long pTime=0;
long buzPeriod=0;
32
void setup()
Serial.begin(9600);
pinMode(pulsePin, OUTPUT);
digitalWrite(pulsePin, LOW);
pinMode(capPin, INPUT);
pinMode(buz, OUTPUT);
digitalWrite(buz, LOW);
pinMode(led, OUTPUT);
void loop()
int minval=1023;
int maxval=0;
33
for (int i=0; i<256; i++)
pinMode(capPin,OUTPUT);
digitalWrite(capPin,LOW);
delayMicroseconds(20);
pinMode(capPin,INPUT);
applyPulses();
minval = min(val,minval);
maxval = max(val,maxval);
sum+=val;
34
long unsigned int cTime=millis();
char buzState=0;
if (cTime0)
buzState=1;
else if(diff<0)
buzState=2;
if (cTime>pTime+buzPeriod)
if (diff>0)
buzState=1;
else if (diff<0)
buzState=2;
pTime=cTime;
35
if (buzPeriod>300)
buzState=0;
if (buzState==0)
digitalWrite(led, LOW);
noTone(buz);
else if (buzState==1)
tone(buz,2000);
digitalWrite(led, HIGH);
else if (buzState==2)
36
{
tone(buz,500);
digitalWrite(led, HIGH);
sum-=minval;
sum-=maxval;
if (sumExpect==0)
diff=sum-avgsum;
if (abs(diff)>10)
37
sumExpect=sumExpect+sum-avgsum;
ignor=0;
else
ignor++;
if (ignor>64)
sumExpect=sum<<6;
ignor=0;
if (diff==0)
buzPeriod=1000000;
else
buzPeriod=avgsum/(2*abs(diff));
38
void applyPulses()
delayMicroseconds(3);
delayMicroseconds(3);
39
CHAPTER-5
40
CONCLUSION
41
REFERENCES
It seems like the references you've provided cover a range of topics, but none of them
specifically addresses the integration of Bluetooth technology with a car along with a metal
detector. If you are looking for references related to this specific topic, you might want to
explore research papers, articles, or journals that focus on automotive technology, IoT
(Internet of Things) applications in vehicles, or smart security systems for cars. As of my last
knowledge update in January 2022, I don't have specific references for a Bluetooth car
integrated with a metal detector
For more targeted and recent information on this specific topic, you may consider searching
academic databases, journals, or conference proceedings related to automotive electronics,
smart vehicles, or security systems for cars. Online databases such as IEEE Xplore, PubMed,
or Google Scholar can be helpful in finding the latest research papers and articles in these
areas.
If you have access to a university or institutional library, librarians can also assist you in
locating relevant and recent literature on the integration of Bluetooth technology with cars
along with metal detector systems. Keep in mind to use appropriate keywords such as
"Bluetooth car security," "metal detector in vehicles," or similar terms when conducting your
literature search.
42