Author Topic: Digital controlled linear current source IC simple to use?  (Read 2487 times)

0 Members and 1 Guest are viewing this topic.

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Digital controlled linear current source IC simple to use?
« on: October 22, 2018, 10:22:38 am »
Hello, I'm looking for digital controlled (arduino) linear current source IC easy to use like LM317 (few external components).
I need at least 5W of power, more better.

This is for RGBW led.
Do not offer specialized LED controllers as these are not linear but square wave 180KHz etc.

I would use LM338, but the resistor to control current must be power potentiometer of very low resistance and these are not cheap, besides I was told there is no way to digitally control LM338 etc.
 

Offline spec

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: england
  • MALE
Re: Digital controlled linear current source IC simple to use?
« Reply #1 on: October 22, 2018, 10:14:59 pm »

I need at least 5W of power, more better.

This is for RGBW led.

+ smile

(1) What is the total maximum and minimum constant current required for the RGBW LED?

(2) What is the maximum voltage drop across the RGBW LED at the maximum current?

(3) Can you identify the RGBW LED?

(4) What degree of control of the constant current do you require? For example, 8 digital data lines would give 255 steps so, if the maximum current were 5A, each step would be 19.6 mA.

I was told there is no way to digitally control LM338 etc.

It is possible to use LM338s etc as constant current generators, and control the constant current digitally but, so far,  I cannot see an easy way using non-specialist chips.
« Last Edit: October 22, 2018, 10:49:45 pm by spec »
 

Offline spec

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: england
  • MALE
Re: Digital controlled linear current source IC simple to use?
« Reply #2 on: October 22, 2018, 10:59:04 pm »

I would use LM338, but the resistor to control current must be power potentiometer of very low resistance and these are not cheap

+2 smile

Would you be happy with a circuit where the constant current could be controlled by a normal potentiometer.

If so, there is a simple circuit that would do the job  :D
 

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #3 on: October 23, 2018, 06:39:19 pm »

I would use LM338, but the resistor to control current must be power potentiometer of very low resistance and these are not cheap

+2 smile

Would you be happy with a circuit where the constant current could be controlled by a normal potentiometer.

If so, there is a simple circuit that would do the job  :D

No POT will not work, I already made LM338 current circuit with 2.2Ohm resistor for 1.90Eur instead of paying 80Eur or 100Eur. Are you guys find it also crazy that in US and Europe the wireqound POTS are crazy expensive? Why? Nichrome wire is nonexistent in these parts of the world or is made from gold?
 

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
« Last Edit: October 23, 2018, 07:47:59 pm by smile »
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: Digital controlled linear current source IC simple to use?
« Reply #5 on: October 23, 2018, 07:31:19 pm »

I would use LM338, but the resistor to control current must be power potentiometer of very low resistance and these are not cheap

+2 smile

Would you be happy with a circuit where the constant current could be controlled by a normal potentiometer.

If so, there is a simple circuit that would do the job  :D

No POT will not work, I already made LM338 current circuit with 2.2Ohm resistor for 1.90Eur instead of paying 80Eur or 100Eur. Are you guys find it also crazy that in US and Europe the wireqound POTS are crazy expensive? Why? Nichrome wire is nonexistent in these parts of the world or is made from gold?
Umm, you didn’t understand what (s)he’s offering. Nobody is suggesting directly running the power through a pot. They were asking if you can do without the Arduino and just use a pot for control, in which case there are simple circuits where you control the constant-current source with a normal pot.
 
The following users thanked this post: spec, nugglix

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #6 on: October 23, 2018, 07:36:28 pm »
Quote
Umm, you didn’t understand what (s)he’s offering. Nobody is suggesting directly running the power through a pot. They were asking if you can do without the Arduino and just use a pot for control, in which case there are simple circuits where you control the constant-current source with a normal pot.

I did not think my english is that bad, I'm sorry I'm not native english.
I already made constant current circuit using LM338 and 2.2Ohm POT. I got answers that LM338 can't be controlled by arduino etc.
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: Digital controlled linear current source IC simple to use?
« Reply #7 on: October 23, 2018, 07:59:14 pm »
I didn’t say your English is bad.


Look, spec is asking if a circuit controlled by a pot (instead of Arduino) would suffice for your purposes. You just have to say “yes” or “no.”

+2 smile

Would you be happy with a circuit where the constant current could be controlled by a normal potentiometer.

