Controlling the brightness of LED's with a semiconductor - A simple circuit required please

dannyf

Joined Sep 13, 2015
2,197
I did a simple simulation of that circuit driving 8x2 2.8v leds connected to the source of a IRF530. The max power dissipation on the IRF530 is 1w @ 20ma and 1.5w @ 30ma per led string.

you can improve efficiency with a mosfet with lower Rds on, lower Vgs, or stringing more leds together.

You cannot find anything simpler than that - all it takes is a pot + a mosfet.
 

phonic

Joined Sep 29, 2016
37
opamps can be used to generate pwm as well. it can be done with 1 opamp, or two opamps (or more). that comes handy if your first try with a linear circuit doesn't work out.

The beauty of pwm is that the power losses on the switcher is much less so you may be able to get away with no heatsink.
If the linear circuit does not work out, and it is only a paper design, it can be sorted rather than abandoned.

As I have already stated, the power dissipation in the NMOSFET will be minimal and the the NMOSFET will not need a heatsink (perhaps a heater in the winter months though) so PWM is not warrented on the grounds of power dissipation.

phonic
 
Last edited:

phonic

Joined Sep 29, 2016
37
I did a simple simulation of that circuit driving 8x2 2.8v leds connected to the source of a IRF530. The max power dissipation on the IRF530 is 1w @ 20ma and 1.5w @ 30ma per led string.

you can improve efficiency with a mosfet with lower Rds on, lower Vgs, or stringing more leds together.

You cannot find anything simpler than that - all it takes is a pot + a mosfet.
Efficiency is the same for all linear circuits by definition. As I have said before, please post your circuit so that we can all see it. I would be genuinely interested because I have done a few trial designs without using an opamp and they all have problems, mainly non linearity leading to an awkward brightness control and parameter variation both with temperature drift and the variability of one component sample to another.

phonic
 

phonic

Joined Sep 29, 2016
37
POST ISSUE 2 of 2017_01_08

Hi NT,

Below is a schematic for a pulse width modulation (PWM) circuit to do your LED brightness control. It is not the simple circuit that you asked for but I thought I would do it as there has been so much interest expressed on this thread about all things PWM.:D

phonic

2017_01_08_AAC_PWM_LED_STRING_CONTROLLER_VER2_Iss01.png​

ERRATA
(1) Fit 10K resistor from the NMOSFET drain to the 12V supply line- thanks to Sensacell
 
Last edited:

phonic

Joined Sep 29, 2016
37
Hi Again NT,

Below is another linear LED string brightness controller which does not use a MOSFET or opamp.

The circuit is not as precise as versions 1 and 2 and the brightness control will be less progressive, but you should not really notice in practice.

The two Schottky diodes provide temperature compensation for the two transistor base emitter voltages in series.

The current sharing between the LED strings is quite good with a single constant current generator for each LED string.

This may look like an extravagant use of transistors, but the transistors are physically small and very low cost (£0.10UK) :)

phonic

2017_01_08_AAC_LED_STRING_CONTROLLER_VER3_Iss01.png​
 

Thread Starter

Neville Thannhauser

Joined Dec 3, 2016
27
Hi All,

Many thanks chaps for all the detailed information, option and spirit. All great fantastic stuff.
It never occurred to me that electronics was like this!!

Anyway I have only just caught up with the later inputs in to this thread and have only now seen the Iss2 drawing, many thanks for that.

I shall endeavor to put it together in the next few days....

..In the interim I found a very simple 555 circuit which does the PWM dimming thing with only the addition of - well not a lot.
See here: http://pcbheaven.com/circuitpages/LED_PWM_Dimmer/
To make the dimming more linear I had to swap the 10K pot for a 50K one (both Lin) A much more simple circuit than Phonics but I needed a confidence boost.

Anyway thanks again for all your help and I'll report back
 

phonic

Joined Sep 29, 2016
37
Hi NT
..In the interim I found a very simple 555 circuit which does the PWM dimming thing with only the addition of - well not a lot.
See here: http://pcbheaven.com/circuitpages/LED_PWM_Dimmer/
To make the dimming more linear I had to swap the 10K pot for a 50K one (both Lin)

A much more simple circuit than Phonics but I needed a confidence boost.
It makes no difference to me what circuit you go for; I am only interested in design. But your statement that the circuit you found is simpler (than the PWM circuit that I posted) is not really correct.

If you draw a complete circuit with the LED strings and include the decoupling components you will find that the circuits are of equal complexity. You could also strip out the good design aspects, like the snubber diode and the end stop resistors for the brightness control potentiometer.

