Android Control Arduino via Internet
Android Control Arduino Microcontroller Board with 8 devices
Block Diagram
Specification
1. Android control Arduino Microcontroller Board via Internet Web Server ( JSON )
2.Arduino Microcontroller Board connect Internet Web Server ( JSON )
3.Web Server use MySQL database and php code
Hardware We use
1.Arduino UNO Microcontroller Board. or Compatible Board.2.Arduino Ethernet Shield.
3.Relay Board
If Use with Arduino Mega for control up to 8 devices
must some modifier. Connect 3 wire jumper in the picture show.
Device1 connect Arduino
Mega pin 3
Device2 connect Arduino
Mega pin 5;
Device3 connect Arduino
Mega pin 6;
Device4 connect Arduino
Mega pin 7;
Device5 connect Arduino Mega pin 8;
Device6 connect Arduino
Mega pin 14;
Device7 connect Arduino
Mega pin 15;
Device8 connect Arduino
Mega pin 16;
Create Database on Web Server
PhpAdmin http://www.digital2u.net/phpmyadmin/
user = xxxxx
pwd = xxxxx
DataBase Name = digital_TEST1
Table name = users
Monitor Database on WebBrowser
http://www.digital2u.net/showdata.php ( html Table )
http://www.digital2u.net/test.php ( xml Reponse)
http://www.digital2u.net/json.php?user=1&format=json ( JSON Reponse )
JSON Response
{"posts":[{"post":{"Device1":"0","Device2":"0","Device3":"0","Device4":"0","Device5":"0","Device6":"0","Device7":"0","Device8":"0"}}]}
Android Control and Connect Web Server
Http Command sent to Web Server
Command control
http://www.XXXX.xxx/webservice.php/?dx=y ( device x = 1-8 , data y = 0,1)
Example to Control Device1 is On ( Data 1 = ON)
http://www.digital2u.net/webservice.php/?d1=1
Android Screen App Example
Download Android Application on Google Play
More info