0% found this document useful (0 votes)
3 views3 pages

Bluetooth Car Arduino Guide

Uploaded by

Hamza Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Bluetooth Car Arduino Guide

Uploaded by

Hamza Abbas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Bluetooth Controlled Car Using Arduino Uno

Introduction

This guide helps you build a Bluetooth-controlled car using Arduino Uno. It includes component list, wiring

explanation, Arduino code, and mobile app setup.

Required Components

- Arduino Uno

- Bluetooth Module (HC-05 or HC-06)

- Motor Driver (L298N)

- 2 or 4 DC Motors with Wheels

- Car Chassis

- Power Supply (Battery pack)

- Caster Wheel

- Jumper Wires

- Mobile with Bluetooth Controller App

Wiring Explanation

1. HC-05 Bluetooth Module:

- VCC -> 5V (Arduino)

- GND -> GND

- TXD -> RX (Pin 0 on Arduino)

- RXD -> TX (Pin 1 on Arduino) [via 1K Ohm resistor]

2. Motor Driver L298N:

- IN1 -> Pin 2

- IN2 -> Pin 3

- IN3 -> Pin 4

- IN4 -> Pin 5

- ENA/ENB -> Jumpered or connected to PWM pins

- OUT1, OUT2 -> Motor A


Bluetooth Controlled Car Using Arduino Uno

- OUT3, OUT4 -> Motor B

- VCC -> Battery +

- GND -> Battery - and Arduino GND

Arduino Code

#define IN1 2
#define IN2 3
#define IN3 4
#define IN4 5

char command;

void setup() {
pinMode(IN1, OUTPUT);
pinMode(IN2, OUTPUT);
pinMode(IN3, OUTPUT);
pinMode(IN4, OUTPUT);
Serial.begin(9600);
}

void loop() {
if (Serial.available() > 0) {
command = Serial.read();
switch (command) {
case 'F':
digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
break;
case 'B':
digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
break;
case 'L':
digitalWrite(IN1, LOW); digitalWrite(IN2, HIGH);
digitalWrite(IN3, HIGH); digitalWrite(IN4, LOW);
break;
case 'R':
digitalWrite(IN1, HIGH); digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW); digitalWrite(IN4, HIGH);
break;
case 'S':
digitalWrite(IN1, LOW); digitalWrite(IN2, LOW);
digitalWrite(IN3, LOW); digitalWrite(IN4, LOW);
break;
}
Bluetooth Controlled Car Using Arduino Uno

}
}

Mobile App Instructions

Download 'Bluetooth RC Car' from Play Store.

Pair with HC-05 (Default PIN: 1234 or 0000).

Use following keys:

F - Forward

B - Backward

L - Left

R - Right

S - Stop

Final Tips

- Upload code before connecting Bluetooth (TX/RX blocks upload).

- Use 1K Ohm resistor between Arduino TX and HC-05 RX.

- Test motors independently before combining everything.

- Use external battery for motors to avoid Arduino reset.

You might also like