sparkfun / SparkFun_Qwiic_9DoF_IMU_Breakout

The ICM20948 is the next IMU in the lineup from Invensense, following the MPU-9250
Other
15 stars 6 forks source link

Wrong values for accelerometer configuration #6

Closed ezono-Muhammad closed 11 months ago

ezono-Muhammad commented 11 months ago

Subject of the issue

Wrong values for accelerometer configuration

Your workbench

Steps to reproduce

Using the following code :

from __future__ import print_function
import qwiic_icm20948
import time
import sys

if __name__ == "__main__":

    IMU = qwiic_icm20948.QwiicIcm20948(address=0x68)
    IMU.setBank(2)
    IMU._i2c.writeByte(IMU.address, IMU.AGB2_REG_ACCEL_CONFIG_1, 0x23)  
    register = IMU._i2c.readByte(IMU.address, IMU.AGB2_REG_ACCEL_CONFIG_1)
    print(register)

Expected behaviour

The return value should be 0x23

Actual behaviour

The return value is 0x01

image

ezono-Muhammad commented 11 months ago

https://github.com/sparkfun/Qwiic_9DoF_IMU_ICM20948_Py/issues/7

Moved issue to correct repo as well

PaulZC commented 11 months ago

Closing in favour of: https://github.com/sparkfun/Qwiic_9DoF_IMU_ICM20948_Py/issues/7