I just started this project and I’m trying to log the data from an accelerometer (ADXL355) to a SD card. Sadly it’s not working. I can send data to the SD card without having the accelerometer connected and i can read the data on the serial monitor when the SD card is not connected but ..
I am using adxl355 and confused how to change the setting of odr(output data rate). Here is the code. As you can see, I have the set_filter_ctl_reg in the main. But it seems not working. I feel that only the part in the while loop influence the sampling rate(same with odr here). In the datasheet, ..