DIY Arduino Bluetooth Controlled Car
by Nikolaos Babetas in Circuits > Arduino
5678 Views, 41 Favorites, 0 Comments
DIY Arduino Bluetooth Controlled Car
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
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
Time to make the circuit! So now put the Arduino Nano, the DRV8833 and the HC-06 on your breadboard.
- Connect the VCC of the HC-06 and DRV8833 to 5V
- Connect the GND of the HC-06 and DRV8833 to GND
- Connect the TXD to D10
- Connect the RXD to D11
- Connect INT1, INT2, INT3, INT4 to D2, D3, D4, D5 accordingly
- Connect the first motor's cables to OUT1 and OUT2
- Connect the second motor's cables to OUT3 and OUT4
- Connect the battery's "+" to 5V and the "-" to GND (You can add the slide switch to the "+" now if you want)
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!
Downloads
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!
Downloads
Assembly
Now you should solder the electronics and get ready to assemble the car!
- Screw the 18650 battery holder to the base and add the nut
- Push the two motors into place
- Fit the slider switch into place
- Fit the DRV8833 Motor Driver into place
- Fit the Arduino Nano into place
- Slide the HC-06 into place
- Add the 18650 battery to its holder
- Push the two wheels into the motors' shafts
- Last but not least, add 2 rubber bands to each wheel
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!