Simple Pedometer 1.0
A simple pedometer based on the MEMS information

Code size:1KB Author:Francis
Source files included:yes Version:1.0
Use circleOS:yes (circleOSversion) Creation date:2010-01-07 15:52:04
Hardware modification:no Modification date:2010-01-07 15:52:28
Based on the STM32 Primer:All
Downloads:2300 Views:26500
Average ratings:0/5 (0 rates)

Download: (48 KB)


This project is a small example to show how to detect shocks with a MEMS. The handler detects the variations of the MEMS data (the sum of squares of the variations of x/y/z), and increment a step for each double variation.

The level is tunable (UP/DOWN with the joystick), and an hysteresis as well (LEFT/DOWN).

The number of steps, the level and the hysteresis are displayed on the LCD monitor. 

The default values seem to work not too bad for a "normal" walker (I assume I am "normal").