You are reading a single comment by @AccMagno and its replies. Click here to read the full conversation.
  • Now I'm back and started again. I was testing the Acceleration Recorder app and that is good one. It is recording everything with 100hz and it works. I tried even with 400hz, but then the file size got too large and it could not write the csv file ( is there way to see how much space I have?)
    But then I was trying to get it work with 200 hz and it started to give me a error:

     Error: Invalid interval
     at line 1 col 203
    ...;Bangle.setPollInterval(5.0);setTimeout(function(){Bangle.on("accel"...
                                         ^
    

    I did manage try it with 2.5 pollInterval, but suddenly I can't anymore try anything else that 10 ms pollinterval. Any ideas why? Here is the edited part of the code:

    HZ = 200
      //Bangle.accelWr(0x1B,0x03 | 0x40); // 100hz output, ODR/2 filter
      Bangle.accelWr(0x1B,0x04 | 0x40); // 200hz output, ODR/2 filter
      Bangle.accelWr(0x18,0b11110100); // +-8g
      //Bangle.setPollInterval(10); // 100hz input
      Bangle.setPollInterval(5); // 00hz input
      setTimeout(function() {
    
About

Avatar for AccMagno @AccMagno started