Mechatronics Mini Project Mini project
Mechatronics Mini Project Mini project
Project Title
Submitted: to
: by
Submitted
th
Semester: 6
2
Title of the Project:
Voice Controlled Smart Car
Background:
The "Voice Control Smart Car" is an advanced automotive innovation that leverages
artificial intelligence and natural language processing to allow drivers to control various car
functions hands-free using spoken commands. This technology enhances safety,
convenience, and accessibility by enabling voice-activated navigation, climate control,
entertainment, communication, and vehicle operations. Rooted in the broader evolution of
smart and connected cars, voice control systems aim to minimize driver distraction and
improve the overall driving experience. Despite challenges such as speech recognition
accuracy and noise interference, the future of voice control in smart cars looks promising
with continued advancements in AI and integration with autonomous driving technologies.
Objectives:
Enhance Driving Safety
Improve Convenience and User Experience
To know about sensors, controllers etc.
Task Specification:
The primary task of the Voice Control Mini-Smart Car is to integrate a reliable and
responsive voice command system that can accurately interpret and execute a wide range of
driver commands. This involves the use of advanced speech recognition and natural
language processing technologies to understand commands related to navigation, climate
control, entertainment, and basic vehicle functions.
The voice control system must be compatible with existing car systems and infotainment
platforms. It should seamlessly integrate with the car's hardware and software, ensuring
smooth communication between the voice assistant and the car's operational components.
A user-friendly interface is essential for the Voice Control Mini-Smart Car, providing clear
visual and auditory feedback to the driver. The system should prioritize safety, ensuring that
voice commands can be given and executed without requiring the driver to look away from
the road or engage in complex interactions. Features like wake word activation, voice
training for personalized recognition.
3
Application:
This device has application in surveying different landscapes and mapping them. It can also
be used in commercial devices like
• Hands-Free Navigation.
• In-Car Entertainment Control.
• Unmanned vehicle driving
• Climate and Comfort Adjustments
• Communication and Connectivity
Hardware Used:
Arduino UNO:
4
L298N Motor Driver Module:
The L298N motor driver module is a robust and versatile component designed to control
the speed and direction of two DC motors or a single stepper motor in various robotics
and automation projects. It utilizes the L298N dual H-bridge motor driver IC, which
allows for independent control of two motors, enabling bidirectional movement and speed
control through pulse-width modulation (PWM). The module is equipped with heatsinks
to dissipate heat, ensuring stable operation under high current loads. It also features
onboard logic-level converters to interface easily with microcontrollers like Arduino,
providing a simple and efficient way to control motors in DIY and professional
applications.
5
TT Gear Motor:
• The obstacle detection and avoiding robot uses two 200rpm and 12V DC geared
motors. The motor used has a 6mm shaft diameter with internal holes. The internal
holes are for easy mounting of the wheels by using screws. It is an easy to use
lowcost motor for robotics application.
• An Electric DC motor is a machine which converts electric energy into mechanical
energy. The working of DC motor is based on the principle that when a
currentcarrying conductor is placed in a magnetic field, it experiences a mechanical
force.
• The direction of mechanical force is given by Fleming’s Left-hand Rule and its
magnitude is given by F = BIL Newton. DC motors are seldom used in ordinary
applications because all electric supply companies furnish alternating current.
HC-05 Module:
The HC-05 Bluetooth module is a popular and versatile Bluetooth SPP (Serial Port
Protocol) module designed for wireless serial communication. It is widely used in various
electronics projects, including voice control applications for smart cars, due to its ease of
use and reliable performance.
General Specifications
6
Figure 4 HC-05 BT
Circuit Diagram:
7
String readvoice;
void setup() {
BT.begin(9600);
Serial.begin(9600);
pinMode(4, OUTPUT);
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
//-----------------------------------------------------------------------//
void loop() {
while (BT.available()){ //Check if there is an available byte to read
delay(10); //Delay added to make thing stable
char c = BT.read(); //Conduct a serial read
readvoice += c; //build the string- "forward", "reverse", "left" and "right"
}
if (readvoice.length() > 0) {
Serial.println(readvoice);
if(readvoice == "*forward#")
{
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(100);
}
8
digitalWrite (4,LOW);
digitalWrite (5,LOW);
digitalWrite (6,LOW);
delay (800);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(100);
9
else if (readvoice == "*show me Garba#")
{
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);
10
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
11
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
12
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, LOW);
digitalWrite (6, LOW);
delay (400);
digitalWrite(3, HIGH);
digitalWrite (4, HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
delay(600);
digitalWrite (3, LOW);
digitalWrite (4, HIGH);
digitalWrite (5, HIGH);
digitalWrite (6, LOW);
delay (500);
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, LOW);
digitalWrite (6, HIGH);
delay (500);
}
13
Cost Analysis:
Waleed Wahab:
• |Mechanical Attachment
• Hardware Setup
• Online search for components
Malaika Liaqat:
• Circuit Design
• Coding
• Project Report
Muhammad Farhal:
• Aesthetics
• Mechanical Attachments
• Project Report
Conclusion:
The "Voice Control Smart Car" project successfully demonstrates the integration of
advanced voice recognition technology with automotive systems to enhance driving safety,
14
convenience, and accessibility. By enabling hands-free control over navigation, climate
settings, entertainment, and communication, this project reduces driver distractions and
provides a more intuitive and enjoyable driving experience. Utilizing components such as
the HC-05 Bluetooth module for wireless communication and the L298N motor driver for
precise motor control, the smart car showcases the potential of merging artificial
intelligence with modern vehicles. This innovation not only caters to the needs of tech-
savvy drivers but also offers significant benefits for individuals with disabilities, paving the
way for a more inclusive and connected future in automotive technology.
Future Improvements:
User Personalization:
Security Enhancements:
15