I bought a contraption from aliexpress which included a stepper motor, and I can't figure out how to control it. The documentation is very poor (and chinese) so this is a puzzle question, maybe some of you will have an idea.
The motor has 6 pins, which are shown in this image from the docs (where it is connected to some unknown and ungoogable STM32 board):
The pins, top to bottom in the picture, and right to left in the table google translate to the following:
wire color | english | STM32 pin |
---|---|---|
violet | Motor line + | 3.3V |
black | Encoder GND | GND |
blue | Encoder B | B7 |
green | Encoder A | B6 |
orange | Encoder 5V | 5V |
white | Motor line - | GND |
My guess was that the Motor line + and Motor line - are for the power, and the remaining four are for the control. I connected Motor line + and Motor line - to a 3V source and the motor spins continuosly.
I then tried to connect Encoder GND, 5V, B, A to a microcontroller ground, voltage, and two GPIO pins and change the B & A values to 0 or 1. Nothing happens, the motor still spins continously to the same direction.
I hope that this "encoder A & B" is some kind of standard interface that some of you will know. Otherwise, I would appreciate hints on how to further interrogate the device.