Hello,
yes you are right - a gauge is not so extremly accurate as a cnc - i'am in your boat.
And yes - you are right with the second needle - i make it also so for detection on a gauge.
But i want also use stepper for other things like trimmwheel and so on... i will prevent further problems so i have solved this problem.
After a correct calibration i need also an offset to move the needle on the "0" on the display of the gauge - then the endstop-sensor must not be the same point as the "0" or Neutralposition on the Instrument.
And if i see a needle they show me 1-2 Degree more or less then the "0" it depends from the length of the needle to have it maybe on 2 or 5 on the Display.
But each can build so accurate they want.
I have found some other things too - the missing Offset after Autozero then a acceleration and speed for each stepper - not a hardcoded one for all.
If i use different stepper and different needles of course - i have to change this values for smoothing and accurrate moving for each isntrument/each stepper.
Then the big problem some people have the idea to connect a stepper-driver with two pins (DIR and STEP) on the arduino with Mobiflight Stepper Modul if only accepted 4Wire stepper-Amplifier. So for un derstanding a STEPPER-DRIVER is not a STEPPER-AMPLIFIER like some people use with the UN2003 and the 28BYJ.
I read some use the easy-driver (is a STEPPER-DRIVER with two Pins) and the connect it wrong to a 4Wire Output on Mobilfight. They tell it works if you double the pins but mobiflight not allowed to double pins. It looks only double - if you upload it the use the old pin-numbers. So in the real-world the two pins are connected to the easy-driver totally wrong and the other pins are not connected.
I have checked the firmware - they cannot use the same pins... but it works some people say... i have tst it out and i can say - yes it looks like it works.. but this is not correct.
So for understanding a stepper-driver with two pins they are two important things.
DIR is a Pin that can be Low or High and set clockwise or counterclockwise. STEP is the steps to move itself. So if u use a stepper-driver on the 4 wire pins of mobiflight (yes they dont have DIR) then you can see the stepper is moving - so WHY? Yes i can explain it easily - it moves but with lower speed as it should and missing steps. Then each of the 4Wire are stepping... so it means the DIR-Pin of the stepper-driver also go low and high every step. So depending from the step-frequency the stepper-driver set the stepper back and forward because the DIR-Pin now is high and low... that is totally senseless and nonsense.
But so far the frequency are always the same and people don't see the problem.
Later i found problems in the forum from people talking have problems with speed of the stepper and so on... this all problems because of wron using stepper-driver on stepper-amplifier-outputs.
If i use a gauge-stepper with easy-driver on mobiflight in the wrong way - then i can become a stutter moving and extremly slow speed with less torque - so around 4 seconds for one revolution.
If i change the arduino-firmware to working with 2Wire Stppper-Driver (Yes it is possible easily - Library Sebastian use can do this) then i have smooth moving in under one second with a higher torque.
So long text and short sense - if we make it correct - then we can prevent problems in the future - thats my 50 cent.
I have implementet correct way to drive gauge-stepper like the X27 with the correct driver for it (- not the easy-driver because is not for gauge-stepper -) now i have to implement in the GUI so everybody can use it - but it takes a little bit because some questions to Sebastion unaswered now.
But in this way i can say it is very easy to use X27 Stepper with the correct Driver like the X1201728SG with the mobiflight arduino-firmware. Have some Video again to show how speedy is a X65 Stepper (Double Torque for bigger needles like the X27)
http://www.nighteagle.de/X65Rotation.mp4