I'm a bit of a newbie when it comes to building in new libraries for the Arduino.
Could you point me to anything on how to integrate the required software for the USB shield ?
USB hubs have been supported for quite some time so it is possible to plug both your sensor and Android phone to the shield via a hub. Android phone (ADK) is supported in he code; it is also possible to connect a phone via Bluetooth using cheap BT dongle. Check this category for more info -> https://www.circuitsathome.com/category/mcu/arduino/usb-shield
Can you point me to any basic sketch example - I have the USB shield plugged into my Arduino as shown in the first figure. A sensor is plugged into the USB port from the shield - how do I address the USB port on the shield ?
I dropped the USB_Host_Shield libraries into my arduino\libraries directory (...\arduino-1.0.1-windows\arduino-1.0.1\libraries\USB_Host_Shield).
The Arduino board you're using is Mega ADK, you can't use this shield with it. The board has USB host built in and I heard it's possible to use it with my code. Check the USB Host 2.0 forks on gitHub.
Right, I'm using USB Host Shield with Arduino Uno. I'm very new with Arduino - please forgive me in advance for silly questions.
The shield is connected and red power LED is ON.
When I plug in a USB device, e.g. IPOD or USB memory stick nothing happens. I connected a 9 V external power supply - still nothing happens when USB devices are connected.
I installed the USB Host Shield 2.0 library and tried to compile example USB_desc.pde. I get error compiling with the following,
In file included from /data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:18:0:
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:109:22: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:109:42: error: ISO C++ forbids declaration of 'parameter' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:115:24: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.h:115:44: error: ISO C++ forbids declaration of 'parameter' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:725:23: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:725:44: error: ISO C++ forbids declaration of 'ifsh' with no type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:762:25: error: '__FlashStringHelper' does not name a type
/data/tinkering/Arduino/sketchbook/libraries/USB_Host_Shield/SPP.cpp:762:46: error: ISO C++ forbids declaration of 'ifsh' with no type
I am attaching my ~/.arduino/preferences.txt What else can I do?
I suceeded to query a usb device using [install dir]/sketchbook/libraries/USB_Host_Shield/examples/USB_desc/USB_desc.pde
and query a USB hub and attached devices using [install dir]/sketchbook/libraries/USB_Host_Shield/examples/hub_demo/hub_demo.pde
The typical workflow is: verify sketch --> upload sketch --> open serial monitor --> attach USB device --> (it sends device data)
Probably this is obvious, but it wasn't when I was starting out.
Hi, I am trying to connect a Arduino to a Android mobile app using a USB Host shield.
I am using a Arduino Uno and a Sparkfun Host Shield.
This setup is working:
When I processess the usb_des sketch example in Arduino I got this printout:
####################
Start
01
Device descriptor:
Descriptor Length: 12
Descriptor type: 01
USB version: 0200
Device class: 00
Device Subclass: 00
Device Protocol: 00
Max.packet size: 40
Vendor ID: 0FCE
Product ID: 5167
Revision ID: 0226
Mfg.string index: 01
Prod.string index: 02
Serial number index: 03
Number of conf.: 01
I have problems connecting to the Android phone.
I have downloaded the ArduinoTerminalSrc into the Eclipse with Android SDK installed but I get compiling errors in Eclipse....