Pages: [1]   Go Down
Author Topic: USB Host Shield  (Read 2159 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will be very thankful if you can help me out.
I own Arduino Leonardo.
I attached the usb host shield (https://www.sparkfun.com/products/9628) to the Leonardo.

I changed the QC code so it will start to transmit only if the serial is ready:
 Serial.begin( 115200 );
  while (!Serial) ;

I got the following message:

Circuits At Home 2011
USB Host Shield Quality Control Routine
Reading REVISION register... Die revision invalid. Value returned: FF
Unrecoverable error - test halted!!
0x55 pattern is transmitted via SPI
Press RESET to restart test


the board is turned on, led is on.
first time trying arduino.
I have lot of experience with AVR mcu's.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 548
Posts: 27386
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Try this instead if you want to sit in one place waiting for a byte to come in:
Code:
while (Serial.available() == 0) ;
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the tip smiley

I try the link between D7 and RST and no success.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5255
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

@CrossRoads: The

Code:
while (!Serial);

is for the Leonardo and wait for the USB code to register and come up (having the USB serial device ready), not waiting for a character to arrive.


@OP: This shield does not work with the Leonardo because the Leonardo doesn't have the SPI lines on pin 10, 11, 12 and 13 but only on the ICSP header. You can try to modify the shield to change that.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks folks. I wasted a few hours this afternoon with the same problem. I guess our only option would be to cut out the legs connecting 10,11,12,13 between the boards and jumpering the SPI lines from the Leonardo? That's kinda awkward....

I wish there was more information about compatibility - I would have bought a different Arduino.

Appreciate any other suggestions.
Logged

Mumbai IN
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

TransmogriShield
https://www.sparkfun.com/products/11469

Quote
the TransmogriShield will transform your beloved classic shields into Leonardo-compatible shields
Logged

Arduino Newbie

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks. I looked at their drawing (Transmog-Shield-v01.pdf), and rather than ordering one I decided to make the mod myself.

I cut the legs off D11, D12, D13 on my header to the USB Host Shield and jumpered in from the ISP header SCK (ISP pin 3 to D13), MOSI (ISP pin 4 to D11), MISO (ISP pin 5 to D12).

It works perfectly now. I appreciate you pointing me to this.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi all, for those who still don't get it to work properly I have written a tiny guide on how to get the Sparkfun USB Host shield to work with Leonardo (attached here) that might clarify some things, this setup worked out well for me

* sparkfun-usb-host-shield-hack.pdf (1260.29 KB - downloaded 160 times.)
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

is it possible to read/write to a pendrive using the leonardo and a usb host shield with the connections mentioned above?? if yes den how should i proceed with it??
Logged

Pages: [1]   Go Up
Jump to: