loading
Hello there,

In this instructable I would like to explore the connection between Arduino and Android. Both are open, easy-to-program environment (well, Android not so easy, but quite), and the interaction between them allows interesting human-to-device interaction.

The goal here is to drive a small Arduino bot of the simplest kind with an Android app, through Bluetooth connection. The robot itself will have nothing extraordinary and is inspired by the many tutorials out there on the Interwebs. But I have not found tutorials on how to create an Android remote control - so here it is.

Level and assumption :
- the reader is assumed to know its way around Arduino and electronics, including soldering, although there will be very little of it. Arduino starter kit level is sufficient.
- more importantly, the reader is assumed to have a working knowledge of Android. If not - I can recommend to work through the official Android tutorials, among others available online.
 

Step 1: Bill of Material

Here is a bill of material, with price list from Robotshop Europe. I like Robotshop for their customer service but these products are standard and can be found in other places

- Arduino UNO or equivalent (23.92€)
- Arduino-compatible 1A Motor Shield (12.95€)
- 2x GM9 geared motors (2x 4.29€)
- 2x GMPV wheels (2x 2.79€)
- (optional) 2x mounting brackets (2x 1.38€)
- 1 ball caster(1.78€)
- a 6 AA battery holder with 2.1mm jack (4.82€)

Not on RobotShop
- Bluetooth module (5€) such as this one on Ebay
- 2mm MDF plate
- some wires
- some screws and nuts
- a breadboard if you don't want to solder
- 6 Alkaline AA batteries or 6 NiMh rechargeable batteries (they provide 7.5V instead of 9V, but this is still sufficient for the GM9 motors)

