Microcontroller Application -Asim Abbasi
Stepper Motor Control Using Microcontroller Atmel 89C51
This project is used to control the speed as well as
direction of rotation of a 4 phase permanent magnet stepper motor. Two
switches are provided to select the desired direction of rotation. By
pressing one switch the stepper motor rotates in one direction and by
pressing it rotates in other direction.
4 line Dip switch is provided to control the speed. There are 5 different speeds that can be selected. Four using the Dip switch and one is default.
motor is used in our case is COPAL type with six terminals. Two of them
is connected to +12v supply and remaining 4 will be given the Digital
Pattern by the microcontroller. Stepper motor of many different steps
are also available. The one I have used is 24 steps motor.
More the number of steps in 360 degree rotation, smoother the rotation. But there are ways of making smooth rotation with stepper motor having less number of steps in 360 degree rotation.
The microcontroller used in this project is Atmel's 89C51. One can define microcontroller as a single chip computer. It has RAM, ROM, CPU and Ports just like in ordinary PC. It must be programmed before inserting into the circuit.
Applications Of Stepper Motor
Stepper motor is used in Printers, Scanners, Robotic Arm, legs, Neck etc movement. Due to its inheriting quality of excellent brake and movement in steps, its used in printers to move the printer head or stylus to the next line accurately.
There are only five different speed available in this project but it can be increased to 256 different speed levels by using a 8-bit ADC, whose output goes to microcontroller. The analogue input to this ADC will be a variable resistor. So by varying the resistance one can easily select one desired speed.
Secondly, instead of using digital switch one can interface the circuit with Infrared remote control units, as infrared transmitter and receivers can easily be created using VCO, F-V converters and Comparators, or one can go for single chip solution ASIC. Thirdly, this technology can also be integrated with Asim SoftTech created "AS YOU WISH" in order to produce voice activated robots.
Download Link &
Download & use this software at your own risk. If something wrong happens to your system or anyone else system connected to your computer, neither Takveen nor the author would not be responsible!!!