RoboAnt: Remote Control
Follow up to RoboAnt: Build your own Android robot
It’s vital we can control our soon-to-be autonomous robot! Fortunately, that’s really easy with the code provided on https://github.com/d3kod/roboant . Here’s how…
Android
Get the app from Play Store or get the source from RoboantAndroid.
If you choose to compile it from source you will also need OpenCV For Android and usb-serial-for-android.
Arduino
Flash sketch from RoboantArduino on your Arduino. When powered up the LED should blink slowly.
Server
The server is written using Python and Twisted framework. It uses pygame for visualization. To install it simply do:
pip install roboant_server
or
easy_install roboant_server
This will also make sure you have the two dependencies, twisted and pygame. To launch the server:
roboant-server
And you should see a similar screen:
The QR code represents your IP and port address. Using the Roboant Android app, you can quickly scan the code and connect to the server, saving you from typing the IP address manually.
Usage
Turn on the Zumo Robot, plug everything in and start the app on your Android device. Optionally, connect any usb joystick to your laptop. Then, start the server:
roboant-server
You can control the robot with either the arrow keys or (much easier) with a joystick. Congratulations, you have set up remote control!
If you encounter any problems or comments, please email me on akodzhabashev AT gmail DOT com
Next: Roboant: Autonomous