Introduction: Use Android Phones Light Lamp Via IOIO-OTG
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: 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: 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: Step 3: Experimental Phenomena
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:
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: 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.
Support Mail: email@example.com