Arduino Forum

Using Arduino => General Electronics => Topic started by: xl97 on Oct 11, 2013, 04:52 pm

Title: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 11, 2013, 04:52 pm
Hey gang-

I need some help troubleshooting an LM317 constant current circuit (pcb) that isnt working (as I believed it should)..

well the pcb's came in.. and I assembled a couple..

Here are the files schematic, board layout and a pic of the assembled board.

board:
(http://dmstudios.net/misc/constant_current_setUp4-board.png)

schematic:
(http://dmstudios.net/misc/constant_current_setUp4.png)

and a pic of the assembled board:
(http://dmstudios.net/misc/constantCurrent_driver-001_sized.jpg)

before these boards came, I was using a simple Common Anode RGB led from RadioShack (not a high powered led, simple 20mA spec..etc)

I thought, when the board came... after being assembled and the 3Watt RGB LED star also connected...  it would be a simple 'drop-in' replacement......(meaning just give the board the +7.4v directly from the battery source, and connect the 3 Arduino control/signal lines)....  and it would be 'good to go'.. (so to speak)

however.. I obviously have made an error somewhere.. Im assuming on the board somewhere...

I dont mean physically during assembly, but in design perhaps?  or maybe I'm missing things elsewhere on how this works?  (I had posted the schematic/board for review while designing it)

I have taken the led wires.. connected it to my PSU (+3.3v/1A)..  and tested the LED to ensure it IS common anode, does work, (is super bright)..and wasnt faulty there.

The transistors I'm using:
BC817: http://www.digikey.com/product-detail/en/BC81725MTF/BC81725MTFCT-ND/1305367

And the:
LM317: http://www.digikey.com/product-detail/en/LM317DCYR/296-12602-1-ND/443738

When connected.. it acts as if there is a short somewhere?

the led (RED) is ON...??

RGB in use,...the notoriously 'backwards' labeled DealExtreme 3W RGB star:
http://dx.com/p/3w-led-emitter-on-star-multicolored-rgb-4530

Where can I begin to troubleshoot this?  (I'm hoping I dot need new boards for some reason?)

Im measuring +7.4v at the INPUT (which is right.. its from my PSU)

Im measuring roughly +6.72v on the OUTPUT (I removed the RGB LED and metered the plug/wires ends to get this)
sounds ok with voltage drop across the whole board/components?  (but makes me worries since thats WAY over the vF of the RGB led I'm using)
not sure how to try and measure the current output?

nothings getting hot... (so thats good) LOL  :)

thanks!


Title: Re: Help on (non-working) LM317 constant current circuit
Post by: Pelleplutt on Oct 11, 2013, 05:18 pm
I'm not sure but what I can se you use an 3900? resistor instead of an 3,9? (R4).

Pelle
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 11, 2013, 06:26 pm
Yes, I agree. It should be labeled 3R9.

Additionally - do you know that you cannot light all three at the same time? If you try, the one with the lowest VF will light and the rest will not or will be dim.

And red will be the lowest voltage drop.

I would also drive those transistors a little harder. 4.3mA IBE for 320mA of ICE is not pushing it very hard into saturation. A little variation in Beta could cause one or more transistor to dissipate a bit more power, and there isn't much room for that in those tiny transistors. In fact, that requires a Beta of 75, but the minimum rated beta for that transistor at 300mA is only 60.

As for measuring the current in operation, connect a 0.1 or 0.01 ohm resistor in series and measure the voltage drop. If you want to see it operate without an LED, at 320mA a 10 ohm resistor will drop 3.2V, about what the LEDs will drop. So stick a 10 ohm 2W or better resistor in there and measure the voltage.

You did use a resistor when connecting to your 3.3V source, right? If not, you might fry the LED.

Of course the output is high with no load connected. It is regulating the current, and with no current draw, the voltage reaches the maximum it is capable of supplying.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 11, 2013, 06:50 pm

Yes, I agree. It should be labeled 3R9.

Additionally - do you know that you cannot light all three at the same time? If you try, the one with the lowest VF will light and the rest will not or will be dim.

And red will be the lowest voltage drop.

I would also drive those transistors a little harder. 4.3mA IBE for 320mA of ICE is not pushing it very hard into saturation. A little variation in Beta could cause one or more transistor to dissipate a bit more power, and there isn't much room for that in those tiny transistors. In fact, that requires a Beta of 75, but the minimum rated beta for that transistor at 300mA is only 60.

As for measuring the current in operation, connect a 0.1 or 0.01 ohm resistor in series and measure the voltage drop. If you want to see it operate without an LED, at 320mA a 10 ohm resistor will drop 3.2V, about what the LEDs will drop. So stick a 10 ohm 2W or better resistor in there and measure the voltage.

You did use a resistor when connecting to your 3.3V source, right? If not, you might fry the LED.

Of course the output is high with no load connected. It is regulating the current, and with no current draw, the voltage reaches the maximum it is capable of supplying.



whooosh..lol..

thanks for the reply.. lets see if I can find some answers in there (they're there.. just over my head a bit) :)

1.) yes.. I will swap out the resistor.. (silly mistake on my end not being more careful grabbing the resistors)

2.) yes.. this set up IS NOT intended to use more than 1 channel at a time.  (no PWM, no color mixing)
depending on the button press/event.. it will toggle/open that specific transistor only.

*however you saying the rest.. is sorta seems like what is happening?
the led should be OFF when powered on.. (like its little, low powered, matching, common anode RGB led from Radioshack behaves)

I put in the small, accent RGB led.. works as it 'should..

I swap out the accent led for the LM317 board and 3W RGB LED STAR.. and its 'on' as soon as it is powered.. not bright either... but 'on'..

logic in the code should be the same..no?  both common anode leds?  I am using internal pull-up resistors on those pins.


3.) I think your saying that the 1k resistor value between the transistor and Arduino pin is too high?  lor is so I get more/full saturate of the gate, allowing the led to get full (constant) current?  suggested value to use?

Im not following on how to measure the current.. (sorry).. and I dont have any LARGE resistors like that around (no 1-2 watt fattys)  just regular old SMD and through hole resistors.. of 1/8, 1/4, 1/2 watt..etc..


4.) Use a resistor when? you mean when 'testing' the LED on my PSU?  I just cranked the voltage down to +3.3v.. and did a quick TAP on the leads.. to ensure it was working/is bright..

no resistor.. (I dont recall if I dialed down the AMPs or not? usually it at 1A or so)


I appreciate the feedback/reply!.. (just trying to take it all in and understand some of the last stuff.. and see how it applies to my project and what specifically I need to changes things to.)

thanks!!


p.s.

I dont understand this:
"Of course the output is high with no load connected. It is regulating the current, and with no current draw, the voltage reaches the maximum it is capable of supplying."

this is my first time using the LM317 chip..and trying to make a constant current circuit ever.  (working my way through it) :)






