Hey guys,
We've made a bit of progress: today we've performed the stepper driver swap experiment:
- Replaced the Y axis stepper drive with a Gecko G203V.
- Updated the firmware, since the Gecko is a 10microstep drive, while we used the Longs drive at 8 microsteps:
- # steps per mm on a longs drive was: 22.22222222
- # steps per mm on a Gecko is now: 27.77777778
(We use a 3 mm pitch belt, on a 24 tooth pulley with 200 steps/rev stepper motors, no mechanical transmission.)
- Homed, then moved the lens assy to point 100,100.
- "Cut" the entire tie, but with the HV PSU unplugged.
- Moved back to point 100,100 to check offset.
Result:
- No shift in Y direction.
- A clear shift of approximately 5 mm in X direction.
So Steve is probably on the right track, and we're unhappy about that, because it will probably mean spending more money..
So we performed another experiment:
- Left the Gecko in place on the Y axis, no need to change this now.
- Changed the micro stepping settings on the Longs motor drive to 6400 steps / revolution. (Increased from 8 microsteps to 32 microsteps)
- Updated the firmware:
- # steps per mm on the Longs drive with 32 microsteps is now: 88.88888889
- Homed, then moved the lens assy to point 100,100.
- "Cut" the entire tie, but with the high voltage supply turned off.
- Moved back to point 100,100 to check offset.
Result:
- No shift in Y direction. (Of course, this is still the Gecko drive)
- A significantly smaller shift in X direction, but still visible. As expected from 4 times increase micro stepping: The shift is 4 times less.
- Steve's theory of making a step in the wrong direction might make sense: By reducing the step size this effect is reduced.
So we looked into step times and direction setup times:
We noticed that the pulse time is set in the firmware in config.h to 5us, which should be more than enough for both the Gecko (>1 us) and the Longs (>2.5 us).
One big difference in specifications between the two drivers is the required direction setup time, before the step is applied:
The Gecko requires a direction setup time of >200 ns, while the Longs requires >5 us. A factor of 25 times.
Calculating the pulse frequencies that we're using, there should be plenty time to even achieve 5 us direction setup time, but we can't find this setting in the software, so the question is: Can we adjust this parameter in the software and if so, could anyone point out where to do this? So far we haven't been able to discover the location (if existent).
Thanks very much for the input and help!
Cheers!