Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPI interface] USB is not detecting and Prints as Attach flash drive first! #53

Open
embhobbb opened this issue Jul 4, 2021 · 3 comments

Comments

@embhobbb
Copy link

embhobbb commented Jul 4, 2021

I am using Arduino Uno borad and CH376S USB host module. And I have connected with SPI interface as shown in the following figure.
I didn't connect INT pin.
image

I was trying basicUsageSPI example but didn't work for me. On serial it was printing like as

*************************
Attach flash drive first!
*************************

Any suggestions?

@djuseeq
Copy link
Owner

djuseeq commented Sep 15, 2021

Sorry for the late reply, is there something else connected to the SPI port or just the module? If the SPI port is shared with other devices too then INT pin is required.

@ymg2006
Copy link

ymg2006 commented Dec 11, 2021

Same problem here. The SPI port is not shared at my setup. The only connected device is CH376s. Tested with Arduino UNO and WEMOS Lolin32. The UART is working fine but SPI is not working on both. The light on the CH376s stays on when the USB is inserted and the LED on the memory itself blinks when inserted.
Here is a complete wireing setup:

Color CH376s Arduino UNO Name
Yellow D3 D10 SCS
Blue D5 D13 SCK
Purple D6 D11 SDI-MOSI
Pink D7 D12 SDO-MISO
White 5v 5v 5v
Brown 3.3v 3.3v 3.3v
Orange GND GND GND
Red GND GND GND
Black GND GND GND

Used your default example basicUsageSPI.

@ymg2006
Copy link

ymg2006 commented Dec 11, 2021

After checking wires, one of them was corrupted. After getting it fixed and it worked well.
I think you should close this issue. I will verify on WEMOS Lolin32 too. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants