Android + IOIO + Simple Digital Input

  

Simplest possible digital input with Android and IOIO. This article will discuss the bare minimal requirements for development of an Android USB (or Bluetooth) digital input device.

The goal is to demonstrate the easiest possible use of the technology. For additional background information on Android development, IOIO, and electronics, check out these links:

Meet IOIO
IOIO for Android Beginners Guide
IOIO Wiki
Android Developer’s Guide

 

Hardware

Parts needed:

  • Android Device (1.6+, 2.1 for Bluetooth)
  • IOIO (available at Sparkfun)
  • 2x Push button
  • Breadboard
  • Power supply
  • Hook-up wire

 

Assembly

Connect one side of each button to ground and the other side to the digital input pins. The example uses pins 34 and 35 but can be used with any IO pin (all IOIO pins are GPIO pins). Here is a diagram of the completed circuit (created with Fritzing):

 

Software

Get the source

With the circuit assembled, the next step is to get the demo application on the Android device. You can either download the pre-built .apk or checkout the source from Github:

git clone git://github.com/mitchtech/android_ioio_simple_digital_input.git

If you are building from source, you will also need to import the IOIO Library project, and optionally the IOIO Bluetooth library projects, both available here:

git clone git://github.com/ytai/ioio.git

 

Install, connect, profit!

Finally, upload the app to the Android device (or browse to this page on the device and download the apk above). Connect the device to the IOIO, and start up the app.

 

0 Comments

Trackbacks/Pingbacks

  1. Serval Herbert Lives! - [...] should also be noted that this post was very helpful in bridging the gap in terms of documentation for …
  2. Serval Herbert Lives! | The Serval Project - [...] should also be noted that this post was very helpful in bridging the gap in terms of documentation for …
  3. Android + IOIO + Laser Tripwire | MitchTech - [...] + IOIO + Simple Digital Output Android + IOIO + Simple Digital Input Android + IOIO + Simple Analog …
  4. Android + IOIO + Sensor Graph | MitchTech - [...] + IOIO + Simple Digital Output Android + IOIO + Simple Digital Input Android + IOIO + Simple Analog …
  5. Android + IOIO + Breathalyzer | MitchTech - [...] + IOIO + Simple Digital Output Android + IOIO + Simple Digital Input Android + IOIO + Simple Analog …
  6. Android + IOIO + Temperature + Light | MitchTech - [...] + IOIO + Simple Digital Output Android + IOIO + Simple Digital Input Android + IOIO + Simple Analog …

Leave a Reply