Title: Re: Help on (non-working) LM317 constant current circuit
Post by: 123Splat on Oct 11, 2013, 07:13 pm
xl,

Check out this site, might help.  http://www.reuk.co.uk/LM317-Current-Calculator.htm
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 11, 2013, 07:20 pm
Thanks...

I used a similar one to get the 3.6-3.9Ohm value I am using now..  to get 320-350mA of current though it..

Im still not clear on how to FIX this though.. (at least as to why the leds are on when connected?)

I will change 3.9K value to 3.9Ohm value (or as close as I can get/find to the value..seems to be a special order value?)  :(

I will lower the value on the 1K resistors to ensure full saturation/opening of the transistor gate as well..
(simple equation for calculating that one?)
All the Beta and Ibe and stuff confuses me still :(

thanks.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 11, 2013, 08:17 pm
Quote
logic in the code should be the same..no?  both common anode leds?  I am using internal pull-up resistors on those pins.


Internal pullup? That is only for input pinmode, it has no effect when using a pin as an output.

Quote
3.) I think your saying that the 1k resistor value between the transistor and Arduino pin is too high?  lor is so I get more/full saturate of the gate, allowing the led to get full (constant) current?  suggested value to use?


Yes, too high. (5V - 0.7VBE)/1k = 4.3mA. The practical maximum current from an Arduino pin is 20mA, that is about 1/16 of 320mA, so let's use roughly that. (5V - 0.7VBE)/0.02A = 215 ohms, so closest standard value is 220 ohms.

Quote
Im not following on how to measure the current.. (sorry).. and I dont have any LARGE resistors like that around (no 1-2 watt fattys)  just regular old SMD and through hole resistors.. of 1/8, 1/4, 1/2 watt..etc..


Because it is a constant current regulator, you could put a much lower value resistor in there to test it. It will then drop a lot less voltage across the resistor, therefore require a smaller lower wattage resistor. If you have a 0.1 ohm resistor, 320mA will read 32mV dropped across it, and that is only about 10mW (0.32A x 0.032V = 0.01024W) so even a 1/8W resistor will work.

Quote
4.) Use a resistor when? you mean when 'testing' the LED on my PSU?  I just cranked the voltage down to +3.3v.. and did a quick TAP on the leads.. to ensure it was working/is bright..

no resistor.. (I dont recall if I dialed down the AMPs or not? usually it at 1A or so)


That is a horribly, horribly bad idea. LEDs are not light bulbs. Damage can be done to them in a fraction of a second. The LED you are using is going to be more tolerant of 1A, being rated at 1/3 of that, but that depends on whether or not you limited the current.

One of my coworkers, who (no offense to him) has forgotten nearly everything he's learned through disuse, made a 6x6 matrix of LEDs scavenged from broken equipment, in order to make a cable tester. He tested each one of these tiny LEDs on a 3.6V lithium ion battery, for "just a second". Then installed them. When I heard this, I wired up a battery with a resistor, showed him it working with a good LED, then left him to retest all his LEDs.

They were all damaged. Some were just dead, the rest were dim and orangish.

As for the Red LED being on all the time, I suspect that there is some fault in the circuit. A shorted trace, a bad transistor... What happens if you disconnect only the red LED? Do any of the other LEDs light?

What is the voltage on the collectors of all the transistors when it is connected? On the bases?

With the LEDs, Arduino, and battery disconnected, put your meter on Diode Check and confirm that you have the correct diode drops in the correct direction. Confirm that the CE connection reads as an Open.

A page on how an LM317 works when wired as a current regulator:
http://theparanoidtroll.com/electronics/primers-and-tutorials/other/constant-current-sourceload-lm317/ (http://theparanoidtroll.com/electronics/primers-and-tutorials/other/constant-current-sourceload-lm317/)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: SirNickity on Oct 11, 2013, 09:05 pm
I've not made a constant current circuit yet, so I can't be much help there, but a few comments concern me, so I want to make sure they're addressed:

Im measuring roughly +6.72v on the OUTPUT (I removed the RGB LED and metered the plug/wires ends to get this)
sounds ok with voltage drop across the whole board/components?  (but makes me worries since thats WAY over the vF of the RGB led I'm using)


This is an incredibly common misconception about LEDs.  The Vf is NOT the voltage at which you want to run the LED.  It's how much the voltage drops going across the LED.  Just like a diode drop.  (LED = Light Emitting Diode, so it's no coincidence!  ;))  The voltage has to be higher than this for the LED to light at all.  (Well, there is a knee, but let's pretend it's a sharp cut-off for simplicity.)  There's no need to be concerned with the voltage being too high (within reason...), as long as the resistance is scaled accordingly to keep the total current through the circuit less than or equal to the operating current of the LED.  (20mA for typical indicator LEDs, more for the high-power ones.)

Speaking of which....

I dont understand this:
"Of course the output is high with no load connected. It is regulating the current, and with no current draw, the voltage reaches the maximum it is capable of supplying."

this is my first time using the LM317 chip..and trying to make a constant current circuit ever.  (working my way through it) :)


