Hi everyone. I just bought a stepper motor. In the internet, I can find how to control the speed and direction of the stepper motor, but what I really want to do is using a potentiometer to control the stepper motor angle. It means that the stepper motor will rotate the same angle as I rotate my potentiometer. My stepper motor model is 28BYJ-48 12V, the driver is ULN2003. May I know how I can write the code to achieve the above functions?
One more thing is for the other stepper motor. There are four wires, respectively they are A+,B+,A-,B-. May I know how I can connect it to the arduino board and how the code will be different from the above 28BYJ-48.