Using android mobile to control arduino

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.

Try this link -> Electronics - Google Drive

hi, kerimil ,, m sorry i was busy with my exams , i really thank u for ur support ,,please am also interessted with temp aplication , can u send me the code for the application , as you know i cant download from speedy ...
thnk u again dr kerimil..

another thing , i am trying to make my arduino read the device if its on or off , and to read it and then send the data to my phone throughout bluetooth .if its on the text tv is grean , if its off the text " tv" is red , so a user for example will not turn off a device witch is already off . do u think its a good idea ??

please am also interessted with temp aplication , can u send me the code for the application , as you know i cant download from speedy

The source file can be downloaded from my google drive - the link is in my previous post

it's a zipped file - you have to upload it into app inventor

another thing , i am trying to make my arduino read the device if its on or off , and to read it and then send the data to my phone throughout bluetooth .if its on the text tv is grean , if its off the text " tv" is red , so a user for example will not turn off a device witch is already off . do u think its a good idea ??

That's doable - just write arduino sketch that reports the state of the TV through bluetooth

Hello, I was wondering would you be able to help me with problems I am having with my Android to ardiuno setup.
Basically what I am trying to do is making my phone read the voltage signal from the A0 port. I am using an ardiuno UNO. When I press button 8 on my phone, I can see the ardiuno print the voltage in the serial monitor. I was wondering would you know how to send the voltage back to the phone, and have it print out the voltage there.

byte serialA;

void setup()
{
  Serial.begin(9600);
}

void loop() 
{
serialA = Serial.read();
  if (serialA == 1)
  {
    int sensorValue = analogRead(A0);
    Serial.println(sensorValue);
    Serial.write(sensorValue);
    serialA = 0;


  }
}

Did you use a bluetooth dongle and putty to check what is sent by both the phone and the arduino ??

Do so and you should see what's wrong :slight_smile:

in application , i have label tv , then 2 buttons turn off and turn on ..
if i want to change the color of label TV due to its state , how can i do it ..
for example : if its already turned on so label TV is green , else its color is red ..

Hi, I'm having fun with your example. But one problem though, how come the android doesn't recognize my "OFF" oral command?