Using android mobile to control arduino

Yeah !! it works.
I used in my sketch : case '1' : instead of case 1:
So many hours for ''...
The strange things is that it worked before when I used my bt connection with my computer...
Thanks for your help

Just found this app. Those who are interested can check out ArduinoCommander android app too:
https://play.google.com/store/apps/details?id=name.antonsmirnov.android.arduinocommander

hi kerimill,

i wanna buy a bluetooth for this project.so just went through ebay and found this link

http://www.ebay.com/itm/JY-MCU-HC-06-V1-03-Bluetooth-Transeiver-RF-Module-Wireless-Serial-4p-Port-line-/261053366958?pt=LH_DefaultDomain_0&hash=item3cc7fe42aehttp://www.ebay.com/itm/JY-MCU-HC-06-V1-03-Bluetooth-Transeiver-RF-Module-Wireless-Serial-4p-Port-line-/261053366958?pt=LH_DefaultDomain_0&hash=item3cc7fe42ae

this bluetooth module has a pairing code 1234. so to pair this module with ur app, should i modify ur project?? will it automatically ask for code??
plz tel me that can i use this module??

thnx
Jazly :slight_smile:

The app doesn't have to pair with the module - just pair with it from the phone and then run the app

It should work just fine - just make sure you check the datasheet of the module & make sure the baud rate is the same (if so then the arduino code has to be modified or the setting of the module)

hi , i am interested in such project .. i purchased arduino uno , bluetooth bee , and x bee sheild ..
i am having a problem in bluetoothfor arduino app.. i couldnt figure out on wat program it will run ...
thnk u for ur cooperation ..

I don't really understand the question... could you be more specific ? I know English is probably not your native language but I can't really tell what's the problem

I have a senior project , our instructor couldnt help me , because he siad that arduino and android isnt his domain, and said that it a new tech ,go ask some experts,, so i made plenty of searches but rarely i got info :frowning:
in my project i need to control ( turn on and off lights using arduino, android mobile phone , via bluetooth )
i bought an arduino uno , arduino shield (for Bbee ) , bluetoothbee, and relay...
i saw ur codes , but i need u to tell me where to use them .. plz help me if u can..
ive downloaded books but sooo many codes....
MY problem is that in our country we have no experts in arduino, neither android programs..
i tryed to download from speedy share as u suggested , but it was denied , they asked for premium......
can u help , and be an advisor for this project which i couldnt have , plzzz

You have to copy and paste arduino code into arduino IDE and then upload it to the board

You're right about speedyshare - you can no longer download the files for free
I'll try to upload them somewhere else

Here is a link to the files ->
https://docs.google.com/file/d/0B_PfPoEotOF8WEwyUVhkWnY3b00/edit?usp=drive_web&pli=1

or try this if it doesn't work
https://drive.google.com/folderview?id=0B_PfPoEotOF8N2JwT3RSX011SjQ&usp=sharing

thank u ive downloaded the files , but i couldnt copy them to arduino ide,, it didnt open ,, do u have a way to open those files ,, ar any program to open them ???

i have a bluetooth bee iteadstudio ,, but ive seen some codes from seeedstudio for my bluetooth, is it the same ???
i tryed but it didnt work !
http://tronixstuff.wordpress.com/2012/04/30/arduino-android-and-seeedstudio-bluetooth-bee
how can i try it ??

the code for arduino uve prviosly wrote in the first page about pin 7 coudnt be uploaded to arduino ,, problem is because of COM .. but only 3 COMs 4, 5, 7 also didnt work , access is denied ..
whats the problem?? i am using arduino 1.5.2

First of all you can't have the bluetooth module connected to RX and TX when you upload code - upload code and then connect them.

Secondly, the module you have might be set to different default baud rate - you either have to change it (using AT commands) or modify arduino code to use the module default baud rate.

What's more, make sure that the module is set as master. The datasheet should have some information on that.

Finally, use a USB bluetooth dongle and program such as Putty to try to establish connection with the module and android device. In this way you can manually send and receive commands and see if the module and/or android device works as expected.

i uploaded the code it worked ..
as for comunication with bluetooth it didnt happen , i tryed to comunicate with bluetooth by serial monitor .. it didnt work , as for Putty i tryed it it also didnt comunicate , i tryed AT and +++ ,, waiting for an OK .. also nothing happen ..
what baud rate , and com do ITEADSTUDIO bluetooth bee work ????..
kerimil am realy thankful for ur concern :slight_smile:

Did you try to establish connection between the phone (app) and a computer to see if it works ?? it should work just fine.

i tryed to comunicate with bluetooth by serial monitor .. it didnt work , as for Putty i tryed it it also didnt comunicate

even if the baud rate is wrong you still get something on the other side - just a bunch of characters that make no sense

There must be some other problem - I assume it's either wiring or slave/master setting

i tryed AT and +++ ,, waiting for an OK .. also nothing happen

All bluetooth modules that I've seen require you to send AT commands through FTDI adapter not directly through bluetooth SPP.

Not sure if that's the module you have but I found this ->
ftp://imall.iteadstudio.com/IM120417010_BT_Shield_v2.2/DS_BluetoothHC05.pdf

Also I found this thread that you might find useful -> Arduino Forum

thnk u , i only need ur source code for the application on android phone plzz .. i gues i figured out the problem ,, in the xbee shield its not suppoting a connection betwwen bluetooth rx , and arduinos tx...
so now its responding .. so plz give me ur app source code

The source file can be downloaded here -> Electronics - Google Drive

Note that source files have .ZIP extension. That's why you didn't notice it. I describe how to upload them in this video

those codes can be opened by what program... ??? i couldnt open them ..

it has to be uploaded (the entire zipped file) into app inventor

more on it here -> http://appinventor.mit.edu/

Can you please republish your mit app inventor application? the file no longer exists, I'm having troubles trying to emulate your application.