I am working on a project nowadays. I wrote a code by which the Arduino Due board collects the Accelerometer values (x,y,z) form the ADXL345 Accelerometer and displays them. The code I am using right now is as follows:
Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);
Serial.println(“Ooops, no ADXL345 detected … Check your wiring!”);
Serial.print(event.acceleration.x); Serial.print(" “);
Serial.print(event.acceleration.y); Serial.print(” “);
Serial.print(event.acceleration.z); Serial.println(” ");
I am using this accelerometer at 3200Hz so it is unable to print all of the 3200 values on the screen in 1 second. So I came up with an idea to store those values first in the flash (RAM) of my Due board and then display them after some time. So can anyone please guide me of how to store the data coming out from Accelerometer to the flash of Arduino Due and display it on the screen after some time. Sharing the code will be highly appreciated.
Thanks in advance and have a nice day.