DIY Arduino Bluetooth Controlled Car

3,859

36

2

Introduction: DIY Arduino Bluetooth Controlled Car

About: My name is Nikolas and I am 15 years old. I love making things with electronics and 3D printing in order to solve problems, to improve our lives but also to satisfy my imagination and curiosity! If you like my…

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)

Step 1: 3D Printing

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

Step 2: Circuit

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)

Step 3: Programming​

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!

Step 4: Bluetooth App

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!

Step 5: Assembly

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

Step 6: Enjoy Your Creation!

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!

Battery Powered Contest

Participated in the
Battery Powered Contest

2 People Made This Project!

Recommendations

  • Jewelry Challenge

    Jewelry Challenge
  • Fix It Speed Challenge

    Fix It Speed Challenge
  • Anything Goes Contest 2021

    Anything Goes Contest 2021

2 Comments

0
ĆazimS
ĆazimS

Question 6 months ago on Step 6

Should I short J1 and EEP pin on DRV8833?