SingleFileDrive/DataLoggerUSB using only USB power? #2424
Unanswered
SciElec-JS
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I have some questions about the SingleFileDrive library and DataLoggerUSB example for RP2040. Is the sampler in this example unusable if the Pico is powered from a PC? If USB is connected to a USB host, the file is always in use and cannot be written. If USB is disconnected, the device is powered off. Is it possible to software-trigger a plug/unplug of the storage endpoint, so the internal file can be written to without unplugging the USB cable?
For context, I'd like to build a USB-connected burst-sampling peripheral. It would get triggered from an external signal, takes samples, processes and formats them, then enables the storage endpoint to offload the results in a CSV file. Ideally, the Pico is powered from the PC, the USB cable remains connected, no SD cards are required, and the connected PC doesn't need custom software.
Anyone have any ideas or suggestions?
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions