Professional Documents
Culture Documents
and Circuits
Project Report
By:
Visweshwar S 19BEE0123
Lokesh K 19BEE0118
Aim:
To make a two wheeled robot which can be Bluetooth controlled
using a specifically designated application on a Smartphone.
Apparatus:
Hardware:
1 X Arduino UNO
2 X DC Motors
2 X 9V Batteries
2 X Battery Connectors
10 X Jumper Wires
2 X Plastic Wheels
1 X Castor Wheel
1 X Metal Chassis
Arduino
Bluecontrol
Application
Inbuilt Bluetooth
transmitter of the
smartphone
Bluetooth Signals
HC-05 Bluetooth
module
Arduino UNO
Microcontroller
L298N H-bridge
Motor driver
DC Motors
Circuit Diagram:
The Robot:
• The Bluetooth controlled Arduino Robot
Arduino Code:
#define IN1 12
#define IN2 11
#define IN3 10
#define IN4 9
char data;
int btVal;
void setup() {
Serial.begin(38400);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
void loop(){
while (Serial.available())
data = Serial.read();
Serial.println(data);
switch(data)
case '1':
forward();
break;
case '2':
reverse();
break;
case '3':
left();
break;
case '4':
right();
break;
case '5':
stoprobot();
break;
void forward(){
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
void reverse(){
digitalWrite(IN1, LOW);
digitalWrite(IN2, HIGH);
digitalWrite(IN3, HIGH);
digitalWrite(IN4, LOW);
void left(){
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, HIGH);
void right(){
digitalWrite(IN1, HIGH);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
void stoprobot(){
digitalWrite(IN1, LOW);
digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW);
digitalWrite(IN4, LOW);
Upload the above code onto the Arduino board using a USB 2.0 Cable
Type A/B.
Operation:
• First, we need to connect one 9-volt battery to the DC jack of
the Arduino to power it and positive and negative of the other
battery is connected to the 12 volt and ground pins of the
L298N Motor Driver so as to provide power for the DC Motors.
• Correspondingly for the values of ‘2’, ‘3’, ‘4’ and ‘5’ received
respective functions of ‘reverse’, ‘left’, ‘right’ and ‘stop’ are
called from the switch case. In the bodies of each of these
functions the signals for the IN1, IN2, IN3 and IN4 are specified
and according to these signals provided the power to the
motors is given by the motor driver.
Precautions:
• Make sure all the connections are according the circuit diagram
and there are no bad components and loose connections.
• Make sure the baud rate in the code is 38400 as the Bluetooth
module runs at this baud rate. If this is not done, then the
Arduino won’t be able recognize the signals it receives from the
Bluetooth module.
• Connect the batteries after uploading the code and make sure
there is enough charge left in them as the Bluetooth module
needs optimal charge for proper functioning.
There are many more uses for this robot and it can be modified
to cater the needs of the situation.
Conclusion:
Therefore, this is the Semiconductors Project using Arduino with the
integration of Bluetooth and Smartphone.
Reference:
• https://www.electronicshub.org/bluetooth-controlled-robot-
using-arduino/
• https://www.instructables.com/id/Arduino-Bluetooth-
Controlled-Robot-Car-1/
• https://www.arduino.cc/