Experiment with hall effect angle sensors

Hi Kevin.

It took a while, but I got a bunch of sensors working (in arduino for now).
Ordered TLE5012 and AS5047D as bare MCU’s, because PCB’s with them were unreasonably expensive, so made PCB’s myself.

What was surprising is that MT6701 is way more precise than any of TLE5012 and AS5047D,
it doesn’t even tremble in 0.01 degree, really smooth (14bits), while TLE5012 trembles around 0.02 deg from time to time on turned off motor.
AS5047D had worst documentation, and it trembles a lot, though I did everything I could find about it’s PCB:


it works nearly as bad as AS5600, which is dirt cheap, but only I2C\PWM.

so got a bunch of questions here:)

  • which sensors\boards did you use? any pictures or PCB schemes?
  • what about tremble/accuracy on still motor? 0.02 deg for all or less, or …?
  • looks like you use only SPI/SSI, without I2C, is it because it’s too slow for this? (I could make MT6701 to work in SSI, need to add code for it to klipper, so asking a lot here)
  • can I send you my code for review to add MT6701 support? Or create pull request? It cost like 5-6 times less than TLE5012 and AS5047D on their PCB’s, nearly as low as 3$, it can add more attention to these sensors. Though it doesn’t have any ready to use libs or code examples, but it works really smooth.


(for I2C/SPI R2 had to be moved to R1 position and R3, R4 have to be removed).

Best regards,
Alexander.

1 Like