Reef Central Online Community

Home Forum Here you can view your subscribed threads, work with private messages and edit your profile and preferences View New Posts View Today's Posts

Find other members Frequently Asked Questions Search Reefkeeping ...an online magazine for marine aquarists Support our sponsors and mention Reef Central

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself
Register Blogs FAQ Calendar Mark Forums Read

Notices

Reply
Thread Tools
Old 07/09/2012, 10:43 PM   #2576
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
Hey Bean, thanks for the fix on the spreadsheet and the note about the PFET. I couldn't find a good high voltage fet that has <30 Qg. The one I'm using is 33 and my Fsw is about 320kHz, so I'm just at the border .

AHutch, I just did a quick test with one of my boards and on the lowest setting (3 in my case) I get about 11mA current through 7 XPGs with 24V psu (on a board with parts for 48Vin and 1A max current).
What parts are you using for Roff (R5), Coff(C5) and PFET (Q1) ?


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/10/2012, 07:20 AM   #2577
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Being new to HPLED drivers and having no real world design experience, I have no idea what the rammifications of switching frequency and ripple have on the end result. Sadly, these are the variables that must be fiddled with to optimize a buck regulator like this.

Lower Qg means higher Rds-on and the datasheet indicates that there is a trade-off but (again) I am not sure of the rammifications on either side of the trade, other than the high Qg and heating.


So, in the end it may be worth trying to move the Cin cap to the alternate position (away from Vin) to accomodate the high Qg and low Rds-on


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 07:26 AM   #2578
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Vishay has a few lower Qg offerings in HV packages

IRF9520PBF
100V
Qg= 18nC
Rds-on = 600mOhm
6.8A


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 09:44 AM   #2579
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
Initially I had a pfet with high Rds and low Qg and the fet was getting quite hot... I guess having higher Qg moves the heat to the IC, having higher Rds, makes the FET hotter. Now that I've added a heatsink to my board, it is probably better to have the FET take the heat.

The part I'm using is FQP27P06 with max Rds of 0.07Ohms and typ Qg of 33nC. It seems to work well for me. I guess doubling the Roff resistor will lower the switching frequency and reduce the load on the IC, so maybe that's another option...

The only downside of this IC, too many things to consider and trade off.

The CAT4101 is a simple alternative, but not as fun


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/10/2012, 10:02 AM   #2580
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
My biggest gripe is the current sense.. Due to the topology, there is no way to make an adjustable output driver... You can't just toss a POT on the sense pins and adjust Imax as needed.


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 11:16 AM   #2581
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
Not on the sense pins, but you can put a pot on the Iadj pin and adjust it that way.


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/10/2012, 04:26 PM   #2582
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
LM3409 specs

10,000:1 PWM Dimming Range
250:1 Analog Dimming Range

It statest that both types of dimming can be done over the full range... but the specs above indicate that if you want high resolutiom then PWM needs to be used.


So I am a bit puzzled but may be reading the datasheet wrong... But when driven with a PWM signal it would appear that the input PWM signal is used to derive an output PWM signal and brightness is a function of that output PWM duty cycle. When EN is tied high (analog dimming) the LEDs are driven by a fixed PWM (based on component selection) and dimming of the LEDs is done by leaving the duty cycle as is but varying the output amplitude (voltage). Make sense, or am I not reading the theory of operation correctly?


It would also follow (if my assumption is right) reading the 250:1 spec, that that output voltage is derived from an onboard DAC and therefore only has ~250 steps from Vled to cutoff (the extra 6 missing steps likely the cutoff threshold area).

Anybody?

So if my assumptions are anwhere near correct, then connecting a 10, 12 or 16 bit DAC to do ANALOG dimming does not add resolution, as it is fixed at 250 steps and in fact the only way to get higer resolution is to drive a PWM signal from a 10, 12 or 16 bit source.


The next question being... with a PWM signal present on the EN pin, can the ADJ pin stil lbe used to drive down the overall amplitude, regardless of the PWM input. That is lets say that the driver is built for 1000mA and PWM, does lowering the voltage to the ADJ pin act as a MAXIMUM current adjuster? Looking at the block diagram it appears that it may.