LEDs light up from current, not voltage.  This is why you are using a constant-current power supply to light them.  The regulator will vary the voltage to whatever degree is necessary to keep the current through the circuit at a set threshold.  You cannot regulate both voltage and current -- only one of the two.  The other is determined by the impedance of the circuit.

Since the LED doesn't care if the voltage is 5v or 20v, as long as the current is within its operating area, the LM317 will keep the current in check by varying the output voltage.  When there's no load (open circuit), the current is at 0mA, so the LM will increase voltage (as much as it can) to try and allow more current to flow.  This is why you're seeing it above 6v.  It's a futile effort, since there's nothing connected and no current can flow at all, but it doesn't know that.  It's just doing what it can to keep that current steady.  If you short the outputs it will drop the voltage to try and limit current instead.  (I don't know if this is safe to do -- LEDs are virtually a short circuit when the voltage is above Vf, but there may be real-world factors involved that differentiate between "virtually a short" and "actually a short".  Gap in my knowledge, apparently.)

Use a resistor when? you mean when 'testing' the LED on my PSU?  I just cranked the voltage down to +3.3v.. and did a quick TAP on the leads.. to ensure it was working/is bright..


As poly says, don't do that.  Never never never never.  If the PSU has a high enough impedance you might get away with it (like some folks do when running Arduinos at 3.3v and connecting LEDs directly to the pins).  Still, an ideal PSU has 0 ohms output impedance and is capable of delivering infinite current.  Infinite amps at 3.3v will of course toast an LED.  Reality will be somewhere in between, but unless you know the output impedance is enough to safely limit current, assume it's an ideal PSU and will turn your LED into a puff of smoke in far less time than you could possibly tap.

A personal anecdote:  I got used to using LCD screens with built-in backlight LED current limiting resistors.  Then I used one that put the onus on the designer to limit backlight current, forgot to verify with the data sheet, and connected it straight to 5v.  I didn't even see it burn out.  It just didn't light up, and never worked again.  It can go that fast.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: 123Splat on Oct 11, 2013, 09:23 pm
As stated, LEDs are current devices, not Voltage.  As long as you have Vf or Vf+ and stay below Imax, you get a light.  The amount of time it takes to kill a LED is proportional to the amount of current you feed it at any voltage above Vf.  It is actually the heat generated by passing current (yeah, I know, bad english, but the theory is correct).  The more current, the more heat. The longer you apply the current, the longer it takes to disapate the heat, and, the more damage is donr to the junction area and the bond wires.  If you burn an LED at high brightness for a long time and another at half brightness (think current levels), which one do you think will die first?
I have used red LEDs with MegOhm+ series current limiters as pilot lights in 110Vac circuits (more for continuity checking than pilots, but you get the picture.  Voltage isn't really the issue.

Have fun.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 11, 2013, 11:15 pm
Quote
I have used red LEDs with MegOhm+ series current limiters as pilot lights in 110Vac circuits (more for continuity checking than pilots, but you get the picture.  Voltage isn't really the issue.


Just wanted to add, you can do that only if you either have two LEDs connected anti-parallel (parallel but pointing different directions) or one LED with a regular diode connected to it in anti-parallel. That is because LEDs generally don't survive even modest current levels when put in reverse breakdown, and the reverse breakdown voltage is not very high.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 01:59 am
ok..

Im home..

(thanks for the replies)

lets see if I have this straight...

fixes:

1.) 1k transistor >> arduino pin resistors change to: 220ohm
2.) I could NOT find a 3.9 Ohm resistor.. I did however find a 3.32 Ohm one (0805 footprint.. but should fit).. I think that gives me roughly 370mA.. which is just a smidge over their rating.. (but I have heard people over drive these.. and it will NOT be running/on for any length of time only a quick 'blink/flash' at any given time.

*noted about not doing that with my PSU..  ensure the AMP is dialed down the appropriate level the LED needs.

turning it on right now I see its (my PSU) @ +07.3Volts & 0.34A.. which I believe was the last setting I used when checking those RGB leds..


I will address those in a little bit..



moving on though.. the current/remaining issue is that the LEDS are lit when I connect the PCB??

As you guessed it.. when I connect the PCB/LED.. the RED is on.. I disconnect the RED.. green is on.. unplug green.. blue is left.

What is going on?  You had made reference this behavior before about the red being on because it has the lowest vF..etc..
seems like you have handle on this error?  what am I doing wrong?

lastly you want me to meter voltage on the transistor(s):
collectors
bases

I need to look at the data sheet to know what is what.. :)
http://www.fairchildsemi.com/ds/BC/BC817.pdf

Do you want the led 'connected' to the board or off?
(or doesnt it matter for this?)


PSU settings:
+7.4v
1.00A

using the pcb (blue) pic from above....

putting red probe from meter on the battery V+ input pads/wires... (VIN)
black probe on collector:

T3- +7.4v
T2- +7.4v
T1- +7.4v

black probe on base:

B3- +6.66v
B2- +6.66v
B1- +6.66v

as far as this;"With the LEDs, Arduino, and battery disconnected, put your meter on Diode Check and confirm that you have the correct diode drops in the correct direction. Confirm that the CE connection reads as an Open."


so take the constant current board/pcb (blue one in pic above)..

disconnect battery/Arduino and LED (plain pcb)..

what setting is the DIODE CHECK?  continuity?

And there is NO DIODE on the pcb.. just the pads.. that have been bridged..(little piece of metal soldered in...in the pic?)

so.. should I be going ahead and doing number 1 & 2 above? or should I not bother yet? I mean having a little (dim) led, but working in the correct manner, just means I need to adjust values on the T resistors and the LM317 resistor..
but logically, its working..  (no, I am stuck in the scenario you mentioned about the lowest vF is being turned on..etc)

thanks!



