The ICSP pins are connected to the hardware SPI pins of the Arduino processor. The reason to use the ICSP pins for MISO, MOSI and SCK instead of D11, D12 and D13 is that they work on an Arduino Mega as well as the regular Arduino (the Arduino Mega has the SPI pins connected to D50-D53). On the regular Arduino there is no difference between using D11-13 and the ICSP header.
It looks like the new library no longer uses an Arduino output to drive the RESET signal of the MAX3421E. It looks like the circuitsathome version uses the RESET signal from the Arduino to reset the MAX3421E,
It looks like the GPX output of the MAX3421E is no longer connected to an Arduino input.
johnwasser:
It looks like the new library no longer uses an Arduino output to drive the RESET signal of the MAX3421E. It looks like the circuitsathome version uses the RESET signal from the Arduino to reset the MAX3421E,
It looks like the GPX output of the MAX3421E is no longer connected to an Arduino input.
So shouldn't the arduino reset line or D7 (or maybe either) be connected to Pin 9 of the hex converter which is then connected to Pin 12 on the MAX3421E to reset it ?
I'm confused -when the circuit says D7 is connected to 'reset' do they mean on the shield bus line or the arduino reset line ?
johnwasser:
The ICSP pins are connected to the hardware SPI pins of the Arduino processor. The reason to use the ICSP pins for MISO, MOSI and SCK instead of D11, D12 and D13 is that they work on an Arduino Mega as well as the regular Arduino (the Arduino Mega has the SPI pins connected to D50-D53). On the regular Arduino there is no difference between using D11-13 and the ICSP header.
It looks like the new library no longer uses an Arduino output to drive the RESET signal of the MAX3421E. It looks like the circuitsathome version uses the RESET signal from the Arduino to reset the MAX3421E,
It looks like the GPX output of the MAX3421E is no longer connected to an Arduino input.
So I wired from D7 to reset pin also and it seems to now accept and run the code
Does the GPX output of the MAX3421E need to be connected to an arduino input for anything in the library?
@bob 1810 I don't know the mega ADK but the shield needs the reset pin of the arduino connected into the reset bus of the shield
Connecting D7 (PWM 7?) to reset does not help;same result.
I would advice anyone NOT to buy this Mega ADK board if you want to use version 2
of the USB host libs,
it simply does NOT work !
johnwasser:
It looks like the new library no longer uses an Arduino output to drive the RESET signal of the MAX3421E. It looks like the circuitsathome version uses the RESET signal from the Arduino to reset the MAX3421E,
It looks like the GPX output of the MAX3421E is no longer connected to an Arduino input.
I find on my Sparkfun board that GPX output of the MAX3421E is connected to D8 Olegs board shows it left disconnected I think .
I have a Duemielanove board and noticed-In max3421e.h he defines pins for the Duemielanove so I have un-commented those does not seem to make a difference that I have seen yet /
/ MAX3421E register/bit names and bitmasks / #ifndefmax3421e_h #definemax3421e_h
/ Arduino pin definitions /
/ pin numbers to port numbers */
//#define MAX_INT 9 // Duemielanove
//#define MAX_GPX 8
I made this mod and now I can't use pin 7 - it stays high all the time. I have another project where pin 7 is used - do I have to buy another Arduino board for it?
The mod should not fry the D7 pin.. it is just pulling the D7 LOW via the RST pin..
I did this modification as I did not want to cut the connection on the Sparkfun board to D7 and solder it directly to the Arduino RST pin.. ( bypassing D7 )..
I would assume you do NOT have anything else connected to D7 to have this working...
I am quite a beginner. I just got the Uno and the Usb host shield from sparkfun,, any chance you can upload a pic or tell me what do i need to connect from the uno to the usb shield?.. an image would help a lot. By the way. I am tryin to get it to work with the Host shield library 2.0 too. Thanks and really hope someone can help me, I seem to get no support from sparkfun or oleg but well .. thanks
by the way.. maybe its a dumb question but.. where are you checkin out the error messages? do you have a display or can I view this messages in arduino software? when I say messages I refer to the data the usb shield displays for the usb device you connect.. thanks again
I will try to make it as easy as possible , so hope u understand my simple instructions..
I would assume you know how to operate the Arduino IDE s/w and know how to upload the arduino sketches into the Uno..
If you do not know these knowledge, I suggest you google or read up some documentations on arduino.cc first..
Here are the simple steps :-
Download the host shield 2.0 library, unzip and install into Arduino
Goto Menu : Files -> Examples -> USB_Host_ShieldV2 and select board_qc
Compile and upload the sketches into Arduino UNO
Plug Usb host shield on top of Uno AND take a jumper wire to connect Digital Pin 7 to RESET pin across the Uno board beside 3.3V pin
Click on the Serial Monitor button and set speed to 115200
You should see something like below
Insert a USB device and let it detect it automatically..
If it passed, you have got the USB host shield v2.0 working...
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..
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
GPIO test. Connect GPIN0 to GPOUT7, GPIN1 to GPOUT6, and so on
Test failed. Value written: 00 Value read: FF
Press any key to continue...
GPIO test passed.
PLL test. 100 chip resets will be performed
Resetting oscillator
Reset complete. Waiting for the first SOF...
Getting device descriptor
Descriptor Length: 12
Descriptor type: 01
USB version: 0200
Device class: 00
Device Subclass: 00
Device Protocol: 00
Max.packet size: 08
Vendor ID: 0403
Product ID: 6001
Revision ID: 0600
Mfg.string index: 01
Prod.string index: 02
Serial number index: 03
Number of conf.: 01
I followed them but still I got some doubts before connecting.
Should I have an external power source other than the usb cable?
(and once the usb host shield board is on top of the arduino) with a jumper I connected the pin with Reset and the pin with a 7 (of the sparkfun shield as it is on the top) . this the part im not understanding the connection...
should I leave something disconnected or should i connect all pins to the arduino with the two (6 wire connector set) and the two (8 wire connector set) ? thanks again for the help. i just wanna be sure i got it right.
i attach an image maybe its easier .(there i show how i connected it)