Last edited by BeanAnimal; 07/10/2012 at 04:46 PM.
BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 05:31 PM   #2583
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
So i am still missing some details with, but I am partly correct (albiet partly wrong):


Here is a link to an article from National describing the topic and partly specific to the LM3409.
http://powerelectronics.com/images/D...res_1-1110.pdf

of note is the color shift related to analog diming, though at low outout levels, analog is more efficient than PWM. A tradeoff, but in our case, spectral shift may not be a good thing.

So... I suspect I am going back to the drawing board and going to use PWM instead of analog. That still leaves me with the problem of being able to trim the maximum current for a given design, unless of course it can be Iadjusted down.



Last edited by BeanAnimal; 07/10/2012 at 05:39 PM.
BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 07:19 PM   #2584
kcress
Registered Member
 
kcress's Avatar
 
Join Date: Dec 2007
Location: Central California Coast.
Posts: 5,383
Yo Bean! It's very confusing so I have no doubt you're not clear on this.

Here's the main confusion issue:

A lot of drivers, like Meanwells, have versions of drivers that can be dimmed by analog then they have some versions that are PWM. In their PWM versions they just take in your PWM signal and average it into the controller which runs just exactly the same as the analog version. The average the PWM to give themselves an analog signal internally that is the controller reference.

Then you have other controllers that are PWM and the PWM signal is actually ANDed with the current driver's output drive signal. When the PWM is zero it flat shuts-off the output. PWM = 0% = ZERO output current.

PWM = 100% = No interference with the controlled output.

PWM = any other value is the output OFF then current controlled to the drivers full current limit.


Now, the 3409 is special. It has an analog input that sets the controllers operating point. Then it has another input that will gate off the output driver.

This is why the analog input can only dim the output over a smaller range than the PWM.


kcress is offline   Reply With Quote
Old 07/10/2012, 07:28 PM   #2585
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
While I never intended to use 4000+ steps for dimming, I absolutely see finer steps than 250:1 on the analog range. Unfortunately it doesn't look like it is linear. From 1000-1001 (dac step), I get about 0.25mA increase in current. At the lower range there is pretty much no difference between, say 50 and 120 (dac steps). I get an increase of about 0.020mA from 50 to 150...

The PDF you linked kind of supports that it isn't limited to 250 steps on the analog side, but rather to 0-248mV across Rsns. Now, I assume internally it is just an analog scale, rather than going from analog to digital in the logic unit and back out to analog.

We'd need a scope to verify this, but I really doubt Vout is PWMed. I think it is constant voltage, constant current (with slight ripple). But I could be wrong.

Regarding color shifting, I'm not sure that is a problem. Especially since we don't know at what current are the colors are measured by Cree. My guess would be 350mA, since that's pretty much their standard current (for XP series anyway). Also, for me it feels like the LEDs become warmer when they are at the dimmest levels, which would also be similar to the color shift of the rising or setting sun (at least I'd like to think that way ) which is what I'm trying to get with the dimming anyway.

At the end of the day, as long as PWM is not used for setting the maximum current, I think it doesn't really matter for the 1-2hrs of dimming we do a day. I do, however, have a problem with setting the max using PWM... the fact that we don't 'see' the on/off cycle, doesn't mean that other organisms don't mind it. No science to back this up, just me.

To answer your question, yes, you can have a 0-1.24V voltage or just a pot on Iadj while PWMing the EN pin. I think it is just an on/off switch for the IC so it should be independent from the analog adjustment.


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/10/2012, 07:49 PM   #2586
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Quote:
Originally Posted by kcress View Post
Yo Bean! It's very confusing so I have no doubt you're not clear on this.

Here's the main confusion issue:

A lot of drivers, like Meanwells, have versions of drivers that can be dimmed by analog then they have some versions that are PWM. In their PWM versions they just take in your PWM signal and average it into the controller which runs just exactly the same as the analog version.
Right... I get that part and for the most part get the difference in topology between a buck converter with a PWM output and one that only chops the duty cycle on the current (analog).

