@ahmad007, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.
What is vorrichtung?
Usually your write code, show it to us and tell us that it does not work (how does the behaviour differ from what you expect).
Start small; my steps would be
- Try to turn the stepper forwards and backwards (not connected to the device).
- Next you need to determine how you know that your device (please provide a link) has moved a certain distance and implement code for that.
- Next you can figure out how to work with a joystick and write associated code
- Lastly you combine the result of (2) with the result of (3).