I have completed three options for controlling the Rapiro Robot using the modified Rapiro Sample Program Arduino sketch that added the option to turn off servo power. It can be downloaded at this link:
https://dl.dropboxusercontent.com/u/54426040/Rapiro_Sample_Program.ino
First the Html Browser approach.
You can control the robot with any device running a web browser. Firefox and android work with the supplied program.
I haven't tested IPhone or IPad. If you want to use Chrome or IE you can change the onchange event to onmouseup but then the phone and tablet do not work very well.
Remember to chmod the css and jpg files to 644 and the test2.py to 755.
The required files for this project are at this link:
https://dl.dropboxusercontent.com/u/54426040/Rapiro%20Remote%20Control%20Android.zip
The instructions for installing the required software on the RPi are included in this link:
Installing RaPiRo Web Control - eLinux.org
The pythons script name has changed to test2.py vice test.py.
Be sure and follow carefully the instructions on changing file permissions.
Use the icons and the test2.py script from the above link.
If you installed apache2 default settings the icons and css files go into the var/www directory and the test2.py goes into the usr/lib/cgi-bin directory.
Many thanks to Frederick Vandenbosch and Jan Blomqvist Kinander for their valuable support.
Second the Python approach.
The files for this project can be obtained here:
https://dl.dropboxusercontent.com/u/54426040/Rapiro%20Remote%20Control%20Python.zip
The server2.py program goes on the RPi.
Make sure ttyAMA0 is linked to ttyS0
I put the following command in the /etc/rc.local file to automatically set things up on boot.
sudo python /home/pi/server2.py
The RemoteControl.py program is run on the Windows or Linux computer.
The images go into the same directory as the script.
You will have to change the ip address in line 21 to match the ip address of the RPi.
Port should remain 90 unless you change the server2.py program.
It was generated with Python2.7, I don't know if it runs on other versions.
The third approach is an Android program.
Sideload the apk file into your android device and install it.
I also included the server2.py script that must be run on the RPi. Probably best to autostart it and make sure ttyAMA0 is linked to ttyS0 .
If you installed it for the python version it works with android also.
You can run any TCP Socket server on the RPi it doesn't have to be server2.py. Remember set port = 90 in the Android program if you do run server2.py.
I didn't get fancy with colors and icons, just basic controls that work.
I tested on a Nexus 7, Nexus 4, HTC Vivid, and Kindle Fire HDX. All worked!. Should work on any true android device.