2011:arduino_usb_host_shield_20110822
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
2011:arduino_usb_host_shield_20110822 [2011/08/21 19:25] – tomgee | 2011:arduino_usb_host_shield_20110822 [2012/02/04 13:55] (current) – tomgee | ||
---|---|---|---|
Line 34: | 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 124: | 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 " | ||
+ | |||
+ | 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.1313969154.txt.gz · Last modified: 2011/08/21 19:25 by tomgee