Arduino – Control 2 DC Motors Via Bluetooth (Perfect To Build a Robot)


UPDATE 23-12-2013: changed their whole website… So the source file that previously you could use to edit on their website, only works with AppInventor version 1.0 or also called classic that you can see here Click the button: “Invent your own Apps now” . This project still works just fine with my  app and with my Arduino code. But you can only edit the source code on Appinventor classic version.

In this tutorial I’ll show you how you can control 2 DC motors via bluetooth with my brand new Android app. It’s called “BlueArd” and It’s the 1.0 version. I want to upgrade my app later and add more features.

This app was created with MIT App Inventor. It’s a great place to start with android development.

If you remember my previous tutorial (Click here to see that project) where I was controlling 1 DC motor, I was using an app called “BlueTerm“. That app did the job but I didn’t like the design that much. So I’ve decided to make my own.

It’s my very first app and It’s working for me but I’m not sure if this will work for everyone.

If you want to make some improvements to my app, feel free to do that. But please contact me here! I’ll be glad to hear what you changed in my app.

Let’s take a look to “BlueArd“:


This app is perfect to control anything via bluetooth. You can edit this app for your needs. (you have the source code below… just click share to unlock the source code). But my idea is to create a robot later that will be controlled via bluetooth through this app.

Parts Required

  • 1x Arduino
  • 1x Bluetooth Module (for example: HC-05)
  • 1x Smartphone (any Android will work, I’ve only tested with Samsung Galaxy Ace)
  • BlueArd Application (you can download it below)
  • 1x L293D IC
  • x DC motor
  • 1x Breadboard
  • Jumper Cablesparts


DC motor Schematics


Watch this video tutorial

Download all my source code below

  • Arduino Sketch
  • BlueArd.apk
  • BlueArd Source files (for editing purpose)

Click here to download

Notes and Tips:

  • You need to remove the RX and TX cables when you’re uploading the sketch to your Arduino.
  • Sometimes people connect the TX from the bluetooth module to the TX of the Arduino… that’s wrong and it won’t work. Make sure you connect it properly, the TX into RX and the RX into the TX.
  • If the HC-05 Bluetooth Module asks for a password, It’s ’1234′.
  • Before Testing my “BlueArd” app, test if you’ve made all the connections correctly. How you can do that? Simply enter numbers (‘1’, ‘2’, ‘3’, ‘4’ and ‘5’) into your serial monitor and your DC motors should be working properly…

Thanks so much for watching to my tutorials, I hope you found this useful. If this helped you please leave a comment below!

Do you know a friend who would like to see this project? Make sure you share this project with your friend!

P.S. You don’t have a Bluetooth Module yet? Read my review here about the one I’m using in this tutorial!

P.P.S. Thanks to Kerimil from arduino forum for helping me out debugging this app! (read here)

Leave a Comment:

Add Your Reply