Hi, I am trying to retrieve the data from the IMU on the pi sense device using a raspberry pi 5 with raspberry pi OS. When running my python script I can retrieve the data a couple of times before it freezes.
x@x:~/projects/x $ python test.py
pitch 356.05675506100687 roll 1.9352514987228382 yaw 128.0647901829318
x@x:~/projects/x $ python test.py
pitch 356.07001800771457 roll 1.978400578474159 yaw 126.6988069904426
x@x:~/projects/x $ python test.py
pitch 0.0 roll 0.0 yaw 0.0
This is the script I am using (test.py):
from sense_hat import SenseHat
sense = SenseHat()
sense.clear()
o = sense.get_orientation()
pitch = o["pitch"]
roll = o["roll"]
yaw = o["yaw"]
print("pitch {0} roll {1} yaw {2}".format(pitch, roll, yaw))
When I run dmesg I get the following output:
[ 18.395653] i2c_designware 1f00074000.i2c: i2c_dw_handle_tx_abort: lost arbitration
[ 19.395844] i2c_designware 1f00074000.i2c: controller timed out
[ 20.419847] i2c_designware 1f00074000.i2c: controller timed out
[ 21.443860] i2c_designware 1f00074000.i2c: controller timed out
[ 22.467847] i2c_designware 1f00074000.i2c: controller timed out
[ 23.491853] i2c_designware 1f00074000.i2c: controller timed out
[ 24.515849] i2c_designware 1f00074000.i2c: controller timed out
[ 25.539855] i2c_designware 1f00074000.i2c: controller timed out
[ 26.563852] i2c_designware 1f00074000.i2c: controller timed out
Hi, I am trying to retrieve the data from the IMU on the pi sense device using a raspberry pi 5 with raspberry pi OS. When running my python script I can retrieve the data a couple of times before it freezes.
This is the script I am using (test.py):
When I run
dmesg
I get the following output:Do you know why I am getting this error?