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

Swim Lap Counter

Hi guys,.

 

I am trying to build a swim lap counter.

 

Any suggestions as to the best way to use the accelerometer to identify when a swimmer has turned and a lap is complete?

 

Thanks.

Best Answer
0 Votes
9 REPLIES 9

Depending on which device you're using, if it has a gyroscope, that's the preferred way. 

https://dev.fitbit.com/build/guides/sensors/gyroscope/

Note: Only the Fitbit Ionic, Fitbit Versa, and Fitbit Sense contain a gyroscope sensor.

 

Best Answer
0 Votes

Thanks Jon!

 

For the Versa 3 and Versa 2, how would you approach detecting a lap (change in direction) without the gyroscope?

Best Answer
0 Votes

I think you'll need to do some research into the algorithms required when using an accelerometer to simulate a gyroscope.

https://electronics.stackexchange.com/questions/205644/simulate-gyroscope-through-mems-accelerometer

 

Another approach would be to record some data and plot it on a graph so you can see how the sensor is behaving during a swim.

https://dev.fitbit.com/build/guides/sensors/accelerometer/

 

Best Answer
0 Votes

Great, thanks for those ideas on using an accelerometer Jon.

Best Answer
0 Votes

@JonFitbit any update on the introduction of lap counting while swimming on Charge 4? As I understood this feature is also missing on the Versa 4 and Sense.

Best Answer
0 Votes

@AdisP probably best to ask in the Charge4 forum.

Best Answer
0 Votes

@JonFitbit I am asking for all three devices since I got informatiin from the FitBit support that it is in the making.

Best Answer
0 Votes

And why was lap count feature excluded from Versa 3 when it was available on Versa 2? 

Best Answer
0 Votes

I'd recommend asking in the product forums, this is the developer forum.

Best Answer
0 Votes