simplefoc / Arduino-FOC-drivers

Drivers and support code for SimpleFOC
https://docs.simplefoc.com/drivers_library
MIT License
146 stars 63 forks source link

Add MT6816 magnetic sensor SPI driver #14

Closed samguns closed 2 years ago

samguns commented 2 years ago

Hi, I wrote an SPI driver recently for MagnTek's MT6816, and an example code was put in this PR. They work well in my ESP32 test bench so far. Well, is there anybody interested in this driver? Or at least take a code review? Thanks

runger1101001 commented 2 years ago

Thank you so much for this, this looks like great work!

Unfortunately I don't have a MT6816 sensor to try it, but if you've tested it on ESP32 then that's enough for the drivers repo, I think.

I will merge it and check for compilation on the different platforms, and get it ready for the next release of the drivers library. :-)
At the moment the dev branch of the drivers repo is waiting on the next release of SimpleFOC for some needed changes, so it could take a little time before it gets released.

Thank you so much for your contribution!