Title: Re: Help on (non-working) LM317 constant current circuit
Post by: 123Splat on Oct 12, 2013, 02:01 am
polymorph,
Or something like a 1A rectifier diode in series to clip the input to halfwave.  Good point!My bad for leaving it out...  (I would say "gettin' old and foggy, but I ain't gettin', I'm already there....)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: 123Splat on Oct 12, 2013, 02:29 am
xl,
With red meter lead on batt+, :
AND BLACK lead on collector's you are measuring Batt voltage, O.K. ,  good batt,
Black lead on Base, BAD IDEA, you are putting Bat Volts (7.4) on Arduino pins, not good for arduino.

With everything disconnected,  not sure what conditions you are testing for, but Diode Check setting measures resistance of semiconductor junction, if forward bias (+lead to P side and - to N side, should read close to zero ), if reverse bias (reverse of the prior) should read SOMETHING ABOVE 1 KOhms.  maybe verifies your Q's are good and installed correctly...  ???

I would think one thing to test is: with everything, but the tri-LED, hooked up.  meter VOLTAGE between B, G, & R pads and Anode pad (red + meter lead on anode pad and black - meter lead on R pad, then B, then G , to say one of them at a time) if the circuit is working as planned, you should see the meter jitter between 3 or 4 volts and some lower reading when the software makes that pad active and then switches it off.  If that does not provide the desired results, meter VOLTAGE between the various transistor bases and ground.  should get same type of volts reading only lower,   If test 1 fails and test 2 works, the software works and the board is bad.  if test 2 fails, software is not turning the the pins on (bad software),or your arduino (the  micro controller) is fried.   That is a start. from there we can proceed to narrow down what is wrong.

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 03:06 am
ok.. well Im getting ODD results..

but lets talk about 'software' (meaning my sketch/code...yes?)
if it perfectly fine with 'regular' (low powered), RGB led (common anode, only 20mA spec)..
what , software wise, could be the problem/issue when changing the led (and add hardware/constant current board)?

now, on the (more) bad news..LOL..  hopefully this will let us (you guys) figure out what is wrong?
(I'm starting to think I have the pin out wrong for the transistor or something?)

its:

3           
1 2

---------
  collector
base/emitter


anyways.. the data...

when metering the the RGB voltage 'output' pads (red probe on common/anode pad..... black probe to each of the R-G-B output pads)
R: +6.77v
G: +6.77v
B:  +6.77v       

and I think the "G" pin was the one that was LIVE during the button press (no led)..but when metered & button pressed, the voltage dropped to around +5.9v or so..



When I had black probe on GND/Batt-.. and red prob on on the "BASE" (pin1 of the 'pyramid' pinout) of each transistor....
they metered 0.74

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 05:17 am
Im tired, calling it night.

thanks for the help so far guys..

I'll check back in, in the morning, see what anyone has to say.

thanks!   :)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: SirNickity on Oct 12, 2013, 06:01 am
Well, as I think you are starting to see, when all three LEDs are lit in parallel, the one with the lowest Vf turns on and conducts, shunting the voltage away so that it's not high enough to meet the Vf of the other LEDs which require higher voltage to turn on.

Now, I've looked at the board design and datasheet for the transistors, and it looks OK to me.  The most likely reasons for this that I can see are:

1) Your transistors are all turned on by default somehow.  Check by supplying power, but not a digital input.  Instead, ground the base of all three transistors.  This should ensure none are turned on.  If one of the LEDs is still turned on, that leads to likely problem #2:

2) The transistors are bad.  Perhaps a slip-up during testing somewhere fried them.  If the LEDs all go out during test #1, but red turns back on if you short any base to Vcc (through the resistor!), then it could be that...

3) The LED cathodes of the LED are shorted somewhere.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 12, 2013, 09:06 am
Quote
if forward bias (+lead to P side and - to N side, should read close to zero


No. All the DMMs I've seen with a diode check function will give you a direct readout in volts. So a forward biased silicon junction will read somewhere between 0.4V and 0.7V.

A transistor is made of a couple of PN junctions. In this case, NPN indicates that to a meter on diode check, a good NPN transistor will give you readings consistent with two diodes pointing "out" from the base. So with the red lead on the Base, you'll get about 0.6V drop with the black lead on either the Emitter or Collector lead. With the leads reversed, black on Base, etc., it should read OPEN or OL (Overload) or whatever method your meter uses to indicate out of range. Also, measured from Collector to Emitter should also read as OPEN or OL, in either direction.

But other components connected will disturb those readings, that's why I have you disconnecting the LEDs and the Arduino. The one point of contact on the Emitter will not disturb this test, because current requires a complete path to flow, and in this way the only complete path is with the meter.

I meant for you to measure those voltages with reference to Ground, aka common. So put the black lead on the Arduino ground and use the red lead to measure voltages on the transistor base and collector terminals.

Perhaps you were sent the wrong transistors, and they are wired differently. If the Base is on terminal 3, then it would just have a forward biased PN junction from there to pin 2, no matter if that is the Collector or the Emitter. I am hoping for the diode check to reveal a problem with this.

Sometimes the continuity function on a meter also serves as a diode tester. In that case, it may not read out in volts, but it should read something in the range of a few hundred or less with a forward biased PN junction, and OPEN or OL when it is reverse biased. You can test your meter on a known good silicon diode.

Oh, yeah... just so you know, a transistor is not simply two diodes stuck together. When I was first learning about transistors, I got that idea in my head and started sticking diodes together, anode to anode or cathode to cathode, and trying to get them to amplify. But it does have the structure of, for an NPN, a thin layer of P type semiconductor sandwiched between two N type semiconductors.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 04:45 pm
whew... thats alot to take in at once. :)

lets see if I have things correct in what Im being asked to do:

@SirNickity-

first thanks for taking the time to go over the board layout and datasheet for the transistors.. (glad I'm not crazy and that it looks to be set-up/designed correctly) :)


ok....

1.) keep batery/power to the PCB.. disconnect the Arduino signal/control lines)
*(what do you mean by GROUND the BASE onall transistors?)

meaning black probe on battery GND? and red probe on the BASE of each transistor? (or vice versa?)

** I connected RGB again....  powered it up.. same deal (RED led on)..
I take out the Arduino signal lines tot he PCB.. and each one (led) goes out..  when all Arduino lines OUT..LED is OFF.


