Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Controlling 2 Steppers with only 4 lines of a PORT

Status
Not open for further replies.

Drugly

Newbie level 5
Joined
Nov 29, 2005
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,355
l297 l6203

Yet another question, hope it doesnt bother you.


I'm using two stepper motors, the pulses needed for making the stepper work are given by the microcontroller. But, with four lines of each stepper, using two steppers will occupy a whole port (8 bits).

Is there any way that i can use only 4 bits and use the two steppers? They are never turn on at the same time.
 

l297 l6203

why don't you use an external driver?

use a 555 as the clock generator, a shift register to shift the pulse and two current driver (293 or 298, i forgot which one) for each motor

use 2 pin for direction (forward/reverse) and 2 pin for on/off, connect it to the shift register
 

Hello Drugly

Controlling a stepper motor can be done with two IOs of a micro controller. One signal is used for the clock (step) and one IO for the direction.

Ther are many stepper motor drivers generating the signals for the stepper motor on the market. A very easy one is the L297 combined with L298 oder two L6203. You will also find a lot of examples on the internet.

Good controlling of a stepper motor would also have an enable/disable line for reducing the current if the stepper motors do not work.

A stepper could also be controlled with four transistors, two resistors and a transistor driver e.g. 74LS245 but this way is not very efficient way.

Best regards

Geri
 

Thanks!

Well, to my knowledge, the L297 combined with L298 will provide the pulses required for the stepper, in the order from 1 to 4. Of course, this only works for steppers that only require one pulse at a time, but what about steppers like this one that require 2 pulses at a time?

h**p://www.myhurst.com/hurstmfg/qseries.jsp?series=Series+PAS%2C+PBS+Geared+Stepping+Motor
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top