Accessing on-board sensors - accelerometer & gyro


#1

Hi,

I understand the onboard accelerometer & gyro or connected directly to wp85 over I2C.
Are there any APIs/libraries/ sample code available to access these sensors from WP85?

Regards,
ckv


#2

The accelerometer/gyroscope is a LSM6DS3. I’m not sure whether anyone has tried to get it working yet. There is a Linux kernel driver available for it here:
https://github.com/STMemsLinuxDrivers/lsm6ds3-input


#3

you can use the user space access to the accelerometer/gyro code as well:
https://github.com/johnofleek/legatoExamples/tree/master/mqttDemo1/mqttDemo1Component


#4

Hi Asyal,
is there any way/doc that i can follow to use the accelerometer iwith the arduino of the mangoh green ? I am not using wp and legato environment but just a LTE modem and the arduino environment.
Any help would be appreciated… Thanks you in advance