Hi Juan, there is a position controlled SoftMotion driver for this use. You can connect the stepper to the GPIOs of your Raspi. It just needs a motordriver like a L298, a Raspberry Pi as PLC and the stepper motor. You will find a detailed description of the driver, how to use it and how it works here: https://forge.codesys.com/drv/sm3raspistepper/home/Home/