Professional Documents
Culture Documents
BACHELOR OF TECHNOLOGY
In
ELECTRONICS AND COMMNICATION ENGINEERING
At
BY-
ANSHIKA MISHRA(2001870310028)
ANSHUL RAJPAL(2001870310029)
ANURAG TIWARI(2001870310030)
APARAJITA SINGH(2001870310031)
CERTIFICATE
DECLARATION
SIGNATURE:
SIGNATURE:
ABSTRACT
ACKNOWLEDGEMENT
INTRODUCTION
Robots are always a fancy topic for students, hobbyists and DIYers. If
you are beginner, then building a robot (like a car or an arm) is probably
one of the important projects to do after learning about the basics. If
you remember the earlier tutorial, I have discussed about HC-05
Bluetooth Module and how to interface one with Arduino. Also, I have
provided a simple Bluetooth Controller App, which can be installed on
your Android Phone and start transmitting the data. As a continuation to
that project, I will be implementing Bluetooth Controlled Robot using
Arduino and a few other components and build a simple robotic car that
can be controlled using an Android Phone (through an App) over
Bluetooth Communication. The robotic car can be controlled wirelessly
via a Smartphone. The smartphone has an Android app through which
the user can send commands directly to Robot. The robot can move
forward, backward, left, and right and can also be stopped. The
Arduino’s Bluetooth-controlled robot car is interfaced with a Bluetooth
module HC-05 or HC-06. We can give specific voice commands to the
robot through an Android app installed on the phone. At the receiving
side, a Bluetooth transceiver module receives the commands and
forwards them to the Arduino, and thus the robotic car is controlled.
COMPONENTS USED
4. Jumper wires 1
6. Castor wheels 4
8. On/Off Switch 1
THEORY
1.ARDUINO UNO:
Arduino UNO is a basic and inexpensive Arduino board and is the most
popular of all the Arduino boards with a market share of over 50%.
Arduino UNO is considered to be the best prototyping board for
beginners in electronics and coding.
UNO has 14 digital input – output (I/O) pins which can be used as either
input or output by connecting them with different external devices and
components. Out of these 14 pins, 6 pins are capable of producing PWM
signal. All the digital pins operate at 5V and can output a current of
20mA.
Some of the digital I/O pins have special functions which are describe
below.
Pins 0 and 1 are used for serial communication. They are used to
receive and transmit serial data which can be used in several
By default, all the analog pins can measure from ground to 5V. Arduino
UNO has a feature, where it is possible to change the upper end of the
range by using the AREF pin but the value should be less than 5V.
There are different ways in which we can power the Arduino UNO board.
The USB cable, which is used to program the microcontroller, can be
used as a source of power.
The UNO board has on-board voltage regulators for 5V and 3.3V, which
can be used as power supply for small external devices like LEDs.
Pin Description
It has 6 pins,
1. Key/EN: It is used to bring Bluetooth module in AT commands mode. If
Key/EN pin is set to high, then this module will work in command mode.
Otherwise by default it is in data mode. The default baud rate of HC-05
in command mode is 38400bps and 9600 in data mode.
HC-05 module has two modes,
1. Data mode: Exchange of data between devices.
2. Command mode: It uses AT commands which are used to change
setting of HC-05. To send these commands to module serial (USART)
port is used.
2. VCC: Connect 5 V or 3.3 V to this Pin.
3. GND: Ground Pin of module.
4. TXD: Transmit Serial data (wirelessly received data by Bluetooth
module transmitted out serially on TXD pin)
5. RXD: Receive data serially (received data will be transmitted
wirelessly by Bluetooth module).
6. State: It tells whether module is connected or not.
HC-05 has red LED which indicates connection status, whether the
Bluetooth is connected or not. Before connecting to HC-05 module
this red LED blinks continuously in a periodic manner. When it
gets connected to any other Bluetooth device, its blinking slows
down to two seconds.
This module works on 3.3 V. We can connect 5V supply voltage as
well since the module has on board 5 to 3.3 V regulator.
As HC-05 Bluetooth module has 3.3 V level for RX/TX and
microcontroller can detect 3.3 V level, so, no need to shift transmit
level of HC-05 module. But we need to shift the transmit voltage
level from microcontroller to RX of HC-05 module.
The following image shows the Pin Diagram of the L298N IC in Multiwatt
Package (Multi Leaded Power Package).
Since the L298N Motor Driver IC is a dual full bridge driver IC, you can
control two motors at the same time with individual inputs. The logic
supply voltage is 5V but the motor supply voltage can be as high as 45V.
The peak output current per channel is 2A.
The L298N Motor Driver Module consists of two 2-pin screw terminal
blocks for connecting two motors. It also has six pin male headers for
connecting the two enable inputs and the four input pins (two for each
motor).
There is a 3-pin screw terminal block through which you need to give
the supply voltage to the motor. If the motors used are rated for 12V or
less, then the 12V supply is given through this screw terminal and the
onboard 5V regulator will provide the 5V logic supply to the L298N IC.
You can also access this regulated 5V through the third pin in the 3-pin
screw terminal block. The jumper provided near the 3-pin screw
terminal must be engaged for supply voltages up to 12V as this jumper
will enable the onboard regulator. The 5V output from the third pin of
the 3-pin screw terminal is available only when the jumper is engaged
i.e. supply voltage is 12V. This 5V output can be used to power your
Arduino Board.If the supply voltage is greater than 12V, then remove the
jumper as it might damage the regulator. In this case, the logic supply
of 5V to the L298N IC is given through the third pin of the 3-pin screw
terminal.
WORKING
BLOCK DIAGRAM:
SOURCE CODE:
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
pinMode(9,OUTPUT); //Led
Serial.begin(9600);
void loop() {
if(Serial.available()){
t = Serial.read();
Serial.println(t);
}
digitalWrite(11,HIGH);
}
CONCLUSION:
The final product we obtained is just the skeleton of those Bluetooth
Control Cars we see in the market. The mechanical design of this
product is also proposed, which could be practically made to give a
much better looking commercial product. For future plans, this product
could be added with sensors like, accelerometer and humidity sensor,
thereby widening their field of use.
The present product however could show some latency. The reason is,
due to many connections and least power source of 6V, which result in
loss of energy. So in future, we could use rechargeable batteries like
Ni-Cd Battery or Li-ion battery that could avoid the present
disadvantage.
Also, we could make use of this RC Motor Car as a surveillance system
or rovers by adding a few more sensors and updating the code. This
would make them into robots. These robots could self monitor under
any human supervision, thereby reducing man power. These are just the
alternatives, on which this project could be improvised and updated.