2.) when I take RED prob, put it on Vcc (positive supply voltage).. and touch BLACK probe the BASE (pin 1) on the transistors..
* (actually I am touching it to the RIGHT side of the resistor, and not directly tot he BASE pin of the transistors)

Each of the leds light up respectively..  (not very bright or anything.. but about the same it did before)
(Im sure changing the 1K resistor values and the 3.9k > 3.9Ohm will help on this a bit though...right?) :)

3.) checking the RGB led with a PSU & meter doesnt seem show any signs of shorted LED?



------------------------------------------------------

@polymorph -

(trying to understand it all)  I dont have any kind of DIODE setting? (but I could be missing it? not sure what it looks like?) I have a continuity setting?

1.) NOT POWERED
Red probe to BASE
Black probe to Emitter/Collector
Results:
755-756, (from 1),... on all 3 transistors.. at each Emitter & Collector

Reversed..
Black probe to BASE
Red probe to Emitter/Collector
Results:
1 (no change)... on all 3 transistors.. at each Emitter & Collector


2.) "I meant for you to measure those voltages with reference to Ground, aka common. So put the black lead on the Arduino ground and use the red lead to measure voltages on the transistor base and collector terminals."

I will do this again.. but I wanted to ask.. if ann GNDS are connected  isnt that the same thing?

I have battery pack connected to Arduino.. and battery pack also connected to breadboard coming from same point/wire..

anyways.. tapping one of the GND pads on the Arduino... (Black probe)

and testing the BASE & COLLECTOR pins on each transistor:

1.) Base-
T3:  0.77v
T2:  0.77v
T1:  0.77v

when fired.. the 'active' pin drops to:  0.067v


2.) Collector-
T3:  0.03v
T2:  0.03v
T1:  0.03v

when fired.... NO CHANGE


Thanks guys...

Im hoping to finally solve this (one way or another) and but this rest today.. either order more parts.. fix whatever it is Im doing wrong..  or something. :)

swapping out the resistors now.. :)

I'll check back in a few after the surgery is done. ;)

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 05:41 pm
I have swapped out the resistors..

* 3.9K to a 3.32Ohm  (all I could get my hands on for the moment, until I order some true 3.6Ohm ones to get a solid 350mA)
* 1K resistors (3) all switched to be 220ohm value


this will just give me a super BRIGHT, non-functioning board now.. :)
(as it still is "ON" when powered up) 

thanks.

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 12, 2013, 06:19 pm
When in continuity check on your meter, what does the display say when the leads are not connected to anything, and not touching each other? Is that a blinking "1"? If so, it should be indicating out-of-range, aka Open. In that case, the transistors sound OK.

So when you disconnect the Arduino pins from the base resistors, the LEDs go out? That sounds like the Arduino is the culprit.

With the Arduino powered up but with the LED driver board disconnected, what voltage do you measure on the Arduino pins that are driving the transistors? They should be at 0V or very close to it when the LEDs are supposed to be OFF, and go up to or close to 5V when a given LED is supposed to be ON.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 12, 2013, 06:32 pm
As for Ground or Common, unless we are measuring very tiny voltages at high current, you can use the same ground point to measure all those voltages from.

A voltage is measured from a reference point, and we use a circuit Common which we usually call Ground.

From the numbers you gave, it sounds like your meter's Continuity setting also works as a Diode Check. Most meters are built that way, now.

Quote
2.) when I take RED prob, put it on Vcc (positive supply voltage).. and touch BLACK probe the BASE (pin 1) on the transistors..
* (actually I am touching it to the RIGHT side of the resistor, and not directly tot he BASE pin of the transistors)

Each of the leds light up respectively..  (not very bright or anything.. but about the same it did before)
(Im sure changing the 1K resistor values and the 3.9k > 3.9Ohm will help on this a bit though...right?) smiley


Do you mean the black and red probes of your voltmeter? What kind of meter do you have? A typical DMM (digital multimeter) has a resistance of 10M ohm (10 million ohms) and shouldn't cause more than a glimmer of light in the LED, just because that minuscule uA (millionths) of current is being amplified about 100 times by the transistor. Is that what you are seeing? If so, that should mean the transistors are working.


So... with the Arduino disconnected from the LED driver, the LEDs are not lit, correct? If you connect your meter from V+ to the base resistor, that LED lights very dimly, correct?

Ah... with a 220 ohm resistor in place of the 1k, I suggest you also put a 10k (or anything up to about 100k, whatever you have on hand) from the Base to the Emitter/ground.

If I'm reading what you are saying correctly, you have the Arduino switching the wrong way round. Pulling down to light up. Complicated by the fact that tiny bits of leakage current in the transistor may be amplified to light up the LEDs.

I missed that before. You were driving low current 20mA RGB LED before, now with the driver transistors acting as inverters, your code must send a "0" to turn them off, and a "1" to turn them on.

Could you post your code? Don't forget to use the Code tags. Click "Preview", then look for the button labeled with a "#".
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 07:32 pm

When in continuity check on your meter, what does the display say when the leads are not connected to anything, and not touching each other? Is that a blinking "1"? If so, it should be indicating out-of-range, aka Open. In that case, the transistors sound OK.

So when you disconnect the Arduino pins from the base resistors, the LEDs go out? That sounds like the Arduino is the culprit.

With the Arduino powered up but with the LED driver board disconnected, what voltage do you measure on the Arduino pins that are driving the transistors? They should be at 0V or very close to it when the LEDs are supposed to be OFF, and go up to or close to 5V when a given LED is supposed to be ON.


1.) When in 'continuity' mode..
it is a static '1'.. when not touching anything..


2.) When metering the Arduino pins/leads..
I was getting close to +5v..  (not +0v)...  and when 'pressing the button'... it would only drop a little bit..  (not down to +0v, only around +4.8xv)

So I opened up the IDE.. and looked to see if I had inadvertantly made the pins HIGH..

I 'did'!!

