I'm currently working on connecting a Funduino version of usb host shield onto an arduino mega board. But the serial output shows "osc did not start", which means the board can't find the shield. However the reset button works, so I estimate insufficient power being supplied.
I'm aware of the bridging solution for the regular arduino module for the 3.3v and 5v (example). But how can this solution be applied to the Funduino model.
Update: I've changed the SPI lines on the shield to the 6 ISCP pins on the Mega, but still no change in results.
I performed a second test using board_qc, which returned:
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
-
Please provide a link to the product page of that shield.chrisl– chrisl2022年06月22日 08:17:35 +00:00Commented Jun 22, 2022 at 8:17
-
altronics.com.au/p/z6342-funduino-usb-host-shield/#Redsam121– Redsam1212022年06月22日 08:18:17 +00:00Commented Jun 22, 2022 at 8:18
-
fluxworkshop.com/products/…Redsam121– Redsam1212022年06月22日 08:19:40 +00:00Commented Jun 22, 2022 at 8:19
-
And can you please provide a link to the used library (and include either your sketch or point to the example code that you might be using)chrisl– chrisl2022年06月22日 08:28:18 +00:00Commented Jun 22, 2022 at 8:28
-
arduino.cc/reference/en/libraries/usb-host-shield-library-2.0 I used version 1.5 as shield requires.Redsam121– Redsam1212022年06月22日 08:30:02 +00:00Commented Jun 22, 2022 at 8:30
1 Answer 1
That shield communicates over SPI. However the SPI pins it uses are the "old" style (10-13) for the Arduino UNO.
The Mega doesn't use those pins, which is why the "new" style 6-pin SPI/ICSP header was added to boards.
You will have to manually jumper the right pins to the SPI pins of the Mega using wires.
-
Can you provide a pinout, so that I know where to make connections.Redsam121– Redsam1212022年06月22日 10:18:10 +00:00Commented Jun 22, 2022 at 10:18
-
You would need to refer to the schematic or manual for the shield (which I don't have). The pinout for the mega is well documented.Majenko– Majenko2022年06月22日 11:12:13 +00:00Commented Jun 22, 2022 at 11:12
-
I have tried connecting the SPI to the 6 pins in the center, but am still getting the same results.Redsam121– Redsam1212022年06月22日 11:48:40 +00:00Commented Jun 22, 2022 at 11:48
-
I have also tried the SPI pins at the bottom of the Mega.Redsam121– Redsam1212022年06月22日 11:55:10 +00:00Commented Jun 22, 2022 at 11:55
-
If the shield was designed for the Arduino Uno, then it would have a similar pinout to interface with it. So I used the Uno pinout as reference.Redsam121– Redsam1212022年06月24日 04:08:12 +00:00Commented Jun 24, 2022 at 4:08