This does seem to be the problem I referred to earlier. I did a quick spreadsheet to compute (magnitude-8192)/32 which the step count algorithm does initially. Most values exceed 14 the RAW_THRESHOLD ( the average is 15.56). The step count algorithm assumes that at rest the magnitude will be 1g = 8192 which it will not be in all orientations for all accelerometers unless they are calibrated.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This does seem to be the problem I referred to earlier. I did a quick spreadsheet to compute
(magnitude-8192)/32
which the step count algorithm does initially. Most values exceed 14 theRAW_THRESHOLD
( the average is 15.56). The step count algorithm assumes that at rest the magnitude will be 1g = 8192 which it will not be in all orientations for all accelerometers unless they are calibrated.