Previous in Forum: Isoloc Sytem   Next in Forum: Current Before and After VFD
Close
Close
Close
14 comments
Rate Comments: Nested
Active Contributor

Join Date: Feb 2010
Location: cochin,kerala
Posts: 18

How to Drive a Stepper Motor

02/18/2010 7:25 AM

i am doing a project on online tap changer...tap changing is done by a stepper motor..but i cannot drive stepper motor..stepper motor i am using has 6 wires(unipolar)back,white,red ,green,white with red strip,white with green strip.Black and white is identified as common...when giving the driving sequence 0x01,0x02,0x04,0x08(0x03,0x06,0x0c,0x09 also)from pic 16f877a controller its just giving a step cw then ccw..am using the driver ic uln2803a...pls anyone help me..

thanks for any replies in advance..

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#1

Re: How to Drive a Stepper Motor

02/18/2010 7:43 AM

Please post a sketch by scanning it in and attaching it to a posting using the green camera button.

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#2

Re: How to Drive a Stepper Motor

02/18/2010 8:35 AM

If you have BK & WT to +ve of motor supply, then a possible sequence to step would be

RD on
GN on
RD/WT on
GN/WT on

That would give full step, half power (only 1 coil energized at a time).

For two coils energized (full power), use

RD & GN/WT on
RD & GN on
RD/WT & GN on
RD/WT & GN/WT on

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Associate

Join Date: Feb 2010
Location: Birmingham, England
Posts: 44
Good Answers: 2
#3

Re: How to Drive a Stepper Motor

02/19/2010 3:54 AM

You may have got your coil sequence wrong. Try and find the correct sequence and reconnect to your circuit. To get you started, the white wire will have a low resistance between it and two other wires only. If the resistance is equal, the white is definitely the common and the other two wires can be driven by the 0x01 and 0x04 lines in your program. Do the same with the black wire and drive the other two wires with the 0x02 and 0x08 lines. If the motor goes the wrong way, just reverse the 0x02 and 0x08 lines.

Register to Reply
Active Contributor

Join Date: Feb 2010
Location: cochin,kerala
Posts: 18
#5
In reply to #3

Re: How to Drive a Stepper Motor

02/19/2010 5:20 AM

thanks for ur comment ..but i need more help from u...i hv checked all the combinations keeping black &white as common...and given the half step sequence and full step sequence..but the motor responds by giving a step cw& then ccw and repeats...am using uln 2803a instead of uln2003a...it is identified that red,black&red strip on white forms 1 coil ,and green,white&green strip on white forms the 2nd....any other alternatives test on....please help me....

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#6
In reply to #5

Re: How to Drive a Stepper Motor

02/19/2010 5:29 AM

The sequences I gave in #2 for that colour coding of the coil leads are correct. Have you checked the outputs with a meter or 'scope when driving one (attempted) step at a time?

The symptom you're describing usually means one coil is not connected (open circuit) (given that the energization sequence is correct).

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Associate

Join Date: Feb 2010
Location: Birmingham, England
Posts: 44
Good Answers: 2
#7
In reply to #5

Re: How to Drive a Stepper Motor

02/19/2010 5:36 AM

What is the resistance between red and black, red and red/white, black and red/white pairs of wires? Do a similar resistance check for the other three wires and reply back with six results.

Register to Reply
Active Contributor

Join Date: Feb 2010
Location: cochin,kerala
Posts: 18
#9
In reply to #7

Re: How to Drive a Stepper Motor

02/19/2010 6:55 AM

red&black-33.4ohm

>rd&rd/wt-66.8

>black&rd/wt-33.6

>green&white-34.2

>grn&grn/wt-68.8

>white&grn/wt-34.8

Register to Reply
Associate

Join Date: Feb 2010
Location: Birmingham, England
Posts: 44
Good Answers: 2
#10
In reply to #9

Re: How to Drive a Stepper Motor

02/19/2010 7:06 AM

OK. This confirms the wiring. If you have connected the coils and are driving them as JohnDG says in post #2, ie. Red = 0x01, Green = 0x02, Red/Wt = 0x04 and Green/Wt = 0x08 with Blk and Wt connected to +V, it should work.

Try slowing down the pulse rate and see if that works.

Alternatively, you may have blown up the ULN2803. What is the rating of your motor.

Register to Reply
Guru
United Kingdom - Member - Not a New Member Hobbies - Musician - New Member Hobbies - Fishing - New Member

Join Date: May 2006
Location: Reading, Berkshire, UK. Going under cover.
Posts: 9684
Good Answers: 468
#11
In reply to #9

Re: How to Drive a Stepper Motor

02/19/2010 7:24 AM

Do you have the common of the freewheeling diodes on the ULN2803A (pin 10) connected to the motor supply? Not using them (or some other protection) could damage the outputs.

BTW, what is the motor supply voltage?

__________________
"Love justice, you who rule the world" - Dante Alighieri
Register to Reply
Active Contributor

Join Date: Feb 2010
Location: cochin,kerala
Posts: 18
#14
In reply to #11

Re: How to Drive a Stepper Motor

02/19/2010 9:30 PM

yes...common wires and pin 10 r connected to the supply 12v...

Register to Reply
Associate

Join Date: Feb 2010
Location: Birmingham, England
Posts: 44
Good Answers: 2
#8
In reply to #5

Re: How to Drive a Stepper Motor

02/19/2010 6:03 AM

You could also replace the stepper motor with 4 bulbs and slow the PIC clock right down to check your driving sequence. Alternatively, put a delay loop in your code and check the outputs with a meter.

Register to Reply
Anonymous Poster
#4

Re: How to Drive a Stepper Motor

02/19/2010 4:42 AM

try to check this site

www.luberth.com

will find what u want an much more

Register to Reply
Guru
Popular Science - Weaponology - New Member Safety - ESD - New Member Hobbies - Fishing - New Member

Join Date: Sep 2006
Location: Near Frankfurt am Main, Germany. 50.390866N, 8.884827E
Posts: 17996
Good Answers: 200
#12

Re: How to Drive a Stepper Motor

02/19/2010 10:46 AM

There are so many nice chips to drive Unipolar motors to about 3 amps max, (that must cover what you are doing with that particular driver chip!) that only need a step/clock and a direction signal (and even have micro stepping if needed). Thats only two signals, easy peasy!!

Don't try and re-invent the wheel!!!

If you let us know how many amps at what voltage your stepper motor needs, just come back and we will help you with some chip type numbers to go for.......

__________________
"What others say about you reveals more about them, than it does you." Anon.
Register to Reply
Anonymous Poster
#13

Re: How to Drive a Stepper Motor

02/19/2010 3:02 PM

Hi raf23

See page 14 on this picaxe helpfile for info on programming your stepper. http://www.rev-ed.co.uk/docs/picaxe_manual3.pdf

Good luck.

Register to Reply
Register to Reply 14 comments
Copy to Clipboard

Users who posted comments:

Andy Germany (1); Anonymous Poster (2); Jagote (4); JohnDG (3); PWSlack (1); raf23 (3)

Previous in Forum: Isoloc Sytem   Next in Forum: Current Before and After VFD
You might be interested in: Stepper Motors, Motor Controllers, Motor Coils

Advertisement