Today, we will share
with you how to develop your first Android IOIO app. This tutorial is
very simple as we will show you how to use your Samsung Galaxy S3 to
control the IOIO for Android board build in LED. The objective of this
tutorial is show you how to setup eclipse and Android SDK setting to
compile the program to develop Android application (.Apk) for the
Android IOIO board.
Previous tutorial,
we have discussed lot of the Android IOIO board hardware setup
tutorial. So, make sure that you already know all the pin IO for the
IOIO board, especially the voltage input and output. So, the pin Vin is
Voltage input pin, the voltage range is from 5v-12v.Here, the power
source we are using is 12v, 1mA. Please take note that the 3.3v and 5v
is voltage output pin, so don’t connect the power in to both of this
pin. After, you have setup the Android IOIO Board, now you need to setup
Android compile software on your PC.
The free software you need is the Eclipse and Android SDK, you can download and follow the tutorial here (Link) how to setup this software into your PC.
For better
performance, we are recommend that your PC at least powered by Intel
core i5 processor. Then here is the tutorial how to build your first App
for Android IOIO:
Step1: Download the sample Android IOIO software “App-IOIO0326.zip” from here (Link). The unzip this folder”App-IOIO0326.zip” to your PC.
Step 2: Open Eclipse, then goto File > Import, and select Existing Projects Into Workspace. Then click Next.
Step 3: Setting Menu
will Pop Up. Select ‘Select Root Directory’ and navigate to the file
you just unzipped and point to the HelloIOIO folder found in
/applications/HelloIOIO. Be sure the check box is selected for your
project. Now click Finish.
Step 4: You has
success setup HelloIOIO in your project. Now you need link this project
to the IOIO library and IOIO Bluetooth Library.
Step 5: Open Eclipse, then goto File > Import, and select Existing Projects Into Workspace.
Then click Next. Setting Menu will Pop Up. Select ‘Select Root
Directory’ and navigate to the file you just unzipped and point to the
IOIOLib file. Now click Finish.
Step 6: You should now have IOIOLib file. in your project explorer in Eclipse.
Step 7: Open Eclipse, then goto File > Import, and select Existing Projects Into Workspace.
Then click Next. Setting Menu will Pop Up. Select ‘Select Root
Directory’ and navigate to the file you just unzipped and point to the
IOIOLibBT file. Now click Finish.
Step 8: You should now have IOIOLibBT. in your project explorer in Eclipse.
Step 9: Now, you have HelloIOIO, IOIOLib and IOIOLibBT in your project explorer in Eclipse.
Setup 11: The
Properties Menu will prompt up, make sure the ‘Project Build Target’ is
properly selected according to the specific Android OS you are using.
Step 12: The
compiler software setting is complete, now you can test run this
application on your PC, RUN As> Android Application.
Step 13: OK, now we
want to install this application into Samsung Galaxy S3 to communicate
to the Android IOIO board. Go to Android IOIO
>Applications>HelloIOIO> Bin, and the Copy
“ioio.examples.hello.MainActivity.apk” into your Galaxy S3.
Step 14: On you
Galaxy S3, go to settings>Developer options to enable the USB
Debugging Mode (to allow your Galaxy S3 to Android IOIO board). You also
need Settings>Security, to enable Unknown Sources (to allow install
ioio.examples.hello.MainActivity.apk).
Step 15: Install ioio.examples.hello.MainActivity.apk on your Galaxy S3.
Step 16: Connect your Galaxy S3 to the Android IOIO Board via USB Cable.
Step 17: Now, adjust
the Android IOIO Board “chg” potentiometer until Galaxy S3 show that
USB debugging is connected in the notification bar.
That all!. You can click the application Button to On and Off the Android IOIO Board LED.
Source: sparkfun.com
Wow! what a fantastic app. Truly amazing stuff.
ReplyDeleteYou won't believe your eyes!
Look into my web-site ... active dancer