USB Host Expansion Shield for Arduino Development Boards

Allows USB connection to your Arduino project

SKU: TA0077


$27.45
RRP $49.95
In Stock

Buy In Bulk & Save!
Buy 4 to 10: Pay $26.07 ea
Buy 11 to 20: Pay $24.77 ea
Buy 21 to 100: Pay $23.53 ea




Calculate Shipping

USB Host Expansion Shield for Arduino Development Boards

Allows USB connection to your Arduino project

This shield allows you to interface your Arduno projects to a computer, storage devices and other input devices via USB connection. It even supports Google Android ADK allowing connections to Smartphones and tablets. The USB port can also be used with a USB hub.

•    Supports HID devices: keyboards, mice, joysticks, etc.
•    Mass storage devices: USB sticks, memory card readers, external hard drives, etc.
•    Dimensions: 55(W) x 54(D) x 23(H)mm

 

Library Code:

#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);
}

3 Month Warranty

SKU TA0077
Barcode # 9351634003105
Brand iDuino
Shipping Weight 0.0700kg
Shipping Width 0.140m
Shipping Height 0.020m
Shipping Length 0.090m
Shipping Cubic 0.000252000m3
Unit Of Measure ea

Usb host

By: on 25 April 2018
Awsome product, not hard to use (dozens of online tutorials and examples for using this item)
(5)

Write a product review

Others Also Bought

More From This Category