Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronic Content > Electronic Theory


Electronic Theory Basic principles, ideas, concepts, laws, and formulas behind electronics.

Reply
 
Tools
Old 27th March 2006, 01:02 PM   #1
Default control of stepper motor

On this page, I will explain about the operation principle of stepper motor.
There are many kind of stepper motors. Unipolar type, Bipolar type, Single-phase type, Multi-phase type... Single-phase stepper motor is often used for quartz watch.
On this page, I will explain the operation principle of the 2-phase unipolar PM type stepper motor.

In the PM type stepper motor, a permanent magnet is used for rotor and coils are put on stator. The stepper motor model which has 4-poles is shown in the figure on the left. In case of this motor, step angle of the rotor is 90 degrees.

As for four poles, the top and the bottom and either side are a pair. coil, coil and coil, coil correspond respectively. For example, coil and coil are put to the upper and lower pole. coil and coil are rolled up for the direction of the pole to become opposite when applying an electric current to the coil and applying an electric current to the coil. It is similar about and , too.
The turn of the motor is controlled by the electric current which pours into , , and . The rotor rotational speed and the direction of the turn can be controlled by this control.



Clockwise control
, , and are controlled in the following order.
Step angle
0 1 0 1 0°
1 0 0 1 90°
1 0 1 0 180°
0 1 1 0 270°

"0" means grounding.



Counterclockwise control
, , and are controlled in the following order.
Step angle
0 1 0 1 0°
0 1 1 0 -90°
1 0 1 0 -180°
1 0 0 1 -270°

"0" means grounding.

You can find by the figure, the rotor is stable in the middle of 2 poles of stator. When one side of the stator polarity is changed, the bounce by the magnetism occurs. As a result, the direction of rotor's turn is fixed.

The characteristic of stepper motor is the angle can be correctly controlled and to be stable rotates ( It is due to the reliability of the control signal ). Moreover, because the rotor is fixed by the magnetism in the stationary condition as shown in the principle, the stationary power(Stationary torque) is large. It suits the use to make stop at some angle.

--------------------------------------------------------------------------------

The motor which was used this time is 48 steps and the step angle is 7.5 degrees.
The way of controlling is the same as the previous example completely. It operates when controlling the electric current of coil, coil, coil and coil.


The case of the clockwise control is shown below.
The combination of , , and repeats four patterns.
Step angle
0 1 0 1 0.0°
1 0 0 1 7.5°
1 0 1 0 15.0°
0 1 1 0 22.5°
0 1 0 1 30.0°
1 0 0 1 37.5°
1 0 1 0 45.0°
0 1 1 0 52.5°
0 1 0 1 60.0°
1 0 0 1 67.5°
1 0 1 0 75.0°
0 1 1 0 82.5°
0 1 0 1 90.0°
1 0 0 1 97.5°
1 0 1 0 105.0°
0 1 1 0 112.5°
0 1 0 1 120.0°
1 0 0 1 127.5°
1 0 1 0 135.0°
0 1 1 0 142.5°
0 1 0 1 150.0°
1 0 0 1 157.5°
1 0 1 0 165.0°
0 1 1 0 172.5°
Step angle
0 1 0 1 180.0°
1 0 0 1 187.5°
1 0 1 0 195.0°
0 1 1 0 202.5°
0 1 0 1 210.0°
1 0 0 1 217.5°
1 0 1 0 225.0°
0 1 1 0 232.5°
0 1 0 1 240.0°
1 0 0 1 247.5°
1 0 1 0 255.0°
0 1 1 0 262.5°
0 1 0 1 270.0°
1 0 0 1 277.5°
1 0 1 0 285.0°
0 1 1 0 292.5°
0 1 0 1 300.0°
1 0 0 1 307.5°
1 0 1 0 315.0°
0 1 1 0 322.5°
0 1 0 1 330.0°
1 0 0 1 337.5°
1 0 1 0 345.0°
0 1 1 0 352.5°


Circuit drawing of Stepper Motor controller


--------------------------------------------------------------------------------

Pattern drawing of Stepper Motor controller
(Wiring side)

Last edited by ElectroMaster; 5th October 2006 at 01:37 AM.
sanjivee is offline  
Old 3rd April 2006, 01:08 PM   #2
Default

Good work sanjeevi
tkvenki is offline  
Old 3rd April 2006, 06:57 PM   #3
Default Stepper Motor controller

I don't see any image or file to download where you indicate the schematic is supposed to be. Am I doing something wrong? Please advise, TIA. Joe
geezergeek is offline  
Old 7th April 2006, 01:41 PM   #4
Default

Stepp Motor Driver.
Attached Files
File Type: pdf k179.pdf (125.8 KB, 1232 views)
elcopart is offline  
Old 25th June 2006, 03:13 AM   #5
Default

Good work