There are some isssues with the circuit you found too, but I won't go into those now.

Whichever way you go, it will be interesting to hear how you get on and I hope we get some pictures of your LED strings working.:)

phonic

PS: You did notice that I specified an LMC555 CMOS timer rather than an LM555 timer.
 
Last edited:

Thread Starter

Neville Thannhauser

Joined Dec 3, 2016
27
Hi Phonic, CPC don't seem to have the BC546. Can you (or anyone else) suggest an alternative CPC do carry?

BTW: I have stock of the following NPNs: Would any of these work instead of the BC546?

2N2222A, 2N2369, 2N3904, BC549, BC557B, BC337, TIP120, BD139, BC547

Thanks again.
 

phonic

Joined Sep 29, 2016
37
Hi Phonic, CPC don't seem to have the BC546. Can you (or anyone else) suggest an alternative CPC do carry?

BTW: I have stock of the following NPNs: Would any of these work instead of the BC546?

2N2222A, 2N2369, 2N3904, BC549, BC557B, BC337, TIP120, BD139, BC547

Thanks again.
Hi NT,

The BC547 and BC549 would be good substitutes for the BC546. The BC547 and BC549 are pretty much the same transistor as the BC546 except lower collector to emitter voltage (VCE). These are high current gain (Hfe), low current, medium conductivity NPN BJTs (good for high gain, low noise amplifiers, especially audio).

The BC557B is a PNP version (complementary) of the BC547 (ABC etc just indicates Hfe grouping).

Incidentally, the 2N2222A (similar to the plastic PN2222) is similar to the BC337. All three are high-conductivity small-signal NPN BJTs with relatively high current capability and low saturation voltage (good for driving LEDS, small relays, etc).

The 2N2905A (PNP) is complementary to the 2N2222A and the BC327 (PNP) is complementary to the BC337.

The 2N3904 is also a high-conductance NPN BJT, but lower current than the BC337

The TIP120 is an NPN Darlington medium-power BJT.

The BD139 is an NPN medium-power BJT (good for output stages in medium power amplifiers, driving relays, motors, etc).

The BD140 (PNP) is complementary to the BD139.

The 2N2369 is an older low-voltage, medium-current high-speed switching NPN BJT.

(BJT = bipolar junction transistor which is a normal transistor)

phonic

DATASHEETS
(1) BC546: https://www.sparkfun.com/datasheets/Components/BC546.pdf
(2) BC556: http://www.mouser.com/ds/2/149/BC556-888527.pdf
(3) BC337: http://www.mouser.com/ds/2/149/BC556-888527.pdf
(4) BC327: http://www.redrok.com/PNP_BC327_-45V_-800mA_0.625W_Hfe100_TO-92.pdf
(5) PN2222A: http://www.onsemi.com/pub_link/Collateral/P2N2222A-D.PDF
(6) 2N2905A: http://www.onsemi.com/pub_link/Collateral/2N2905A-D.PDF
(7) TIP120: http://www.onsemi.com/pub_link/Collateral/TIP120-D.PDF
(8) 2N3904: https://www.fairchildsemi.com/datasheets/2N/2N3904.pdf
(8) 2N2369A: https://www.centralsemi.com/get_document.php?cmp=1&mergetype=pd&mergepath=pd&pdf_id=2N2369A.PDF
 
Last edited:

Thread Starter

Neville Thannhauser

Joined Dec 3, 2016
27
Many thanks Phonic, much appreciated.

To keep somewhat organised I'm keeping a spreadsheet of all my component stock.
On the transistors page, I'm trying to list key ratings and characteristics to I can start to get a handle on the variation between devices.
To that end the 'vital statistics' i'm currently listing are:

NPN/PNP/Darl/Other
Collector Emitter Voltage (V) Vceo
Collector Base Voltage (V) Vcbo
Emitter Base Voltage (V) Vebo
Collector Current (mA) Ic
Collector Peak Current (mA) Icm
Base Current Peak (mA) Ibm
Power Dissipation Pd (mW) Ptot
Max. Operating Temperature (C) Tj

Does this seam logical to you and are there any other parameters I should be listing, bearing in mind i'm not going to list everything?

Also I notice that the spec sheets from different manufacturers are listed differently. Each one lists the information a little differently, which makes it harder for a newbie to decipher the content... ON Semiconductor seem the clearest from my present POV.

Do you have any thoughts on the above?

Thanks again
 
Last edited:

GopherT

Joined Nov 23, 2012
8,009
Hi All,