Quote:
Now, the 3409 is special. It has an analog input that sets the controllers operating point. Then it has another input that will gate off the output driver.
I gathered that, but am not clear if both can be used at the same time. That is, build the basic driver for 1000mA max and use the analog adj with a trimmer to set the real world max to 900mA (or some other value) so that the string can NOT be overdriven by mistake via the software, etc.

Quote:
This is why the analog input can only dim the output over a smaller range than the PWM.
It is my understanding from the datasheet that both methods can dim over the FULL range, it just a question of resolution.


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 08:09 PM   #2587
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Quote:
Originally Posted by terahz View Post
While I never intended to use 4000+ steps for dimming, I absolutely see finer steps than 250:1 on the analog range. Unfortunately it doesn't look like it is linear. From 1000-1001 (dac step), I get about 0.25mA increase in current. At the lower range there is pretty much no difference between, say 50 and 120 (dac steps). I get an increase of about 0.020mA from 50 to 150...
Interesting, the low end problems are mentioned in the datasheet, but in the context that they are only slightly non linear. I would imagine that it depends on the frequency as well.

Quote:
The PDF you linked kind of supports that it isn't limited to 250 steps on the analog side, but rather to 0-248mV across Rsns. Now, I assume internally it is just an analog scale, rather than going from analog to digital in the logic unit and back out to analog.
I would imagine the input to the logic unit was a DAC, and thus the 250 steps. Maybe worth an email to National.

Quote:
We'd need a scope to verify this, but I really doubt Vout is PWMed. I think it is constant voltage, constant current (with slight ripple). But I could be wrong.
The way I read it and the way the plots in the datasheet appear, the output type depends on the mode of the regulator (as dictated by the status of EN and IADJ).

The
adjustable current sense threshold provides the capability to
amplitude (analog) dim the LED current over the full range
and the fast output enable/disable function allows for high
frequency PWM dimming using no external components.