If so, there is a simple circuit that would do the job  :D
 
The following users thanked this post: spec

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #8 on: October 23, 2018, 08:28:44 pm »
Quote
Look, spec is asking if a circuit controlled by a pot (instead of Arduino) would suffice for your purposes. You just have to say “yes” or “no.”

As thread is named "Digital controlled" i say no.
 

Offline Buriedcode

  • Super Contributor
  • ***
  • Posts: 1610
  • Country: gb
Re: Digital controlled linear current source IC simple to use?
« Reply #9 on: October 23, 2018, 10:29:49 pm »
Perhaps I'm missing something but why not use the PWM out of an Arduino - or any microcontroller - with an opamp and pass element like a MOSFET of even a bipolar transistor?  A current source is slightly trickier than a current sink, but it depends on whether you do low or high side current sensing, but as the LED's you linked appear to have no common lines (so you can drive them common anode OR common cathode) I would argue that a current sink is better.

That's perhaps 4 components, and can be extremely cheap.  The only downside is PWM requires pretty heavy filtering if you want reasonably low ripple, and thereby making it not the best option for very fast changes in voltage.  The upside is you can have whatever resolution you wish, can be implemented with almost any micro, and is easily controlled.
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 4983
  • Country: ro
  • .
Re: Digital controlled linear current source IC simple to use?
« Reply #10 on: October 24, 2018, 11:07:49 am »
A lot of led drivers out there allow you to set a maximum current through a resistor and then adjust current by either sending a PWM signal on the Enable  pin or by setting some voltage on this enable pin (for ex. 0v..1v = off , 1v...3v 0..100% , 3v+ fully on
Some work at high frequencies like 300-500kHz so flicker can be super small and you can filter output more if needed.

Look LED drivers section on digikey or other sites and you'll find plenty
 

Offline forrestc

  • Supporter
  • ****
  • Posts: 646
  • Country: us
Re: Digital controlled linear current source IC simple to use?
« Reply #11 on: October 24, 2018, 11:31:50 am »
Do not offer specialized LED controllers as these are not linear but square wave 180KHz etc.

Could you explain why you can't use a PWM/square wave drive in this case?   

That said, there are quite a few LED controllers out there which are linear, just search for 'linear led driver'.   Without knowing more about your application I can't really be more specific.

You mention that you need 5W.   But at what voltage?   What current?   Are you driving chains of these, or is it a single LED?  Are you going to want many of these drivers or just one big one (per color)?
 

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #12 on: October 24, 2018, 01:25:46 pm »
Quote
Could you explain why you can't use a PWM/square wave drive in this case?   

I cant use PWM because the this is backlight for a camera, and as such the flicker will be registered even if the eye do not see any. Because the LED will be RGBW I need to vary the colors so they can be in a state were they are very low intensity, PWM would introduce flicker in such scenario.

Quote
That said, there are quite a few LED controllers out there which are linear, just search for 'linear led driver'.   Without knowing more about your application I can't really be more specific.

Well I somehow never found any of these.

Quote
You mention that you need 5W.   But at what voltage?   What current?   Are you driving chains of these, or is it a single LED?  Are you going to want many of these drivers or just one big one (per color)?

I wanted to use a single RGBW LED 5W or 10W, I posted a link to datasheet for CREE LED. It's somehow I missed that it is only 80CRI and I need like 95 or better CRI. Looked at digikey or mouser I see no RGBW LEDS with 95CRI |O
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: Digital controlled linear current source IC simple to use?
« Reply #13 on: October 24, 2018, 11:08:57 pm »
Quote
Could you explain why you can't use a PWM/square wave drive in this case?   

I cant use PWM because the this is backlight for a camera, and as such the flicker will be registered even if the eye do not see any. Because the LED will be RGBW I need to vary the colors so they can be in a state were they are very low intensity, PWM would introduce flicker in such scenario.
Not if you use a high enough PWM speed. I’ve toyed around with PWM at aroudn 60KHz and I could not persuade it to flicker in any of the cameras I tested with, even a DSLR set to 1/8000 sec.

Quote
That said, there are quite a few LED controllers out there which are linear, just search for 'linear led driver'.   Without knowing more about your application I can't really be more specific.

Well I somehow never found any of these.
They’re fairly common, and many accept either a PWM or serial input to control the output level.

Quote
You mention that you need 5W.   But at what voltage?   What current?   Are you driving chains of these, or is it a single LED?  Are you going to want many of these drivers or just one big one (per color)?

I wanted to use a single RGBW LED 5W or 10W, I posted a link to datasheet for CREE LED. It's somehow I missed that it is only 80CRI and I need like 95 or better CRI. Looked at digikey or mouser I see no RGBW LEDS with 95CRI |O
Well, using RGB to tweak the light is going to ruin the CRI anyway. I’d use separate RGB LEDs and choose really good white LEDs for the white — if you really need good CRI with color temp control, get high-CRI LEDs in a few color temps and dim between them.
 

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #14 on: October 25, 2018, 02:29:10 pm »
Well PWM gets slow at low brightness, that is how it dims the light. At such conditions the camera detects flicker or image distortions at pixel level, especially if I would use R,G,B as separate photos then merge them together to make color image.

Quote
Well, using RGB to tweak the light is going to ruin the CRI anyway. I’d use separate RGB LEDs and choose really good white LEDs for the white — if you really need good CRI with color temp control, get high-CRI LEDs in a few color temps and dim between them.

I would use RGBW as convenience product meaning one chip would have white and RGB. They would be used separately meaning that I would not use RGB to "correct" the white color. The light is made for photography project, and there we have color negatives that needs to be back lighted with RGB, where positives "slides" needs to be back lighted with white 3000K 4000K only.

So if there is no RGBW chip with 95CRI white then this idea will not work. I need to have 2 chips one with RGB the other with 95CRI white at 3000K or 4000K, perhaps both. That complicates things, are you sure there is no RGBW chip with 95CRI white?
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 11341
  • Country: ch
Re: Digital controlled linear current source IC simple to use?
« Reply #15 on: October 25, 2018, 02:49:45 pm »
Well PWM gets slow at low brightness, that is how it dims the light. At such conditions the camera detects flicker or image distortions at pixel level, especially if I would use R,G,B as separate photos then merge them together to make color image.
Please, I know how PWM works. Are you sure you do? You say that “PWM gets slow at low brightness”, but that’s not true. You choose a PWM frequency, and the duty cycle changes: in one period, the ratio of off to on. The speed is the same. The human eye is much more sensitive to changes in brightness at low illumination than high, which is why we notice any flicker more at the low end of PWM than the high end. (And persistence of vision comes into play, too.) A higher PWM frequency solves this.

Anyway, you didn’t understand me. I said two things:

1. PWM at very high speed will work fine on a camera. As long as the PWM period is much shorter than the shutter speed (and ideally a clean multiple), it’ll work without flicker or inconsistent exposure. (For example, if you’re using a shutter speed of 1/100sec, and you use a PWM frequency of 5KHz, then each exposure will have 50 complete PWM periods. So even if the timing is slightly off, and a picture gets 49 or 51 periods instead, that 1/50th variation is negligible.

2. Many constant-current LED drivers offer PWM or serial input to control the dimming. Meaning that you give it either serial (like serial commands over SPI or I2C) or PWM input (meaning that it takes the PWM signal from your dimmer) and converts that to an analog change in LED current. The output is not PWM.

So if there is no RGBW chip with 95CRI white then this idea will not work. I need to have 2 chips one with RGB the other with 95CRI white at 3000K or 4000K, perhaps both. That complicates things, are you sure there is no RGBW chip with 95CRI white?
::shrug:: I dunno. You said they don’t exist, not me.


P.S. Maybe it’s just the language barrier, but you come off as kind of argumentative.
 

Offline smileTopic starter

  • Regular Contributor
  • *
  • Posts: 213
Re: Digital controlled linear current source IC simple to use?
« Reply #16 on: October 26, 2018, 06:32:28 pm »
Thanks everyone for your input.

So is there any constant current linear not PWM LED drivers that can be controlled by say voltage 0V-3V or PWM from arduino for my task. Perhaps somebody has first hand experience and can recommend what I need?
 

Offline mvs

  • Frequent Contributor
  • **
  • Posts: 370
  • Country: de
Re: Digital controlled linear current source IC simple to use?
« Reply #17 on: October 26, 2018, 08:21:56 pm »
So is there any constant current linear not PWM LED drivers that can be controlled by say voltage 0V-3V or PWM from arduino for my task.
Take a look at PT4115. It is CCM buck converter for LEDs with linear dimmig capability (0.5-2.5V levels at DIM input).
« Last Edit: October 26, 2018, 08:25:20 pm by mvs »
 



Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf