Ks0155 keyestudio USB Host v1.5 shield: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==keyestudio USB Host V1.5 Shield==
[[image:ks0155.png|thumb|600px|right|Keyestudio USB Host v1.5 shield]]
<br>[[File:ks0155.png|500px|frameless|thumb]]<br>


==Introduction==
==Introduction==
keyestudio USB Host v1.5 shield is an add-on board for Arduino USB Host. Directly plug it to Arduino board and it will allow Arduino to have USB Host function. Arduino with host function can communicate with USB devices, such as USB flash disk, keyboards, mice, joysticks, digital cameras.
keyestudio USB Host shield V1.5 is an add-on board for Arduino USB Host. Directly plug it to Arduino board and it will allow Arduino to have USB Host function. Arduino with host function can communicate with USB devices, such as USB flash disk, keyboards, mouse, joysticks, digital cameras. <br>
Among these functions, the most attractive one is supporting the connection of android phones to achieve Google ADK function. It enables your phone as a control terminal to control your robot or other devices. Meanwhile, it can display the collected data on your mobile terminal. <br>
Among these functions, the most attractive one is supporting the connection of android phones to realize Google ADK function. <br>
It enables your phone as a control terminal to control your robot or other devices. Meanwhile, it can display the collected data on your mobile terminal. <br>
 
<br>
==Specification==
* Supporting the Google Android ADK function
* Compatible with UNO R3 and MEGA 2560 control board.
* Supporting the Android system, provided with APP test ( at most Android 4.0.3 version)
* Comes with a reset button
* Realizing the USB Host function, enable to communicate with other USB devices and support the USB HUB function.
* Onbaord comes with double-sided through-hole pad, welding the electronic elements and setting the prototype circuit.
<br>[[File:KS0155 (3).jpg|500px|frameless|thumb]]<br>
<br>[[File:KS0155 (3).jpg|500px|frameless|thumb]]<br>


==Specification==
<br>
* Support Google Android ADK function, support Android phone: G1, Nexus One, Nexus S, Motorola Droid X 
==Technical Details==
* Phone system needs upgrading to Android 2.3.4, Tablet PC needs to upgrade to Android 3.1
* Dimensions: 58mm x 57mm x 17mm
* Provide ready-to-use APK installation package and ADK source file
* Weight: 18g
* Compatible with following Arduino hardware:
<br>[[File:KS0155 Detail.png|500px|frameless|thumb]]<br>
  Arduino Uno 328
 
  Arduino Diecimila/Duemilanove 328
<br>
  Arduino Mega 2560 (recommended)
==PINOUT==
  Arduino Mega 1280
<br>[[File:KS0155 pinout.jpg|500px|frameless|thumb]]<br>
* Realizing Arduino USB HOST function, enable your Arduino to communicate with other USB devices, and supports USB HUB function.
 
