Very interesting building.
I have the wheel (purchased one, i hate make theads in my 3d printer), i have the electronic, ascom recognize it, wheel move , but need config and choose a position for the hall sensor......
....but, please, can you explain me what i must change in the code for use the same motor attached to the exterior side of the inner wheel? using friction to move, but a lot of more steps per revolution.....
Watching your video i see that you installed the magnet between two filter positions, i have a very small neodymiun that trigger the digital hall sensor perfectly, but what values must i change? (i see the changes in lines 23 y 24 for choose digital and low sensor).
I see some lines that sure i must change, but i am not a programmer (only a "copy and paste" man), and it was very usefull to know what changes i must make depending of the total steps for revolution...
line 8
#define Steps 4 //stepper steps 2048 per rev
line 22
#define analogSensorThreshold 430 // set the threshold below which the homing sensor is triggered
#define HALLSENSORTYPE 2 // SET to 1 for ANALOG HALL Sensor, CHANGE to 2 for DIGITAL HALL SENSOR
#define HALLACTIVETYPE 2 // SET to 1 for ACTIVE HIGH Digital Sensor, CHANGE to 2 for ACTIVE LOW digital Sensor
line 26
const int filterPos[] = {0, 56, 466, 876, 1286, 1696}; //Rough alignment of filterPos
line 85
stepper.runToNewPosition(stepper.currentPosition() - 500); //back magnet off sensor
stepper.moveTo(3000); //set move to as 3000 (one rotation is ~2000 steps so if not homed by then raise error.
Thanks..
OscarP