Go Down

Topic: not able to log data into sd card at faster rates from adxl 345 (Read 119 times) previous topic - next topic

jeo

i am using a arduino uno along with a sd card module for logging acceleration data from adxl 345 accelerometer via I2c , i am having trouble with writing the acquired data into the sd card at faster rates , required is minimum 250hz , i am able to get only 50hz thats not sufficient for Plotting fft of vehicle vibrations, i am a novice at programming .
is there a possibility of increasing the speed.

i am not able to implement  the buffering and interrupts into my programming , I have attached my code below .

PaulS

Quote
is there a possibility of increasing the speed.
With opening, writing to, and closing the file on every pass through loop()? No.

Of course, if you DIDN'T open and close the file on every pass through loop(), you could write to the file faster.

You'd then need some way to decide when to open the file and when to close it and when to just write to it.
The art of getting good answers lies in asking good questions.

Go Up