Go Down

Topic: Arduino Mega 2560 + Sparkfun USB HostShield + Oleg's Code (Read 868 times) previous topic - next topic



I have a couple of things I had ask to about the integration of my USB Barcode Scanner to the Arduino.

This is what I have done so far:
1. Placed my Sparkfun USB Hostshield onto my Mega
2. Jumpered RST to D7
3. Changed the following in Usb.h

// typedef MAX3421e<P10, P9>            MAX3421E;               // Official Arduinos (UNO, Duemilanove, Mega, 2560  <<--- Modified line
typedef MAX3421e<P53, P9>              MAX3421E;               // Official Arduinos (UNO, Duemilanove, Mega, 2560

However, I still end up with the following result when I run it:

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

I really do not what else needs to be done.

Any help will be appreciated :)


Which version of Sparkfun's USB Host Shield are you using and which version of Oleg's library you are using?

Check out my post, which explains the different configurations - http://hardwarefun.com/tutorials/using-usb-host-shield-with-arduino

Also did you try it Arduino Uno instead of Mega?
Checkout some of my Arduino projects and tutorials

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131