<br>
==Test Code==
Below is an example code.
[https://drive.google.com/open?id=1ARXS7q2lhEiykEva24em_GLnkHdzrxl5 Click here] to download the libraries.<br>
[https://drive.google.com/open?id=18tH6hN7nRiHDJhyvDp0uGLGBJ0GqvmDB Click here] to download the code <br>
Or you can directly copy and paste the code below to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE].
<pre>
#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>
#define LED 9
AndroidAccessory acc("Google, Inc.",
"DemoKit",
"DemoKit Arduino Board",
"1.0",
"http://www.android.com",
"0000000012345678");
void setup()
{
Serial.begin(115200);
Serial.print("\r\nStart");
acc.powerOn();
pinMode(LED, OUTPUT);
digitalWrite(LED, 0);
}
void loop()
{
byte msg[3];
if (acc.isConnected()) {
Serial.print("Accessory connected. ");
int len = acc.read(msg, sizeof(msg), 1);
Serial.print("Message length: ");
Serial.println(len, DEC);
if (len > 0) {
// assumes only one command per packet
if (msg[0] == 0x2) {
if (msg[1] == 0x0)
analogWrite(LED, msg[2]);
}
}
}
delay(100);
}
</pre>
<br>
<span style="color: red">'''Code to Note:'''</span>  <br>
'''1.'''Before compile the code, do remember to add the necessary libraries inside the libraries directory of Arduino IDE.<br>
Download the libraries from below link:<br>
https://drive.google.com/open?id=1ARXS7q2lhEiykEva24em_GLnkHdzrxl5<br>
'''2.'''The test code is only compatible for lower Arduino 1.0 version IDE.
 
<br>
==Example Use==
Install the [https://drive.google.com/open?id=14-jybsiV2DvRa3cxdCdfRdHZWf9HoN-7 DemoKit APP] on your Android phone( at most Android 4.0.3 version).
[[File:KS0155 APP.png|500px|frameless|thumb]]<br>
 
Stack the shield onto UNO R3 board and upload the code, connect an external LED. Then connect the shield to your phone using a micro USB cable.
<br>[[File:KS0155 Resul.png|500px|frameless|thumb]]<br>
 
Powered on, click the icon of DemoKit to enter the input interface, then click Out to enter the output interface. <br>
When slide the Led1, the display data will be changed in the range of 0-255. The greater the value is, the brighter the external LED is. 
<br>[[File:KS0155 APP 1.png|500px|frameless|thumb]] [[File:KS0155 APP 2.png|500px|frameless|thumb]]  [[File:KS0155 APP 3.png|500px|frameless|thumb]]


<br>
==Resources ==
==Resources ==


'''PDF'''
'''PDF'''<br>
 
https://drive.google.com/open?id=1-GM0K2BQAD2f9z9ObhU4ZjiYi24914Ud
https://drive.google.com/open?id=1-GM0K2BQAD2f9z9ObhU4ZjiYi24914Ud


<br>
==Get One Now ==
==Get One Now ==
'''Official Website'''
'''Official Website'''<br>
 
http://www.keyestudio.com/keyestudio-usb-host-v1-5-shield-for-arduino.html
http://www.keyestudio.com/keyestudio-usb-host-v1-5-shield-for-arduino.html


'''Amazon'''
'''Amazon'''<br>
https://www.amazon.com/Keyestudio-Host-shield-Arduino-Mega2560-Uno-R3/dp/B01E5KTFXS/ref=sr_1_1?ie=UTF8&qid=1479111012&sr=8-1&keywords=Keyestudio+USB+Host+V1.5+Shield+for+Arduino


https://www.amazon.com/Keyestudio-Host-shield-Arduino-Mega2560-Uno-R3/dp/B01E5KTFXS/ref=sr_1_1?ie=UTF8&qid=1479111012&sr=8-1&keywords=Keyestudio+USB+Host+V1.5+Shield+for+Arduino


[[Category: Shield]]
[[Category: Shield]]

Revision as of 13:43, 27 September 2018

Keyestudio USB Host v1.5 shield

Introduction

keyestudio USB Host shield V1.5 is an add-on board for Arduino USB Host. Directly plug it to Arduino board and it will allow Arduino to have USB Host function. Arduino with host function can communicate with USB devices, such as USB flash disk, keyboards, mouse, joysticks, digital cameras.
Among these functions, the most attractive one is supporting the connection of android phones to realize Google ADK function.
It enables your phone as a control terminal to control your robot or other devices. Meanwhile, it can display the collected data on your mobile terminal.


Specification

  • Supporting the Google Android ADK function
  • Compatible with UNO R3 and MEGA 2560 control board.
  • Supporting the Android system, provided with APP test ( at most Android 4.0.3 version)
  • Comes with a reset button
  • Realizing the USB Host function, enable to communicate with other USB devices and support the USB HUB function.
  • Onbaord comes with double-sided through-hole pad, welding the electronic elements and setting the prototype circuit.


thumb


Technical Details

  • Dimensions: 58mm x 57mm x 17mm
  • Weight: 18g


thumb


PINOUT


thumb


Test Code

Below is an example code. Click here to download the libraries.
Click here to download the code
Or you can directly copy and paste the code below to Arduino IDE.

#include <Max3421e.h>
#include <Usb.h>
#include <AndroidAccessory.h>
#define LED 9
AndroidAccessory acc("Google, Inc.",
"DemoKit",
"DemoKit Arduino Board",
"1.0",
"http://www.android.com",
"0000000012345678");
void setup()
{
Serial.begin(115200);
Serial.print("\r\nStart");
acc.powerOn();
pinMode(LED, OUTPUT);
digitalWrite(LED, 0);
}
void loop()
{
byte msg[3];
if (acc.isConnected()) {
Serial.print("Accessory connected. ");
int len = acc.read(msg, sizeof(msg), 1);
Serial.print("Message length: ");
Serial.println(len, DEC);
if (len > 0) {
// assumes only one command per packet
if (msg[0] == 0x2) {
if (msg[1] == 0x0)
analogWrite(LED, msg[2]);
}
}
}
delay(100);
}


Code to Note:
1.Before compile the code, do remember to add the necessary libraries inside the libraries directory of Arduino IDE.
Download the libraries from below link:
https://drive.google.com/open?id=1ARXS7q2lhEiykEva24em_GLnkHdzrxl5
2.The test code is only compatible for lower Arduino 1.0 version IDE.


Example Use

Install the DemoKit APP on your Android phone( at most Android 4.0.3 version). thumb

Stack the shield onto UNO R3 board and upload the code, connect an external LED. Then connect the shield to your phone using a micro USB cable.
thumb

Powered on, click the icon of DemoKit to enter the input interface, then click Out to enter the output interface.
When slide the Led1, the display data will be changed in the range of 0-255. The greater the value is, the brighter the external LED is.
thumb thumb thumb


Resources

PDF
https://drive.google.com/open?id=1-GM0K2BQAD2f9z9ObhU4ZjiYi24914Ud


Get One Now

Official Website
http://www.keyestudio.com/keyestudio-usb-host-v1-5-shield-for-arduino.html

Amazon
https://www.amazon.com/Keyestudio-Host-shield-Arduino-Mega2560-Uno-R3/dp/B01E5KTFXS/ref=sr_1_1?ie=UTF8&qid=1479111012&sr=8-1&keywords=Keyestudio+USB+Host+V1.5+Shield+for+Arduino