How accurate is controlling a stepper motor directly from the Pi?
I've been toying with the idea of getting a moonlite focuser and using the Pi for remote control of it (currently I use a olimex A20 to control CCD, Guider, Scope mount and filterwheel remotely via ekos). However, when I was thinking about using gpio from the Pi + a driver chip I wasn't sure if the Pi would be accurate enough to send the motor on pulse for just the right duration without potential delays due to non real-time OS.
I was thinking instead about using a PIC chip and implementing the moonlite protocol on that so that the Pi could use serial to communicate with the Pic, random delays/jitter wouldn't matter there and then the Pic would be able to do very accurate driving of the motor via a driver chip.
That said, you've both now got me curious about how accurately the Pi 3 can drive its gpio pins. Do either of you have an oscilloscope and a way to capture a trace of the motor pulses to see how well the Pi does? My main concern was that with it not being a real-time OS, there's a chance it could start the motor then be pre-empted and other processes run a little before it can turn off the motor, causing the stepper to move more than intended. Is that a valid concern?
If the Pi is capable of decent enough accuracy I may have to revise my original plans.