B4R Library Stepper motors


I had a few issues with this. One tip, to prevent others from repeating my mistake, is to have a separate power source for the stepper motor if you have several sensors/devices powered by the same 5V-pin on your Arduino. Things might start to behave really interesting otherwise. The other one, if you're using a 28BYJ-48 and it doesn't seem to want to reverse when stepping with negative numbers, but it just keeps going forward that amount ins, just try switching pin 2 and 3 from the driver board to the Arduino.