Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Data Type of Accelerometer Measurement

ANSWERED

What data type of the x y z read from the accelerometer? I am trying to utilize the memory efficiently. Is 1 byte for each value enough?

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Javascript Number. One byte would probably be enough. You'll need to scale the values, taking into account the maximum acceleration that you expect. I've found that you can get 50+ m/s/s, although normal exercise is usually much less.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
1 REPLY 1

Javascript Number. One byte would probably be enough. You'll need to scale the values, taking into account the maximum acceleration that you expect. I've found that you can get 50+ m/s/s, although normal exercise is usually much less.

Peter McLennan
Gondwana Software
Best Answer