loading
Linksprite has relatively new product called IOIO-OTG, it can be used on Android, it is equal to provide the IO port for Android phone, and we can control the external devices through mobile phone. Since the processor of the phone is relatively strong, we can achieve the complex function through the Android application. It will be a very unusual equipment for Android if the Android programmers have IOIO-OTG

Step 1: Part List

1 x Android phone, the Android system version 1.5 or more, I’m using version 4.1.2

1  x 5V 1A  power , because I do not have 5V1A power, I use a “5V” Arduino UNO pin provides power for the IOIO-OTG.

1 x  IOIO-OTG

2 x  data lines, one is for slave USB cable and one is a host device MicroUSB cable, the details shown below:

USB host cable:
USB slave cable
Complete connection circuit

Step 2: The Software

First thing to note is that this experiment is confirmation experiment,  the software used on the phone is provided by IOIO-OTG official, please click the link below to download HelloIOIO.

Download the complete contents of the venue and jump toJumper

Testing Android application program , use the mobile phone as the next crew, IOIO-OTG as a PC,  this is that we connect the USB to the mobile phone with the slave device cable, and connect the USB  to IOIO-OTG with the host device cable. As the figure below:

Step 3: Procedure

After you finish the wiring, you need to open the “Debug module” in “ Set up”, and then

adjust the potentiometer on IOIO-OTG, as figure:

Adjust the potentiometer to mobile phone show “ Connected debug module”(at this time the mobile phone prompt charging ), open the app program “HelloIOIO”, as figure”

Enter the app program and you will see one key, and its state is closed, the yellow LED on IOIO-OIG is out. Click the app program key, the key state will change to “open”, at this time the LED on IOIO-OTG is bright, as figure:

Repeat click the key, you can control the light on or out of the LED on IOIO-OTG.

Step 4: Notice

There are two difficult place in this experiment: One is the understanding of this experiment that we use the IOIO-OTG as the host device and the Android phone as slave device and the wiring rule between them; the second, after we connect the wiring well, we need to adjust the potentiometer on IOIO-OTG  slowly to ensure the Android phone will enter the debug module.
The post links:http://learn.linksprite.com/android/use-android-phones-light-lamp-via-ioio-otg/

About This Instructable

4,848views

14favorites

License:

More by Yanny Guo:Use pcDuino as Photo Booth Controller Use Si4703 FM Breakout Board on Arduino Uno Use SIM900 GPRS/GSM Shield on pcDuino 
Add instructable to: