Send serial commands to your project from any device with a headphone jack that supports HTML5 and JavaScript. Does potentially require a few components to be added to your project. Designed for reliable results by default, but allows many adjustments. Uses 9600 8N1 by default. The baud rate is easily changed. The library is heavily commented to assist with any tweaking you want to do.
For schematics of how to connect to your MCU/MPU, see...
Android app for MXQ TVbox to control an Arduino board via USB from PHP
...To keep ligth the Arduino Sketch, you can port all not realtime logic to PHP side.
At the end your application will works on XQ+Arduino UNO even 24/7 with only 20 Watt AC power, and can be controlled by smartphone via WiFi or from Internet using some free dynamic IP.
What more?
Enjoy.
Sources in github https://github.com/msillano/USBphpTunnel
Preconditions:
MXQ + Palapa Web server, Arduino UNO
Install:
- Download USBphpTunnel11_d.apk and the full test_files dir
- See file /test_files/readme.txt