# Tutorial Q-18: Count steps from an accelerometer

Band-pass a chest accelerometer, count footstrikes with a minimum gap between peaks, turn them into a cadence, and check it against the spectrum and the known answer of a synthetic record.

Address: https://apopt.com/data/tutorials/q18-step-count/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Count steps from an accelerometer* (https://apopt.com/course/tutorials/q18-step-count/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q18-step-count/expected/printed-output.txt) | 324 B |  | Everything the tutorial prints, cell by cell |
| [raw/chest-acc-synthetic.csv](https://apopt.com/data/tutorials/q18-step-count/raw/chest-acc-synthetic.csv) | 96.5 KB | 4,750 rows | SYNTHETIC chest accelerometer, 50 samples a second, in g (t_s, vert_g along the body, fwd_g out of the chest); 30 s of running at 172 steps a minute, then lying still |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 6: GPS Watches and Motion Sensors](https://apopt.com/book/ch06-gps-motion/)
- Course: [Week 6 lesson](https://apopt.com/course/week/6/)
- Homework H12: [https://apopt.com/course/assess/h12/](https://apopt.com/course/assess/h12/)

## How to cite

Tutorial Q-18: Count steps from an accelerometer. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q18-step-count/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q18-step-count/raw/chest-acc-synthetic.csv")
```
