I just got a USB host shield board from Sparkfun electronics. I require help for the below mentioned
1. What connection I need to have from Arduino to USB host shield. I need to connect the SPI pins to the corresponding numbering on the USB Host shield ? Can anyone provide me help in knowing the connection which i need to make.
2. I need a test code to check whether the USB Host is working
1. All the connections are there. That's the point of a shield. The issue is rather that Sparkfun changed some (but not all!) pin configurations when they apparently copied Oleg's design. Look up Olegs web site for the current host shield library
. I have seen the instructions there re: changing pins for the sparkfun shield (it's one of the XXX.h files)... one more reason to buy the shield from the gentleman that enables it rather than a competitor.
Olegs board also features far more opportunities to re-map pins (if needed) and change other aspects of its behavior than the Sparkfun board (via solder bridges, solder pads that can be cut, etc). The Circuits @ Home USB Shield has clearly been thoroughly researched by someone who cares and who realizes that shield pins may need to be remapped if other shields are also in use. See shieldlist.org for a graphic example of how often the same pins are used over and over, making combinations of shields incompatible.
The only advantage that the Sparkfun board has is its little prototyping area and the PTC fuse. I find the former to be of marginal use but the latter is a neat feature. No documentation on how many mA trigger the PTC though. Anyhow, I got my board from Oleg yesterday, now I await my USB modem.
2. Test code is included in the library. So you should be all set once you have remapped the two non-SPI pins to reflect