Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
1.1 INTRODUCTION:
In today’s era, smart phones are becoming more powerful with
reinforced processors, larger storage capacities, richer entertainment
function and more communication methods. When we say voice control,
the first term to be considered is Speech Recognition i.e. making the
system to understand human voice. Speech recognition is a technology
where the system understands the words (not its meaning) given through
speech. In other words, Speech recognition technology is a great aid to
admit the challenge and it is a prominent technology for Human-
Computer Interaction (HCI) and Human-Robot Interaction (HRI) for the
future. Speech is an ideal method for robotic control and communication.
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
use digital technology at home or office, and has transfer traditional
wired
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
Android application
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
CHAPTER 2
BLOCK DIAGRAM
2.1 Introduction
The project Voice Controlled Robotic Vehicle helps to control
robot through voice commands received via android application. The
integration of control unit with Bluetooth device is done to capture and
read the voice commands. The robotic vehicle then operates as per the
command received via android application. For this Arduino is integrated
in the system which makes it possible to operate the vehicle via android
application.
KNRC EEE 5
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
data. The
KNRC EEE 6
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
Step – 1
Initially we take one chassis board and 4 bo motors 150 rpm
with attaching wheels. After then the motors fix on the chassis
board on 4 side with help of glue gun
Step – 2
Then give shunt connections to two motors at right side,
similarly make the same connections to two left side motor at left side.
Step - 2.1
KNRC EEE 7
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
Step – 3
Make the connections as per circuit diagram
Step-5
KNRC EEE 8
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
Finally fix the ultrasonic sensor wth holder which useful for only head
and eyes purpose. After completing the construction shown figure
KNRC EEE 9
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING ARDUINO 2022-23
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
CHAPTER 3
ARDUINO
3.1 Arduino:
Arduino is an open-source platform used for building electronics
projects. Arduino consists of both a physical programmable circuit board
(often referred to as a microcontroller) and a piece of software, or IDE
(Integrated Development Environment) that runs on your computer, used
to write and upload computer code to the physical board.
The Arduino platform has become quite popular with people just starting
out with electronics, and for good reason. Unlike most previous
programmable circuit boards, the Arduino does not need a separate piece
of hardware (called a programmer) in order to load new code onto the
board
– you can simply use a USB cable. Additionally, the Arduino IDE uses a
simplified version of C++, making it easier to learn to program. Finally,
Arduino provides a standard form factor that breaks out the functions of
the micro-controller into a more accessible package.
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Fig3.1 This is an Arduino Uno
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
The Uno is one of the more popular boards in the Arduino family and a great
choice for beginners. We’ll talk about what’s on it and what it can do later in the tutorial.
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Power USB
1 Arduino board can be powered by using the USB cable from your computer. All
you need to do is connect the USB cable to the USB connection (1).
2 Arduino boards can be powered directly from the AC mains power supply by
connecting it to the Barrel Jack (2).
Voltage Regulator
3 The function of the voltage regulator is to control the voltage given to the Arduino
board and stabilize the DC voltages used by the processor and other elements.
Crystal Oscillator
The crystal oscillator helps Arduino in dealing with time issues. How does
4 Arduino calculate time? The answer is, by using the crystal oscillator. The number
printed on top of the Arduino crystal is 16.000H9H. It tells us that the frequency is
16,000,000 Hertz or 16 MHz.
Arduino Reset
You can reset your Arduino board, i.e., start your program from the beginning.
5 You can reset the UNO board in two ways. First, by using the reset button (17) on
the board. Second, you can connect an external reset button to the Arduino pin
labelled RESET (5).
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Most of the components used with Arduino board works fine with 3.3 volt and 5
volt.
GND (8)(Ground) − There are several GND pins on the Arduino, any of which
can be used to ground your circuit.
Vin (9) − This pin also can be used to power the Arduino board from an external
power source, like AC mains power supply.
Analog pins
The Arduino UNO board has five analog input pins A0 through A5. These pins
7
can read the signal from an analog sensor like the humidity sensor or temperature
sensor and convert it into a digital value that can be read by the microprocessor.
Main microcontroller
Each Arduino board has its own microcontroller (11). You can assume it as the
brain of your board. The main IC (integrated circuit) on the Arduino is slightly
8 different from board to board. The microcontrollers are usually of the ATMEL
Company. You must know what IC your board has before loading up a new
program from the Arduino IDE. This information is available on the top of the IC.
For more details about the IC construction and functions, you can refer to the data
sheet.
ICSP pin
Mostly, ICSP (12) is an AVR, a tiny programming header for the Arduino
9 consisting of MOSI, MISO, SCK, RESET, VCC, and GND. It is often referred to
as an SPI (Serial Peripheral Interface), which could be considered as an
"expansion" of the output. Actually, you are slaving the output device to the
master of the SPI bus.
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Power LED indicator
10
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
This LED should light up when you plug your Arduino into a power source to
indicate that your board is powered up correctly. If this light does not turn on, then
there is something wrong with the connection.
TX and RX LEDs
On your board, you will find two labels: TX (transmit) and RX (receive). They
appear in two places on the Arduino UNO board. First, at the digital pins 0 and 1,
11 to indicate the pins responsible for serial communication. Second, the TX and RX
led (13). The TX led flashes with different speed while sending the serial data. The
speed of flashing depends on the baud rate used by the board. RX flashes during
the receiving process.
Digital I/O
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM
12 (Pulse Width Modulation) output. These pins can be configured to work as input
digital pins to read logic values (0 or 1) or as digital output pins to drive different
modules like LEDs, relays, etc. The pins labeled “~” can be used to generate
PWM.
AREF
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
hints. Here are a few options that are well-suited to someone new to the world of
Arduino.
KNRC EEE 1
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Arduino FTDI-
Ethernet 5V 16MHz 14 6 6 1 Compatible
Header
FTDI-Compatible
Arduino Fio 3.3V 8MHz 14 8 6 1
Header
LilyPad FTDI-Compatible
Arduino simple 3.3V 8MHz 9 4 5 0 Header
board
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
3.4 Arduino- Installation
After learning about the main parts of the Arduino UNO board, we are ready
to learn how to set up the Arduino IDE. Once we learn this, we will be ready to
upload our program on the Arduino boarding this section, we will learn in easy steps,
how to set up the Arduino IDE on our computer and prepare the board to receive the
program via USB cable.
Step 1 − First you must have your Arduino board (you can choose your favorite
board) and a USB cable. In case you use Arduino UNO, Arduino Demilune, Nano,
Arduino Mega 2560, or Decimal, you will need a standard USB cable (A plug to B
plug), the kind you would connect to a USB printer as shown in the following image.
In case you use Arduino Nano, you will need an A to Mini-B cable instead as
shown in the following image.
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
You must select your software, which is compatible with your operating
system (Windows, IOS, or Linux). After your file download is complete, unzip the
file.
Step 3 − Power up your board.
The Arduino Uno, Mega, Demilune and Arduino Nano automatically draw
power from either, the USB connection to the computer or an external power supply.
If you are using an Arduino Decimal, you have to make sure that the board is
configured to draw power from the USB connection. The power source is selected
with a jumper, a small piece of plastic that fits onto two of the three pins between the
USB and power jacks. Check that it is on the two pins closest to the USB port.
Connect the Arduino board to your computer using the USB cable. The green power
LED (labeled PWR) should glow.
Step 4 − Launch Arduino IDE.
After your Arduino IDE software is downloaded, you need to unzip the folder.
Inside the folder, you can find the application icon with an infinity label
(application.exe). Double-click the icon to start the IDE.
Step 5 − Open your first project.
Once the software starts, you have two options
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Here, we are selecting just one of the examples with the name Blink. It turns the LED
on and off with some time delay. You can select any other example from the list.
Step 6 − Select your Arduino board.
To avoid any error while uploading your program to the board, you must select
the correct Arduino board name, which matches with the board connected to your
computer.
Go to Tools → Board and select your board.
Here, we have selected Arduino Uno board according to our tutorial, but you must
select the name matching the board that you are using.
Step 7 − Select your serial port.
Select the serial device of the Arduino board. Go to Tools → Serial Port
menu. This is likely to be COM3 or higher (COM1 and COM2 are usually reserved
for hardware serial ports). To find out, you can disconnect your Arduino board and
re- open the menu, the entry that disappears should be of the Arduino board.
Reconnect the board and select that serial port.
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
PROGRAMMING
#include <EEPROM.h>
#include <EEPROM.h>
#include <EEPROM.h>
String inputs;
#define relay1 2 //Connect relay1 to pin 2
#define relay2 3 //Connect relay2 to pin 3
#define relay3 4 //Connect relay3 to pin 4
#define relay4 5 //Connect relay4 to pin 5
void setup()
{
Serial.begin(9600); //Set rate for communicating with phone
pinMode(relay1, OUTPUT); //Set relay1 as an output
pinMode(relay2, OUTPUT); //Set relay2 as an output
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
}
if (inputs.length() >0)
{
Serial.println(inputs);
if(inputs == "A")
{
digitalWrite(relay1, HIGH);
}
else if(inputs == "a")
{
digitalWrite(relay1, LOW);
}
else if(inputs == "B")
{
digitalWrite(relay2, HIGH);
}
else if(inputs == "b")
{
digitalWrite(relay2, LOW);
}
else if(inputs == "C")
{
digitalWrite(relay3, HIGH);
}
else if(inputs == "c")
{
digitalWrite(relay3, LOW);
}
else if(inputs == "D")
{
digitalWrite(relay4, HIGH);
}
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
else if(inputs == "d")
{
digitalWrite(relay4, LOW);
}
inputs="";
}
}
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
F − Serial monitor used to receive serial data from the board and send the serial data
to the board.
Now, simply click the "Upload" button in the environment. Wait a few
seconds; you will see the RX and TX LEDs on the board, flashing. If the upload is
successful, the message "Done uploading" will appear in the status bar.
Note − If you have an Arduino Mini, NG, or other board, you need to press the reset
button physically on the board, immediately before clicking the upload button on the
Arduino Software.
3.5 Advantages
It's mostly still AVR (8-bit) "eco-system" (and +5 V). There is many
claims that other (e.g. ARM) architecture are supported but you'll find
pretty soon that even 32-bit boards designed by Arduino team (e.g. Due,
Zero, MKR) are not supported in a similar way to 8-bit (Uno, Leonardo,
Mega2560): they are still second choice
If you need more processing power and working memory be ready to kiss
goodbye Arduino environment pretty soon
3.7 Applications
Arduino boy, a handheld game console based on Arduino.
Arduino Motion Control Rig.
Arduino me, a MIDI controller device that mimics the Monme.
ArduinoPhone, a do-it-yourself cellphone.
KNRC EEE 2
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Arduino pilot, drone software and hardware.
Arduino Sat, a CubeSat based on Arduino.
Automatic titration system based on Arduino and stepper motor.
DC motor control using Arduino and H-Bridge.
Data loggers for scientific research.
Game Arduino, an Arduino shield to create retro 2D video games.
Homemade CNC using Arduino and DC motors with close loop control by
Homofaciens.
Impedance sensor system to detect bovine milk adulteration.
OBDuino, a trip computer that uses the on-board diagnostics interface
found in most modern cars.
Water quality testing platform.
Xoscillo, an open-source oscilloscope.
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
CHAPTER 4
BLUETOOTH HC-05
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
4. TXD: Connect with Microcontroller RXD pin of Microcontroller.
Transmit Serial data (wirelessly received data by Bluetooth module
transmitted out serially on TXD pin)
5. RXD: Connect with Microcontroller TXD pin of
Microcontroller. Received data will be transmitted wirelessly by
Bluetooth module.
6. State: It tells whether module is connected or not. It acts as a status indicator.
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
default connected PIN26 is low
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
level.
GPS receiver
Industrial control
MCU projects
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
common method of doing that is by using an H-Bridge. An H-Bridge
circuit contains four switching elements, transistors or MOSFETs, with
the motor at the center forming an H-like configuration. By activating
two particular switches at the same time we can change the direction
of the current flow, thus change the rotation direction of the motor.
Let’s take a closer look at the pin out of L298N module and
explain how it works. The module has two screw terminal blocks for the
motor A and B, and another screw terminal block for the Ground pin, the
VCC for
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
This depends on the voltage used at the motors VCC. The module
have an onboard 5V regulator which is either enabled or disabled using a
jumper. If the motor supply voltage is up to 12V we can enable the 5V
regulator and the 5V pin can be used as output, for example for powering
our Arduino board. But if the motor voltage is greater than 12V we must
disconnect the jumper because those voltages will cause damage to the
onboard 5V regulator.
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Next, the Input 1 and Input 2 pins are used for controlling the rotation
direction of the motor A, and the inputs 3 and 4 for the motor B. Using
these pins we actually control the switches of the H-Bridge inside the
L298N IC. If input 1 is LOW and input 2 is HIGH the motor will move
forward, and vice versa, if input 1 is HIGH and input 2 is LOW the
motor will move backward. In case both inputs are same, either LOW or
HIGH the motor will stop. The same applies for the inputs 3 and 4 and
the motor B.
Consider the following image – match the numbers against the list below the
image:
5. GND
6. 5V output if 12V jumper in place, ideal for powering your Arduino (etc)
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
motor. Connect to PWM output for DC motor speed control.
8. IN1
9. IN2
10. IN3
11. IN4
KNRC EEE 3
VOICE CONTROLLED ROBOTIC CAR USING 2022-
4.7.3 Wheels:
The wheel can be easily mounted to motors with suitable shaft
diameter associated with your robotic projects. This wheel is suitable for
all BO motors.
Diameter 65 mm
Width 30 mm
Shaft Type D-Type
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
CHAPTER 5
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
The set-up process for the software is very easy. The system
requirements are very basic and it is compatible with Mac OSX,
Windows and Linux Operating systems. Browsers required for the
software are Mozilla Firefox 3.6 or higher, Apple Safari 5.0 or higher,
Google Chrome
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Fig 5.2 App Inventor Designer (b)
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
Thus, for the users without the android handsets. App Inventor gives the
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
option of testing the application in an emulator which is very similar to
the real device but with some limitations. From the Blocks
Editor, the user can connect the application to the emulator available
via the connect option and test how the application functions in real
world. Apart from the emulator, the user can also directly connect the
android phone to the computer via USB connecter and test the
application.
Real time testing is definitely the best option for monitoring the
5.5 Mobot Application
Mobot is the name of the android application designed for this thesis. It
was designed through App Inventor. The basic function of the
application is to control the robot (created with Arduino and Magician
Chassis). Mobot has different buttons integrated to it and each button has
different functions.
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
allowing the user to use other buttons available.
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
5.11 Advantages
One of the advantages of a voice controlled robot is the fact
that you do not have to carry around anything else. You simply
speak and the robot responds.
We can access the robot from the distance of 30 meters as we are
using blue-tooth for the connection between robot and the mobile
phone.
The robot is small in size, so space required for it is small.
Cost of system is low as we are using smart phone which is nearby
KNRC EEE 4
VOICE CONTROLLED ROBOTIC CAR USING 2022-
5.12 Disadvantages
Even the best speech recognition systems sometimes make
errors. If there is noise or some other sound in the room
the number of errors will increase.
Speech Recognition works best if the microphone is close
to the user will tend to increase the number of errors.
In Speech recognition system, there is a possibility of
unauthorized usage. Since this doesnot depends upon
which person is speaking.
5.13 Applications
The robot is useful in places where humans find difficult
to reach but human voice reaches. E.g. in fire situations, in
highly toxic areas.
It is the one of the important stage of Humanoid robots.
KNRC EEE 5
VOICE CONTROLLED ROBOTIC CAR USING 2022-
CHAPTER 6
RESULT
The voice controlling commands are successfully transmitted via
Bluetooth technology and on reception; the desired operations
successfully take place. This project reduces human efforts at places or
situations where human interventions are difficult. Such systems can be
brought into use at places such as industries, military and defense,
research purposes, etc.
KNRC EEE 5
VOICE CONTROLLED ROBOTIC CAR USING 2022-
CONCLUSION
The proposed system shows how the android smart phone can be
used as remote controller for robot and various embedded technologies
with the help of the Bluetooth technology. At the same time, this
program uses blue-tooth connection to communicate with robot. The
proposed system also shows that how a robot can be used for travelling
purpose. The operating system of smart phone is Android, and it can
develop effective remote control program and by using blue-tooth, the
communication between smart phone and robot.
This research work has been narrowed down to short range
Bluetooth module. Using a long range modules and other
connectivity devices will result in connectivity with the robot for
long distances.
Power Optimization such sleep and wakeup schedules can be
incorporated.
3. Image processing can be implemented in the robot to detect the
color and the objects.
A thermal camera can be installed to sense the heat emitted by
bodies useful in military purposes to detect enemies on the lines.
KNRC EEE 5
VOICE CONTROLLED ROBOTIC CAR USING 2022-
REFERENCES:
KNRC EEE 5