Projects / Bluetooth RC car

Bluetooth RC car

Intermediate2 hGuided buildReviewed

Build it step by step

0 of 6 done
  1. UNOROBOT

    Assemble the chassis

    Fit the four motors. Join the two left motors in parallel and the two right motors in parallel.

  2. UNO

    Wire the driver

    Left pair to OUT1/OUT2, right pair to OUT3/OUT4. Remove the ENA/ENB jumpers and wire the six control pins.

  3. UNO

    Wire the HC-05

    TXD to D2. Feed D3 into RXD through the 1 kΩ / 2.2 kΩ divider, because the HC-05 input is 3.3 V.

  4. UNO+

    Power

    Battery through the switch to L298N 12V and Uno VIN, all grounds joined.

  5. UNO

    Upload with HC-05 unplugged

    Upload the sketch, then plug in the HC-05. Its LED blinks fast until paired.

  6. UNO

    Pair and drive

    Pair in phone settings, open the app, connect to HC-05 and press the arrows. Watch the serial monitor to see each command.

In short

How do you build a bluetooth RC car?

A four-wheel car driven from an Android phone over Bluetooth, using an HC-05 module and an L298N driver. You need Arduino Uno R3, HC-05 Bluetooth Module, L298N Dual H-Bridge Module, Robot car chassis kit 4WD, Battery holder 18650 2S (series), 18650 cell 2600 mAh (branded) × 2, Resistor 1 kΩ, Resistor 2.2 kΩ, Rocker switch (KCD1, 2-pin) and Jumper wires male to female (40 pcs). It takes 6 steps and about 120 minutes.

Level
Intermediate
Time
About 120 min
Parts
10

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Left front + left rear motors (in parallel)L298N OUT1 / OUT2Left side
Right front + right rear motors (in parallel)L298N OUT3 / OUT4Right side
L298N ENA / IN1 / IN2 / IN3 / IN4 / ENBUno D5 / D7 / D8 / D9 / D10 / D6Speed and direction
HC-05 TXDUno D2Phone to Uno (SoftwareSerial RX)
Uno D31 kΩ to HC-05 RXD, with 2.2 kΩ from RXD to GNDUno to phone, divided down to about 3.4 V
HC-05 VCC / GNDUno 5V / GNDModule power
Battery + (through the switch)L298N 12V and Uno VINPower, with all grounds joined

Code

Arduino IDE, board "Arduino Uno". SoftwareSerial is built in. Pair the phone with HC-05 (PIN 1234 or 0000) and use any Bluetooth RC controller app that sends F, B, L, R, S and 0 to 9.

Runs on a virtual Arduino Uno in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

#include <SoftwareSerial.h>

SoftwareSerial bt(2, 3);       // RX, TX
const int ENA = 5, IN1 = 7, IN2 = 8, IN3 = 9, IN4 = 10, ENB = 6;
int speed = 200;

void drive(int l, int r) {
  digitalWrite(IN1, l > 0); digitalWrite(IN2, l < 0);
  digitalWrite(IN3, r > 0); digitalWrite(IN4, r < 0);
  analogWrite(ENA, abs(l) ? speed : 0); analogWrite(ENB, abs(r) ? speed : 0);
}

void setup() {
  int outs[] = {ENA, IN1, IN2, IN3, IN4, ENB};
  for (int p : outs) pinMode(p, OUTPUT);
  bt.begin(9600);              // HC-05 default data speed
  Serial.begin(9600);
}

void loop() {
  if (!bt.available()) return;
  char c = bt.read();
  Serial.println(c);
  switch (c) {
    case 'F': drive(1, 1); break;
    case 'B': drive(-1, -1); break;
    case 'L': drive(-1, 1); break;
    case 'R': drive(1, -1); break;
    case 'S': drive(0, 0); break;
    default:
      if (c >= '0' && c <= '9') speed = map(c - '0', 0, 9, 90, 255);  // speed slider
  }
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Phone sends FAll four wheels turn forward
Phone sends LLeft wheels reverse, right wheels forward: the car spins left
Phone sends 0 then FSlow forward; 9 gives full speed
HC-05 LED after pairingTwo short blinks every 2 seconds

If it does not work

The app connects but nothing moves

Open the serial monitor. If letters arrive, check the motor wiring. If nothing arrives, check HC-05 TXD goes to D2.

Upload fails

The HC-05 on D0/D1 would block uploads. Here it uses D2/D3, so check the board and port settings.

The car drifts to one side

Motors differ. Lower the speed of the faster side in drive(), for example by 10 to 20.

It turns the wrong way

Swap the motor wires on that side.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the bluetooth RC car?

Arduino Uno R3, HC-05 Bluetooth Module, L298N Dual H-Bridge Module, Robot car chassis kit 4WD, Battery holder 18650 2S (series), 18650 cell 2600 mAh (branded) × 2, Resistor 1 kΩ, Resistor 2.2 kΩ, Rocker switch (KCD1, 2-pin) and Jumper wires male to female (40 pcs). Robot car chassis kit 4WD: Includes four TT motors and wheels.

How long does the bluetooth RC car take to build?

About 120 minutes for a intermediate maker, in 6 steps.

How do I know the bluetooth RC car works?

Phone sends F: All four wheels turn forward. Phone sends L: Left wheels reverse, right wheels forward: the car spins left. Phone sends 0 then F: Slow forward; 9 gives full speed.

The app connects but nothing moves: what should I check?

Open the serial monitor. If letters arrive, check the motor wiring. If nothing arrives, check HC-05 TXD goes to D2.

Upload fails: what should I check?

The HC-05 on D0/D1 would block uploads. Here it uses D2/D3, so check the board and port settings.

The car drifts to one side: what should I check?

Motors differ. Lower the speed of the faster side in drive(), for example by 10 to 20.

It turns the wrong way: what should I check?

Swap the motor wires on that side.