“This post shows how to control stepper motor speed and direction of rotation using Arduino UNO board and PS2 joystick.
Arduino UNO board
28BYJ-48 stepper motor (with ULN2003A driver board)
5V power source
Stepper motor control with Arduino and joystick circuit:Project circuit schematic diagram is shown below (all grounded terminals are connected together).”