Stervo motor Hall-Effect Position (circa 90° position detect)

Its been bugging me for a while now on finding a way to detect the position of a Stepper motor, because it good to find its position before powering up !!! ...Yes....

So in a Nutshell :-

  1. Attach two  5x5x2mm neo magnets side by side.
  2. Place into Blue spindle mount on a hollow shaft Stepper motor.
  3. ESP32 has an inbuilt (easter Egg) Hall Effect sensor - the sweet spot is as seen above on the yellow mount (just around the CE engraving )
  4. Mount the ESP32 directly over the magnets (best position not set yet !!!)
  5. When the Stepper motor arm rotates Clockwise the approach of the magnet sends the Hall effect Positive ( up to 12 bit resolution).
  6. When the Stepper motor arm rotates Counter-Clockwise the approach of the magnet sends the Hall effect Negative (up to 12 bit resolution).
  7. A quick test detects the position of the Stepper over 90° range(2Bconfirmed).
  8. Lets see what direction it will take...

Any lateral feedback welcome ;-)