0% found this document useful (0 votes)
104 views

Mini Project Report

The document summarizes a mini project report on controlling a stepper motor using a C program. A stepper motor was controlled through the 25 pin parallel port of a PC using a C program. The program sends zeros and ones to the pins to energize the coils of the stepper motor in a specific pattern to rotate the motor in the desired direction and speed. The speed could be varied by adjusting the delay in the C program - decreasing the delay increased the speed while increasing the delay decreased the speed. In conclusion, controlling a stepper motor with a C program provides flexibility to vary its speed and direction, making it useful for applications that require stepper motor control or research experiments on complex systems.

Uploaded by

Harsha Vardhini
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
104 views

Mini Project Report

The document summarizes a mini project report on controlling a stepper motor using a C program. A stepper motor was controlled through the 25 pin parallel port of a PC using a C program. The program sends zeros and ones to the pins to energize the coils of the stepper motor in a specific pattern to rotate the motor in the desired direction and speed. The speed could be varied by adjusting the delay in the C program - decreasing the delay increased the speed while increasing the delay decreased the speed. In conclusion, controlling a stepper motor with a C program provides flexibility to vary its speed and direction, making it useful for applications that require stepper motor control or research experiments on complex systems.

Uploaded by

Harsha Vardhini
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

KUMARAGURU COLLEGE OF TECHNOLOGY

YEAR -2009 MINI PROJECT REPORT ON

CONTROLLING STEPPER MOTOR USING C PROGRAM


Submitted in accordance with the curriculum requirements for Fifth semester of the degree course in

Bachelor of Engineering In the branch of Electrical and Electronics Engineering

SUBMITTED BY: B.ASHOK BHEEM RAO (07BEE09) S.BARATHI (07BEE10) S.MADHAN (07BEE31) B.VIGNESH (07BEE58) PROJECT GUIDE: Mrs. SHANTI

ABSTRACT

With a stepper motor lots of gadgets such as robots, elevator, PCB drilling mill, camera panning system, automatic fish feeder, etc. can be built. Stepper motors are very different from a regular DC motors. Instead of spinning like DC motors do stepper motor steps at a specific resolution for each pulse. The precision of stepper motors are very high. The motor that is used here needs 48 steps / pulses just to complete a single revolution. Here the stepper motor is controlled using c program through the 25 pin parallel port of a pc. Parallel port is used for controlling any external device through programming in kernel mode. A unipolar stepper motor has four coils internally and six external leads. The four coils are to be energized in a proper manner to make the rotor move in clockwise and anticlockwise manner accordingly. And so the data from the parallel port is given to the four external leads that are connected to the four coils internally. The other two leads are given to the dc power supply. The data from the parallel port is interfaced to the stepper motor through opto-coupler IC and Darlington amplifier IC. LED is connected across each signal line to indicate which coil is energized at the moment. The secondary of the supply transformer is given to the bridge rectifier to provide a rectified DC signal which is then allowed to pass through a Zener diode regulator. The data can be rendered from the parallel port just by setting the corresponding pin high with respect to ground. If the pin is to be made high the value 1 is to be transmitted through the pin, if it is to be maintained low then the value 0 is to be passed through the pin.

These are done by using C program. Zeros and ones are sent to the pins according to the pattern in which the coils of the stepper motor are to be energized in order to make it rotate in the required direction and required speed. In order to vary the speed a delay routine is created, when the speed is to be increased the delay is reduced and when the speed is to be reduced delay is increased. Here lies the control part of the stepper motor.

CONCLUSION:
The stepper motor control using c program can be preferably used in design and research fields. As the stepper motor controlled through the parallel port provides much flexibility in varying its speed and direction in order to complete a desired function, it can obviously be used when a stepper motor interface is being designed for any application. And once a suitable algorithm is attained in the C program, all the microcontrollers that are to be implemented in actual application can be programmed accordingly. And even in research field miniature of a complex real time problem could be devised using the stepper motor and experiments can be carried out.

You might also like