Bluetooth Car Project Guide
Bluetooth Car Project Guide
This project demonstrates how to build a Bluetooth Controlled Car using Arduino UNO.
The car is operated via a smartphone app that sends commands through Bluetooth to control the
Components Required:
- 4 x DC gear motors
- 1 x 4 Wheel Chassis
- 1 x Arduino Uno
- Jumper wires
- 2 x Lithium-ion cells
- 1 x USB cable
- 1 x Smartphone
Step-by-Step Instructions:
1. Assemble the Chassis:
- IN1 D8
- IN2 D9
- IN3 D10
- IN4 D11
- VCC 5V
- GND GND
- TXD RX (Pin 0)
5. Upload Code:
F - Forward
B - Backward
L - Left
R - Right
S - Stop
Arduino Code:
char command;
void setup() {
Serial.begin(9600);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
}
void loop() {
if (Serial.available() > 0) {
command = Serial.read();
if (command == 'F') {
digitalWrite(8, HIGH);
digitalWrite(9, LOW);
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
} else if (command == 'B') {
digitalWrite(8, LOW);
digitalWrite(9, HIGH);
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
} else if (command == 'L') {
digitalWrite(8, LOW);
digitalWrite(9, HIGH);
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
} else if (command == 'R') {
digitalWrite(8, HIGH);
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
} else if (command == 'S') {
digitalWrite(8, LOW);
digitalWrite(9, LOW);
digitalWrite(10, LOW);
digitalWrite(11, LOW);
}
}
}
Learning Outcomes:
- Assemble a four-wheel robot chassis.