It is currently 19 May 2012, 18:42





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
 stepper motor power issues... 
Author Message
Post stepper motor power issues...
I have a pair of unipolar stepper motors that I am trying to drive
with a combination of a PIC16F877 and ULN2003A. My code and
connections seem to be fine, but I am having trouble finding a power
supply/voltage regulator combination that has enough juice to power
both motors. Any suggestions? I thought each motor needed 2Amps, but
it is clearly using more than that because it works when only one is
going but not two. If I assume that they are actually 4amps each
instead of 4 amps total, then how could I get 5volts, 8.5amps (I have
a few other parts drawing a small amount of current)? I don't want to
spend a fortune but I am willing to buy some parts if need be.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
vwkafer wrote:
>
> I have a pair of unipolar stepper motors that I am trying to drive
> with a combination of a PIC16F877 and ULN2003A. My code and
> connections seem to be fine, but I am having trouble finding a power
> supply/voltage regulator combination that has enough juice to power
> both motors. Any suggestions? I thought each motor needed 2Amps, but
> it is clearly using more than that because it works when only one is
> going but not two. If I assume that they are actually 4amps each
> instead of 4 amps total, then how could I get 5volts, 8.5amps (I have
> a few other parts drawing a small amount of current)? I don't want to
> spend a fortune but I am willing to buy some parts if need be.

One option might be to have separate supplies
for each motor, if two 4 amp supplies cost
less than one 8-9 amp supply. You could still
run the other circuitry off one of the supplies,
but I'd recommend using a diode and filter cap
to isolate the micro from the motor.

+----------+---|<------+ V1 V2
.------+------. | | |
| | | C| C|
| | |+ C| C|
| | === C| C|
| Micro | /-\ | |
| | | .----+-------+---.
| |----------| ULN2003 |
'-------------' | | |
| | '--------+-------'
| | |
+---------+---------------+ Gnd
(created by AACircuit v1.28.6 beta 04/19/05 http://www.tech-chat.de)


HTH


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
vwkafer wrote:
> I have a pair of unipolar stepper motors that I am trying to drive
> with a combination of a PIC16F877 and ULN2003A. My code and
> connections seem to be fine, but I am having trouble finding a power
> supply/voltage regulator combination that has enough juice to power
> both motors. Any suggestions? I thought each motor needed 2Amps, but
> it is clearly using more than that because it works when only one is
> going but not two. If I assume that they are actually 4amps each
> instead of 4 amps total, then how could I get 5volts, 8.5amps (I have
> a few other parts drawing a small amount of current)? I don't want to
> spend a fortune but I am willing to buy some parts if need be.
You clearly need more power how ever, before jumping to that have you
checked to make sure you are leaving a little gap between phase chances
from the uC code ? You may want to scope the actual drive signals to
evaluate this.
Also, are you driving the motors with separate ULN2003A chips?


--
"I'd rather have a bottle in front of me than a frontal lobotomy"

http://webpages.charter.net/jamie_5"


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
On Sat, 26 Jan 2008 23:32:13 -0800 (PST) in sci.electronics.basics,
vwkafer <LKranker@gmail.com> wrote,
>I have a pair of unipolar stepper motors that I am trying to drive
>with a combination of a PIC16F877 and ULN2003A. My code and
>connections seem to be fine, but I am having trouble finding a power
>supply/voltage regulator combination that has enough juice to power
>both motors. Any suggestions? I thought each motor needed 2Amps, but
>it is clearly using more than that because it works when only one is
>going but not two.

To begin with, a ULN2003 will not drive that much current without
overheating. http://www.allegromicro.com/datafile/2801.pdf

Your steppers do not have to be driven from a regulated supply.
A big enough transformer, rectifier, and capacitor should do it.
The logic supply can be regulated down from that separately.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
On Jan 26, 11:32=A0pm, vwkafer <LKran...@gmail.com> wrote:
> I have a pair of unipolar stepper motors that I am trying to drive
> with a combination of a PIC16F877 and ULN2003A. =A0My code and
> connections seem to be fine, but I am having trouble finding a power
> supply/voltage regulator combination that has enough juice

Regulated voltage is good for PIC chips, but completely
senseless for stepper motors. Best performance of a
stepper power source requires regulated current, not voltage.

Use a current limit resistor for each motor, and connect to the
power supply at the isolated unregulated point (for a linear
power supply, the terminals of the big filter capacitor).
Don't try to give the steppers lots of current, they are unlikely
to need the maximum specified torque anyhow...

And always remember that stepper motor windings are inductors,
there will be stored energy that can burn up your switches
instead of turning off... you'll need to put protection diodes into
the circuit.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
I have taken several of your suggestions and definitely appreciate the
help. My situation is much improved. I bought a 350 Watt PC power
supply and am now using the +5V to power the motors and the +12V
(regulated to +5V) to power the microcontroller. I also added more
ULN2003A (paralleled), so I am using four channels for each lead of
the motor (500mA x4 = 2A). When I used an ammeter on the motor I
measured 1.9A, so I think this should be correct. When I turn
everything on the motors work beautifully, my joystick (controlling
the motors) works beautifully. But...the ULN2003A's start to overheat.
I turned everything off before they got too hot (could still touch),
but they are getting hot within the first few minutes.

I have a few possible problems:
1) Right now, I have two motors sharing one of the chips (separate
channels of course). Is that a problem?

2) I am using no protection diodes whatsoever. On the ULN2003A
datasheet (http://www.ortodoxism.ro/datasheets/
SGSThomsonMicroelectronics/mXtyyvx.pdf). It looks like there are
diodes. I thought this might be sufficient. Could someone please
explain where the diodes would go?

3) Jamie mentioned, "make sure you are leaving a little gap between
phase chances
from the uC code." I am not sure what this means. In my current
microcontroller code, I am sending a command to switch one lead to
high, one to low simultaneously, but then I am forcing it to wait
500ms before doing anything else. I don't need the motors to rotate
quickly for my application but I do need to have at least one lead
high on each motor at all times to maintain torque.

4) On the ULN2003As, I have pin 8 grounded and pin 9 connected to the
same +5V as the motor leads (different than the regulated +5V going to
the PIC, clock, etc).

Thanks again for the huge help. Any additional feedback is greatly
appreciated.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
what if instead of ULN2003As in parallel, I used the TIP120 - NPN-D
transistor (http://www.ortodoxism.ro/datasheets/mospec/TIP127.pdf)?
That way I could heat sink it. May help with the overheating.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
On Thu, 31 Jan 2008 00:33:08 -0800 (PST) in sci.electronics.basics,
vwkafer <LKranker@gmail.com> wrote,
>what if instead of ULN2003As in parallel, I used the TIP120 - NPN-D
>transistor (http://www.ortodoxism.ro/datasheets/mospec/TIP127.pdf)?
>That way I could heat sink it. May help with the overheating.

That's a much better idea.


17 Mar 2008, 14:52
Post Re: stepper motor power issues...
On Fri, 01 Feb 2008 15:44:26 GMT in sci.electronics.basics, "Bob
Monsen" <rcmonsen@gmail.com> wrote,
>I just looked at the datasheet here:
>
>http://focus.ti.com/lit/ds/symlink/uln2003a.pdf

Good datasheet. Did you read figure 15?
I think it answers your questions.

The Allegro I linked to before is also good.
The Motorola datasheet is terrible.

>So, while they say you can run each channel at 500mA, they don't really mean
>it.

One channel at a time, only. See figure 15.


17 Mar 2008, 14:52
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group, phpBB SEO.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.