Smoooke on the resistor ...

Hi there, i'm getting wrong somewhere (smoke ...), but cant figure out why.

I'm trying to control a small stepper (PM35S-048) with a darlington ULN2003A (wiring : http://arduino.cc/en/Reference/StepperUnipolarCircuit#.UxdTweBKd-t Four pin version).

My supply is a 18V, 1.1 Amp taken from from an old printer -- i guess it has a voltage regulator to keep the 18V (?).

To be compliant with the ULN2003A (it resists the 1,1 Amps, but i suppose it wont resist it for a long time), i'm trying to reduce the current to 120mA (cf. datasheet, recommended rate at 50% duty cycle ...).

To do this, i've added a resistance (potentiometer scraped on a board) and adjusted its resistance to 140 ohm (just used 2 pins), actually, that was tricky, it was a 6kohm pot, and i played with the wheel until i got that tiny 140 ohm (says the multimeter)

That should give me ~120mA (18v/140o).
But it doesn't.
Putting the Multimeter in the middle, shows that i've still got 1 amp
Stopped testing when smoke started getting out of the pot'

...

where am i getting wrong ?

Do printers (HP 940C) power supplies usually deliver constant current instead of voltage ?

Would playing with the pot wheel near the 0 ohm be a bad idea (140 ohm is 2% of 6kohm tried bumping it to see if it changes, that was ok, it changed by 2-3 ohms) ?

I guess there's a trivial way of controlling the current ?

Cheers !
Ram.

Ok got the answer.

V=18
R=140
=> I=0,129

=> P = 18*0,129 = 2,3 Watts ...

no wonder why that tiny pot smoked

hence, what's a better approach, using a LM317 or using a beefy pot ?

The simplest method is to use a power resistor (aluminum clad or ceramic block) that can handle the wattage, or parallel a bunch of smaller resistors so the wattage is spread across them.

An LM317 (linear regulator) will produce just as much heat as a resistor so that's not the right way to go. You would need a switching regulator to do it efficiently. You can find constant current regulators on eBay but I'm not certain they would work properly in this type of situation.

I dunno, set your LM317 as a constant current source (ae5d.com is for sale | HugeDomains) and have at it.

Smoooke on the resistor? Reminds me of a song... :slight_smile: