I have 28BYJ-48 Stepper Motor with ULN2003 driver; in half-step mode (setting full rev is 4096). While I can make the motor respond about right, the compass mode is quite wrong. My goal is to have the motor output the aircraft Heading; essentially the heading indicator. The Display Scale is set to 3600, and I got a modifier for $*10*[gear ratio] (my hardware is not directly tied to the motor but using a gear reduction). My motor respond well in normal direction (say 90, 180, 270 or even 360 deg) but in compass mode, it simply goes slightly a bit in the opposite direction, regardless of the test value.
#stepper motor buggy Compass Mode
1 messages · Page 1 of 1 (latest)
perhaps there is a bug in the compass mode, and it does not use the user 'Display Scale' nor the modifier, but simply "360" hard coded?
would this happen always or when changing direction?
is it backlash in the gears? especially since the motor itself is also geared
or can you explain a bit more what happens?
The docs do need some love, and we appreciate help too, it is a wiki, so we can edit it with a github account - there are some other pages too that are quite old.
without "compass mode" ON: test 220deg, the motor goes to 220deg. Put "compass mode" ON, test 220deg, motor goes to -20deg (expected -140deg)