A stepper motor generates small electrical pulses when rotated physically. So, here the motor is connected to a stepper motor driver which allows another stepper to be controlled by a stepper motor without any complex circuitry or a microcontroller.
...
https://www.youtube.com/watch?v=L1nGZpQOmjE