so I corrected it:

  //set-up main barrel led(s)/pins
  pinMode(ledR, OUTPUT);
  //digitalWrite(ledR, HIGH); //no float
  pinMode(ledB, OUTPUT);
  //digitalWrite(ledB, HIGH); //no float
  pinMode(ledG, OUTPUT);
  //digitalWrite(ledG, HIGH); //no float


by commenting out those lines..

then I tried to the original, low powered RGB led (common anode)..  and as soon as I powered it up.. all channels in the RGB were on!!!  (an odd mix of 'white') 

so I removed that.. and plugged in the high powered RGB led (through the constant current board)..

and the leds were "NOT" on this time???..

I tried out the sketch.. and they didnt turn off?  (however Im fairly certain that is because the sketch (which initially had them all HIGH on initialization).. turn then HIGH for off)

so now Im a bit confused... about the behavior between the two RGB leds? and the code?

isnt LOW = "ON" for common anode RGB LEDS?

Im mixed up somewhere?  lol


Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 12, 2013, 08:10 pm
for a sanity check..

I checked Radioshack part number to see WHY these two 'common anode' leds behave differently/opposite.
http://www.radioshack.com/product/index.jsp?productId=3020765

only difference is one is high powered/needs a constant current driver..... and the other was driven directly from Arduino pins

I went back to the sketch.. and reversed my logic:
added a new boolean variable called: commnoAnode

and then for all my digitalWrite() lines.. I did a quick conditional check;

Code: [Select]

if(commonAnode){
    digitalWrite(currentFireColor, HIGH);
}else{              
    digitalWrite(currentFireColor, LOW);
}


and NOW the high powered LED sems to work FINE.. and how it should (using the constant current board).. its bright too..


but now.. when I go back to the accent RGB led from RadioShack...

I plug it in.. all leds are ON..
I change to commonAnode = false;
(just to check)
same thing.. all leds are ON.....

HOWEVER... as soon as I press the button (for each color).. they turn off, and then behave normally.. (when commonAnode = false;)

(like they are not initialized correctly or something?)..then one 'used' they work?

IMHO... these two RGB leds should be interchangeable?.. right?

either plug in directly the small/accent RGB led directly..
or replace with t he pins/lines from the constant current board?

So right now..  

Im left with a WORKING board.. using the high powered LED.. (YEAH!.. thanks!)..

but I am can not get the small RGB led to work? (and Im confused as to why?)


editL

*DOH!..

I totally missed your other post!   :smiley-eek:

"I missed that before. You were driving low current 20mA RGB LED before, now with the driver transistors acting as inverters, your code must send a "0" to turn them off, and a "1" to turn them on."

ok.. this make total sense now!  and is the behavior I am getting..

thanks!  :)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: westfw on Oct 13, 2013, 12:48 am
Quote
I will change 3.9K value to 3.9Ohm value

That resistor is also looking to small in terms of its power rating.
You're running 320ma through a 3.9ohm resistor, so it's dissipating I*I*R = 0.4W, so it should be at least a 1/2W resistor.
An 0805 resistor is usually 1/8W, and a 1206 is usually 1/4W.
(Yes, it's really annoying that the 317 CC supply needs a power resistor, instead of having all that power dissipated by the regulator.  Grr.  Assorted Stepper Motor Drivers are similarly annoying.)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 13, 2013, 05:26 pm
Cool! Problem solved.

As for the 3.9/3.6/3.32 ohm resistor, westfw is correct, you need to calculate power dissipated in it.

1.25V x 0.35A = 440mW

You should always get a resistor -at- -least- double the power rating. That is just good engineering practice. So a 1W resistor will work.

Resistor power ratings go out the window as soon as you put other hot components next to them, put them in a box, lay a wire across them, restrict the air flow, etc. So never run a resistor at close to it's rated power.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 13, 2013, 05:39 pm
thanks!.. yes.. in the end, since switch from DIRECT common anode RGB led.. to a high powered one that was powered by a constant current board, I needed to invert the logic.

Outside of the update/suggestions on a more accurate value LM317 current regulating resistor... and the 1K >> 220ohm value edit...  (which I appreciate!...thanks guys!)
the logic was the main issue that is no solved. :)

Question:
being a noob/lack of experience.. I rarely give the wattage/power rating of a resistor any thought. (unless noted or am serverly trying regulate the current from a higher voltage or something)..

in THIS situation.. what can be done?  or more appropriately.. what SHOULD have been done?

if one is wantign to keep things SMD, and a very small footprint board..

how can you one use 0603/1206 components?  Are are there other smaller value components that meet these 1/2-1watt power ratings?  or just through type resistors?..etc..


that being said..  and knowing I am using a 0805 (all i could find.. I didnt have anything close in a 1206 footprint like I thought)

A.) if I could order something that would FIT on this current PCB.. to replace the 3.32Ohm resistor.. what would it be?
B.) knowing my application/use for this board/project... how much of a (negative) factor is this against me?
There will be NO color mixing (single color/channel at any given time)
There will be NO long period of time the led is on.. (simple toggle on/off...mSecs)
(its being use as a barrel/muzzle flash.. when the trigger is pulled)

Although not perfect/correct power rating on resistor..  knowing it wont be on for any length of time...  thoughts?
can I get away with it?  if not.. anything I 'can' use/get to use on the current board?

thanks!
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 14, 2013, 12:07 am
How short is the pulse?

You can integrate power over time, to some degree. If the pulses are very short and the time off long enough, the resistor won't heat up enough to damage it. However, even with long off times, a pulse that is in excess of the power rating can damage or even explode the resistor.

Unfortunately, I cannot tell you exactly what those times would be. If you can tell me in fractions of a second how long an LED will be on, and the minimum time it'll be off...
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: westfw on Oct 14, 2013, 03:07 am
Quote
what can be done?  or more appropriately.. what SHOULD have been done?
if one is wantign to keep things SMD, and a very small footprint board..

