currently I am building a little project based on the Arduino Mega 2560. My goal is to send some data gathered by some sensors to an Android phone. It has to be as basic as possible. Buying new hardware is no option.
After some research, I found that it is possible to communicate via USB OTG just with Serial commands. I downloaded the an app which can do this (Serial Monitor), connected the Arduino via the USB cable to the Android. Unfortunately, it did not work.
I have an Arduino UNO, too. Connecting the UNO the same way to the phone works like a charm and does exactly what I want.
I did some more research and found nothing about that. It seems that everybody is using the Arduino Mega ADK to establish a communication between Arduino and Android. But I would like to be able to achieve this the same way it works with the UNO.
Can somebody explain me why it does not work?
EDIT Here is the code I have to test:
Arduino
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println("Test...");
delay(2000);
}
For Android I use the code from this tutorial.
Any further suggestions?