controlling raspberry pi from android
Posted by praveen kumar at 21:40
Controlling your Raspberry PI GPIO from Android using WebIOPI and DRGPIO
A couple of days ago, I was reading the Google+ Community for Raspberry PI when someone asked: What could be the best way to control the Raspberry PI GPIO port from Android?
Another user suggested to use WebIOPi, a small python script that provides you with a small RESTFUL API to control the GPIO port on the Raspberry PI.
In the last two weeks, I have spent my spare time on developing a small tool for Android that allows you to control the GPIO port in the same way that you would do it on the web interface of WebIOPi. It also works as a handy reference for the pin functions when is not connected to the Raspberry PI.
This time, I'm going to show you how DRGPIO works and how you can use it to control your Raspberry PI GPIO Port from your Android device.
First, before downloading anything on your Android you MUST install and run WebIOPI. This is not something complicated to do, just follow this instructions:
Installing WebIOPI the "easy way"
If you already have python setup tools installed, just open a terminal console on your Raspberry PI and execute the following command:
This is going to download all needed packages and you are going to be ready to use WebIOPI.
Installing WebIOPI the "hard way"
If you don't have python setup tools, first go to the project page of WebIOPI and download the latest version of the software:
On the download directory execute the following command:
Change to the extracted directory:
And install it as root:
The next thing to do is run WebIOPi, that's really easy... Just run the following command:
If you want to run it on background just put an "&" at the end of the command, like this:
The next step is download to your Android device the application DRGPIO, you can find it on the playstore with that name or clicking in the following link: