Industrial manufacturing
Industrial Internet of Things | Industrial materials | Equipment Maintenance and Repair | Industrial programming |
home  MfgRobots >> Industrial manufacturing >  >> Manufacturing Technology >> Manufacturing process

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

Components and supplies

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Arduino Nano R3
×1
Micro Metal Gearmotor - 600RPM 12V
×2
DRV8833 Motor Driver
×1
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
HC-06 Bluetooth Module
×1
18650 Li-on Battery
×1
18650 Battery Holder
×1
11mm x 6mm Slide Switch
×1
M3 Screw (10mm) and Nut
×1
Some Cables
×1
Normal Rubber Bands
×4

Necessary tools and machines

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Soldering iron (generic)
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
3D Printer (generic)

About this project


Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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!

Story

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 tutorials comes into place. Enjoy!

Step 1: 3D Printing

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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)

Step 3: Programming​

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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!

BluetoothCar.ino

Step 4: Bluetooth App

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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!

BluetoothController.apk

Step 5: Assembly

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide
Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

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

Step 6: Enjoy Your Creation!

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

Well done! Now turn it on, connect to it through your Android App and have fun! I hope you enjoyed this tutorial and if you did, consider subscribing to my YouTube channel for more awesome projects, you can also check my Instagram at @n_babetass ! You can leave any questions or recommendations in the comments below! Thank you for your time!

Code

  • BluetoothCar.ino
BluetoothCar.inoArduino
No preview (download only).

Custom parts and enclosures

Thingiverse
https://www.thingiverse.com/thing:4683747CAD file on thingiverse.com bluetoothcontroller_(1)_Ud3W5pFdl4.apk

Schematics

Build a Bluetooth‑Controlled Arduino Car: A Complete DIY Guide

Manufacturing process

  1. Build a Bluetooth‑Controlled Raspberry Pi Robot with Audio Feedback
  2. Transform an Old RC Car into a Joystick‑Controlled Vehicle with Arduino
  3. Create a Custom Punchable Keyboard Button with Arduino: A Step-by-Step Guide
  4. Voice-Activated Home Appliances: Bluetooth Control with Google Assistant
  5. Create Musical Tones with Arduino: A Step‑by‑Step Guide
  6. Build an Arduino‑Powered Automatic Door with Ultrasonic Sensor
  7. Smartphone‑Controlled Bluetooth Mouse: Build Your Own Virtual Joystick
  8. Bluetooth‑Controlled Pick‑and‑Place Robot Kit: Arduino UNO + 2‑DOF Arm & Smart Car Chassis
  9. Bluetooth‑Controlled Servo Motor with Arduino Uno & HC‑05
  10. Bluetooth‑Controlled Car: DIY Arduino Remote Vehicle