Drive a robot car from your Android phone over Bluetooth.
Built and tested by Anju.A · Industrial Robotics Institute

A robot car you drive wirelessly from a smartphone. An HC-05 Bluetooth module receives single-letter commands from a phone app and passes them to the Arduino, which drives the two motors through an L298N motor driver to go forward, back, left, right or stop.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| L298N Motor Driver Module | 1 |
| HC-05 Bluetooth Module | 1 |
| DC Motors | 2 |
| Robot Car Chassis | 1 |
| Wheels | 2 |
| 2-cell 18650 Battery Holder with Switch | 1 |
| Jumper Wires | As needed |
| From | Connect to |
|---|---|
| HC-05 VCC | 5V |
| HC-05 GND | GND |
| HC-05 TX | Pin 6 |
| HC-05 RX | Pin 7 |
| L298N IN1 | A0 |
| L298N IN2 | A1 |
| L298N IN3 | A2 |
| L298N IN4 | A3 |
| Motor A | L298N OUT1 & OUT2 |
| Motor B | L298N OUT3 & OUT4 |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
#include <SoftwareSerial.h>
SoftwareSerial bluetooth(6, 7); // RX, TX
char command;
// Motor driver pins
int IN1 = A0;
int IN2 = A1;
int IN3 = A2;
int IN4 = A3;
void setup() {
bluetooth.begin(9600);
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
}
void loop() {
if (bluetooth.available()) {
command = bluetooth.read();
}
if (command == 'F') { // Forward
digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
}
else if (command == 'B') { // Backward
digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
}
else if (command == 'L') { // Left
digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
}
else if (command == 'R') { // Right
digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
}
else if (command == 'S') { // Stop
digitalWrite(IN1, LOW); digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW); digitalWrite(IN4, LOW);
}
}A robot car you drive wirelessly from a smartphone. An HC-05 Bluetooth module receives single-letter commands from a phone app and passes them to the Arduino, which drives the two motors through an L298N motor driver to go forward, back, left, right or stop.
You need: Arduino Uno (1), L298N Motor Driver Module (1), HC-05 Bluetooth Module (1), DC Motors (2), Robot Car Chassis (1), Wheels (2), 2-cell 18650 Battery Holder with Switch (1), Jumper Wires. Software: Arduino IDE, Bluetooth RC Controller app (Android), SoftwareSerial library.
Yes. It is rated beginner and takes about 2–3 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-011). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.