Hi everyone, so I'm thinking of starting a project with an accelerometer, and pretty much I want to get quite a large amount of data.
The thing is firstly I want to obtain accelerometer data at about 20hz, and I want to be able to save it in say an array and possibly do some adding or something with it. Would the arduino be fast enough to be able to save the INTeger values without slowing down my data rate? Secondly I was hoping to obtain those values by utilizing two things, first off I thought I would use a timer sort of thing to obtain accelerometer values (3 axis) at a twentieth of a second, the other thing is I want to have a real time of the data if possible and by real time I mean like 12:05 sort of thing. So I wondered if there was a real time function I could use that was accurate to the millisecond so that I could take samples at the rate I want without it blocking the system like a delay would in case I want to do something with that data in between while also being able to use it as a sort of clock for the speed I want.
It also might be better if I just use an on board clock, since I really only want the real time every minute or something like that.
If it helps I'm using the ATmega32u4 microcontroller. Thanks!!