Introduction: Arduino Bluetooth Controled RC Car

In this instructable I am going to show you how to make Bluetooth controled car with 2 DC motors.

Step 1: Materials

Materials:

1.2x DC motor

2.L298N (motor controler)

3.Arduino Uno (or clone)

4.HC-05 (bluetooth module)

Step 2: Chassis Editing

I cut off Middle plastic part and replaced it with wood, then I added 4x1.5V battery pack in the middle of it.

Step 3: Wiring Scheme

Connect one motor to the OUT1 and OUT2 pins of L298N, connect second to the OUT3 and OUT4 pins.

Connect positive wire of batteries to +12V pin and negative to the GND of L298N, then connect same GND to GND of arduino.

Pins of HC-05 are conected to arduino like this: GND to GND; VCC to 5V; RX to TX and TX to RX.

Pins of arduino 8,9,10,11 are connected to IN1,IN2,IN3,IN4 of L298N.

Step 4: Connecting

Connect wites like in prevous step.

Step 5: Upload Code to Arduino

Connect your PC to Arduino and upload this code.

Step 6: Download App

You can download app here:

https://play.google.com/store/apps/details?id=com.buncaloc.carbluetoothrc&hl=en

Step 7: App

Turn on your car.

Open app, turn bluetooth on and connect it to the HC-05.

Step 8: Done

Special thanks to "Srpska Nauka", he helped me build this car.

You can check his acaunt here:

https://www.instructables.com/member/Srpska+Nauka/

Comments

author
TomasN29 (author)2017-06-01

Can you send this project pdf format to karolis656@gmail.com?

author

Same here can u send it to himipritmani@gmail.com ? thanks in advance :)

author
Artwork53 (author)2017-05-08

can i use the arduino bluetooth rc car app?

author
CarlosM175 made it! (author)2017-03-12

apenas ainda em versao de teste.

IMG_20170311_122238.jpgIMG_20170311_122251.jpgIMG_20170311_122257.jpgIMG_20170311_122301.jpgIMG_20170311_122306.jpgIMG_20170311_122310.jpgIMG_20170311_122316.jpg
author
fraz sultan (author)2017-01-29

owsum site

author
CarlosM175 (author)fraz sultan2017-03-12

qual o link do site?

author
CarlosM175 (author)2017-02-05

no programa "APK" quais sao as portas do arduino para as luzes da frente e de tras?

author
zhixuan (author)2017-01-13

@Dzefri I met problems while uploading the files.. Please help me to solve it..

temp_1082123944.jpg
author
zhixuan (author)2016-12-21

Hi everyone, I am beginner to arduino. I don't know how the black wire from the battery can be separated into two. I don't know how to see the wiring schematic. anyone who know please reply me . thank you very much.

author
command123 (author)2016-12-18

can you change the code for a 2wd car.i mean there will be not left-right motor.car will turn right-left by using two motor same time

author
Rohan Pillai (author)2016-09-28

premkumawat i hope u can help me

pls pls pls prem help me

author
Rohan Pillai (author)2016-09-28

i bought all these items,

i wired according to given...

i uploaded the code...

i connected hc05 with my tab...

but the car make no respones...i is remained stationary

author
Rohan Pillai (author)2016-09-28

i stucked at middle

author
Rohan Pillai (author)2016-09-28

anybody pls pls pls help to built this

author
Rohan Pillai (author)2016-09-24

thanks

author
premkumawat (author)2016-09-06

really its working and a nice project

author
Rohan Pillai (author)2016-08-14

program code showing error...wat 2 do...

author

Da pillai
Kayari ange meyyuvaanallo

author

poda chekka

author
Rohan Pillai (author)2016-08-13

pls help ,is there any way to add camera...

author
Rohan Pillai (author)2016-08-13

I loved your project.I decided to do this at school,
Can i add a spy camera to it....?

author
rakugukukugu (author)2016-07-17

I have a problem on uploading codes and my system work when I plug it with my lapi

author
AkhilK21 (author)2016-04-29

i have a problem on uploading code

author
dimitrakis1992 (author)2016-04-04

Hello to everyone.check out my new project about Arduino
https://www.instructables.com/id/Simple-PS3-Arduino-Project/?ALLSTEPS

author
sanjith.tt (author)2016-04-01

my one motor is not working.even i have made the connections properly what could be the reasons.pls help me fast

author
muddog15 (author)2016-03-21

I've been searching for a way to do this with the l298n, this fit the bill, thanks!

author
kartikeyag (author)2016-01-28

can we connect two motor drivers with arduino uno r3

and do i have to change the program for L293d motor

can someone plzzz help me fast

author
nelson rai (author)2016-01-21

Can i get the bluetooth code??

author
pavgupta (author)2016-01-03

hey i have all the materials you have listed but i made my rc car with 3 motors

one for steering and two for back wheels power

also i used the L293D motor shield because i had three DC motors

any idea where i could get the code for that for the arduino uno

author
asadhamid (author)2016-01-02

i have made project of it but my motor is not working what can possibles problem can be????

author
dimitrakis1992 (author)2015-12-20

Hello, you have done excellent work.Congratulations! I have a question.If i use this motor controller it will work?http://www.dfrobot.com/index.php?route=product/pro...

and if yes i have to modify the code?Thanks in advance.

author
Dzefri (author)dimitrakis19922015-12-21

It should work, same wiring and code, I think that controller works same as my controller. :-D

author
dimitrakis1992 (author)Dzefri2015-12-21

ok man thank you.One last question.Can you explain to me these:

Motor1A is PWM?

Motor1B is Direction of the motor?

Motor2A is PWM?

Motor2B is Direction of the motor?

In other words, what variable is PWM and what is Direction?Thank you for your time.

author
abhithejv (author)2015-12-17

Amazing project

author
Dzefri (author)abhithejv2015-12-21

Thanks :-D

author
KevinGA270 (author)2015-12-07

is there any different wiring...?

author
Dzefri (author)KevinGA2702015-12-21

I think there is different wiring. :-D

author
kchovatiya (author)2015-12-19

can i use the first motor shield L293D the whole shield ? so for this can that code runs ?

author
Dzefri (author)kchovatiya2015-12-21

You can try, if it not works then you need to modify code. :-D

author
Marethno made it! (author)2015-12-07

I m using the very first motorshield, evrything works fine - there just one problem i cant figure out how to change it - you outputs in your code affecting my Servo outputs - i don t know how to change to M1 and M2 dc motor outputs - until now evrything works fine. BTW im using the Slave HC-066 BT module . runs great no problems with it!

DSC_0365.JPGDSC_0366.JPGDSC_0364.JPG
author
Dzefri (author)Marethno2015-12-21

Great job man :-D

author
Dimitris Platis (author)2015-12-05

Great job! One question: Isn't there just one DC motor PLUS a servo motor?

author
Dzefri (author)Dimitris Platis2015-12-05

I used 2 DC motors but you can use one DC and one servo if you want. :-D

author
Dimitris Platis (author)Dzefri2015-12-06

Oh OK, the #include <Servo.h> in the beginning of the sketch confused me, but as I now see you don't use it anywhere. Hmmm, so I suppose you have one dc motor for each "side" of the car, correct? In the picture it seems that you have one motor in the back and one in the front. How do you turn the car if that is the case?

author
Dzefri (author)Dimitris Platis2015-12-06

One DC motor turn wheels left and right and it is at front, second DC motor make car go back and forward the one on back of the car.

author
Dimitris Platis (author)Dzefri2015-12-06

That is what I don't understand then. If it is NOT a servo motor, how do you tell the dc motor "turn the wheels X degrees to the right" for example?

author
Dzefri (author)Dimitris Platis2015-12-06

You can't. You can only tell which side you want to turn.

author
Dimitris Platis (author)Dzefri2015-12-06

Hi, I see! I am starting to understand your system now. One last question: When you apply voltage to the DC motor, it turns towards one direction. It tries to continuously rotate, however there is a maximum amount of degrees your wheels can turn/steer. How or when do you stop the dc motors from turning (stop supplying voltage to them in other words)? Or is it the case that you don't do that at all and they keep trying to rotate but they just can't?

author
Dzefri (author)Dimitris Platis2015-12-06

When you want to turn it other way just rotate + and -. When you want to stop it just apply - to both sides.

author
Dimitris Platis (author)Dzefri2015-12-06

I mean, how do you know when to stop giving power to the motors? Do you observe when it has turned so you send the command to stop applying power? I am asking this, because if you keep putting power and the motors cannot turn any more you might either break or burn something. :)

About This Instructable

22,076views

256favorites

License:

Bio: I just like to make staf xD If you want to contact me just send me massage and I will give you my email.
More by Dzefri:Logo With Fading LEDsArduino Game "NIM"Tic Tac Toe for Nokia 5110
Add instructable to: