Magic Smoke from ULN2004A from Unipolar stepper motor knob example.

Hello,
I have a six wire unipolar stepper motor that I was trying to use with the stepper motor knob example on this site.
However I get magic smoke with the IC soon as hook up power.
I have the notch designating top of IC and have Arduino pin 11 going to IC pin 1 and such.
I have the TI version and I noticed it has a circle at the other end of the IC. I believe I had one other type of IC where the circle designated where pin 1 was instead of notch. Does any know from this chip? I had looked at datasheet and it shows notch but I've been fooled before by them.
I'm using 5+ volts to power the pot from arduino , 12 votes. 0.8 amps PSU to power the motor

You need to provide more information, starting with a photo. If you can't read the number on the IC and match that and the IC shape to the illustration on the datasheet then there is something wrong.
Draw a schematic of how you connected the arduino and power supply to the motor and the chip. There is no way for us to help you without that. Take a photo of the schematic and post it.
Make sure you label all the pins with the pin function labels shown on the drawing of the ic on the datasheet.
Make sure you show how you connected the power supply to the motor.
Make sure you post a datasheet for the motor or a vendor link for the motor.
Don't power up the circuit any more if you got smoke because that means the chip is already fried.

The smoke escaped because too much current was taken through the chip. I have never managed to put the smoke back in.

How much current does your motor require?

If it has 6 wires it is probably a hybrid motor and could be used as a bipolar motor with a proper stepper motor driver board such as a Pololu A4988.

Plus all of the stuff @Raschemmel said.

...R

Molex1701:
I'm using 5+ volts to power the pot from arduino , 12 votes. 0.8 amps PSU to power the motor

electricity is not democratic, it is in control. no votes count.

as for help from us, a schematic is needed.

to get started, you should make sure that only one motor coil is powered at one time AND you have some means to limit power on each coil.

other suggestions
link the place you are talking about. where did you get the schematic to begin with ?

post a link to the motor you want to use.

there are too many things that are unknown for us to help you.

http://arduino.cc/en/Tutorial/MotorKnob. Then there's the unipolar schematic listed that you have to expand..

The motor specs only mention Voltage not amps.
Nema 17
17PM-K353-G1V
No. T6718-02 i could not find any information based on these numbers though.
Minebea Co. LTD.

Voltage will work with power supply 12-36VDC
1.8 deg / step I changed the code to use 200 steps from the 100.
4 wire connection bi-polar 6 wire uni-polar
width 42mm x 42mm
total length of 37 mm
5.00/4.6mm diameter shafts
shafts length 17mm
Weight 10 oz. They are listed as motors for making a reprap 3d printer and by someone that sells a lot of stuff for making a printer.
Though I was just looking to do the getting them to move part with the darlington's I had. I'll see if they guy knows the amps required.

I'm just looking to make a xy table with some liner slides I bought from same person so I might just end up buying those A4988 later. But I've wired up all as shown so I can't see whats wrong.

Motor winding resistance ?

Take a photo of the part number label on the motor close up and post it.
Measure the winding resistance with a meter.
Take a photo of your circuit close up from directly above (about 1 foot) so we can see the wiring.
Draw a schematic and take a photo of it and post it.
Don't try to use the circuit again until you hear from us.

The seller did respond to me and says the motors can handle up to 1.2 amps but he uses 0.8 to 1 amps.

See Reply#5

looks like the motors are 6 wire. that would make them uni-polar.

if you are certain you have identifed the center tap and the two leads on that, then you are ready for the next step.

put 5v on the center tap and one of each of the leads to one of the pins on the U2004 chip

then with your sketch. close one pin, then open it. close the next pin, then open it......

the motor has 2 coils, each has a center tap. you put the 5v (or 12) to the center tap.
now you have c oil 1A and coil 1B leads.

on the other coil, you have coil 2A and coil 2B

the correct stepping sequence is

voidloop()
{

digitalwrite(1A,HIGH);
delay(5);
digitalwrite(1A,LOW);
digitalwrite(2A, HIGH);
delay(5);
digitalwrite(2A,LOW);
digitalwrite(1B,HIGH);
delay(5);
digitalwrite(1B,LOW);
digitalwrite(2B,HIGH);
delay(5);
digitalwrite(2B,LOW)
}

this will energize one side of the first coil, then the one side of the opposite coil.
it goes back and forth. coil 1 , then 2....
and it goes back and forth A then B.....

but, if you are using anything other than the motor label voltage, I think you need to also put in a high power resistor on the power lines. that limits the power.

this should get you stepping.

why your chip burned ? not sure, no schematic, no photos of your board, but probably because you had too high of a voltage and no current restriction.

suggestion is to buy an actual stepper driver from e-bay. eliminates a LOT of the headaches!

but, if you are using anything other than the motor label voltage, I think you need to also put in a high power resistor on the power lines. that limits the power.

I know what you mean (if you are using a voltage higher than the rated voltage) but considering the events leading up to now, do you think the OP realizes that the resistor isn't necessary if you're applying 5V to a 12V motor ?

The motor specs only mention Voltage not amps.
Nema 17
17PM-K353-G1V
No. T6718-02 i could not find any information based on these numbers though.
Minebea Co. LTD.

Measure the winding resistance, ignore any voltage specification and trust only
the current rating and your measurement of the winding resistance. Most stepper
drivers are constant current, not constant voltage.

If your NEMA17 has less than 24 ohms winding resistance its not suitable
for unipolar drive from 12V via ULN2004 as it will overload it. If its less than
10 ohms its not really suitable for unipolar drive, best configured as bipolar and
driven with a chopper driver.

Remember both the GND and COM terminals of the ULN2004 must be connected
if driving a motor or other inductive load. The motor positive supply goes to COM.

Thanks for the additional information. But I think I'm going to use a driver board after all. I realized that I had a 1.2 version of the motor shield and was able to get the motors working with that ignoring the COM connections. I'm not sure if I can use that for gcode though. Or one of those reprap kits. I'm just needing to move XY and a servo to lift/drop the tool.