MPU9255 issues on Raspberry Pi 4

I would need to test that the mpu treats the six bytes as a group, but if it does that would be better behavior for certain. Perhaps it would not cause too large a deviation in the axis measure command too.

@Dmytry have you been able to get the MPU accelerometer working? I’m having similar issues and thought it might have been a bad MPU chip but im still getting incorrect readings after changing it.

It sort of works (not very reliably), with sudo cpufreq-set -g performance .

Ideally, I think there needs to be some error handling to detect overrun and re-do a measurement. I suspect that the same problem may be happening with all accelerometers since they all have pretty short buffers, with MPU9255 being particularly badly affected because it can lose individual bytes and so the results are more obviously garbage.

1 Like

Hello,
I am new with Klipper.
When I try to connect MPU9255 to PI4, first time I also have the same issue of large noise. After that I found this topic and command “sudo cpufreq-set -g performance” fix it for me.
This gonna be fixed in some new release?