Yes, it's easy to get into a mindset of "digital logic is low power, LEDs are low power; I don't need to pay any attention to the power ratings of my resistors."   And then you notice that resistors keep getting smaller, and even at 40mA through a red LED (~3V drop on the resistor) is more than the 0.1W rating of common resistors...

In this case, it looks like 1W SMT resistors start at about the 2512 package size, and that that would still fit on your PCB if your other smt components went down to 0805.  It would be "easy" to put a big SMT resistor on the reverse side of the PCB, but that would make for more difficult assembly.   If I had a whole bunch of your existing board, and wasn't TOO space-constrained, I'd be temped to kludge in a TH 1W resistor between the regulator tab and the "common" output; it looks like it would probably fit.  Here's a picture illustrating both possibilities:
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 14, 2013, 05:42 am
I'm liking westfw's solution.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 14, 2013, 05:54 am
Thanks..

I think I'll just leave these 5 I have as is (or tack on the 1W bridging the regulator tab to the 'common' by the RGB output pads)
there are really no size constrains on where the pcb is being housed.(lots of room)  this is all just for fun/stage prop as well so nothing critical depending on it.

but in the future.. I think I'll just re-design the pcb, and use a '2512' 1w resistor..  to make them look a bit nicer.   (and remove the diode pads too I suppose) :)

*(I have never used a 2512 sized resistor before, so I'll need to order some of those as well) :(

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: westfw on Oct 14, 2013, 09:52 am
One of the things I noticed in researching this is that 1W SMT resistors are annoyingly expensive ($0.35), compared to 1W TH resistors ($0.09), though the difference gets less dramatic in moderate quantities.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: SirNickity on Oct 15, 2013, 09:13 pm
Hey -- glad it's working now.  :-)  BTW, because I like optimizing:

Code: [Select]
if(commonAnode){
     digitalWrite(currentFireColor, HIGH);
}else{             
     digitalWrite(currentFireColor, LOW);
}


... could be...

Code: [Select]
// Turn on LED
digitalWrite(currentFireColor, commonAnode);

// Turn off LED
digitalWrite(currentFireColor, !commonAnode);


Basically, if commonAnode == true, it's the same numerical value as HIGH.  Same for commonAnode == false and LOW.  To turn off the LED, you just invert the value (!commonAnode).

The constants are defined in arduino.h:

Code: [Select]
#define HIGH 0x1
#define LOW  0x0

#define true 0x1
#define false 0x0
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 16, 2013, 09:09 pm
nice....
I wasnt even thinking of use that shortcut/the var like that.. (still really new to Arduino/electronics/C+ in general).. but makes perfect sense.

I have more of a web/web programming background..  where I am/was spoiled about resources/memory..etc..
and even now.. sometimes a shortcut that like would make total sense.. (when Im in here I panic and sometimes forget a lot of the same practices apply in some fashion..logic/theory at least)

so Im taking it one step at a time. :)  haha

I find that if I have a project or goal in mind.. I can break it up into steps/parts.. and work on them individually and then combine them,.,(instead of random learning...I work through an obstacle to get real world experiences on how to handle it in the future I guess?)

if interested.... this was my last project/goal.. an electronics kit for some guys who like StarWars (cosplay I think?)..
(which you guya have helped me finalize/work through!)  so thanks!  lol

these pcb's I designed/order/assembled (yeah $17 wal-mart toaster oven! woot!)  LOL.. with the help of my Silhouette Cameo Vinyl cutter..I make my own solder paste stencils at home all day long! Cant recommend it enough! (love it!)

