Author Topic: LED constant current circuit  (Read 1601 times)

0 Members and 1 Guest are viewing this topic.

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
LED constant current circuit
« on: June 14, 2018, 07:25:46 am »
Hej everyone

I have a small strange problem with one of my circuits and I have the impression that I'm getting blind while I try to find the solution. So a new perspective would be very much appreciated.

I try to drive a few leds with a constant current setup like the one on this site :
http://www.pcbheaven.com/userpages/LED_driving_and_controlling_methods/?topic=worklog&p=3

For testing purposes I started with a simple 5mm led and appr. 30mA. That means a sense resistor of 22 Ohm. Rg is 10k. As transistor I've used a standard Bc546 and the mosfet is a IRLZ34N.
So nothing crazy so far.

But for some reason I need 3,3 to 3,5V more voltage in order to reach 28mA. Following the calculations I should only need 0,7-1V extra. And it doesn't matter if I use 1 or 2 or 3 Leds. It's always 3,5V more needed. So obviously something is wrong. But I don't know what. Any ideas?  :-D
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3238
  • Country: gb
Re: LED constant current circuit
« Reply #1 on: June 14, 2018, 08:13:51 am »
Check the Vgs requirements of your MOSFET,  it may need more than 2 volts to pass the current you are demanding.
 

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
Re: LED constant current circuit
« Reply #2 on: June 14, 2018, 06:11:19 pm »
Thanks, but of course I've checked this point. And the voltage at the gate is always significantly higher anyways.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: LED constant current circuit
« Reply #3 on: June 14, 2018, 06:42:28 pm »
I've no idea what you mean by "3.3 to 3.5 V more." What is your supply voltage? And what is your gate resistor?
 

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
Re: LED constant current circuit
« Reply #4 on: June 14, 2018, 07:40:53 pm »
As I wrote Rg (according to the schematic the resistor at the gate and the transistor collector) is 10k.
And when I say 3.5V extra I mean led voltage (3,3V) + 3.5V extra supply voltage  in order to reach 30mA.

And, as I wrote, it doesn't matter how many leds in series are used. It's always 3.5V extra. So for example with 3 white leds it's 9.9V + 3.5V in order to reach 30mA. But according to the circuit description (please check the link)  it should only be 9.9V + 0.7V.

So what could be the issue here.
I've attached the circuit from the page.
Rg is 10k
Rs is 22Ohm
The transistor is BC546
The mosfet is IRLZ34N (logic level obviously)
 

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
Re: LED constant current circuit
« Reply #5 on: June 14, 2018, 08:10:26 pm »
It's 1.87V
But by the way it's in reality just 27mA or so. Probably because of the part tolerances.
 

Offline Benta

  • Super Contributor
  • ***
  • Posts: 5870
  • Country: de
Re: LED constant current circuit
« Reply #6 on: June 14, 2018, 08:37:47 pm »
Your Rg is way too high. If you read the article you linked to, it suggests around 1 mA through Rg.

The problem is, that your BC546 has nothing to do, meaning almost no collector current. The base current will be so low, that VBE will be down to 0.4...0.5 V. The 0.7 V postulated only make sense at IC and IB currents that are in the normal operating range of the transistor. And even then, 0.65 V is more likely.

That being said, I don't like the circuit. Relying on VBE for current limiting is probably the most imprecise way around.

« Last Edit: June 14, 2018, 08:39:53 pm by Benta »
 
The following users thanked this post: Liquid-light

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
Re: LED constant current circuit
« Reply #7 on: June 14, 2018, 09:28:27 pm »
Thanks.
I've just tried an Rg with only 1k. Unfortunately still not working. Everything is the same as before.
 

Offline StillTrying

  • Super Contributor
  • ***
  • Posts: 2850
  • Country: se
  • Country: Broken Britain
Re: LED constant current circuit
« Reply #8 on: June 14, 2018, 10:29:39 pm »
Are you sure RG is connected to Vcc V+ and not to the LED/drain, it would sort of explain the constant 2.5V.
« Last Edit: June 15, 2018, 08:04:05 am by StillTrying »
.  That took much longer than I thought it would.
 
The following users thanked this post: Liquid-light

Offline Liquid-lightTopic starter

  • Newbie
  • Posts: 6
Re: LED constant current circuit
« Reply #9 on: June 15, 2018, 06:39:23 pm »
What a stupid beginner mistake. |O
You are spot on, that was the reason for the problem.

Thank you very much!!!  :-+
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf