User Tools

Site Tools


2011:arduino_usb_host_shield_20110822

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
2011:arduino_usb_host_shield_20110822 [2011/08/21 10:34] tomgee2011:arduino_usb_host_shield_20110822 [2012/02/04 13:55] (current) tomgee
Line 3: Line 3:
  
 {{:2011:usb_host_ctrl_sparkfun.jpg|}}\\ {{:2011:usb_host_ctrl_sparkfun.jpg|}}\\
 +{{:2011:usb_host_shield_back.jpg|}}\\
 +
 ===== Sparkfun Forums for USB Host Shield ===== ===== Sparkfun Forums for USB Host Shield =====
  
Line 17: Line 19:
 Circuits At Home 2010 USB Host Shield QC test routine Circuits At Home 2010 USB Host Shield QC test routine
  
-   Press any key to continue…  +   Press any key to continue¦  
-   Reading REVISION register…+   Reading REVISION register¦
    Die revision invalid. Value returned: 00 Test FAILED! Test Halted.     Die revision invalid. Value returned: 00 Test FAILED! Test Halted. 
    0×55 pattern is being transmitted via SPI to aid in troubleshooting     0×55 pattern is being transmitted via SPI to aid in troubleshooting 
    Press RESET to restart test    Press RESET to restart test
  
-I’am using USB Host library downloaded with the name felis-USBHostShield-a59ba5b.zip.+I'using USB Host library downloaded with the name felis-USBHostShield-a59ba5b.zip.
  
 I tried to change MAXGPX and MAXRESET to #define MAXGPX 7 #define MAXRESET 8 but problem still persists. I use an ATMEGA 2560 linked to my PC and an external +9V power supply. (SPI pins are correctly connected according to atmega2560 specification) I tried to change MAXGPX and MAXRESET to #define MAXGPX 7 #define MAXRESET 8 but problem still persists. I use an ATMEGA 2560 linked to my PC and an external +9V power supply. (SPI pins are correctly connected according to atmega2560 specification)
Line 32: Line 34:
 I found the solution, just redefine the MAX_SS constant to 53 after that all tests passed ! I found the solution, just redefine the MAX_SS constant to 53 after that all tests passed !
  
-Here is a part of MAX3421e_constants.c: +Here is a part of MAX3421e_constants.c:\\
-if defined(AVR_ATmega1280) || (AVR_ATmega2560)+
  
-#define SCKPIN 52 #define MISOPIN 50 #define MOSIPIN 51 #define SSPIN 53 +if defined(AVR_ATmega1280) || (AVR_ATmega2560)\\ 
-endif if defined(AVR_ATmega168) || defined(AVR_ATmega328P)+#define SCKPIN 52 \\ 
 +#define MISOPIN 50 \\ 
 +#define MOSIPIN 51 \\ 
 +#define SSPIN 53\\ 
 +endif  
 + 
 +if defined(AVR_ATmega168) || defined(AVR_ATmega328P)\\ 
 +#define SCKPIN 13 \\ 
 +#define MISOPIN 12 \\ 
 +#define MOSIPIN 11 \\ 
 +#define SSPIN 10\\ 
 +endif \\ 
 + 
 +define MAX_SS 53 \\ 
 +define MAX_INT 9 \\ 
 +efine MAX_GPX 8 \\ 
 +define MAX_RESET 7\\
  
-#define SCKPIN 13 #define MISOPIN 12 #define MOSIPIN 11 #define SSPIN 10 
-endif define MAX_SS 53 define MAX_INT 9 define MAX_GPX 8 define MAX_RESET 7 
 Arduinology | June 25, 2011 at 1:39 AMComment Rating1 Arduinology | June 25, 2011 at 1:39 AMComment Rating1
  
Line 50: Line 65:
 Reaper1412 | July 5, 2011 at 6:36 PM *Comment Rating1 Reaper1412 | July 5, 2011 at 6:36 PM *Comment Rating1
  
-Yes you can Proof+Yes you can Proof\\
 pgrunwald | July 7, 2011 at 10:07 PMComment Rating1 pgrunwald | July 7, 2011 at 10:07 PMComment Rating1
  
Line 60: Line 75:
 Can this be used in conjunction with the Arduino Ethernet Shield? Can this be used in conjunction with the Arduino Ethernet Shield?
  
-I have a feeling that it won't work (well), because it uses pin 10 (which the ethernet shield uses as well) -- perhaps it would be modifiable?+I have a feeling that it won't work (well), because it uses pin 10 (which the ethernet shield uses as well) -- perhaps it would be modifiable?\\
 ITHelp | July 19, 2011 at 1:12 PMComment Rating1 ITHelp | July 19, 2011 at 1:12 PMComment Rating1
  
-Did you ever get this to work? We have a project that requires bot the Ethernet shield and USB shield on the same Arduino, and I'm about to take a knife to the USB shield.+Did you ever get this to work? We have a project that requires bot the Ethernet shield and USB shield on the same Arduino, and I'm about to take a knife to the USB shield.\\
 ITHelp | July 20, 2011 at 10:22 AM *Comment Rating1 ITHelp | July 20, 2011 at 10:22 AM *Comment Rating1
  
Line 74: Line 89:
 Hope this helps somebody out, and if SparkFun could do a revision of their board to include a solder jumper to change the SS pin that would be awesome. :-) Hope this helps somebody out, and if SparkFun could do a revision of their board to include a solder jumper to change the SS pin that would be awesome. :-)
  
-PS: SparkFun: Can you change that annoying underscores-make-things-italic bit?+PS: SparkFun: Can you change that annoying underscores-make-things-italic bit?\\
 Paradoxial | July 20, 2011 at 1:56 PMComment Rating1 Paradoxial | July 20, 2011 at 1:56 PMComment Rating1
  
-They should also get rid of the left and right triangle bracket deletion.+They should also get rid of the left and right triangle bracket deletion.\\
 MountainDude | July 11, 2011 at 10:07 PMComment Rating1 MountainDude | July 11, 2011 at 10:07 PMComment Rating1
  
-Will this play nice with the micro sd shield (http://www.sparkfun.com/products/9802) ?+Will this play nice with the micro sd shield (http://www.sparkfun.com/products/9802) ?\\
 Paradoxial | July 12, 2011 at 1:31 PMComment Rating1 Paradoxial | July 12, 2011 at 1:31 PMComment Rating1
  
-Unfortunately, it will not. There is a conflict on D8 between the MicroSd Shield's CS pin and the Usb Host Shield's GPX pin.+Unfortunately, it will not. There is a conflict on D8 between the MicroSd Shield's CS pin and the Usb Host Shield's GPX pin.\\
 wenjiun | July 22, 2011 at 8:11 AMComment Rating1 wenjiun | July 22, 2011 at 8:11 AMComment Rating1
  
-Any example code to read/write files to/from thumbdrives?+Any example code to read/write files to/from thumbdrives?\\
 awall | August 3, 2011 at 8:50 PMComment Rating1 awall | August 3, 2011 at 8:50 PMComment Rating1
  
Line 102: Line 117:
 Also, the power led on the EWI does not turn on when plugged in (which it does when plugging it into a computer). Also, the power led on the EWI does not turn on when plugged in (which it does when plugging it into a computer).
  
-Any ideas on what the problem might be? (I'm powering the Arduino with a 9V power adaptor and the EWI uses a type B USB cable (although I don't think this makes any difference))+Any ideas on what the problem might be? (I'm powering the Arduino with a 9V power adaptor and the EWI uses a type B USB cable (although I don't think this makes any difference))\\
 Member240709 | August 6, 2011 at 2:36 AMComment Rating1 Member240709 | August 6, 2011 at 2:36 AMComment Rating1
  
Line 122: Line 137:
 bye, zacharias bye, zacharias
  
 +
 +=========================================================
 +My Sparkfun comments:
 +
 +I can confirm that the Sparkfun Ethernet shield works with the USB Host Shield. 
 +To make mine work with Oleg's legacy code: 1. Cut USB Host Shield PCB trace 
 +going to IO pin 10. 2. Wire the PCB trace to pin 6. (this is the trace that used 
 +to be hooked to pin 10). 3. Change #define MAXSS 10 to #define MAXSS 6 in 
 +Max3421econstants.h 4. Supply a hefty source of 9 volts to the Ethernet shield. 
 +Running from the USB power is not enough!!! 5. Run boardtest.pde. Monitor using 
 +the serial monitor with monitor speed set to 115200 baud (the drop down menu in 
 +the lower right corner).
 +
 +The Sparkfun Arduino ethernet regulator is almost too hot to touch. Using an IR 
 +thermometer I measured 150 F on the regulator and 180 F on the reverse 
 +protection diode D1 feeding it.
 +
 +===========================================================
 +Comments from stan001 on Sparkfun:
 +
 +I got V2.0 libraries to work with this Sparkfun USB Host Shield.
 +
 +I compared this board schematic to the Circuit@Home V2 board and found the differences.
 +
 +The Sparkfun board, MAX3421E RESET pin is wired to pin D7 whereas the 
 +Circuit@Home V2 board is wired to the Arduino RST or Atmel328 Pin 1.
 +
 +I just jumper the D7 to RST on the female header and it "kinda" works...
 +
 +Run the board_qc of Version 2.0 libraries and all the test is passed except the 
 +100 resets is a bit delay with the message below : \\
 +
 +Circuits At Home 2011 USB 
 +Host Shield Quality Control Routine\\ Reading REVISION register...\\ Die revision 03\\ 
 +SPI long test. \\ Transfers 1MB of data. Each dot is 64K\\ ................ \\ SPI long 
 +test passed\\ [snip]\\ Resetting oscillator \\ Reset number 0 Time to stabilize - 687\\
 +
 +
 +-------------
 +stan001 | October 12, 2011 at 10:46 AMComment Rating1
 +
 +It will work and I can confirm it..
 +
 +Just solder a wire from digital pin7 to reset pin (next to the 3.3V pin) at the bottom of the Sparkfun shield.
 +
 +No software changes necessary on V2.0 library..
2011/arduino_usb_host_shield_20110822.1313937255.txt.gz · Last modified: 2011/08/21 10:34 by tomgee