Project in progress
Bluetooth Controlled Car

Bluetooth Controlled Car © GPL3+

This is my first Arduino-based, Bluetooth-controlled RC car.

  • 12,968 views
  • 21 comments
  • 41 respects

Components and supplies

Apps and online services

About this project

This is my first attempt in building a bluetooth controlled car with Arduino.

Once I get down all the parts I wanted to build it and test it. But there was no chassis. I look around and found a DVD casing. Well that's not the best choice but it serves for the time being. I used cable ties to put attach 4 motors to the chassis. For the power supply I used a 7.4V 1800mAh Li-ion battery from a walky talky, which is rechargeable.

Code

Code for Arduino blootooth controlled RC CarArduino
This is the code you will have to upload to your Arduino board.
char t;
 
void setup() {
pinMode(13,OUTPUT);   //left motors forward
pinMode(12,OUTPUT);   //left motors reverse
pinMode(11,OUTPUT);   //right motors forward
pinMode(10,OUTPUT);   //right motors reverse
pinMode(9,OUTPUT);   //Led
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(13,HIGH);
  digitalWrite(11,HIGH);
}
 
else if(t == 'B'){      //move reverse (all motors rotate in reverse direction)
  digitalWrite(12,HIGH);
  digitalWrite(10,HIGH);
}
 
else if(t == 'L'){      //turn right (left side motors rotate in forward direction, right side motors doesn't rotate)
  digitalWrite(11,HIGH);
}
 
else if(t == 'R'){      //turn left (right side motors rotate in forward direction, left side motors doesn't rotate)
  digitalWrite(13,HIGH);
}

else if(t == 'W'){    //turn led on or off)
  digitalWrite(9,HIGH);
}
else if(t == 'w'){
  digitalWrite(9,LOW);
}
 
else if(t == 'S'){      //STOP (all motors stop)
  digitalWrite(13,LOW);
  digitalWrite(12,LOW);
  digitalWrite(11,LOW);
  digitalWrite(10,LOW);
}
delay(100);
}

Schematics

Circuit diagram
Pic g762ytlenj

Comments

Author

Samanfern
Saman Fernando
  • 1 project
  • 14 followers

Additional contributors

  • For telling me how interesting it would be to play with arduino and sending me couple of boards as a gift. by Anthony Pieris
  • For supporting me with the project in various technical aspects. by Dilan Christoper

Published on

October 22, 2018

Members who respect this project

Img013 3wk6r3an54DefaultDefaultRahul 17PhotoDefaultDefaultUmesh chandra 5

and 33 others

See similar projects
you might like

Similar projects you might like

Robotic Car Controlled over Bluetooth by Andriod Phone

Project showcase by S.Ranjith Reddy

  • 5,202 views
  • 1 comment
  • 12 respects

Bluetooth Controlled LEGO Toy Car

by Hernanduino

  • 2,588 views
  • 0 comments
  • 9 respects

Bluetooth Controlled Car

Project tutorial by JANAK13

  • 2,286 views
  • 7 comments
  • 15 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,239 views
  • 43 comments
  • 98 respects

Turn your RC Car to Bluetooth RC car

Project tutorial by Prajjwal Nag

  • 11,967 views
  • 1 comment
  • 11 respects

Bluetooth Controlled Car

Project showcase by Ian St. Louis

  • 10,746 views
  • 3 comments
  • 12 respects
Add projectSign up / Login