think you
__________________
I do you see X Plus
xplus is offline  
Old 29th June 2006, 05:48 PM   #6
Default

Here are some links for controlling stepper motor using AVR microcontroller

http://booksbybibin.14.forumer.com/viewtopic.php?t=10
http://booksbybibin.14.forumer.com/viewtopic.php?t=9
bibinjohn is offline  
Old 1st August 2006, 11:20 AM   #7
Default Stepper

This design implements a simple stepper motor controller using a PIC16F84.

The two buttons cause the motor to rotate clockwise or anticlockwise
using a standard two-coil drive pattern.

The ULN2003A darlington driver provides the interface between the low
current PIC outputs and the stepper motor coils.

Code:
 LIST    p=16F84 ; PIC16F844 is the target processor

              #include "P16F84.INC" ; Include header file

              CBLOCK 0x10   ; Temporary storage                 
                 pos
                 dc1
                 dc2
              ENDC
              LIST    p=16F84 ; PIC16F844 is the target processor

              #include "P16F84.INC" ; Include header file

              CBLOCK 0x10   ; Temporary storage
              ENDC

              ORG   0
entrypoint    goto  start

              ORG   4
intvector     goto  intvector
        
start         clrw                    ; Zero.

              movwf   PORTB           ; Ensure PORTB is zero before we enable it.
              bsf     STATUS,RP0      ; Select Bank 1
              movlw   0xF0            ; Set port B bits 0-3 as outputs
              movwf   TRISB           ; Set TRISB register.           
                                                               
              bcf     STATUS,RP0      ; Select Bank 0
                 
              movlw   3  	      ; Initialize the motor position 
              movwf   pos                                             
              movwf   PORTB
              call    delay
              clrf    PORTB	      ; Motor drive off	

;Main loop               
loop	      btfss   PORTA,0         ; Test clockwise button
	      call    stepcw
	      btfss   PORTA,1         ; Test anti-clockwise button
	      call    stepccw
	      goto loop
                               
;Rotate one step clockwise                               
stepcw        bcf    STATUS,C	      ; Clear the carry flag
 	      btfsc  pos,3            ; Set carry if this bit set
 	      bsf    STATUS,C
	      rlf    pos,W	      ; Pick up and rotate the motor's current position
              andlw  0x0F             ; Mask to lower nibble
              movwf  pos
              movwf  PORTB	      ; Drive the outputs
              call   delay	      ; Wait
              clrf   PORTB            ; Clear the output
              return

;Rotate one step counter clockwise                                                                             		
stepccw       bcf    STATUS,C	      ; Clear the carry flag
	      btfsc  pos,0
	      bsf    pos,4
	      rrf    pos,W	      ; Pick up and rotate the motor's current position
              andlw  0x0F             ; Mask to lower nibble
              movwf  pos
              movwf  PORTB	      ; Drive the outputs
              call   delay	      ; Wait
              clrf   PORTB            ; Clear the output
              return

; This routine implements the delay between steps,
; and thus controls the motor speed.
delay         movlw   18	     ; Outer loop iteration count
	      movwf   dc1		
dl1	      clrf    dc2            ; Initialize inner loop
dl2	      nop
	      nop
	      decfsz  dc2,F         
	      goto    dl2
	      decfsz  dc1,F
	      goto    dl1
	      return

	      END
florin is offline  
Old 2nd August 2006, 08:10 AM   #8
Default

But i cannot see the diagrams








Quote:
Originally Posted by sanjivee
Operation principle of stepper motor

On this page, I will explain about the operation principle of stepper motor.
There are many kind of stepper motors. Unipolar type, Bipolar type, Single-phase type, Multi-phase type... Single-phase stepper motor is often used for quartz watch.
On this page, I will explain the operation principle of the 2-phase unipolar PM type stepper motor.

In the PM type stepper motor, a permanent magnet is used for rotor and coils are put on stator. The stepper motor model which has 4-poles is shown in the figure on the left. In case of this motor, step angle of the rotor is 90 degrees.

As for four poles, the top and the bottom and either side are a pair. coil, coil and coil, coil correspond respectively. For example, coil and coil are put to the upper and lower pole. coil and coil are rolled up for the direction of the pole to become opposite when applying an electric current to the coil and applying an electric current to the coil. It is similar about and , too.
The turn of the motor is controlled by the electric current which pours into , , and . The rotor rotational speed and the direction of the turn can be controlled by this control.



Clockwise control
, , and are controlled in the following order.
Step angle
0 1 0 1 0°
1 0 0 1 90°
1 0 1 0 180°
0 1 1 0 270°

"0" means grounding.



Counterclockwise control
, , and are controlled in the following order.
Step angle
0 1 0 1 0°
0 1 1 0 -90°
1 0 1 0 -180°
1 0 0 1 -270°

"0" means grounding.

