|
|||
ARDUINO & STSPIN820: DRIVE A STEPPER MOTOR |
|||
|
|||
|
|||
INTRODUCTION The project presented on this page shows the Arduino control of a bipolar stepper motor using the STSPIN820 driver, produced by STMicroelectronic, assembled on its evaluation board (EVALSP820-XS) that can be purchased in all electronic component sellers. The photo shows the final system, assembled, which includes the Arduino Mega2560, the EVALSP820-XS evaluation board (yellow box) and the connected bipolar motor:
HARDWARE IMPLEMENTATION The hardware implementation is performed using the Arduino MEGA 2560 board, the STSPIN820 evaluation board and the stepper motor: since the low voltage commands of the board are all on one side, just connect the male strip corresponding to the female strip of the Arduino greatly reducing the connections via wires. From the power side, the motor and power supply (VM-GND) and the power supply for the control unit (VCC - GND) must be connected using the 5V available on the Arduino board. Connection diagram for controlling a bipolar stepper motor via Arduino and STSPIN820
The principle of control is very simple: through Arduino, the inputs of the EVALSP820 board are controlled for the management of the stepper motor connected to it. The STDBY signal controls the switching on of the board while the EN signal is used to switch on the output stage. The DIR signal is used to control the direction of rotation of the motor while the STEP signal is used for the feed. Finally the driving mode that goes from full step to 1/256 step is managed through the signals M0, M1, M2. The program, loaded on Arduino, allows to manage the various functions through the serial monitor of the IDE program by Arduino. |
|
||
|
|||
|
|||
|