Serpent Kivy Controller
This is a quick project to build a serpent controller using the Nexus 10 tablet. Kivy was chosen as a platform because it is device independent, and yields rapid results, however it has shortcomings in that it can be a slow driver for the Serpent. In the future an approach which makes use of the BeagleBoard or is written in java may be a better fit.
To install on any computer, follow the Kivy installation
instructions. Then run the
You will need to install mercurial in the virtual machine, and clone the code into the home directory.
$ sudo apt-get install mercurial $ hg clone https://bitbucket.org/devries/serpent-kivy
Next you will need to create a build environment:
$ cd ~/android/python-for-android $ ./distribute.sh -m "openssl pil kivy"
Then create the apk from within the build environment:
$ cd dist/default $ ./build.py --package com.idolstarastronomer.serpent --name serpent \ --version 0.2 --dir ~/serpent-kivy --permission INTERNET debug
The apk is now in the
bin subdirectory with the name
serpent-0.2-debug.apk. You can install this into an android device using the
$ adb install bin/serpent-0.2-debug.apk
Alternative Android Installation
You can avoid the build process, by installing the Kivy Android
Launcher from the play
store. Then you will have to copy the source directory to
the android device.
I have not yet tested this method.