Show HN: Squat Counter Uses phone's accelerometer to count squats automatically

julienreszka1 pts0 comments

Squat Counter — Julien Reszka

&larr; Julien Reszka's Github Pages<br>🏋️ Squat Counter

Uses your phone's accelerometer to detect and count squats<br>automatically — works best held in your hand, since your pocket<br>muffles and dampens the motion.

Checking device support…

squats

0 today

Enable Motion Sensors

Reset

&minus;1<br>+1

Sensitivity & advanced settings

Sensitivity

Low<br>Medium<br>High

Detection threshold

Show raw sensor debug values

Daily history

Clear saved history

Figure

5.4x

Higher risk of death within 6 years for adults who scored lowest on<br>a simple sit-to-stand test, versus those who scored highest, among<br>2,002 adults.

Source: Brito, L.B.B. et al., Ability to Sit and Rise from the Floor as a Predictor of<br>All-Cause Mortality, European Journal of Preventive Cardiology, 2014. Via<br>julienreszka.com.

How to use it

Tap Enable Motion Sensors (iPhone will ask permission).

Hold the phone firmly in your hand — this works best. A tight<br>waistband or armband can work too, but a loose pocket tends to<br>muffle the motion and miss reps.

Tap Start , stand still for a second, then squat away.

Each rep gets a beep/vibration and a live count. If it misses a<br>rep or over-counts, use &minus;1 / +1 or adjust<br>sensitivity above.

Detection is based on the magnitude of acceleration, so it works<br>regardless of which way the phone is oriented — but the tighter and<br>more secure it is against your body, the cleaner the signal. It<br>needs a real phone/tablet with a motion sensor — this won't work on<br>a laptop.

Daily totals are saved only in this browser's local storage on this<br>device — clearing site data or switching browsers/phones will lose<br>the history.

phone motion squat counter count squats

Related Articles