• I am not sure how I would go about graphing it, I am running it on a pico via VS Code.
    However, I tried printing out a continuous stream of x,y and z values, and I can see a bump in the correct direction when I move the sensor around.

    And as you wrote it is showing one value as 1 and the other 2 as zero, so it seems to be the acceleration + gravity.
    I found a few implementations of the code in JS but for raspberry pi etc, and I can't see how they handle filtering out the gravity, but I'll keep on digging, I'll also look at how Espruino handles other accelerometers, thank you :)


Avatar for TheLogan @TheLogan started