
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.