Electrical

The PIC is used as an interface between the computer and the motor controllers. The computer sends the picture drawing commands one at a time. After receiving each command, the PIC then sets the direction (logic high or logic low) and the speed (controlled by the frequency of a square wave) of the motor controller. After moving the motor the required number of steps, the PIC then waits for the next command from the computer.