Are you new to the 28BYJ-48 Unipolar dc motor? Well...
I've created two sketches; the first (stepper_motor_v0.1.1) is a bear-bones way to control the 28BYJ-48 Unipolar dc motor using a ULN2003 dc motor driver board and a B103 potentiometer, and the second sketch (IR_stepper_motor_v0.1) includes using an RQ S003 Infrared (IR) receiver module with remote control, so that the direction the motor is spinning can be changed on the fly.
The code is dirt simple, so beginners should get the idea without a problem, and the sketches are documented for the sake of beginners.
If there are any questions, fire away.
those are very well documented sketches! Do you have schematics to go with them?