Has somebody gotten the Gravitech USB Host boards to work?
The Sparkfun / Circuits at home board use:
SS: D10 / PB2
MOSI: D11 / PB3
MISO: D12 / PB4
SCK: D13 /PB5
The Gravitech Host Shield uses:
SS: D8 / PB0
MOSI: D11 / PB3
MISO: D12 / PB4
SCK: D13 /PB5
I have downloaded this library:
and in the "My Documents\Arduino\libraries\USB_Host_Shield_Library_2.0" folder
changed usbhost.h
//template< typename SPI_CLK, typename SPI_MOSI, typename SPI_MISO, typename SPI_SS > class SPi {
/* SPI pin definitions. see avrpins.h */
#if defined (gravitechUSBHost)
//typedef SPi< Pb5, Pb3, Pb4, Pb2 > spi; //stock arduino nano
//typedef SPi< P13, P11, P12, P8 > spi; //first guess
typedef SPi< Pb5, Pb3, Pb4, Pb0 > spi; //second guess
#warning "using gravitechUSBHost"
#elif defined(AVR_ATmega1280) || (AVR_ATmega2560) || defined(AVR_ATmega32U4) || defined(AVR_AT90USB646) || defined(AVR_AT90USB1286)
typedef SPi< Pb1, Pb2, Pb3, Pb0 > spi;
Now the first lines of the sketch have to start like this:
#define gravitechUSBHost
#include <usbhub.h>
but the examples don't seem to work.
I am almost considering putting the Arduino Nano and the Gravitech Host on a breadboard and use jumpers to connect all the pins except D10 on the Nano, which will be connected to D8 on the Gravitech board
Anybody has made any other progress than this?