Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.58k stars 5.34k forks source link

Angle: add support for MT6816, MT6826S sensors #6735

Open nefelim4ag opened 2 weeks ago

nefelim4ag commented 2 weeks ago

For now, this is just a proposal - till there are other real users.

MT6816 - simple 14-bit angle sensor, can be read and that's it. MT6826S - Has calibration capabilities - implemented, hysteresis, and 15-bit output MT6835 - (21 bit) should work with code from MT6826S, we anyway will ignore additional bits.

For now, I mostly play around with MT6826S.

Thanks.


BTW, it would be nice to have a generic query command for the angle sensor, like ACCELEROMETER_QUERY.

KevinOConnor commented 1 week ago

Thanks. As very high-level feedback, we can certainly add support for these additional sensors. The code would need to pass the regression tests though.

Cheers, -Kevin

nefelim4ag commented 6 days ago

But for now it is failing because of image limitations:

...  ../../or1k-linux-musl/bin/ld: Klipper image is too large

The only idea that I have is to disable angle sensors for ar100.