3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

High Power LED Driver Circuits

Step 7Constant current source tweaks: #2 and #3

Constant current source tweaks: #2 and #3
«
  • DSCF4171.JPG
  • DSCF4172.JPG
these slight modifications on circuit #1 address the voltage limitation of the first circuit. we need to keep the NFET Gate (G pin) below 20V if we want to use a power source greater than 20V. it turns out we also want to do this so we can interface this circuit with a microcontroller or computer.

in circuit #2, i added R2, while in #3 i replaced R2 with Z1, a zener diode.

circuit #3 is the best one, but i included #2 since it's a quick hack if you don't have the right value of zener diode.

we want to set the G-pin voltage to about 5 volts - use a 4.7 or 5.1 volt zener diode (such as: 1N4732A or 1N4733A) - any lower and Q2 won't be able to turn all the way on, any higher and it won't work with most microcontrollers. if your input voltage is below 10V, switch R1 for a 22k-ohm resistor, the zener diode doesn't work unless there is 10uA going through it.

after this modification, the circuit will handle 60V with the parts listed, and you can find a higher-voltage Q2 easily if needed.
« Previous StepDownload PDFView All StepsNext Step »
22 comments
Apr 20, 2012. 11:55 AMnnadine1973 says:
Small add: if instead of r2 we connect there a fotocell, we have a great system that is swiching off during the day, and light up automaticly, at constant current, all night.
Mar 18, 2012. 5:45 AMdiy_bloke says:
I understand wanting to protect the gate agains high voltage, but why would you want to do this if you are feeding with 10 Volts as in your description?

And if you would 'use this with a microcontroller' (though I do not understand how a microcontroller would deliver such high currents) the Voltage would most likely be 5 V to begin with. Or am I missing something?
Mar 18, 2012. 5:47 AMdiy_bloke says:
OK I understand the microcontroller now. I thought you wanted to feed Vcc from a microcontroller output pin
Nov 24, 2011. 2:46 AMggodinho says:
Hello, Sir Dan. I've liked a lot your circuit and I've been making some updatings in order to fit with my project. So, I'd like to share my experiences with all and I'd like your technical remarks and sujestions.

First of all, I couldn't understand why did you insert the R2... Since I needed more input power, I just verified my NFET datasheet (IRF260) and Q1 (BC548) components and I noticed Q2 supports until 200V. So, I connected all the circuit at 180V, (an local 110V plus half-wave retific and filtered voltage). This power in drives a string of 40 5mm white leds (40x3.1=124V).

I know I could put more leds until reach near 180V, but I preferred put 3 paralel strings of 40 LEDs (a resistor was added in series on each LED string in order to fit all the strings to the same current). Of course, NFET will waste the extra voltage, but it doesn't matter to me, the important is to sustain the same 60mA constant current (3 strings of 20mA LEDS) and for this, the circuit is perfect.

So far, so good but, I have questions to ask for the group: what would happen with my 120 LEDs if Q1 openned its base or other else problems with this component ? There is a way to introduce a protection for them?

and more: How this circuit would behave if I strobe the LEDs feed with any flip-flop? it seems that the voltage delay a bit to fall when I just insert the leds... so, in a pulsed condition I belive the leds power will rise a bit.

Thanks
Feb 18, 2012. 9:05 AMleven says:
The purpose of R2 is to create a voltage divider and keep the gate voltage of the FET below the maximum rating, which is usually lower than the drain-source voltage.
Nov 11, 2011. 5:22 PMjohnjuan says:
Not sure if I understand right - does the Zener in fig. 3 make so the circuit will output more than 20v, or just intake more than 20v? I want to connect to 24v supply. Will Zener be enough, or do I need a better NFET? If I need better NFET, can you suggest one capable of 24v or more?
Sep 23, 2011. 7:41 AMbau05 says:
Hi Dan

I use a group of 32 Cree MC-E leds(4 in series x8 in parallel), mounting in a XLarge heatsink with fans.
An IRF3710(Vd=100V,Rds=23mΩ, Ιd=57Α) drives these leds.
All work fine, except that leds open/close "unevenly" during first/last steps(Sunrise/sunset mode)
(it isn't a PIC problem, cause i tested with four 5mm simple leds that worked "smoothly")

Q: Can i replace the two resistors(100R, 10K) with your circuit and drive safely the leds?


*Vtot=12,5Volts/Itot=3,9Amperes

*See IRF.sch below.
Sep 25, 2011. 10:43 PMspark light says:
It sounds to me like you just completely paralleled the led's.
Here's the problem:
a constant current source works by changing voltage to stay at set current.
because of this, you have to make sure each led shares current evenly, as they each have different turn on voltages. you can do this by putting a small resistor in series with each one. (10 ohms) The ideal solution would be a separate driver for each, but that might be expensive.....
Sep 26, 2011. 7:17 AMbau05 says:
A friend gave me yesterday his ebay cheap Led Wireless Dimmer(with remote ctrl). It uses an smd ATMEL microchip inside.
After testing this i noticed that ATMEL doesn't minimizes the light at all, plus remote ctrl step to step cliks are different.
So with a digital voltmeter, i deside to measure the PWM output steps.
1)My PIC diy dimmer steps: 0.00>0.01>0.03>0.05>0.07>.....>5.02 Volts
2)ebay Atmel dimmer steps: 0.02>0.04>0.08>........>4.98 Volts

