-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Arduino Due not connecting to CH376 #55
Comments
Hi. I know about it, i have tested and in SPI mode works just with using an extra pin (interrupt). Use |
Thank you I was able to get it to work using the interrupt input. However, I need to have multiple SPI devices on the bus so I do not think I can use this method. Do you know if the CH376 works if not using the INT input? Many thanks for the help :) |
Seems I spoke too soon. While the menu appears on the serial monitor (basicUsageSPI sketch) the CH376 does not access the flash drive. It just asks for a drive to be connected. Note: I did format the flash drive with Active@ Partition Manager. |
I am still unable to access my flash drive. I have hooked up the INT input as you sugegsted and also I have formatted the drive with Active@ Partition Manager. I would appreciate some help in getting this to work. |
Yes, this is the only option if you plan to attach multiple devices to the SPI bus. MISO, MOSI, SCK signals are shared between devices, every device has his own CS line and CH376 requires plus an extra pin for INT signal. |
Check that the communication between the DUE and the module is correct, use |
I have used a solution to this issue that works well for me. I use two logic level shifting boards that have an enable pin on them. Tie one side together and use the remaking two sides to go to your devices. Then just enable the one you want with it enable pin while disabling the other. |
Many thanks for the suggestions and help. The issue was the hardware configuration, the module documentation and the chip datasheet are difficult to understand. After digging out my USB to SPI monitor (SPIDriver) and just try lots of simple Python tests I was able to discover the correct hookup. |
Hello, I have the CH376S module and I have installed this library. My board is an Arduino Due and I have followed the wiring diagram on this repo. However,my Arduino Due is not able to communicate with the module.
I have done some debugging I I find the library stays in the loop shown below in the "CheckIntMessage" function:
The library is initialized with:
Ch376msc flashDrive(10); // chipSelect
Advice on getting this working would be much appreciated.
The text was updated successfully, but these errors were encountered: