最終更新:2013-02-18 (月) 05:44:07 (4449d)
IOIO
Top / IOIO
pronounced "yo-yo"
ADKより前に作られたAndroidのハードウェアアクセサリのキット
http://ytai-mer.blogspot.com/2011/04/meet-ioio-io-for-android.html
概要
- Javaで制御
- Android機器の改造は必要ない
- Android 1.5以降に対応
- Android端末とつなぐときはIOIOがUSBホストになるっぽい
- USBかBluetoothで接続
- そのままだと電源さえつなぐことが出来ない (ハンダ付けが必要)
ドキュメント
Wiki
Bluetooth接続
IOIO for Android Beginners Guide
ダウンロード
Android Software and IOIO Application Firmware Images
IOIO/開発
ツール
IOIOManager?
Main features:
- 48 total I/O pins - all of which can function as digital inputs and outputs.
- Up to 16 analog inputs (10-bit).
- Up to 9 PWM outputs.
- Up to 4 UART channels.
- Up to 3 SPI channels.
- Up to 3 TWI (I2C-compatible) channels.
- On-board switch-mode regulator providing up to 1.5A of 5V supply. Can charge the Android device as well as power a couple of small motors.
- Bootloader on the board pulls firmware off phone, enabling OTA firmware upgrades and application-specific firmware.
- Pulse-width measurement, capacitance sensing and more (will be pushed with first OTA firmware upgrade).
サンプルコード
ioio.waitForConnect(); AnalogInput input = ioio.openAnalogInput(40); PwmOutput pwmOutput = ioio.openPwmOutput(12, 100); // 100Hz while (true) { float reading = input.read(); pwmOutput.setPulseWidth(1000 + Math.round(1000 * reading)); sleep(10); }
通販
スイッチサイエンス
SparkFun
メモ
Android 4.1.2
- USBデバッグを有効にしているとUSBアクセサリを認識しない
- だとUSBデバッグを解除するとADBも解除
Android 4.2.1?
- Android端末とIOIOをUSBをつないだ状態でUSBデバッグ(ADB)を有効にできた
Android 4.2.2
- ダメだった。