That's the answer:
the different voltage PWM steps in each microcontroller's software.
A smooth opening light mode should have 0.00>0.005>0.01>0.015>0.02>0.25>....voltage steps(maybe this will be done with an analog potentiometer).
I guess that there is no solution, except someone re-programs the .hex file. Cause i dont "speak" the PIC-language, my circuit will stay as is.
Anyway thanks for answers.

------
*To help others:
A 10x10cm IRF heatsink gone useless. IRF+heatsink were TOO HOT!
I cooled the burning IRF, mounting it to a cheap 5x5cm PC VGA heatsink fan!
IRF now has the room temperature!
Sep 8, 2011. 11:18 AMpolilies says:
Hi dan!
firstly thanks for your project!it's great, i have try it few days ago. and it works with one led.But the NFET heating too much . Do you know something about it? i've try it with 5v zener. and when i tried the circuit with three power led it wasn't heating but the leds were not bright enough.actually too dead.. ?
Jun 25, 2011. 1:04 AMdrbogger says:
Will a 1N4733A 5.1 volt zener diode with a Voltage Forward (Vf) of 1.2V @ 200mA work?

There is also one that doesn't specify a Vf... Which one should I get?
Jun 21, 2011. 11:46 AMbwrussell says:
Maybe I'm just missing something but how do I determine the value of R2 if I'm not concerned about interfacing with a microcontroller but need an input voltage greater than 20v?
May 22, 2011. 12:58 AMkarthik_dm says:
Thanks a lot!! your circuit works well..
Dec 3, 2010. 12:08 PMTrimaran says:
5V zener was not enough in my case. I got 0.17 ampers while i should have get .32 according to my configuration and with one 5V zener, so I thought maybe mosfet was not working normal with 5V gate voltage and put 2x5V zeners in series to make it 10V and it worked. Btw, I put them in series just because there was not 10V rated single zener in my stock.
Aug 28, 2009. 12:02 AMThe Lightning Stalker says:
These circuits are great. If you want to interface it to a microcontroller, you should really use a logic level FET. Otherwise make sure that the turn-on voltage is low enough. A lot of commonly available MOSFETs don't fully turn on until like 8V. That's why the IRF540 mentioned by gerojalo won't work. It will work, just not with a microcontroller or a lower input voltage.
May 8, 2009. 5:23 AMgerojalo says:
all i could manage to get hold of was an IRF540A for Q2 ... and a BC549C for Q1 ..... would these be ok ?
Dec 31, 2008. 10:39 AMQuazar says:
Dan, Great project! I'm looking for a design for a universal input module that can take anywhere from 3VAC/DC up to about 24VAC/DC. I thought I could use this circuit to drive an opto-isolator and add a full-wave-bridge on the input side. Does this seem like a reasonable approach, or is this circuit overkill for my application? Thanks in advance, - Dean
Jan 5, 2009. 10:50 AMQuazar says:
Dan, thanks for the speedy reply! I haven't picked a particular optoisolator yet; I figured I needed to get an idea of the driving circuit before I settled on one. Originally, I was thinking that a 5W zener with a suitable series resistor could get me in the ballpark to drive the opto, but I don't have much experience with constant current sources, particularly when used with wide voltage ranges.
Oct 1, 2008. 9:11 AMsamphantom says:
Hello Dan I was looking in the FEt transistor, is this a N-channel or P-channel, I'm implementing this same circuit connected to AC power line ovbiously increasing the capacity of this driver, using FQPF10N50CF as Fet and C3743 as the transistor, but still I'm confusing with the FET 'cuz in your drawing appears as P-channel and the number in your post is N-channel. Thank you for your time
Jun 11, 2008. 12:11 PMjsbarrie says:
Dan- This looks great! I am about to work on an LED lighting system in Latin America. We are using 3.6v 1W white LEDs (Lumileds) and locally they like to use 12v photovoltaic systems (probably because so many things work off of auto current) Anyway, how would you maximize the efficiency of your design considering these two parameters? Thanks, jsbarrie

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
524
Followers
47
Author:dan(MonkeyLectric)
Dan Goldwater is a co-founder of Instructables. Currently he operates MonkeyLectric where he develops revolutionary bike lighting products. He also writes a DIY column for Momentum magazine.