Written to what? A memory stick? Hard disk? Not another computer because the Pi's USB runs in Host mode, not Client. Other options to send to another computer are via network of course.
+1 and I would add that the Pi's USB ports are USB 2.0 (bandwidth shared with the wired ethernet network) so there's little (or nothing) to be gained by using a USB 3.0 memory stick. I would not write/save data to the main uSDHC card (on which all the O.S. & programs will reside) - for my wiki/webpages I use a 32GB USB 2.0 flash drive.rpdom wrote: ...
By the way you've worded the questions it look like you're thinking at a lower level than you need to. The Pi is a moderately powerful computer, not a microcontroller like an Arduino.
For example, you said:Written to what? A memory stick? Hard disk? Not another computer because the Pi's USB runs in Host mode, not Client. Other options to send to another computer are via network of course.
You can run multiple tasks, so the taking of the pictures could be run by one program and the taking and processing readings by another one.
Where would you be reading the data from? What sort of device and how does it connect? I2C is good, parallel connections can be done via GPIO, but will take a little bit of coding.
You need to understand the difference between computing and I/O busing. Nearly everything you have described isn't processing but rather I/O busing it so even a super slow computer from the 80's is probably capable of doing the processing you want, on the other hand your wanting to move around a reasonable amount of data. The biggest chunk of data being the 5 megapixel image every 10 seconds. A 5 mega pixel is 2580 x 2048 x 3bytes/pixel for a total of over 15MB of raw data and this gets moved twice, once from the camera memory to the RPi memory then from the RPi memory to the USB.I will be reading and writing:
1. 8 8-byte floats every second
2. a 5 megapixel image every 10 seconds
3. data will be written to 3.0 USB
PID control system at once every 30 seconds
Then, I will be performing a measurement scan.
1. Reading 4 8-byte float every .1 seconds
2. Compute 3 numbers
a. 6 ADD, 1 SUB, 1 DIV
b. 6 ADD, 1 SUB, 1 DIV
c. 2 MUL, 1 ADD, 1 SQRT
1 PID controller at .1 secs with these numbers
Read and Write: 10 kilobytes per second
Users browsing this forum: No registered users and 19 guests