DIY Arduino Bluetooth Controlled Car

by Nikolaos Babetas in Circuits > Arduino

5661 Views, 41 Favorites, 0 Comments

DIY Arduino Bluetooth Controlled Car

How To Make A Simple DIY Arduino Bluetooth Controlled Car
20201209_100646.jpg
20201210_193652.jpg
Untitled design (10).png

Hello friends! My name is Nikolas, I am 15 years old and I live in Athens, Greece. Today I will show you how to make a 2-Wheel Bluetooth Controlled Car using an Arduino Nano, a 3D printer and some simple electronic components! Make sure to watch my YouTube Video to see the car in action and to follow the instructions from there if you prefer!

Motivation

I got into basic electronics when I was 9 years old when my dad brought me some batteries, a switch and a small light bulb to play with, I was super excited. Around that time with the help of my dad I made my first ever car which was as simple as it could be. It consisted of an old phone's box to which we had attached four dc motors with some wheels from some toy cars we had and they were powered from a few AA batteries, it could only move forwards but 9 year old me was really proud and happy. Over the following years I made quite a handful of creations and MANY toy cars. At some point I set myself the goal to make a remote controlled car that, this might seem quite easy to you, but for my past self it was way out of my league. However when the pandemic broke out last spring and we got into quarantine, I got into more complex electronics and around April I achieved my goal by making a car based on an Arduino Uno that could be controlled via an IR remote! I then put myself the goal to make a car that would be controlled through Bluetooth with my phone. This is where this Instructables comes into place. Enjoy!

Supplies

Here is a list with the necessary components

  • Arduino Nano
  • 2 x 200RPM N20 Micro Motors
  • DRV8833 Motor Driver
  • HC-06 (Bluetooth Module)
  • 18650 Lithium Battery
  • Battery Holder
  • 11mm x 6mm Slide Switch
  • M3 Screw (10mm) and Nut
  • Some Cables
  • 4 x Normal Rubber Bands
  • A Soldering Iron
  • A 3D Printer
  • Some Filament (I used Prusament PETG)

3D Printing

20201210_192922.jpg
20201210_193135.jpg

I designed the 3D files myself using Onshape. You will need to print the Base and also two Wheels. I printed all the parts in Prusament Gold PETG at 0.2mm layer height and 40% infill on the Creality Ender 3 V2.

You can find the .stl files here: Thingiverse

Circuit

20201213_162040.jpg
20201213_162134.jpg
20201213_162241.jpg
20201213_162304.jpg
20201213_162317.jpg
20201213_162428.jpg
20201213_162452.jpg
20201213_162514.jpg
20201213_162630.jpg

Time to make the circuit! So now put the Arduino Nano, the DRV8833 and the HC-06 on your breadboard.

  1. Connect the VCC of the HC-06 and DRV8833 to 5V
  2. Connect the GND of the HC-06 and DRV8833 to GND
  3. Connect the TXD to D10
  4. Connect the RXD to D11
  5. Connect INT1, INT2, INT3, INT4 to D2, D3, D4, D5 accordingly
  6. Connect the first motor's cables to OUT1 and OUT2
  7. Connect the second motor's cables to OUT3 and OUT4
  8. Connect the battery's "+" to 5V and the "-" to GND (You can add the slide switch to the "+" now if you want)

Programming​

Untitled design (8).png

Let's upload the code to the Arduino Nano! Simply connect it to your computer with a USB Cable then open the "BluetoothCar.ino" file with Arduino IDE. Make sure that the options at the Tools tab are the same as in the picture above and that you have selected the correct COM port. Click "Upload" and you are good to go!

Downloads

Bluetooth App

Screenshot_20201213-180235_Video Player.jpg
Screenshot_20201213-180244_Video Player.jpg

It is time to try if our circuit and program are working as intended. I made my own Android App using MIT App Inventor which is a simple program that allows you to make Android Apps easily! You can install the App on your Android phone by downloading the "BluetoothController.apk" below. There are some alternatives on the Play Store and the App Store if you prefer, but I made this one because the car moves only if your finger is on the button, which is a feature I really like.

When connecting to the Bluetooth module for the very first time you will need to turn on the Bluetooth on your device, then you'll have to find a device named "HC-06" and to connect to it you'll have to put in the password "1234" or "0000". Afterwards go to the app and click the Bluetooth Button and select the HC-06. Now you have successfully connected your car to your smartphone and you can control the motors through the app!

Assembly

20201213_184247.jpg
20201213_184504.jpg
20201213_184549.jpg
20201213_184611.jpg
20201213_184653.jpg
20201213_184809.jpg
20201213_184833.jpg
20201213_184918.jpg
20201213_184952.jpg
20201213_185049.jpg
20201213_185130.jpg
20201213_185235.jpg

Now you should solder the electronics and get ready to assemble the car!

  1. Screw the 18650 battery holder to the base and add the nut
  2. Push the two motors into place
  3. Fit the slider switch into place
  4. Fit the DRV8833 Motor Driver into place
  5. Fit the Arduino Nano into place
  6. Slide the HC-06 into place
  7. Add the 18650 battery to its holder
  8. Push the two wheels into the motors' shafts
  9. Last but not least, add 2 rubber bands to each wheel

Enjoy Your Creation!

20201213_200855 (1).gif

Well done! Now turn it on, connect to it through your Android App and have fun! I hope you enjoyed this Instructable and if you did consider subscribing to my YouTube channel for more awesome projects!