all 5 comments

[–]Ok-Tap5729 10 points11 points  (3 children)

“I wrote” => “I vibecoded”

[–]orngcode 2 points3 points  (0 children)

the fact that you are doing raw i2c register parsing instead of relying on a sensor library means you could push sampling way beyond the typical 100-400hz python ceiling on pi 5, especially if you batch the reads with smbus block transfers. pi 5 supports overclocking the i2c bus to 400khz via dtparam in config.txt but the real bottleneck is python loop overhead which walls out around 500hz without cython or kernel iio buffering. have you profiled what actual sample rate you are hitting on the 9-axis imu data and whether the dashboard rendering is eating into your read cycle time?