Android embedded app that controls an Arduino rover powered by MC33926 motor shield using the ADK2012. The first prototype has been developed using the UDOO Quad prototyping board.
- ADK toolkit (Gradle/Maven Android library)
- External Django service that simplifies Twitter access
- Arduino sketch for rover control
Compatible rovers can be controlled using the following approaches:
- GUI manual mode: through a directional PAD and a
SeekBar
that controls DC motors power - Myo manual mode: the rover could be controlled using a Myo armband
- Twitter mode: reading the @DroidRover mentions, that are turned in Arduino commands
SeekBar
lower and upper bounds [0, 400] are not meant to be used as a "damage protection system".
The Arduino sketch realizes the motor protection according to MC33926 motor shield specs.
The application searches and parses DroidRover's mentions into a valid JSON extracting the whole text.
Using the commandBuilder
method available in the arduino
package, the app creates a valid
Arduino command that is sent via the AOA protocol.
You can enable and disable this behavior clicking the Enable twitter commands
button.
Tweets fetching isn't enabled by default.
The options menu provides the Myo pairing
action that opens the built-in ScanActivity
to
connect the armband. After the connection is established, use the traditional gestures to control
the rover (WAVE_IN
, WAVE_OUT
, FIST
, FINGERS_SPREAD
).
- Project skeleton updated for Gradle 2.2.1 and Android Studio >=1.0.0
- ADK Toolkit updated to version 0.3.0
- Created the
Rover
class to manage the controlled robot - Code style refactoring
- Added Myo control
- Updated the ADK Toolkit to 0.2.0
- Updates Gradle plugin
- Includes the ADK Toolkit library
- Removed Twitter endpoint and OAuth2 flow
- Tweets fetch is done using an external customized endpoint which caches mentions using Twitter Streaming API
- Rover direction controller on main Activity
- Twitter OAuth2 flow implemented to gather the Bearer token
- Tweets fetching is done using the
/search/
endpoint - Twitter commands are trasformed into valid Arduino commands and then sent through the serial port
- Application code: FreeBSD (see
LICENSE
file) - UDOO logo: Copyright 2013 SECO USA Inc