Okay i just swapped out the MPU-6050 for another identical one direct from antistatic package and
xy-axis accelerometer measured no data
Klipper state: Shutdown
MEASURE_AXES_NOISE
So maybe just defective sensors
Edit:
I tried two more sensors ( 4 total ) and none of them worked at all… So either something is very wrong with my config or most of these sensors are just bad… I don’t really know which. Ordered ADXL-345
Edit:
Okay I have tried sooo many sensors and method… I just now switched it to use the I2C interface on my BTT Octopus Pro MB and it seemed to work at first but then started doing the same thing! It passes the Query and noise tests but then after about 10 samples on the resonance test it looses I2C connection and errors out…
Here is the log file if it is helpful to anyone…
klippy (8).log (2.1 MB)
This is the config I used for that:
[mpu9250]
i2c_mcu: mcu
i2c_bus: i2c1a
[resonance_tester]
accel_chip: mpu9250
probe_points:
180, 180, 20 # an example
I also tried changing the pullup resistors from 2.2k to 4.7k to no effect.
EDIT!!:
OMG It worked!!! Only took me all day and eventually using an RP2040 with very short jumper leads… I think the leads to RPI were too long… But even then not sure it would have worked. I did try with shorter leads at one point directly to the RPI and it didnt work, but maybe I was having some other issue at that point… Who knows
I strongly suggest anyone trying to use the MPU-6050 get an RP2040 as your i2C bridge to klipper… Its only $5 and worth it… Or just use the ADXL345… This is just what I had today.
pi@mainsailos:~/klipper $ ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_x_*.csv -o /tmp/shaper_calibrate_x.png
Fitted shaper 'zv' frequency = 91.2 Hz (vibrations = 18.9%, smoothing ~= 0.025)
To avoid too much smoothing with 'zv', suggested max_accel <= 32400 mm/sec^2
Fitted shaper 'mzv' frequency = 76.4 Hz (vibrations = 5.1%, smoothing ~= 0.037)
To avoid too much smoothing with 'mzv', suggested max_accel <= 17200 mm/sec^2
Fitted shaper 'ei' frequency = 89.6 Hz (vibrations = 3.0%, smoothing ~= 0.041)
To avoid too much smoothing with 'ei', suggested max_accel <= 15000 mm/sec^2
Fitted shaper '2hump_ei' frequency = 82.8 Hz (vibrations = 0.3%, smoothing ~= 0.079)
To avoid too much smoothing with '2hump_ei', suggested max_accel <= 7600 mm/sec^2
Fitted shaper '3hump_ei' frequency = 77.6 Hz (vibrations = 0.0%, smoothing ~= 0.136)
To avoid too much smoothing with '3hump_ei', suggested max_accel <= 4400 mm/sec^2
Recommended shaper is ei @ 89.6 Hz
pi@mainsailos:~/klipper $ ~/klipper/scripts/calibrate_shaper.py /tmp/resonances_y_*.csv -o /tmp/shaper_calibrate_y.png
Fitted shaper 'zv' frequency = 38.2 Hz (vibrations = 1.7%, smoothing ~= 0.109)
To avoid too much smoothing with 'zv', suggested max_accel <= 5600 mm/sec^2
Fitted shaper 'mzv' frequency = 38.4 Hz (vibrations = 0.0%, smoothing ~= 0.138)
To avoid too much smoothing with 'mzv', suggested max_accel <= 4300 mm/sec^2
Fitted shaper 'ei' frequency = 45.8 Hz (vibrations = 0.0%, smoothing ~= 0.154)
To avoid too much smoothing with 'ei', suggested max_accel <= 3900 mm/sec^2
Fitted shaper '2hump_ei' frequency = 57.2 Hz (vibrations = 0.0%, smoothing ~= 0.165)
To avoid too much smoothing with '2hump_ei', suggested max_accel <= 3600 mm/sec^2
Fitted shaper '3hump_ei' frequency = 69.0 Hz (vibrations = 0.0%, smoothing ~= 0.172)
To avoid too much smoothing with '3hump_ei', suggested max_accel <= 3500 mm/sec^2