Hi! You couldn't get something that was identical to the accelerometer, but you can tell reasonably well when someone is moving or not.
You're basically getting values that tell you where North is - so you can detect changes in rotation but not lateral movements, in the same way the accelerometer won't detect rotation but will detect lateral movement.
Honestly you'd have to try and see if it did what you needed - but worst case you could actually add an accelerometer - or there are devices like the Nordic Thingy that can run Espruino and are loaded with all the sensors you could possibly want (there should be docs and binaries for it in the next month or so).
© Espruino, powered by microcosm.
Report a problem