Solder the black wire from the JST-PH plug connector to the ground terminal on the DC jack. Solder the red wire from the JST-PH plug connector to the voltage terminal on the DC jack. Cover the connections with heat shrink.
Solder the red wire from the JST-PH socket connector to Vin. Solder the black wire from the JST-PH socket connector to GND.
Solder a second red wire to Vin. This wire will power the stepper motor via the terminal block on the STSPIN220 breakout.
Solder two additional black wires to GND. One will connect to the STSPIN220 GND terminal block and the other will connect to the KB2040 GND.
Solder a wire from GND on the STSPIN220 to GND on the KB2040 (black wire).
Solder a wire from 3V on the KB2040 to VDD on the STSPIN220 (red wire).
Solder wires to DIR (blue wire), STEP (green wire), MS1 (yellow wire), MS2 (white wire), EN (green wire) and RST (blue wire) on the STSPIN220. To keep the wire organized, you may want to use a piece of larger heat shrink.
Connect the STSPIN220 pins to the KB2040:
- DIR to D2 (blue wire)
- STEP to D3 (green wire)
- MS1 to D4 (yellow wire)
- MS2 to D5 (white wire)
- EN to D6 (green wire)
- RST to D7 (blue wire)
That completes all of the wiring.
Page last edited December 09, 2025
Text editor powered by tinymce.