Comments (9)
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.
from ch376msc.
Hi. I know about it, i have tested and in SPI mode works just with using an extra pin (interrupt). Use Ch376msc flashDrive(10, 9); // chipSelect, interrupt pin
instead.
from ch376msc.
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 :)
from ch376msc.
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.
from ch376msc.
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.
from ch376msc.
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 :)
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.
from ch376msc.
Check that the communication between the DUE and the module is correct, use getChipVer();
method to query the program version. What value did you get?
from ch376msc.
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.
from ch376msc.
from ch376msc.
Related Issues (20)
- CH376s SPI USB issues
- file name Limitations HOT 7
- ch376s not working with esp32 HOT 4
- readFileUntil() return "false" for both EOF and the record terminator HOT 3
- interfacing ch376s module with build in sd HOT 3
- Accessing USB Pendrive and SD Card consecutively! HOT 6
- Init function hangs the application HOT 2
- Volume Label Information
- Files are not created when called using separate fileOpen, fileWrite and fileClose functions
- i can't write string to flash drive. HOT 2
- "Flash Drive Attached" instability
- Long filename support
- To pair the Ch376msc with the library ESP32-audioI2S
- drive is detached
- readFileUntil() crashing when trying to read more than the buffer size
- FS Struct needed HOT 2
- Reading pictures from USB HOT 2
- Speed on HW Serial and small buffer
- Library update required HOT 1
- Read a USB barcode, is it possible ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ch376msc.