SimpleFoc Sensor Eccentricity Calibration

Hi guys,
I’ve done an iteration in the @marethyu code of the CalibratedSensor in the drivers repo.
Now it supports steppers too. Its a bit more flexible in terms fo the Lookup table size and allows to load the LUT form the code and skip the calibration.

I find it very useful for stepper motors. I had a lot of trouble aligning the magnetic sensors with steppers due to the high number of pole pairs. Even with relatively precise 3d printed parts.
This code helps a lot

There are some examples in the examples folder as well and a bit more info in the README

Before the calibration:

After the calibraiton:

Here is the link to the PR:

2 Likes