Bluetooth Controlled Car With Arduino

by Sayan Sarkar in Workshop > Cars

664 Views, 2 Favorites, 0 Comments

Bluetooth Controlled Car With Arduino

33963827_623055164697439_373134230256877568_o.jpg

It is easy to make and to make it you just need a bit knowledge in computer programming and some creativity and you will get success

Get All the Things You Need to Make This

34594924_626363117699977_812799114541531136_n.jpg

1. Arduino Uno board

2. L293D motor driver

3. HC-05 bluetooth module

4. A bunch of jumper wires

5. 4 dc motors which would be compatible with your car chassis

6. A chassis ( you can also make it at home but I bought it )(I would suggest a wooden chassis which I used, as it will decrease the causes of having a short circuit )

7. A power source (I used a power bank of 10400 mah to make the car chargeable )

8. A USB cord to connect the arduino uno board to the computer for uploading the code and also for connecting it to a power bank if you use one as a power source

9. A hot glue gun

10. A double sided tape ( although I used a normal tape but still i would suggest a double sided tape)

11. Obviously you need a smart phone with an app whose link you will find below

click on this to get the app

Making of the Circuit

download.jpg

Construct the circuit as per the given circuit diagram

Add the Code to the Arduino

Bluetooth car circuit1.jpg

Now connect the circuit with your pc by the USB port note the RX and TX opins coming from the bluetooth module should be plugged out from the arduino board while uploading the code

Open your arduion IDE and paste the code given below and upload it into your arduino

void forward()
{ digitalWrite(10, HIGH); digitalWrite(11, LOW); digitalWrite(12, HIGH); digitalWrite(13, LOW); }

void backward() { digitalWrite(10, LOW); digitalWrite(11, HIGH); digitalWrite(12, LOW); digitalWrite(13, HIGH); }

void left() { digitalWrite(10, HIGH); digitalWrite(11, LOW); delay(100); digitalWrite(12, LOW); digitalWrite(13, HIGH); }

void right() { digitalWrite(10, LOW); digitalWrite(11, HIGH); delay(100); digitalWrite(12, HIGH); digitalWrite(13, LOW); }

void Stop() { digitalWrite(10, LOW); digitalWrite(11, LOW); digitalWrite(12, LOW); digitalWrite(13, LOW); }

void setup() { Serial.begin(9600); pinMode(10, OUTPUT); pinMode(11, OUTPUT); pinMode(12, OUTPUT); pinMode(13, OUTPUT); }

void loop() { while (Serial.available()) { char ch = Serial.read(); if (ch=='F') { Serial.println("Forward"); forward(); } else if (ch=='R') { Serial.println("Right"); right(); } else if (ch=='L') { Serial.println("Left"); left(); } else if (ch=='B') { Serial.println("Backward"); backward(); } else if (ch=='S') { Serial.println("Stop"); Stop(); } delay(100); } }

34010378_623055288030760_3903037081970016256_o.jpg
34702358_626328181036804_6024519659384995840_n.jpg
34581750_626328214370134_8925383086984658944_n.jpg

Now switch on the circuit and install the app in your smartphone from the link given in step 1 and then allow the app to connect with the circuit through bluetooth ( the default name would be HC-05) it will also ask for password which is either 0000 or 1234 then click on controller mode and then in the upper right side of your smart phone you will find settings click on that and set the default values of the buttons as per the given pictures

Finished

10000000 610650255964315 1322659458253324288 n

Now enjoy your car