Many thanks chaps for all the detailed information, option and spirit. All great fantastic stuff.
It never occurred to me that electronics was like this!!
Electronics is like any other technical field, there are lots of ways to the same end result. the routes can vary in complexity, cost, reliability and more. When you come in as a novice, you have to be careful who you listen to. Some are experts that will cut through your proposed solutions, understand your end goal and get you to a simple and reliable solution. Others may follow you down your initial train of thought and help you solve your inferior initial idea with more and more patches, high complexity and inferior reliability.

..In the interim I found a very simple 555 circuit which does the PWM dimming thing with only the addition of - well not a lot.
I'm happy to see you gave up your initial idea. PWM is the right path.

To make the dimming more linear I had to swap the 10K pot for a 50K one (both Lin)
Nice modification!

A much more simple circuit than Phonic's...
Agreed.
 

Thread Starter

Neville Thannhauser

Joined Dec 3, 2016
27
Thanks GopherT for your thoughts.
Once I got the 555 circuit working I started swapping components for equivalents to see what worked and what did not.. ..and then why not. My original thought was around driving fairly large arrays (50ish)of LEDs and I started to add more and more LEDs to the circuit. I noticed the thermal effects on the 1N4148 and then with trial and error ended up with the BD139 which is a lot more beefy. I've also looked at the O/P of the circuit on my old scope and it displays the PWM duty cycle really well:


Best regards
 
Last edited:

wayneh

Joined Sep 9, 2010
18,184
I've also looked at the O/P of the circuit on my old scope and it displays the PWM duty cycle really well...
I'm a little perplexed about that slow shut-off. If it's real, it'll cause more heating of the switching transistor than would a nice clean square wave. Which circuit is that coming from?
 

phonic

Joined Sep 29, 2016
37
Many thanks Phonic, much appreciated.

To keep somewhat organised I'm keeping a spreadsheet of all my component stock.
On the transistors page, I'm trying to list key ratings and characteristics to I can start to get a handle on the variation between devices.
To that end the 'vital statistics' i'm currently listing are:

NPN/PNP/Darl/Other
Collector Emitter Voltage (V) Vceo
Collector Base Voltage (V) Vcbo
Emitter Base Voltage (V) Vebo
Collector Current (mA) Ic
Collector Peak Current (mA) Icm
Base Current Peak (mA) Ibm
Power Dissipation Pd (mW) Ptot
Max. Operating Temperature (C) Tj

Does this seam logical to you and are there any other parameters I should be listing, bearing in mind i'm not going to list everything?

Also I notice that the spec sheets from different manufacturers are listed differently. Each one lists the information a little differently, which makes it harder for a newbie to decipher the content... ON Semiconductor seem the clearest from my present POV.

Do you have any thoughts on the above?

Thanks again
Hi NT,

No probs about help.:)

Your idea of categorizing your components is excellent and shows a thorough approach to your projects.

So often you end up having heaps of components but are never sure where they are or what they are- I am guilty of this.

For small signal transistors these are the parameters that I would recommend for your spread sheet:
VCo max
IC max
Ptot
Hfe (min) (current gain)
VCE sat
Ft

You mention a few other parameters but the list above are the core parameters that you will need for most designs. Of course, you should always check the data sheet for any specialist application. You mention the maximum junction temperature, but that is normally either 150 Deg C or 175 Deg C depending on manufacture so it is a known in practical terms.

For power transistors other parameters are needed.

By the way, there is a set of core components that you can stock that will suit the vast majority of simple applications. Have a look at this article: http://www.electro-tech-online.com/articles/core-components.782/

You mention about the variability in data sheets, which is quite true, but if you stick with the top manufactures the information in the data sheets is pretty similar, although the layout may differ. In my opinion (and experience), Texas Instruments produce the best data sheets, and Vishay, ON, Infinion, ST and a few others are just as good.

Then there are the second line manufacturers where the data sheets are often deficient.

You have to be careful when buying components because the parameters can vary for the same component from one manufacturer to another. And there are many rip off components too around too.

phonic
 
Last edited:

Thread Starter

Neville Thannhauser

Joined Dec 3, 2016
27
Hi Wayneh.
This is interesting because since posting the scope picture I've recreated the circuit on some Vero board and have got some different results.. In the picture below the top trace is the base pin / Pin 7 of the 555. The second trace is the emitter leg. So the distortion is coming from the BD139? Another phenomena Is that the pot control is no longer linear. When the duty cycle gets to about 30% it stops outputting all together. It flickers a little then it goes out. Strange. The original circuit is on a bread board with a LM555CN. The Vero version has a NE555P. Could this be the issue? (BTW: the pot, Cap and R are identical)


 
Top