First post so hello everyone!
I am completely new to Arduino and have set out to make an auto guider camera mount for astrophotography. I have bought an Uno R3 and two 28BYJ-48 stepper motors with UNC2003 boards and I’m currently working on getting one of the two motors running from PHD2 auto guiding software using a driver from this forum.
I’ve managed to get the motor responding to E and W manual guide commands in PHD2 so the interface and code is working however the motors will only complete one step per pulse from PHD2.
If I keep pulsing the output the motor continues to step in the required direction but at one step per pulse.
Can someone take a peek at my code (modified from code found on here so not all my own work!) and advise as to why the motor will not complete the defined number of steps every time the input is received?
Also the motor rotates correctly for E and W but also rotates when N or S are sent (always the same direction as W).
Thanks you so much in advance!
my_arduino_RA_mount.ino (3.38 KB)