Arduino Stepper Controller

Description#
So, I was going through my kit of electronics, and found this weird unnamed circuit. After investigating (Google Lens) a little bit, I found out that this is in fact a stepper motor controller that goes with the same stepper in the kit.
Problem is, there is still very little documentation on this thing. I initially didn’t know how to properly wire it up, but after some trial and error, I figured it out.
In the Arduino stepper example, we can see the following constructor for the Stepper library:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
Unfortunately, the pins IN1, IN2, IN3, and IN4 on the motor controller do not correspond in the same order as the constructor. After some testing, I found out that the correct order is:
| Arduino PIN | Controller PIN |
|---|---|
| 8 | IN1 |
| 9 | IN3 |
| 10 | IN4 |
| 11 | IN2 |
Obviously, there are other ways to wire this up, but this is the one that worked for me.
I would also say that maybe there are different ways that the stepper’s connector is wired up, so you might need to experiment a little bit to find the correct order.
Finally, you can just power the controller using the two leftmost pins on the bottom. They should have a little (-) and (+) sign next to them to help identify GND and VCC.