In other words, the driver acts like a true current source with variable current, or can drive the leds via PWM (or appearnatly a combination of both.


Quote:
At the end of the day, as long as PWM is not used for setting the maximum current, I think it doesn't really matter for the 1-2hrs of dimming we do a day. I do, however, have a problem with setting the max using PWM... the fact that we don't 'see' the on/off cycle, doesn't mean that other organisms don't mind it. No science to back this up, just me.
My concern is also the organisms and their possible ability to sense or see the switching frequency, though the 60Hz flicker of fluorescents does not appear to be a problem.

My reasons for building the dimming drivers are only partly sunrise/sunset. I had hoped to use them to be able to color tune or color shift the fixture throughout the day, or permanently.

Quote:
To answer your question, yes, you can have a 0-1.24V voltage or just a pot on Iadj while PWMing the EN pin. I think it is just an on/off switch for the IC so it should be independent from the analog adjustment.
That is kind of what I read as well. That said, if it is an "on off" switch, then the output is switched on and off as well, with the only averaging being done by the inductor, more indication that in PWM in mode, the OUTPUT is PWM as well.

Thoughts?


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 08:24 PM   #2588
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Not super relevant, as the app note is for driving directly from AC mains without a vreg and ripple smoothing. Interesting though:

http://www.ti.com/lit/ug/snvu109/snvu109.pdf


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 08:47 PM   #2589
O2Surplus
Registered Member
 
Join Date: Aug 2011
Posts: 340
I don't have a full understanding of the operating principles behind the LM3409, but I can tell you this- It appears from the drivers that I've built that Analog dimming can be used in conjunction with PWM dimming at the same time. I built my drivers to output 3,000ma at 52 volts, but I'm able to dial down the current to 2,000ma to safely drive a particular BridgeLux led array. I followed the diagram in the spec sheet and connected a 250k ohm trimmer pot to the Iadj pin. I use it to dial in the maximum current and use the PWM signal from my arduino to dim from there.


O2Surplus is offline   Reply With Quote
Old 07/10/2012, 08:56 PM   #2590
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
That is pretty much what I was after... so I can continue with my project using this driver

Still very curious about the output waveform


BeanAnimal is online now   Reply With Quote
Old 07/10/2012, 09:35 PM   #2591
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
Quote:
Originally Posted by BeanAnimal View Post
I would imagine the input to the logic unit was a DAC, and thus the 250 steps. Maybe worth an email to National.
Page 9 of the datasheet has a diagram of the peak current control circuit. To me it looks like a simple comparator that turns on/off an input of the logic unit. Nothing more than that:
"The voltage across RSNS (VSNS) is compared to the adjustable current sense threshold (VCST) and Q1 is turned off when VSNS exceeds VCST..."

The Iadj voltage just changes where that comparator turns off.

I did sent TI an email about the 250:1 range, so I'll report back when they answer.

Quote:
In other words, the driver acts like a true current source with variable current, or can drive the leds via PWM (or appearnatly a combination of both.
Yep, that's how I understand it as well.

Quote:
My reasons for building the dimming drivers are only partly sunrise/sunset. I had hoped to use them to be able to color tune or color shift the fixture throughout the day, or permanently.
Yep, that is quite useful. I'm building my new fixture with all kinds of colored LEDs, so it should be fun .

Quote:
That is kind of what I read as well. That said, if it is an "on off" switch, then the output is switched on and off as well, with the only averaging being done by the inductor, more indication that in PWM in mode, the OUTPUT is PWM as well.

Thoughts?
Absolutely, if you are PWMing the EN pin, the output is indeed PWM, unlike the Meanwells as kcress described earlier.

...

'bout time I get a proper scope, anyone heard of OWON? The owon sds7102 looks really tempting with that 10Meg sample memory...


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/10/2012, 11:15 PM   #2592
kcress
Registered Member
 
kcress's Avatar
 
Join Date: Dec 2007
Location: Central California Coast.
Posts: 5,383
Lets see a lot has gone on here today.

1)
Quote:
Originally Posted by kcress
This is why the analog input can only dim the output over a smaller range than the PWM.
Quote:
Originally Posted by Bean
It is my understanding from the datasheet that both methods can dim over the FULL range, it just a question of resolution.
You're correct. My choice of wording for that sentence was not the best. By range I meant the range of dimming values(10,000:1) not the overall range of brightness .

2) 3409: Yes the analog input can set the MAX and the PWM can apply to that set current.

3) It's very easy to see 256 steps of dimming in a tank. 512 would probably be very hard to see. I'm running 1024 and can see no steps what-so-ever.

4) I would not hesitate to run PWM at a frequency greater than 100Hz having no concern with the wildlife. There's no reason I can think of for them to have a higher frequency eyeball than us. They have the same brain/muscle/physical response limitations and likely the same functional need for integration to allow seeing poor light. But that's just my opinion.

5) tera; I've NEVER heard of Owon. I have heard of Rigol and have been considering the Rigol DS1102E.

My problem is that I need an isolated scope for at least half of my work. I have a Tektronix that is but the numbskulls at Tek have ignored that genre of scopes now for a decade. Instead they are wasting their time on scopes that I see selling for more than half a million dollars each.


kcress is offline   Reply With Quote
Old 07/11/2012, 05:37 AM   #2593
dannytt
Registered Member
 
dannytt's Avatar
 
Join Date: Jul 2004
Posts: 49
Why no one use zetex led driver? I use it. I use it zxld1362/zxld1366 for under 1A application. If u want turn or dim the led driver the only method is use pwm. zetex led driver is very easy to design and use. If u wand driver 12 led in series by 60V dc u only need 1 zxld1366, 1 coil, 2 caps and 1 current sense resistor. The pcb can be very small and easy soldering them.....


dannytt is online now   Reply With Quote
Old 07/11/2012, 05:47 AM   #2594
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
I have old tektronix 2235, or 2213, honestly can't remeber if it is 60 or 100 meg. I don't use it very often. I would love storage scope but just can't justify the cost.


