How to make Android and Arduino communicate without a wireless module

I developed an Arduino application in which I can control LED 13 through a serial monitor.

I.e

  • if I find 0 on the serial monitor LED on pin 13, and
  • If I type 1 in a serial monitor, the LED turns off.

Now I want to do all this with my Android phone. I have the following questions:

  • First of all, how to create a PHP server to get all this.
  • How to open a local host on my Android device so that it works as a local server
  • How to make the server communicate with the serial port

I do not ask for all the code and the project, but just show me the way, and everything will be fine with me.

+3
source share
2 answers

Most Android and Arduino devices cannot talk to each other when they are right out of the box — no changes to the hardware and / or system software are required.

You have a choice:

0) Bluetooth is pretty clean and is now in the $ 20 range, so it’s one of the most cost-effective solutions and one of the least likely risk factors for damage to the phone’s hardware. But you said you did not want this.

1) , G1, , [rooting ] . arduino, . HTCUSB, , - , sparkfun.

2) usb [rooting ] . usb, , . usb- . : Android API- - root USB, .

3) USB- arduino, Android 2.3.4 , Google ADK Android; Android , , ADB (, ). , Android - , .

4) Android , Android.

5). Ethernet- arduino

+5

. , Cellbots, , Android , Arduino . , , .

+3

All Articles