• Yes, but just define the variables before you use them :)

    function setStepSensitivity(s) {
      function sqr(x) { return x*x; }
      var X=sqr(8192-s);
      var Y=sqr(8192+s);
      Bangle.setOptions({stepCounterThresholdL­ow:X,stepCounterThresholdHigh:Y});
    }
    Bangle.on('step',x=>print("Step"));
    
    // run this and it'll become much less sensitive
    // setStepSensitivity(400)
    
  • Yes, that works. Thank you for posting this easy to use testing script.
    I think there is a general problem with counting steps.

    There is more to it than just measuring acceleration.
    With acceleration only you have it counting steps, but then it also counts wrist movement. So doing the dishes awards me hundreds of steps.
    Lowering the sensitivity too much will lead to steps not counted.

    Probably existing smartwatches measure this in a much more complex way.

About