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

Driving in a car versus not driving

Hi - Novice here. I am interested in logic that would distinguish between the states of "driving (in a car for example)" and "not driving". I understand that I can sample and smooth accelerometer data, but I am really struggling with it. Has anyone done this before? Can someone point me towards a resource?  TIA.

Best Answer
0 Votes
3 REPLIES 3

Fitbit don't publish their algorithm, but there are lots of articles which discuss how to use an accelerometer sensor to do step detection. Once you understand how steps are detected, you should be able to see how driving vibrations might differ from those.

 

An article like this might help:  https://www.analog.com/en/analog-dialogue/articles/pedometer-design-3-axis-digital-acceler.html

 

 

Best Answer
0 Votes

If targeting a device that supports location API, I would use the GPS to calculate speed to determine that a speed > xx = driving.

Best Answer
0 Votes

Can you elaborate? Thanks for replying.

Best Answer
0 Votes