roboticsneletronics
Published © Apache-2.0

Arduino bluetooth car

Fast and cool😎

IntermediateFull instructions provided845
Arduino bluetooth car

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
AA Batteries
AA Batteries
×8
Battery Holder, AA x 8
Battery Holder, AA x 8
×1
HC-06 Bluetooth Module
×1
5 mm LED: Red
5 mm LED: Red
×4
High Brightness LED, White
High Brightness LED, White
×1
DC Motor, 12 V
DC Motor, 12 V
×4
Resistor 330 ohm
Resistor 330 ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Dual H-Bridge motor drivers L298
SparkFun Dual H-Bridge motor drivers L298
×1

Software apps and online services

Arduino IDE
Arduino IDE
Bluetooth RC Car

Hand tools and fabrication machines

Soldering iron (generic)
Soldering iron (generic)
Drill / Driver, Cordless
Drill / Driver, Cordless
Multitool, Screwdriver
Multitool, Screwdriver
PCB Holder, Soldering Iron
PCB Holder, Soldering Iron
Solder Wire, Lead Free
Solder Wire, Lead Free
Extraction Tool, Assembly and Disassembly of Shielding Clamps
Extraction Tool, Assembly and Disassembly of Shielding Clamps

Story

Read more

Custom parts and enclosures

wooden chassis

cut the wood like in the image

Schematics

Diagram

Code

Arduino code

Arduino
upload the code
char t;
 
void setup() {
pinMode(3,OUTPUT);   //left motors forward
pinMode(4,OUTPUT);   //left motors reverse
pinMode(5,OUTPUT);   //right motors forward
pinMode(6,OUTPUT);   //right motors reverse
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(11, OUTPUT);
Serial.begin(9600);
 
}
 
void loop() {
if(Serial.available()){
  t = Serial.read();
  Serial.println(t);
}
 
if(t == 'F'){            //move forward(all motors rotate in forward direction)
  digitalWrite(6,HIGH);
  digitalWrite(4,HIGH);
}
 
else if(t == 'B'){      //move reverse (all motors rotate in reverse direction)
  digitalWrite(5,HIGH);
  digitalWrite(3,HIGH);
}
 
else if(t == 'L'){      //turn right (left side motors rotate in forward direction, right side motors doesn't rotate)
  digitalWrite(4,HIGH);
}
 
else if(t == 'R'){      //turn left (right side motors rotate in forward direction, left side motors doesn't rotate)
  digitalWrite(6,HIGH);
}
if(t == 'W'){
  digitalWrite(13, HIGH);
}

if(t == 'w'){
  digitalWrite(13, LOW);
}

if(t == 'U'){
  digitalWrite(12, HIGH);
  digitalWrite(11, HIGH);
}

if(t == 'u'){
  digitalWrite(12, LOW);
  digitalWrite(11, LOW);
}

delay(100);
}

Credits

roboticsneletronics

roboticsneletronics

1 project • 0 followers

Comments