interfacing stepper motor

13
Interfacing Stepper Interfacing Stepper motor motor

Upload: pradeep

Post on 06-May-2015

4.874 views

Category:

Technology


41 download

TRANSCRIPT

Page 1: Interfacing stepper motor

Interfacing Stepper motorInterfacing Stepper motor

Page 2: Interfacing stepper motor

IntroductionIntroductionStepper motor is different for

ordinary motorsIt has named before the operation

and structure of the motor.Yes,ofcourse the motor runs in

steps and has many winding typesMotor was classified into two types

in both categories

Page 3: Interfacing stepper motor

ClassificationClassificationBased on windings

permanent-magnet (PM) stepper motors, variable-reluctance (VR) stepper motors, hybrid stepper motors

Based on steps 4 – steps 8 – steps

Page 4: Interfacing stepper motor

permanent-magnet stepper motor ◦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

Variable-reluctance Stepper Motors◦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.

Page 5: Interfacing stepper motor

Permanent-magnet (PM) Stepper Motors

(a)PM stepper motor; (b) 90 step; (c) 45 step.

Page 6: Interfacing stepper motor

Variable-reluctance stepper motor and switching sequence.

Page 7: Interfacing stepper motor

A 4 – step stepper motorA 4 – step stepper motor

Page 8: Interfacing stepper motor

Connection of 4 – step Connection of 4 – step stepper motorstepper motor

Page 9: Interfacing stepper motor

Basic concept Basic concept 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

The shaft started to move to the portion where there is no magnetic force to free itself.

At this position if the voltage applied to the coil changes continuously, motor also starts to rotate continuously.

Page 10: Interfacing stepper motor

Programming conceptProgramming conceptStart from the beginning , we are

going to give some 4 binary values from either microcontroller or PC.

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.

That is it, value passed to motor and the motor rotates………

Page 11: Interfacing stepper motor

Program structureProgram structure#include<reg51.h>Sfr motordata=0x90; // Port 1 for motor

interfaceSbit control =P2^1; // controlling the motorVoid main(){Control=1;motordata=0;While(1){ If(control==1){motordata=0x88;

Page 12: Interfacing stepper motor

Program structure contd.Program structure contd. motordata =0x44; motordata=0x22; motordata=0x11; } else { motordata=0x88; motordata =0x11; motordata=0x22; motordata=0x44; } } }

Page 13: Interfacing stepper motor

Assignment for next classAssignment for next classRotate a particular degree in

motor

Rotate the motor 45* both clockwise and anticlockwise continuously.

Calculate the number of steps required for full rotation.