BeanAnimal is online now   Reply With Quote
Old 07/11/2012, 06:22 AM   #2595
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
Quote:
Originally Posted by dannytt View Post
Why no one use zetex led driver? I use it. I use it zxld1362/zxld1366 for under 1A application. If u want turn or dim the led driver the only method is use pwm. zetex led driver is very easy to design and use. If u wand driver 12 led in series by 60V dc u only need 1 zxld1366, 1 coil, 2 caps and 1 current sense resistor. The pcb can be very small and easy soldering them.....
The ZXLD1370 or newer ZXLD1371 appear similar to the lm3409, but I have not fully read the datasheets.


BeanAnimal is online now   Reply With Quote
Old 07/11/2012, 07:50 AM   #2596
dannytt
Registered Member
 
dannytt's Avatar
 
Join Date: Jul 2004
Posts: 49
Quote:
Originally Posted by BeanAnimal View Post
The ZXLD1370 or newer ZXLD1371 appear similar to the lm3409, but I have not fully read the datasheets.
ZXLD 1362/ZXLD1366 has internal MOSFET, and ZXLD1370/ZXLD1371 need extrnal add a MOSFET. if u need a led driver 1A or under zxld1362/zxld1366 is enough, but if u need driver over 1A then ZXLD 1370/ZXLD1371.

long long times ago i use national lm3404..... but it current sense is hard to find. so i choose zxld1362/zxld1366.....


dannytt is online now   Reply With Quote
Old 07/11/2012, 08:32 AM   #2597
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
Quote:
Originally Posted by kcress View Post
5) tera; I've NEVER heard of Owon. I have heard of Rigol and have been considering the Rigol DS1102E.

My problem is that I need an isolated scope for at least half of my work. I have a Tektronix that is but the numbskulls at Tek have ignored that genre of scopes now for a decade. Instead they are wasting their time on scopes that I see selling for more than half a million dollars each.
Yeah, the Rigol is quite popular but the owon is not much more expensive, yet it has a huge screen+resolution and much better hardware from what I read (real 1g/s even at 10M memory). Then there are the Hantek DSO5062B/Tekway DST1062B which can be hacked into 200MHz 1Gs scopes (they run linux and I've even seen pictures of people running xfce on them ). All of these are in the $400-$500 range.


Quote:
Originally Posted by BeanAnimal
I have old tektronix 2235, or 2213, honestly can't remeber if it is 60 or 100 meg. I don't use it very often. I would love storage scope but just can't justify the cost.
Justifying 400 bucks in this hobby isn't very hard


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Old 07/11/2012, 09:02 AM   #2598
BeanAnimal
Registered Member
 
Join Date: Feb 2003
Location: Pittsburgh
Posts: 20,310
$400 = 20 cases of cheap beer or 10 cases of craft beer....

Honestly, I don't often find use for a scope often. At one point I had visions of building high power SS and tube amps, and purchased the scope for that reason. I have piles of massive high voltage/current ONSEMI power transistors for a huge sub amp build, but never got around to doing it

My plan here is to use something like the NXP 16 channel driver to drive the PWM inputs on the LM3409 -OR- the NXP PWM output through a simple rc filter or opamp to drive the analog input of the LM3409.


BeanAnimal is online now   Reply With Quote
Old 07/11/2012, 11:28 AM   #2599
dannytt
Registered Member
 
dannytt's Avatar
 
Join Date: Jul 2004
Posts: 49
just for diy led driver not worth buy a scope.....


dannytt is online now   Reply With Quote
Old 07/11/2012, 01:30 PM   #2600
terahz
1x10^12 Hz
 
terahz's Avatar
 
Join Date: Oct 2009
Location: Stamford, CT
Posts: 1,173
You guys are no fun Of course it is not worth it to buy a scope because of an led driver.

Bean, 16 lm3409s can handle e LOT of LEDs, are you changing the lights for the tank and the house?


__________________
Аз съм българче!

Current Tank Info: DIY 40 Breeder with LEDs
terahz is online now   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -6. The time now is 10:22 AM.


TapaTalk Enabled

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2013 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2011