This research presents a mathematic module for stepper motor in Matlab program through the equations that describe the motor transfer function. It illustrates the primary characters of the open loop for the designed module, then it offers PID controller design for controlling the motor speed. In addition, we can use the fuzzy logic and its applications in order to design a speed fuzzy controller. Finally, we make a comparison between the fuzzy and PID controller in control performance and response time.