Interfacing stepper motor


Published on

Published in: Technology

Interfacing stepper motor

  1. 1. Interfacing Stepper motor
  2. 2. Introduction <ul><li>Stepper motor is different for ordinary motors </li></ul><ul><li>It has named before the operation and structure of the motor. </li></ul><ul><li>Yes,ofcourse the motor runs in steps and has many winding types </li></ul><ul><li>Motor was classified into two types in both categories </li></ul>
  3. 3. Classification <ul><li>Based on windings </li></ul><ul><ul><ul><li>permanent-magnet (PM) stepper motors, </li></ul></ul></ul><ul><ul><ul><li>variable-reluctance (VR) stepper motors, </li></ul></ul></ul><ul><ul><ul><li>hybrid stepper motors </li></ul></ul></ul><ul><li>Based on steps </li></ul><ul><ul><ul><li>4 – steps </li></ul></ul></ul><ul><ul><ul><li>8 – steps </li></ul></ul></ul>
  4. 4. <ul><li>permanent-magnet stepper motor </li></ul><ul><ul><li>The permanent-magnet stepper motor operates on the reaction between a permanent-magnet rotor and an electromagnetic field. A basic two-pole PM stepper motor </li></ul></ul><ul><li>Variable-reluctance Stepper Motors </li></ul><ul><ul><li>The variable-reluctance (VR) stepper motor differs from the PM stepper in that it has no permanent-magnet rotor and no residual torque to hold the rotor at one position when turned off. </li></ul></ul>
  5. 5. Permanent-magnet (PM) Stepper Motors (a)PM stepper motor; (b) 90 step; (c) 45 step.
  6. 6. Variable-reluctance stepper motor and switching sequence.
  7. 7. A 4 – step stepper motor
  8. 8. Connection of 4 – step stepper motor
  9. 9. Basic concept <ul><li>If you give supply to the windings, they started to get magnetized, and “the same poles repelled each other and opposite poles attract each other” concept is applicable for magnetized coil and inner magnetic shaft </li></ul><ul><li>The shaft started to move to the portion where there is no magnetic force to free itself. </li></ul><ul><li>At this position if the voltage applied to the coil changes continuously, motor also starts to rotate continuously. </li></ul>
  10. 10. Programming concept <ul><li>Start from the beginning , we are going to give some 4 binary values from either microcontroller or PC. </li></ul><ul><li>As we know what to do for giving values form microcontroller, we can assign a char to give that value to particular port by using sfr. </li></ul><ul><li>That is it, value passed to motor and the motor rotates……… </li></ul>
  11. 11. Program structure <ul><li>#include<reg51.h> </li></ul><ul><li>Sfr motordata=0x90; // Port 1 for motor interface </li></ul><ul><li>Sbit control =P2^1; // controlling the motor </li></ul><ul><li>Void main() </li></ul><ul><li>{ </li></ul><ul><li>Control=1; </li></ul><ul><li>motordata=0; </li></ul><ul><li>While(1) </li></ul><ul><li>{ </li></ul><ul><li>If(control==1) </li></ul><ul><li>{ </li></ul><ul><li>motordata=0x88; </li></ul>
  12. 12. Program structure contd. <ul><li>motordata =0x44; </li></ul><ul><li>motordata=0x22; </li></ul><ul><li>motordata=0x11; </li></ul><ul><li>} </li></ul><ul><li>else </li></ul><ul><li>{ </li></ul><ul><li>motordata=0x88; </li></ul><ul><li>motordata =0x11; </li></ul><ul><li>motordata=0x22; </li></ul><ul><li>motordata=0x44; </li></ul><ul><li>} </li></ul><ul><li>} </li></ul><ul><li>} </li></ul>
  13. 13. Assignment for next class <ul><li>Rotate a particular degree in motor </li></ul><ul><li>Rotate the motor 45* both clockwise and anticlockwise continuously. </li></ul><ul><li>Calculate the number of steps required for full rotation. </li></ul>