You can find by the figure, the rotor is stable in the middle of 2 poles of stator. When one side of the stator polarity is changed, the bounce by the magnetism occurs. As a result, the direction of rotor's turn is fixed.

The characteristic of stepper motor is the angle can be correctly controlled and to be stable rotates ( It is due to the reliability of the control signal ). Moreover, because the rotor is fixed by the magnetism in the stationary condition as shown in the principle, the stationary power(Stationary torque) is large. It suits the use to make stop at some angle.

--------------------------------------------------------------------------------

The motor which was used this time is 48 steps and the step angle is 7.5 degrees.
The way of controlling is the same as the previous example completely. It operates when controlling the electric current of coil, coil, coil and coil.


The case of the clockwise control is shown below.
The combination of , , and repeats four patterns.
Step angle
0 1 0 1 0.0°
1 0 0 1 7.5°
1 0 1 0 15.0°
0 1 1 0 22.5°
0 1 0 1 30.0°
1 0 0 1 37.5°
1 0 1 0 45.0°
0 1 1 0 52.5°
0 1 0 1 60.0°
1 0 0 1 67.5°
1 0 1 0 75.0°
0 1 1 0 82.5°
0 1 0 1 90.0°
1 0 0 1 97.5°
1 0 1 0 105.0°
0 1 1 0 112.5°
0 1 0 1 120.0°
1 0 0 1 127.5°
1 0 1 0 135.0°
0 1 1 0 142.5°
0 1 0 1 150.0°
1 0 0 1 157.5°
1 0 1 0 165.0°
0 1 1 0 172.5°
Step angle
0 1 0 1 180.0°
1 0 0 1 187.5°
1 0 1 0 195.0°
0 1 1 0 202.5°
0 1 0 1 210.0°
1 0 0 1 217.5°
1 0 1 0 225.0°
0 1 1 0 232.5°
0 1 0 1 240.0°
1 0 0 1 247.5°
1 0 1 0 255.0°
0 1 1 0 262.5°
0 1 0 1 270.0°
1 0 0 1 277.5°
1 0 1 0 285.0°
0 1 1 0 292.5°
0 1 0 1 300.0°
1 0 0 1 307.5°
1 0 1 0 315.0°
0 1 1 0 322.5°
0 1 0 1 330.0°
1 0 0 1 337.5°
1 0 1 0 345.0°
0 1 1 0 352.5°


Circuit drawing of Stepper Motor controller


--------------------------------------------------------------------------------

Pattern drawing of Stepper Motor controller
(Wiring side)
chamilrohana is offline  
Old 4th August 2006, 12:52 PM   #9
Default

Circuit drawing of Stepper Motor controller


--------------------------------------------------------------------------------

Pattern drawing of Stepper Motor controller
(Wiring side)

Where r all those schematics, u mentioned?

आपने "Circuit drawing of Stepper Motor controller" लिखा तो है पर circuit diagram कहाँ है?
harshpix is offline  
Old 8th August 2006, 05:48 AM   #10
Default

good work and very nice project that ever i see
manwani is offline  
Old 24th August 2006, 08:59 AM   #11
Default

Hi people

I am hardly looking for stepper motor control tuttorial for pic 16 f62x.

Glaad for help
Vortex_ is offline  
Old 24th August 2006, 12:54 PM   #12
Default

Quote:
Originally Posted by Vortex_
Hi people

I am hardly looking for stepper motor control tuttorial for pic 16 f62x.

Glaad for help
have u looked at www.winpicprog.co.uk tutorials
__________________
Gods own Country
Incredible !ndia

www.flickr.com/photos/_akg/

"Give a man a fish, and he will eat for a day. Teach that man to fish, and he will eat for a lifetime."
akg is offline  
Old 24th August 2006, 03:53 PM   #13
Default

Quote:
Originally Posted by Vortex_
Hi people

I am hardly looking for stepper motor control tuttorial for pic 16 f62x.

Glaad for help
Now, how in the world does one come up with a useful answer to that question, huh?
Why should I look hard when he's hardly looked for it himself!
__________________
Don't make me reach through this monitor to slap you a good one!
HiTech is offline  
Old 25th August 2006, 10:42 PM   #14
Default

Anybody please tell me how to identify the cables of a stepper motor. I mean which will be connected to which pin of which port of MCU. Also please help me how to connect some toy tires to the motor. I am not looking for a rover like thing but want to actually test whether a motor can be really tested for speed and direction. I'll be thankful for that.
Meesam is offline  
Old 26th September 2006, 01:07 AM   #15
Default good day dudes!

im sorry for spamming your thread....

im kinda new here...
we have a project (interfacing stepper motor unto computer (PC)) by using the programming language turbo-c....anyone pls help me
or pls send me some links
goblin_techies is offline  
Reply

Tags
control, motor, stepper

Thread Tools
Display Modes




All times are GMT. The time now is 01:40 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker