Super simple lab to control a stepper motor with an RPi
Find a source to guide you through how to connect your stepper to your Pi and change the code accordingly. This example was run with a Raspberry Pi 3B+ and a 28BYJ-48 5V stepper connected via a stepper controller board to the GPIO pins of the Pi