• I read the accelerometer on a STM32F4-DISCOVERY board.
    I wanted to have 40 samples /s and I got 40 messages displayed on the Terminal screen, after accumulating data on a moving average process.

    print("X= "+accx+" Y= "+accy+" Z= "+accz+" [16bit]" );

    accv_start = setInterval(function () { print(getAcc()); }, 25); // 40 Hz
    acc_stop = setInterval(function () { clearInterval(acc_start); print(console.log("ACC STOP"));}, 1000); // stop after a while

    As expected the timer behavior was pretty deterministic , having a minimum timer resolution of 1 ms.
    Now my question is :

    Are you going to improve the timer's resolution , I say in example to 10 us, in a near future ?

About

Avatar for user6350 @user6350 started