<p>I m getting these errors.. Can u plz help me out???</p>
<p>hello <a href="http://www.instructables.com/member/JibranE" rel="nofollow">JibranE</a>. Use this app instead of java and it will work just fine https://play.google.com/store/apps/details?id=braulio.calle.bluetoothRCcontroller</p>
Hello,<br><br>Sorry, this is an old project, coded in Eclipse. Now, Android uses Android Studio and Gradle, which are not compatible.<br><br>Here is a link that might help <br><br>http://developer.android.com/sdk/installing/migrate.html
Thank u for ur assistance.. Link was helpfull..<br>
<p>can i have the whole code please! thank you</p>
<p>Have anyone tried to import it to Android Studio? I'm trying and it gives me:<br>Error:FAILURE: Build failed with an exception.</p><p>* What went wrong:</p><p>Task '' not found in root project 'AndroidRemote'.</p><p>Could anyone help me with this problem? Thanks!</p>
<p>Hello,</p><p>Sorry this is an old project, initially coded with Eclipse. Now Android uses Android Studio and Gradle, which are not compatible.</p><p>Here is a link that might be helpful</p><p>http://developer.android.com/sdk/installing/migrate.html</p>
<p>pdf download ni hote bhooo</p>
donmatito thanks a lot. I did
sir we are making a robot that can be controlled by bluetooth so iam thinking to create a new app can u help me in this<br>hrlp me how to dhis apps
<p>please how to send the app to the smartphone???</p>
Simply connect your phone to your computer and run the app from the editor (once again this tutorial assumes you have basic knowledge of how to create a basic android app)
<p>thanks man !!!</p>
<p>Can you tell me how to make a app like yours with MIT app inventor!! I am poor in it! and also tell me whats the difference between PILL and PWM</p>
<p>can i use roboduino ATmega 328</p><p><a href="http://robokits.co.in/shop/index.php?main_page=product_info&cPath=72&products_id=34" rel="nofollow">http://robokits.co.in/shop/index.php?main_page=product_info&amp;cPath=72&amp;products_id=34</a></p>
<p>I suppose so - but I have not looked into it</p>
<p>Yes you can dude! but robokits india sells products pretty costly 1 recomend www.roboindia.com or www.robocraze.com they are the best although i use major products of robokits india! like rhino board etc. </p>
<p>Ordered all parts online but i ordered The motor shield for 2A[By df robots] any changes in the code??Please reply me!</p>
I don't think so, but you might want to use an external power source for your shield. You will be able to use more powerful motors by the way.<br><br>http://www.dfrobot.com/index.php?route=product/product&amp;product_id=69
Thanks Dude! I will be getting all the parts within a week. Can you tell me how to make a bluetooth based voice controlled robot.(*_*)
<p>Android App:<br>BlueUino: Bluetooth Remote for Arduino, Control your Arduino Over Voice as well as Buttons<br>https://play.google.com/store/apps/details?id=g.patels.blueuino<br><br>If you want to make app like this as per you requirements please Email me : micky.patel41@gmail.com.<br>Visit web site for more info : blueuino.blogspot.com.</p>
<p>Hello i would like to ask you if i use only this app from google store https://play.google.com/store/apps/details?id=pl.mobilerobots.vacuumcleanerrobot it will work?</p>
<p>Hy! I was wondering if instead of Arduino uno I can use Due? Are there any significant changes? Thanks in advance.</p>
<p>what r the applications of this project???????</p>
nice work man keep it up...
<p>is it possible that you may post the arduino code? i would be very interested in it</p>
<p>It is in step 6</p><p>Thank you for your interest</p>
<p>Thank you very much !</p>
<p>Hy, i want to use this app in my Final Year Project and not with Arduino but with Raspberry-Pi</p><p>please tell me will it work?</p><p>and can you please send me the code,</p>
<p>Unfortunately, Instructables has a &quot;be nice&quot; comment policy, so I can't really answer fully your question. if it is your final year project, wouldn't it be more productive for you to write it yourself?</p><p>Regards</p><p>Matthieu</p>
<p>i'm asking about the code of that app which you used in Android</p>
<p>Thank you so much for the clear explination.</p>
<p>;l;l</p>
<p>;l;l</p>
<p>I have an RN 42 Bluetooth module....will it work the same?</p>
<p>I suppose because the general principle is the same, but you'll have to read the related documentation about the wiring I advise</p>
<p>I am a newbie to this electronics stuff, i heard a bit about beaglebone black. I want to ask how the connection is made between your smartphone and arduino, and how the arduino board is able to decode what key you are tapping on your smartphone.?<br></p><p>Please do reply. </p>
<p>Hello, sorry I didn't notice your question. the connection between the smartphone and the arduino is made with Bluetooth. In the software, it is equivalent to a serial connection - like if there was a direct cable connecting the two devices.</p><p>Hope it helps !</p>
<p>what is the name of this app ? </p>
<p>the app is not available on the appstore, if that is your question, because the goal here was to develop it and compile myslef</p>
<p>very nice project ,,,i also made it</p>
<p>excellent !</p>
Can i use arduino motor shield rev3 if so what are the codes
<p>I suppose so - but I have not looked into it</p>
<p>I extracted the androidremote file to my workspace but it doesn't show up as a project on Eclipse.... Is there a step that I'm missing? When i create a new android app using Eclipse, the file shows up in my workspace and Eclipse regognizes it as a project.</p>
<p>I think you have to &quot;import&quot; the project file in the Eclipse software. Let me know if you have found how to do it.</p>
<p>Great!</p><p>Favorited!</p>
<p>thanks</p>
<p>I have follow your idea, but I have used a little different hardware, and as you can see there is a very interesting app in google play.</p><p>Thanks again</p>
<p>excellent - I know a couple of similar apps but I wanted to make my own as an exercice. Of course off-the-shelf looks shinier :-)</p>

About This Instructable

112,557 views

577 favorites

License:

More by donmatito: Arduino bot Android remote control Indoor Environmental Quality station +Bluetooth +Thingspeak Plush toy, singing with Mommy's voice
Add instructable to: