felis / USB_Host_Shield_2.0

Revision 2.0 of USB Host Library for Arduino.
https://chome.nerpa.tech
1.8k stars 779 forks source link

Unable to detect USB devices with Arduino Nano #775

Open AAJAY5 opened 1 year ago

AAJAY5 commented 1 year ago

Desc Test

Board and Version Info

Board Arduino Nano
Arduino AVR Boards v1.8.6 (latest)
USB_Host_Shield_2.0 v1.6.2 (latest)

Connections

Shield Nano
MOSI 11
MISO 12
SCLK 13
SS 10
INT 9
RST RST
VBUS 5V ( With cut on PCB)
VCC 3.3V
GND GND
touchgadget commented 1 year ago

VBUS 5V ( With cut on PCB)

Why cut 5V? Can you verify with a meter that 5V is coming out the USB type A connector? If not the USB device, it is not receiving any power.

https://forum.arduino.cc/t/nano-and-usb-host-shield/1106732

AAJAY5 commented 1 year ago

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 Reset number 100 Time to stabilize - 467 cycles Checking USB device communication.

Reset complete. Waiting for the first SOF... Getting device descriptor Descriptor Length: 00 Descriptor type: 00 USB version: 0000 Device class: 00 Device Subclass: 00 Device Protocol: 00 Max.packet size: 00 Vendor ID: 0000 Product ID: 0000 Revision ID: 0000 Mfg.string index: 00 Prod.string index: 00 Serial number index: 00 Number of conf.: 00

xxxajk commented 1 year ago

Apply 5v to the USB output, the cut line is for operating on devices that cooperate with 3.3v supply, which there aren't many of those, typical use case is a self powered device, such as powered hub, or DSLR camera.

There is no need to connect reset, in fact, don't connect it at all. The chip is reset via software.

AAJAY5 commented 1 year ago

Connections image

Fizzi1470 commented 1 year ago

is your arduino 5V ? the shield should only be powered and communicate with 3.3V as you are saying you're using a nano, it would probably be the cause, and you might have fried your shield

i got a shield mini just like yours working with a nano, but trough a level shifter

Fizzi1470 commented 1 year ago

from the datasheet of the max chip : image

you are supplying 3V to the chip, which is whthin its limits, but then communicating at 5V, which is way too much for it

rtek1000 commented 1 year ago

Hi,

I've seen other users saying this Chinese board doesn't work, I bought one and couldn't get it to work, years ago, when I have time I'll try again.

But I have the shield board for Arduino UNO which has two IC 74HC125 to convert 5V and 3.3V, this one works, I just don't remember why I put a jumper from the RESET button to pin 12 of the IC 74HC125 next to the IC MAX, the diagram already shows this connection, maybe my board was defective.

Diagram: https://5.imimg.com/data5/XK/RR/MY-1833510/usb-host-shield-for-arduino.pdf