- Arduino UNO board
- Android device (Android 3.2+)
- USB host cable (micro B plug - standard A receptacle)
- USB 2.0 cable (standard A plug - standard B plug)
- Full color LED (common anode), Register (1 kOhm) x 3, Bread board, Jumper wires
- (+5V AC adapter)
- Install 'Android Studio (v0.3.6 or later)'
- Place usb-serial-for-android library in Android/UsbSerialLibrary/src/main/java directory (see. Android/UsbSerialLibrary/src/main/java/NOTE.txt)
- Import Android project (Android/)
- Build & Run
- Install 'Arduino IDE (v1.0.5 or later)'
- Open Arduino project (Arduino/FullColorLED)
- Build & Upload to target
Make the following curcuit on bread boead.
- LED (Anode): +5V
- LED (RED) -> Register -> DIGITAL ~9
- LED (GREEN) -> Register -> DIGITAL ~10
- LED (BLUE) -> Register -> DIGITAL ~11
Connect Android device and Arduino board with USB cables.
- {Android} - {USB host cable} - {USB standard cable} - {Arduino UNO}
"[command] [parameter]\n"
- "R brightness(0-255)"
- ex.) "R 100"
- "G brightness(0-255)"
- ex.) "G 100"
- "B brightness(0-255)"
- ex.) "B 100"
- usb-serial-for-android