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 :-
- Attach two 5x5x2mm neo magnets side by side.
- Place into Blue spindle mount on a hollow shaft Stepper motor.
- 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 )
- Mount the ESP32 directly over the magnets (best position not set yet !!!)
- When the Stepper motor arm rotates Clockwise the approach of the magnet sends the Hall effect Positive ( up to 12 bit resolution).
- When the Stepper motor arm rotates Counter-Clockwise the approach of the magnet sends the Hall effect Negative (up to 12 bit resolution).
- A quick test detects the position of the Stepper over 90° range(2Bconfirmed).
- Lets see what direction it will take...
Any lateral feedback welcome ;-)