Running this:
from pimoroni_i2c import PimoroniI2C
from lsm6ds3 import LSM6DS3, NORMAL_MODE_104HZ
import time
# Create the I2C instance and pass that to LSM6DS3
i2c = PimoroniI2C(sda=(4), scl=(5))
sensor = LSM6DS3(i2c, mode=NORMAL_MODE_104HZ)
# Grab and print the current readings once per second
while True:
ax, ay, az, gx, gy, gz = sensor.get_readings()
print("Accelerometer\nX:{}, Y:{}, Z:{}\nGyro\nX:{}, Y:{}, Z{}\n\n ".format(ax, ay, az, gx, gy, gz))
time.sleep(1.0)
Some variation, but I wouldn't call it a lot? It's sitting static on my computer desk.
I get this:
Accelerometer
X:9370, Y:-13299, Z:-211
Gyro
X:235, Y:-501, Z-47
Accelerometer
X:9355, Y:-13300, Z:-193
Gyro
X:231, Y:-493, Z-48
Accelerometer
X:9353, Y:-13293, Z:-228
Gyro
X:231, Y:-492, Z-51
Accelerometer
X:9359, Y:-13305, Z:-225
Gyro
X:229, Y:-494, Z-49
Accelerometer
X:9368, Y:-13285, Z:-218
Gyro
X:240, Y:-493, Z-47