(http://dmstudios.net/misc/DC-17_kitPics/DC-17_kit_pics_005.jpg)
(http://dmstudios.net/misc/DC-17_kitPics/DC-17_kit_pics_007.jpg)

*the 3rd board with microSD socket is the 'main' board.. a custom Arduino/Waveshield hybrid

and the last pcb to make up the 'kit' is the constant current board:
(http://dmstudios.net/misc/constantCurrent_driver-001_sized.jpg)

and a quick mock-up of it:
http://www.youtube.com/watch?v=ZWI2AyHt38k

however.. based on the feedback.. I have updated things. :)

hope this ones better/correct..
*220 resistors
*3.6 Ohm resisotr value (to give full 350mA)
*3.6 Ohm resistors above is a 1-Watt 2512 footprint resistor now
*removed DIODE (pad, wasnt being used anyways)

Here is the resistor I plan on ordering/using in the future..
http://www.digikey.com/product-detail/en/CRCW25123R60JNEG/541-3.6XCT-ND/1178522



(http://dmstudios.net/misc/constantCurrent_pcb_update1-sch.png)

(http://dmstudios.net/misc/constantCurrent_pcb_update1-brd2.png)


thanks guys!
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: dc42 on Oct 16, 2013, 09:59 pm

One of the things I noticed in researching this is that 1W SMT resistors are annoyingly expensive ($0.35), compared to 1W TH resistors ($0.09), though the difference gets less dramatic in moderate quantities.


Needing to use a 1W resistor is a warning sign that the design may not be very good. In this case the issues are that a linear regulator is being used instead of a switching regulator, and a chip intended for regulating voltage is being used to regulate current. I just checked the Farnell site and it shows 22 chips designed for driving LEDs @ 350mA - 12 buck converters, 8 boost converters, and 2 linear current regulators.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 16, 2013, 10:20 pm
I think the LM317 was suggested to me when trying to use a voltage regulator was pointed out to be the wrong apporach.. and I needed to regulate the current

Looking at the LM317 datasheet.. I mirrored the current regulating schematic.

as far as the other stuff.. (if it even fits the current project size..etc.. I dont believe a buck puck even applies here?) is not something I intentionally snubbed..  I just didnt/dont know any better yet.

as mentioned it was my first attempt at a constant current anything.. LOL
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: dc42 on Oct 16, 2013, 10:45 pm
As a first attempt, it's not at all bad, and I congratulate you for putting it all together using SMD components.

The LM317 is a very old voltage regulator, and in those days there were few if any constant-current regulator chips made. Circuit boards were larger (no SMD components!) and people were much more willing to waste power. So I guess it was natural for them to show how it could be used as a constant current regulator on the datasheet. I guess the lesson is that not everything shown on datasheets for older devices is now considered good practice.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 16, 2013, 10:58 pm
haha..

fair enough. :)

I just dont have a clue if some schematic is outdated or not.. LOL..

I am sorta feeling my way through..  based on the project/goal at hand.. it leads me to learn new things..both in code (like how to use PROGMEM and more so how to retrieve from PROGMEM..lol).. and in hardware. :)

thanks!
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: SirNickity on Oct 16, 2013, 11:27 pm
Nothing wrong with this approach, other than it being inefficient.  Sometimes that matters, sometimes it doesn't.  Choose your battles.  Heck, there are times when a linear reg is not any less wasteful than a switching reg.  (Usually low, low current...)  There's added complexity to a switching reg, which may not be justified if the wasted heat can be excused.  Remember, 1W may not be necessary so much as a design margin.

XL-- you do good work.  Those PCBs look fantastic.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 16, 2013, 11:39 pm
thanks!..

I really have a 'low-budget setup'..

Silhouette Cameo Vinyl cutter to cut stencils with:

Vinyl:
(http://dmstudios.net/misc/cameo_tests/cameo_testCuts-026_sized.jpg)

Stencils:  (use some python script not the Cameo software.. post on Dangerous Prototypes forum)
Atmega328P-AU (SMD)
no swelling of pads before export
(http://dmstudios.net/misc/cameo_tests/stencils/2pass_good_medium.jpg)

now I cut them all the time from some mylar.. or like the ones in the pics, overhead projector transparencies.

**a few home cut stencils and Ive paid for the machine..if I use Pololu or Ryan at (I forget ful name OSharp? something 'er other!) LOL.... as they are around $25-$35 shipped to the door.

some 4$ solder paste from DealExtreme/Ebay...  every couple months... and my $17 dollar toaster oven (stock, no sensors, no re-flo signatures..etc)

Keeps me happy and able to prototype/hobby stuff up quickly.

like this project.. lead me to learn about making my first +3.3v Arduino running on INTENRAL clock.. (no external).. and direct 'connect' the SD socket..etc.. for very tiny PCB.. (was for a spiderman web shooter kit/run)
*was supposed to fit a 3D replicas of the watch casing form the TASM movie

(http://dmstudios.net/misc/TASM_pcb/TASM_pcb_previewPic-005.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_pcb_previewPic-006.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_primed_mockUp-005.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_primed_mockUp2-001.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_primed_mockUp2-002.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_primed_mockUp2-005.jpg)
(http://dmstudios.net/misc/TASM_pcb/TASM_primed_mockUp2-004.jpg)
toaster re-flow!
(http://dmstudios.net/misc/TASM_pcb/batch1_completed-004_sized.jpg)

I only wish it didnt take 3-4 weeks for PCB's..  :)  (I am liking Elecrow because of the free color pcb's and still $10 for 10 pcbs)

thanks to you guys who genuinely like this stuff.. and like to talk and teach and educate others. (appreciate it)
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: SirNickity on Oct 17, 2013, 01:49 am
HUH....  OK, now I'm looking at getting a vinyl cutter.  I have occasional access to one at a nearby FabLab, but it isn't terribly expensive.  I picked up a used toaster oven slated to be a reflow oven, as soon as I build the PID for it.  (Yeah, I know, but it's a trial run for when I build a PID for my espresso machine.)   ]:D

More projects than weekends, unfortunately.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 17, 2013, 01:59 am
haha.. I hear that..

unfortunately.. (for me)..  more projects than knowledge as well!  :)  lol..

and yes.. I do suggest the Silhouette Cameo.. great little machine..
no proprietary 'cartridges' for fonts/images/clip art..  (which is how most work)

you can import images.. (trace) then cut them.. .. create using their little tool box/GUI (not the best..no photoshop..lol)
if you get the upgraded software... you can import .svg files directly (and save too I think?)  which is kind of a sweet feature!

I made some etching on mugs (negative stencil on glass mug form dollar store..  into the media cabinet for some some sand blasting)..  can also be done for about $20.00 with 'air erasure' from HarborFrieght too..

great for parties and events to have fun with....etc.

plus geek stickers!  lol..  vinyl stuff for windows/cars/stencils..etc..

but I think it use it for PCB stencils the most..  any time.. just pop-one out, smear some paste...populate & bake!
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: polymorph on Oct 17, 2013, 04:00 am
I have a very old Graphtec vinyl cutter that I started making PCBs and experimented with cutting solder stencils, then it quit working after we moved. Not had time to fix it.

You results look great! I agree with the sentiment that although this may be inefficient, you have to start somewhere.
Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 17, 2013, 03:39 pm
thanks for the support!  (I'm trying)  lol..

I think you can use the same Python stuff I am using for yours (Graphtec)...
it uses Gerber files as the source..(which is great cause I use Eagle)
and it cuts some pretty nice stencils.. (saves me $25-$35 a time when I make them myself!)

the 'kit' above is 5 stencils right there. :)

All the steps/guide is on Dangerous Prototypes forum.. (I think I have everything still saved too,.. if you cant find it let me know)

anyways.. I have everything done.. and ave moved things away from the temp button and using a DB-9 (serial) connector for the magazine to gun connection....

and since I have to disconnect one of the MAX chips (its in the magazine) and reconnect it.. Im having an issue on it re-initializing correctly..(or something)?  I made a thread on it...   (the fun never stops!)    LOL

Title: Re: Help on (non-working) LM317 constant current circuit
Post by: xl97 on Oct 18, 2013, 02:21 am
any of you more experienced guys wanna take a shot at this one for me:

http://forum.arduino.cc/index.php?topic=193834.new;topicseen#new


:)

experience with the MAX7219/MAX7221 chips is needed..  more or less having trouble removing a part/component/pcb from the circuit  (that has a MAX chip on it).. and re-inserting it later to continue 'running/updating'