Will mit meinem Arduino Due Daten loggen und speichern.
Habt ihr schon Erfahrungen mit dem Speichern über den 2. Usb (native port) gemacht?
Würde gern z.B einen Usb Stick anhängen und darauf die Daten speichern, denn wenn ich die Daten via SPI auf eine Sd Karte schreibe habe ich zu lange Speicherzeiten.
Gruß
Hello everybody,
I want to log and save data with my Arduino Due.
Have you already had experience with saving over the 2nd Usb (native port)?
I would like to attach a USB stick and save the data, because if I write the data via SPI on a SD card I have too long storage times.
I want to save 15 different values. I save them in an array. (they´re changing nearly every ms)
But i want to save them every 10ms regularly.
Now i use a Sd card adapter. but the values dont come regularly (see picture: Sometimes the time between the values i want to save is 100ms). So i thought the problem is the speed of the spi.
On the Serial Monitor the values are showing up exactly every 10ms.
So i thought the native Port on the Due, which should be much faster, is the solution...
FRAM boards are also connected via spi, so i dont think they solve my problem.
I guess your 15 values are of type uint32_t (4 bytes): 15 * 4 = 60 bytes to store every ms. The SRAM size is 96 KBytes, i.e. you can store more than 15000 ms in SRAM.
1/ Do you have to log data for more than 15 seconds ?
2/ FRAM is much faster and using SPI with DMA is way faster (see turboSpi Library for Sam3x or program your own SPI DMA code)