interfacing of stepper motor

20
Interfacing of stepper motor

Upload: sahilprabhakar

Post on 09-Nov-2015

432 views

Category:

Documents


13 download

DESCRIPTION

microprocessor and microcontroller

TRANSCRIPT

  • Interfacing of stepper motor

  • Stepper motorA stepper motor (or step motor) is a brushless DC electric motor that divides a full rotation into a number of equal steps.

    The motor's position can then be commanded to move and hold at one of these steps without any feedback sensor (an open-loop controller), as long as the motor is carefully sized to the application.

  • Interfacing of stepper motor:-

  • CONNECTION DIAGRAM

  • CLOCK WISE

  • COUNTERCLOCK WISE

  • There are two possible modes:-Mode 1(Full stepping):- Stepping motors have 200 rotor teeth, or 200 full steps per revolution of the motor shaft. Dividing the 200 steps into the 360 of rotation equals a 1.8 full step angle2. Mode 2(Half stepping):- Half step simply means that the step motor is rotating at 400 steps per revolution. In this mode, one winding is energized and then two windings are energized alternately, causing the rotor to rotate at half the distance, or 0.9.

  • In mode1(Full stepping) ,the motor moves by 1.8, to do this two bits are changed at a time ,the bit pattern is as

    ReverseForward

    ABCD01010501100610100A100109

  • Program for full steppingMVI A,80HOUT 03HBACK:LXI H,2000HMVI C,04HUP:MOV A,MOUT 00HCALL DELAYINX HDCR CJNZ UPJMP BACK

    AddressData20000520010620020A200309

  • In mode 2(half stepping) ,the motor moves by 0.9 to do this 1 bit is changed at a time and the bit pattern is as:-

    ReverseForward

    ABCD10100A100008100109000101010105010004011006001002

  • Program for half steppingMVI A,80HOUT 03HBACK:LXI H,2000HMVI C,08HUP:MOV A,MOUT 00HCALL DELAYINX HDCR CJNZ UPJMP BACK

    AddressData20000A200108200109200201200305200404200506200602