Skip to content

Raspberry Pi erroneous data #67

@ender18g

Description

@ender18g

Thanks for the library. I've use the bno055_i2c-gpio_simpletest.py in the example folder to read sensor data from a bno055 connected directly to a Raspberry pi 4. I've tried bus 0 for the i2c connection, but I'm still getting erroneous data. much of the data is filled with "None" values and the temperature will usually read below -100 C.

Is there a specific bus that I should be using? I know that the clock stretching issue is a challenge, but I hoped that this example file had circumvented that issue. I have followed the /boot/config.txt instructions in the sample code comments. Thanks again for any advice.

Output below:

Temperature: -102 degrees C
Accelerometer (m/s^2): (-0.31, -0.3, 9.42)
Magnetometer (microteslas): (-23.5, -30.0625, -16.875)
Gyroscope (rad/sec): (0.002181661564992912, 0.003272492347489368, 0.002181661564992912)
Euler angle: (None, None, None)
Quaternion: (0.0, 0.0, 0.0, 0.0)
Linear acceleration (m/s^2): (0.0, 0.0, 0.0)
Gravity (m/s^2): (None, None, None)

Temperature: -102 degrees C
Accelerometer (m/s^2): (-0.27, -0.3, 9.43)
Magnetometer (microteslas): (-22.0625, -28.25, -14.875)
Gyroscope (rad/sec): (0.001090830782496456, 0.001090830782496456, 0.004363323129985824)
Euler angle: (0.0, -1.75, 1.8125)
Quaternion: (None, None, None, None)
Linear acceleration (m/s^2): (None, None, None)
Gravity (m/s^2): (None, None, None)

Temperature: -102 degrees C
Accelerometer (m/s^2): (-0.27, -0.3, 9.450000000000001)
Magnetometer (microteslas): (-22.0625, -29.0, -15.25)
Gyroscope (rad/sec): (0.002181661564992912, -0.004363323129985824, -0.001090830782496456)
Euler angle: (None, None, None)
Quaternion: (None, None, None, None)
Linear acceleration (m/s^2): (None, None, None)
Gravity (m/s^2): (None, None, None)

Temperature: -102 degrees C
Accelerometer (m/s^2): (-0.27, -0.29, 9.44)
Magnetometer (microteslas): (-22.75, -27.875, -14.875)
Gyroscope (rad/sec): (0.001090830782496456, 0.002181661564992912, 0.002181661564992912)
Euler angle: (None, None, None)
Quaternion: (None, None, None, None)
Linear acceleration (m/s^2): (0.02, 0.0, -0.34)
Gravity (m/s^2): (-0.3, -0.31, 9.790000000000001)

Temperature: 27 degrees C
Accelerometer (m/s^2): (-0.26, -0.3, 9.42)
Magnetometer (microteslas): (-22.375, -27.875, -14.0625)
Gyroscope (rad/sec): (-0.001090830782496456, 0.0, 0.0)
Euler angle: (0.0, -1.75, 1.8125)
Quaternion: (None, None, None, None)
Linear acceleration (m/s^2): (None, None, None)
Gravity (m/s^2): (None, None, None)

Temperature: -101 degrees C
Accelerometer (m/s^2): (-0.27, -0.32, 9.42)
Magnetometer (microteslas): (-22.375, -27.5625, -15.25)
Gyroscope (rad/sec): (-0.001090830782496456, -0.001090830782496456, 0.0)
Euler angle: (None, None, None)
Quaternion: (None, None, None, None)
Linear acceleration (m/s^2): (None, None, None)
Gravity (m/s^2): (-0.3, -0.31, 9.790000000000001)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions