Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Tech-BLOG     RSS     Terms of services     Privacy policy  
 Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Tech-News     RSS   

PCB Fabrication
29 August 2010
Author: Giorgos Lazaridis
An LED Array PWM Dimmer with the 555


The circuit on a breadboard for test. I use 5 volts for power supply

A few days ago, someone posted a question to the forum about dimming LEDs. He had a schematic with a potentiometer that would control a batch of LEDs. I then suggested that he would better use a PWM circuit to control them. And guess what... I did not have one! So, here it is:







The Circuit

The circuit is based on the 555 timer, connected as a PWM generator. Again i will use as output the discharging capacitor from pin 7, which will control the base of the power transistor. Similar to the LED Off Delay with dimming effect circuit, i will break the circuit into 2 pieces, the controller and the LEDs. The circuit can operate at a wide operation voltage, from 4 to 15 volts, and the only thing that changes is the LED array. Here is the controller circuit, able to operate from 4 to 15 volts as is:





The potentiometer R2 controls the charge and discharge times, and thus the duty cycle of the PWM. In other words, the R2 controls the brightness of the LEDs. R1 pulls up the discharging transistor (inside the 555). The LEDs are connected to the "LEDS" pad on the right.




The LEDs

I will suggest some connections that i have already tried and took some measurements myself. For these connections, i used high brightness 30 mA 3.6 Volts 3mm and 5mm LEDs. You can use whichever LED or connection you like, as long as you do not exceed the current limit of the transistor (for the 2N2222 this is 800mA). As always, click to enlarge if an image is too small.


Power supply: 5 volts
RP = 47 Ohms
Max num of rows: 33
Max num of LEDs: 33
Power supply: 9 volts
RP = 68 Ohms
Max num of rows: 33
Max num of LEDs: 66

Power supply: 12 (13.5) volts
RP = 47 Ohms
Max num of rows: 26
Max num of LEDs: 78
Power supply: 15 volts
RP = 20 Ohms
Max num of rows: 26
Max num of LEDs: 104


For each LED connection above, i give some characteristics. First of all, the power supply. This is the power supply that the controller operates with. As i told you before, only the LED array will change with the power supply.

Then the RP. The RP is the protective resistor for each row. Each LED row must have its own protective resistor. Although multiple LEDs connected in parallel can use just one resistor, this must be avoided. LEDs should always be connected in series with resistors. Each row composed by a number of LEDs and a protective resistor (RP) can be multiplied in parallel, as many times as the 2N2222 permits.

The next number shows exactly this: the number of rows for each connection that the 2N2222 can handle. For example, when powering with 12 volts, the transistor is capable to drive up to 26 lines of 3 LEDs each (and of course a protective resistor on each line) and that is the current limit of the 2N2222. If you think of pushing the transistor to the edges, then you should first measure the real current that your LED array draws, and do not exceed the maximum 800mA that the transistor can handle. Remember that the transistor may need heat-sink if it gets hot.

The last number, indicates how many LEDs in total can be controlled with each connection. For example, when powering with 15 volts, the transistor can control up to 26 rows of 4 LEDs each, that makes 26 x 4 = 104 LEDs in total.

More info about th above connections can be found here.


Bill Of Materials
Resistors
R1Resistor 4.7 KOhm 1/4 Watt 5% Carbon Film 
R210 KOhm Potentiometer
Capacitors
C10.1 uF ceramic capacitor
Semiconductors
D1-21N4148 Switching Diode 
Transistors
T12N2222 Switching NPN Transistor 
Integrated Circuits
U1555 Timer 





 Rate this article!


Comments

  • At 23 April 2012, 1:34:51 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Madhav Khanna 1. not possible, 2. transistor maximum Ic current and power dissipation


  • At 22 April 2012, 20:05:37 user Madhav Khanna wrote:   [reply @ Madhav Khanna]
    • 1. How does the circuit change if I want to use a 3.3V pwm from a micro controller instead of the potentiometer.
      2.(This one is just out of curiosity)Also What do I need to take into account if I use LED's which need 350mA at 2.4V.


  • At 21 April 2012, 7:59:27 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @dogdoggod maybe you do not need to change anything. you have to try it.


  • At 20 April 2012, 3:41:31 user dogdoggod wrote:   [reply @ dogdoggod]
    • Hello,
      I am doing a project on it.
      I used another LED bulb(5 x MR16 4W Warm White 12V DC LED Bulb LED Light 3500K) instead of it.
      http://www.ebay.com.hk/itm/5-x-MR16-4W-Warm-White-12V-DC-LED-Bulb-LED-Light-3500K-/290495821142
      Also, I change the transistor to '2N4401' because I cant find any 2N2222 in the lab.
      what should i change if in this situation?
      Thanks a lot.


  • At 19 March 2012, 2:24:24 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Icnuemono welcome to our site!
      1. adding this capacitor will smooth the PWM output to a linear voltage (i bet it was a large capacitor). Along with the resistor R1 they make a low pass filter, so by changing the PWM duty cycle, the output voltage is changed, and since the T1 is an emitter follower, the change in voltage appears at its output as well. You get of course a more linear response, but the range is radically decreased (try this with a fan not LEDs). And something else: this does not work as PWM supply any more. The power is dissipated onto the transistor, so you lose all the benefits of a PWM.

      2. Not possible. Or i should say better "very hard". Better use this circuit:
      http://www.pcbheaven.com/circuitpages/Voltage_Controlled_PWM_Generator
      This circuit has an input to get DC voltage in order to control its output. I used it for a dimmer as well:
      http://www.pcbheaven.com/circuitpages/Ambient_light_Level_Equalizer


  • At 19 March 2012, 1:05:27 user Icnuemono wrote:   [reply @ Icnuemono]
    • Hi Girogos!

      Love the site and have learned so much.. Just a coupe of questions.

      1. I had thrown a capacitor off of the line between 7(dis) and (T1) 2n222, it goes to ground in order to smooth the turn on of the LEDs. An unexpected side affect is that it allows greater control of the dimming (basically creating a more linear response curve). I'm just wondering why that is?

      2. What would like to do is to combine this circuit with the on/off slow fade, how would I go about doing that?

      Thanks again for all the great info on your site


  • At 11 March 2012, 8:06:19 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @crystal check this out:
      http://www.pcbheaven.com/circuitpages/Ambient_light_Level_Equalizer


  • At 11 March 2012, 5:23:40 user crystal wrote:   [reply @ crystal]
    • yep, im using LDR.do i need to do it by using pwm?


  • At 11 March 2012, 5:16:52 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @crystal a linear supply with photocell instead of adjusting resistor?


  • At 11 March 2012, 5:10:21 user crystal wrote:   [reply @ crystal]
    • hy,
      i want to build a circuit where the led is off when there is sun, led will be on when it is dark and led will be dim when there is not enough light.im using basic stamp 2 and my led is 12v LED.anyone have ideaa.i need help.. :(


  • At 7 March 2012, 18:04:52 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @igil i'm greek, so your english are perfect to understand ;)
      When you have it ready, post it on the site. keep images and videos from the worklog. looking forward to see it.


  • At 7 March 2012, 15:46:52 user igil wrote:   [reply @ igil]
    • @Giorgos Lazaridis Gio!! thanks a lot ... i wish have a professor like you....You know all we need learn.... so can i start to make my great LED lamp but i haven't enought $$ to buy the leds right now XD jajja i'll feedback you with fotos & videos while i build the lamp ok? Thanks a lot!! god bless you and have a excellent day!!

      by the way im mexican ..sorry for my english, i know its poor ...


  • At 7 March 2012, 2:29:15 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Igil yes you can use it. You will need to use a mosfet better for 15 amperes to have less resistance. One more thing: 125 series of 3 leds, 30 ma each led, makes 3.75 amperes not 15.
      As for the mosfet, a typical IRF540 is a good choice for value/current, and can handle up to 22 amperes. You will replace the transistor T1 with this mosfet. Check this out:
      http://www.pcbheaven.com/circuitpages/PWM_Fan_controller_using_a_555/

      It is the same circuit only that i use a mosfet instead. You do NOT use the 470 uF capacitor! As you see, the LEDs will go on the high side of the mosfet, otherwise it will not work. This means that you connect the Anode of the LED to the positive, then the cathode to the Drain of the mosfet (pin 2) and the source of the mosfet (pin 3) to the negative. As for R1, if the mosfet gets hot, change it with a smaller one, such as 1K or smaller. With this circuit you can control more than 600 series of 3 leds...


  • At 7 March 2012, 2:01:49 user Igil wrote:   [reply @ Igil]
    • @Giorgos Lazaridis thanks so much...

      i just want to confirm this... can i use this PWM circuit for dimming a 125 paralel series of 3 leds using a 12 v with more than 15Amps and changing the transistor for other? i i need change the transistor , what transistor remplace the other ???. Thanks for your time and your great actitude..Thanks, i start to buy the materials to make this posible....


  • At 6 March 2012, 5:30:33 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Igil let's put some math down. i suppose that each led needs 30mA of current, so 500 led need 15 amperes. Modern transistor can go much MUCH higher than this. the problem though is that connecting leds in parallel is not wise. So you need to make many series connections of leds. for example, you connect 3 leds in series with one small resistor. If each led need 3 volts forward current, the you will need at least 9volts for each series. the current through the LED will still be the same as one led, which is 30 ma. this way, you can have 1/3 of the current, which is 5 amperes. Plus, you can safely connect these series of leds in parallel, since the resistors act as balancing resistors. check this out:
      http://www.pcbheaven.com/userpages/LED_driving_and_controlling_methods/


  • At 5 March 2012, 15:48:50 user Igil wrote:   [reply @ Igil]
    • Hi, im new in this awesome world of LED ilumination, i want to make a 500 White LEDs panel for Photographic Ilumination ...But i don't know how to design the circuit for 500 leds...i need to do 5 different circuits with different dimmer ? or can i use the same dimmer for the 5 leds arrays, just changing the Transistor for other with more higher current (1800mA or more mA)?or just 5 Paralel circuits?.Please Help me is my school proyect...My Teacher tell me it is impossible do the 500 led panel for the Current of all leds..THANKS! and excuse my so bad english, i use a google translator for help me..


  • At 22 February 2012, 15:42:28 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @skeggi the connection that i use is called "emitter follower". the output voltage will be 0.6 to 0.7 volts less than the voltage provided from the base (the voltage that R1 is connected at. The other connection that you described is able to provide full voltage output.


  • At 22 February 2012, 13:10:09 user skeggi wrote:   [reply @ skeggi]
    • @Giorgos Lazaridis Hey,

      thanks for the quick reply! its great to see these discussions are still ongoing and helping people out. Your efforts are appreciated!
      I had tried the circuit with a collector output before, and found it to work just as well as with an emitter output. Just one difference. The voltages of the output pins differ, when before they didn't? I'm using this circuit to pwm some hi power led's via an led driver.


  • At 22 February 2012, 10:43:38 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @skeggi certainly it can output from wherever you want, depends on what you want the transistor to work as... all threads are open for discussion


  • At 22 February 2012, 9:43:21 user skeggi wrote:   [reply @ skeggi]
    • Hello,

      not sure if this thread is still being read or not, but regarding this circuit can it output through the collector of the transistor or only the emitter?


  • At 27 January 2012, 16:16:37 user Giorgos Lazaridis wrote:   [reply @ Giorgos Lazaridis]
    • @Tim how exactly did you replaced the potentiometer (which has 3 leads) with a photocell (which has 2 leads)? can you post a schematic in the forum?
      What you want to do is not very simple with this circuit. I recommend you follow this one instead:
      http://www.pcbheaven.com/circuitpages/Ambient_light_Level_Equalizer/

      This is exactly what you want, only you need to flip the photocell (LDR) with the potentiometer (100K) and the operation will inverse (brighter LEDs when brighter light).
      For the triangle oscillator i use this circuit: http://www.pcbheaven.com/circuitpages/Triangle_Wave_Generator


  • At 27 January 2012, 15:02:03 user Tim wrote:   [reply @ Tim]
    • I have built this circuit, and it works awesome. Thank you for this information. My question is about how a person could use a photocell with this configuration to adjust how bright or dim the leds can get. I replaced the potentiometer with the photocell, and it works great. Just exactly opposite of how I need it to work. I am needing the LEDS to dim as the ouside light decreases. The circuit I am trying to accomplish needs to have bright LEDS during the day, and dim ones at night. If you have any suggestions for me, I would appreciate it.

      Thanks again for your time


  • At 15 December 2011, 4:17:56 user Mdlagwagon wrote:   [reply @ Mdlagwagon]
    • @Kammenos thank you for the reply, it helped a lot.

      cheers mate


  • At 13 December 2011, 0:50:58 user Kammenos wrote:   [reply @ Kammenos]
    • @Mdlagwagon check out this page:
      http://pcbheaven.com/wikipages/555_Theory/?p=1


  • At 8 December 2011, 5:00:22 user Mdlagwagon wrote:   [reply @ Mdlagwagon]
    • I am a first grader in electronics and i just wanted to ask what is the purpose of having the switching diodes in the circuit?
      Thats because i think it is still possible to do the same circuit using plain whires to conect the transistor to the 555 timer and still get the pulse with changing.
      Positive feedback would be very much apreciated.

      Thank you


  • At 23 November 2011, 16:06:08 user Stian wrote:   [reply @ Stian]
    • Had a look at the 555 internal diagram you posted in a different article. I can see how the pull-up works now. Thanks for posting that.

      I've now modified the circuit by swapping the wire going from pin7/R1 to T1 with a resistor. I then added a wire to the Gate of T1 which will eventually connect to my switch's common pin. Tested by simply connecting that wire to GND or Vcc and it seems to override the PWM beautifully.


  • At 23 November 2011, 11:19:53 user Stian wrote:   [reply @ Stian]
    • @Kammenos Thanks for the quick reply. In my hurry I forgot to explain the exact configuration of the switch, so sadly I don't think either suggestion will work.
      The switch is a momentary On-Off-On rockerswitch. It has 3 pins: when it's in its resting position none of them are connected. Pushing up will connect two of them and down will connect a different pair. As it's momentary, it'll return to the not-connected state when released.

      It kinda works if I make the switch short out half the pot, where which half is dependant on the direction I push, but that doesn't work that well if the pot happens to be at its' lowest position just as you hit the switch for max brightness. (then total resistance through the pot gets really low). That's why I was looking for a more electrically sound solution. :)


  • At 23 November 2011, 10:47:45 user Kammenos wrote:   [reply @ Kammenos]
    • @Stian here is a trick. connect the rocker between the 7th pin of the 555 and the R1/T1 wire. If the rocker is switched off, then the PWM pulses will not arrive at the transistor, and the transistor will be pulled up by the R1. This means that the output will be MAX all the time.

      On the other hand, you can connect the rocker between the T1 base and the R1. Now if the switch is switched off, the transistor base current will be 0 therefore the output will be always off. But in that case, it is much better to connect the rocher directly on the power supply.


  • At 23 November 2011, 9:24:00 user Stian wrote:   [reply @ Stian]
    • I just finished putting this circuit together. First tried with a TIP41C BJT, but the voltagedrop turned out fairly high. Then switched to BAT43 diodes and an IRF530 FET and now the drop is barely there with 11.33V in and 11.22V out (LED). (simple multimeter measurements, mind you)

      Even in breadboard form it works great. Thanks for sharing!

      Quick question, if you have the time, I have this momentary rockerswitch that I'd like to use as an override (while held down) for max/off output. I'm guessing it's best to install it by adding Vin/GND to the Gate pin of my FET whenever the button is held (up/down). I'd probably need some resistors to prevent overcurrent, but I'm a little confused on the how because of the pull-up resistor allready at pin 7. Any tips on the wiring?


  • At 26 October 2011, 20:34:24 user Sean Harrington wrote:   [reply @ Sean Harrington]
    • Thanks for the prompt response, @Kammenos! I have a wire-wound rheostat coming with the same specs, so I'll try that.

      As for the low glimmer, I will try adding the extra resistors mentioned if the rheostat doesn't work. I've already prototyped the PCBs, so I might have to live with it on this project.


  • At 25 October 2011, 0:38:12 user Kammenos wrote:   [reply @ Kammenos]
    • @Sean Harrington resistors are NOT polarized. Probably you had a bad connection which was fixed when you changed it. It happens some times.
      To further decrease the dimming, you may wanna add an additional resistor (fixed) of small value (usually less than 1K) between the potentiometer and one diode.
      As for the linear response, unfortunately it can't get any better with this circuit. Maybe if you use a logarithmic potentiometer, but i cannot predict the results.


  • At 24 October 2011, 11:51:43 user Sean Harrington wrote:   [reply @ Sean Harrington]
    • Great project! Built it and wouldn\'t dim the first time. Spun the R1 around and the dimming worked, which is odd because I thought resistors were non-polarized...

      Anyway, I get a faint glimmer when the pot is at it\'s lowest. Any way to fix that?

      And, as others have mentioned, the brightness is not linear from 0 to 10. Maybe an inferior pot?

      Regardless, I liked the circuit so much I prototyped both a control PCB and an LED PCB for use in a model project I\'m working on, so this evening I\'m off to Fry\'s for blank boards and etching solution.


  • At 13 October 2011, 14:47:26 user Neo wrote:   [reply @ Neo]
    • Hi...im newbie here....can you tell me how to calculate freq,Th and Tl from your circuit above...Does R2 control The high & low output for the circuit...How about the value of R1?

      Thanks.....


  • At 18 August 2011, 2:44:23 user ahappybunny wrote:   [reply @ ahappybunny]
    • @Kammenos

      Thank you SOOOO much!!! You have no idea how much easier this will make my life! YOU ARE AMAZING! Your response time kinda scared me a little, but maybe I got lucky. I am going to try to build this with the heavy duty mosfet pushing around 70 LEDs. Wish me luck!


  • At 18 August 2011, 2:30:03 user Kammenos wrote:   [reply @ Kammenos]
    • @ahappybunny i do not really remember, it is an old project, but i suppose it is 1.5 to 2 KHz. The eye cannot see the LED flashing by no means. The incandescence light bulb flashes at 50Hz and looks smooth enough, imagine this that flashes at least 20 times faster.


  • At 18 August 2011, 2:25:02 user ahappybunny wrote:   [reply @ ahappybunny]
    • Hey,

      I cam across this page and the video and this will be a huge help to me for my project. I do have a question or two though: what frequency is the LED flashing at? I would like a rather rate to make the light appear smooth. What mods can be done to make this smooth and still retain relative efficiency?

      Thanks,
      Bunny


  • At 16 August 2011, 14:54:52 user Kammenos wrote:   [reply @ Kammenos]
    • @Sherman 24/6 = 4 volts, so yes, you can. But you will need a limiting resistor according to the forward voltage of your LEDs.


  • At 15 August 2011, 9:41:21 user Sherman wrote:   [reply @ Sherman]
    • How can I run 6 LEDs in series that require 24 V, 1A


  • At 26 July 2011, 18:36:25 user Brian wrote:   [reply @ Brian]
    • Hi,

      I finally prototyped your circuit. I wanted to make it so that it could handle more power so I placed a TIP42 PNP in place of the 2N2222. The TIP42 can work up to 40V, 10A peak & dissipate 65W. I connected the 555 pin 7 to the base, V+ to the Collector and the LED string (Anode with inline resistors) to the Emitter with the LEDs Cathode to GND. Now, because the PNP transistor is inverted Low to High compared to the NPN I swapped the order/sides of the diodes to the pot. This allows the pot to function normally with turning - CCW dim, CW bright. I'm going to place germanium diodes to get a 1%-99% duty cycle range.

      My questions are:
      (1) Do you see any problem with these adjustments?
      (2) I'd read from http://www.reuk.co.uk/LED-Dimmer-Circuit.htm that using germanium diodes would extend the duty cycle for the dimmer circuit from [5%-95%] to [1%-99%]. Is this true? And how?
      (3) Will my part adjustment cause problems with the remainder of the circuit? It does appear, as you stated, that the circuit is separate from the load/LEDs. Here the duty cycle through the 555 DIS pin 7 switches a separate power source controlled by the transistor base pin. But, will I have a problem with my substituted TIP42 transistor's base voltage/current feeding back into pin 7 and damaging something? I am powering the transistor/load (LEDs) from a separate source and ground than the circuit.
      (4) Comparing your circuit to some others. I've seen some others with the load (motor/lights) on the Collector side of the NPN transistor. Did you place yours on the Emitter side so if there were a short the load would be grounded and not connected to power?
      (5)With the PNP, I'm using, I still placed the load on the Emitter of the transistor which leads to ground. Since the transistor works in reverse of the 2N2222 NPN transistor you use - Should I change my load to the Collector side of the transistor? ??? But, then the load/LEDs would be connected to V+. Not good?

      Your Efforts: If I'm working to hard at keeping you on this old circuit then just let me know and I'll not bother you.

      Thanks for you blog.


  • At 19 July 2011, 10:41:28 user skiwall wrote:   [reply @ skiwall]
    • Ok, finally got it working. Thanks to some duff info ( and my own stupidity ) i had the collector and emitter the wrong way round. Having corrected that i found that even the 1k base resistor was limiting my current through the transistor so i swapped it for a 470 ohm and this works fine with this transistor


  • At 18 July 2011, 0:30:39 user Kammenos wrote:   [reply @ Kammenos]
    • @Brian the pins are not reversed. I use pin 7 as output and i sink the current of R1 through the internal discharge transistor. As for the capacitor, you can indeed use a 10pF capacitor from pin 5 to ground.


  • At 17 July 2011, 18:52:32 user Brian wrote:   [reply @ Brian]
    • Hi -

      I am ee illiterate and working to just make a PWM LED dimmer based on the 555. I asked another about your circuit just to get concurrence. He noted a possible schematic typo? Here is his response: \"I’m not sure about the pcbheaven.com circuit: the OUT and DIS terminals seem reversed and you really want a small cap on the CONT pint to keep that voltage from bouncing around.\"

      If DIS and OUT are reversed I can understand. But, his telling to put a cap on CNTR (CONT) which goes ??? nowhere. What would that do?


  • At 15 July 2011, 15:28:31 user Kammenos wrote:   [reply @ Kammenos]
    • @skiwall hmmm that is rather strange. I would say that bd243 (and bd243c which are same) should also work. try reduce R1 to 1K.
      you can also use 2 2N2222 to power half your LEDs from each.


  • At 15 July 2011, 14:08:01 user skiwall wrote:   [reply @ skiwall]
    • I built the circuit and had a BD243C transistor handy but it doesn't light any LEDS. Is this very different from a BD243? Could I use 2 x 2N2222 from the same 555 chip and power half my LED's from each?


  • At 13 July 2011, 9:09:28 user Kammenos wrote:   [reply @ Kammenos]
    • @skiwall yes, the rest is the same


  • At 13 July 2011, 5:00:36 user skiwall wrote:   [reply @ skiwall]
    • Thanks @kammenos. I assume that the remaining part of the timer circuit stays the same when using the BD243. i.e. no need to change the base resistor R1 for 5V supply.


  • At 13 July 2011, 0:47:05 user Kammenos wrote:   [reply @ Kammenos]
    • @skiwall BD243 can be a solution


  • At 12 July 2011, 15:48:06 user skiwall wrote:   [reply @ skiwall]
    • all, I\'m new to the transistor thing but think I follow. I have a cicuit which needs pwm dimming. Its 5v supply with 63 strings of 2 LED\'s @ 15ma. each string has its own PR at 70ohms. Each string can be switched off individually. Total power consumption is 945ma. Can you suggest a higher power transistor that will still work?


  • At 6 May 2011, 17:07:37 user Kammenos wrote:   [reply @ Kammenos]
    • @Bob ok, check the pot.


  • At 6 May 2011, 12:54:14 user Bob wrote:   [reply @ Bob]
    • I'll check my pot...plus I got a few spares laying around I can try out. I'm powering the circuit from a modified PC power supply with the GND on the -12V pin and the V+ on the +3.3V pin. Theory should give me 15.3VDC across the two. My 'El Cheapo' analog multimeter puts it around 15V. I currently have one row of 4 LED's in series on my bread board with a 20 ohm resistor, like the schematic shown above. My planned final circuit will be about 20 rows of four.


  • At 6 May 2011, 9:52:57 user Kammenos wrote:   [reply @ Kammenos]
    • @Bob the most possible reason is the potentiometer. Make sure it is linear. Test it with a multimeter. When it it in the middle, it must be half its resistance, same at 1/4 and 3/4. The Schottky diodes should work better than the 1N.
      How many LEDs you have connect and how? And what is your supply voltage?


  • At 6 May 2011, 8:17:40 user Bob wrote:   [reply @ Bob]
    • Thank you very much for this circuit. This was exactly what I was looking for to adjust the backlight brightness of the instrument gauges on my flight sim. I breadboarded it up and it's not as smooth as shown in the demo. Pot gets about half way and the LEDs kick on, then it's smooth progression up to full brightness. Same thing going back down. About half way they turn off abruptly. I suspect the Pot (10K linear taper) or the diodes. I accidentally ordered small SMD diodes so I prototyped it with some Schottky's I had laying around. Do any of these sound like it could be the culprit?


  • At 27 April 2011, 23:26:29 user rich wrote:   [reply @ rich]
    • sorry Kammenos i didnt see that the messages post at top of page, i have a tip31b transistor, i was told that it handles 3 amps, but will only use one per row.ok so i have to figure out the risistance value for the 5v circuit, and the rest is straight conection right, my power supply ha variable voltage out, so i dont need a resistor for the leds right? 24 divided by 7 =3.42v, how do i calculate the risistance vale to change 24v to 5v, do you know the current so i can calculate the resistance?


  • At 27 April 2011, 12:49:33 user Kammenos wrote:   [reply @ Kammenos]
    • @rich you need to change the transistor T1 with a mosfet that can handle the current for the LEDs and the voltage (easy job for some mosfets) and then connect the fosfet (ONLY) to 25 and the rest of the circuit to 5v


  • At 27 April 2011, 0:31:13 user rich wrote:   [reply @ rich]
    • hello im wondering if i could modify this circuit to work with 24v, i have 3w 700ma and 350ma rgb leds, i want to run rows of 7 and if possible and use this circuit to dim them, i have tip31b transistor, could you give me some pointers? thanx


  • At 26 March 2011, 0:27:02 user Chris wrote:   [reply @ Chris]
    • Timmy, I don't know if you figured it out yet, but the Mosfet transistor is connected to the opposite end of the string of LED's,so that the negative terminal of the last LED in the series connects to the Drain of the Mosfet, while the Source of the Mosfet is connected to the Negative terminal of the power supply. The Transistor in the circuit on this page is connected to the positive terminal of the first LED in the series, opposite to the Mosfet connection.


  • At 22 March 2011, 13:54:21 user Jason wrote:   [reply @ Jason]
    • Hi,

      I figured it out! I did not connect 0V from the battery to GND, I guess the LEDs were getting power but not the dimming circuit.

      Thanks

      sound.mixer


  • At 22 March 2011, 4:22:13 user Kammenos wrote:   [reply @ Kammenos]
    • Jason, post photos in the forum so that we can help you. (http://pcbheaven.com/forum)


  • At 22 March 2011, 0:06:19 user Jason wrote:   [reply @ Jason]
    • Hi,

      I am trying to make this circuit but having a little trouble. The LEDs will not dim. I have looked over my circuit many times and I can't see anything wrong. Any suggestions?


  • At 14 March 2011, 1:35:57 user Kammenos wrote:   [reply @ Kammenos]
    • timmy, This is how the mosfet is connected to the 555:
      http://pcbheaven.com/circuitpages/High_Frequency_PWM_Fan_Controller/


  • At 13 March 2011, 19:47:30 user Timmy wrote:   [reply @ Timmy]
    • Chris,
      I am building a similar project. Can you send me your schematic diagram? I\\\'m not sure I follow the connection of the IRF540.

      Thanks,
      Timmy

      tjreinarts@yahoo.com


  • At 27 February 2011, 0:37:50 user Chris wrote:   [reply @ Chris]
    • Yes! Thank you so much. Now I understand that a bipolar transistor is connected to the positive end of the LED chain, while a MOSFET needs to be connected to the negative. I guess that\'s why they refer to the MOSFET pin as the \'drain\', and the bipolar pin as the \'emitter\'. Anyway thanks again, the breadboard circuit is working fine and soon I\'ll be able to install the room lighting.


  • At 26 February 2011, 17:22:55 user Kammenos wrote:   [reply @ Kammenos]
    • Chris, i think you got it wrong connected. Look this page:
      http://pcbheaven.com/circuitpages/LED_PWM_Dimmer/index.php

      Look the circuit with title "What about the 3-wire and the 2-wire fans?". The positive goes to the LEDs, and the cathode of the LEDs goes to the mosfet. Change to this your connection and it should work.


  • At 26 February 2011, 1:11:11 user Chris wrote:   [reply @ Chris]
    • correction to my previous post - I meant to say I reversed the Source and Drain pins on the IRF540 to correct the circuit.


  • At 26 February 2011, 1:08:55 user Chris wrote:   [reply @ Chris]
    • I built your circuit and it works great. I am very excited to have access to all this information!

      Previously I asked if this could be scaled up to operate more LED\'s, and you suggested the IRF540. I ordered a few of these to experiment with, and at first I was confused because when I substituted the Gate, Source and Drain pins for the Base, Collector and Emitter of the 2N2222
      the circuit would not work. When I reversed the Collector and Emitter so that the Emitter was connected to the power supply (12V), and the Collector powered the LED\'s, the dimmer worked correctly.

      Now the LED\'s do dim with the IRF540 pins reversed, but they do not light as brightly as they did with the 2N2222. Can you suggest anything?

      Thanks again!


  • At 21 February 2011, 0:58:54 user Kammenos wrote:   [reply @ Kammenos]
    • Ryan, most probably you need a resistor. you need the resistor to have a voltage drop across it, so that the remaining voltage cross across the LEDs is equal to its nominal voltage operation. For example, if you have an led that operates at 3 volts, and your power supply is 5 volts, you need a resistor to generate a voltage drop of 2 volts, in respect of course to the current of the LED which is typical 25mA


  • At 19 February 2011, 9:55:10 user Ryan wrote:   [reply @ Ryan]
    • This is a great circuit! Thanks tons for making the effort to share this knowledge. :)

      My question is if I can use this to drive a single LED. Would I still need the resistor in front of it? I'm guessing so?

      Thanks!


  • At 18 February 2011, 1:06:04 user Kammenos wrote:   [reply @ Kammenos]
    • 2n2222 is not suitable for many LEDs. You need to replace it with a large mosfet, like the IRF540.


  • At 18 February 2011, 0:49:38 user Chris wrote:   [reply @ Chris]
    • I am studying this circuit and will be building it soon. I am interested in providing general room lighting for a 15 X 20 foot room,
      and I'm wondering if this can be scaled up to operate more LED's. Can this be accomplished by using a different transistor ? Thanks.


  • At 19 January 2011, 5:13:28 user Kammenos wrote:   [reply @ Kammenos]
    • there is an amazing world for you to discover


  • At 18 January 2011, 22:18:51 user BjMac wrote:   [reply @ BjMac]
    • Thank you.
      I have just ordered a book on electronics. I feel the need to learn circuitry and may have found another hobby.


  • At 18 January 2011, 13:39:54 user Kammenos wrote:   [reply @ Kammenos]
    • let me take a wild guess: remove the transistor completely, connect the LED directly to the place where the transistor was (555 pin 7), and it will dim, right? If so, then 99% you had the transistor connected wrong, or it was cooked on the first place. do this test, and if it does work the dimming, then the 555 is ok. Oh, and because the R1 is 7K7, do not expect the LED to glow. That is normal. Most of the voltage will drop on the resistor.
      Because 2N2222 is kinda expensive, you can try with another NPN transistor, BC338 for example. It will work the same for one LED. You cook 3 in the price of 1 ;)


  • At 18 January 2011, 12:49:19 user BjMac wrote:   [reply @ BjMac]
    • It actually does dim now with the fried transistor. That leads me to believe that the 555 and my cicuitry is correct? When the transistor was in good order (which lasted all of three seconds) the led was not dimming. Could I have overloaded T1 by only using a 100 ohm resistor on a single Led? I am going to replace the transistor and use a 400 ohm resistor on a single led tonight. To see what happens.
      I need to invest in a breadboard!
      Thank you for answering me. I love this cicuit too.


  • At 18 January 2011, 9:00:32 user Kammenos wrote:   [reply @ Kammenos]
    • It happens BjMac with curious friends. Anyway, the output of the transistor, is the input voltage, minus the VCE (which i do not remember exactly how it is). Check the documentation of the transistor to verify. Nearly 0.5V or something.
      If you mean inline the RP resistor, it is only for protecting the transistor and LEDs from over-current. Under specific circumstances, this can be omitted, but you have to really know what you are doing.
      The circuit should dim no matter what. If the LED did not dim, the problem comes from the 555 most probably. R1 is to keep the internal transistor of the 555 pulled-up, as well as the T1. If the PWM collapses, the T1 will be held all the time ON.
      Test the circuit with 5 volts, and RP about 47 ohms. If you do not have, put 2 100 ohms in parallel and you got 50 ohms.


  • At 18 January 2011, 8:09:24 user BjMac wrote:   [reply @ BjMac]
    • I built this circuit yesterday. I have a few questions though. A friend of mine was messing around with it while I had alligator clips to an led. He sorted the leads and fried the transistor. I could have killed him! With the bad transistor it puts out 2.1 volts. (base is shorted to the emitter) While this circuit is properly functioning, what is the output voltage? I'm guessing close to the input v? Aside from protecting the leds, do the inline res.'s preform any dimming function? While it was in working the led would not dim, could this be because I used a 100 ohm res? I know it was way to low but I couldn't find any of the correct values at work. Plus, it was a test led and didn't mind popping it.


  • At 9 December 2010, 12:26:19 user nandana wrote:   [reply @ nandana]
    • Dear sir,
      I build this circuit its working wary well!

      thank you.


  • At 8 December 2010, 14:04:45 user Kammenos wrote:   [reply @ Kammenos]
    • Hi peter,
      One question: What you want to make would be easier - and more energy efficient - to build with a microcontroller rather than occupy a multi-watts PC for just time keeping. Consider that.
      Currently, i do not have enough free time, because i need to finish the coffee maker project that i make. Send me the details with email (webmaster [at] pcbheaven [dot] com) to check it out.


  • At 8 December 2010, 3:00:52 user peter wrote:   [reply @ peter]
    • Hello
      I saw your videos on youtube, I really like it, Thank you,
      I see you are really smart,
      I do not know if you have time or want,
      I raise exotic birds and I need a light dimmer that I can like set or control from the computer to dimmer the lights slow so it dims it time in about one hour, so the birds feel like they are out like and the sun setting,
      Do you want or know how I would get something like that?

      Thank you for now

      Peter
      I'm in Calgary Alberta


  • At 26 October 2010, 1:04:44 user Kammenos wrote:   [reply @ Kammenos]
    • Hello Oliver,
      i had an awful teacher in electronics in my university as well. Absolutely dumb. But if you like what you are doing, then you learn it by yourself. So, i guess you want to make an astable multivibrator with the 555. I would suggest first you get o know the 555 better. I have written a simply theory about 555 which you can read it first. (http://pcbheaven.com/wikipages/555_Theory). From this page you will learn what each pin is, how to calculate the pulse duration and also how these pulses are generated. There are also some basic 555 circuits, among with there is the "The 555 as Astable Multivibrator". This is what you need to make. Exactly that circuit over there.

      To drive an LED array, you will need a transistor. Pin 3 of that circuit is the output. You will put a 2.2K resistor in series with pin 3, and then you will connect the base of a 2N2222 transistor. The collector of the transistor goes to 12 volts. From the emitter, you will connect the circuitry of this page with the 3x2 LEDs for the 12 volts. That will be all you need.

      Check out this post : http://pcbheaven.com/forum/index.php?topic=1068.0


  • At 25 October 2010, 17:18:22 user Jason Oliver wrote:   [reply @ Jason Oliver]
    • Giorgos Lazaridis

      Hello,

      My name is Jason Oliver. I have been wanting to build a simple circuit to flash an LED array. I saw a video you had posted and it was similar to what I want to do. I took electronic circuits I and electronic circuits II in college. Unfortunately, my E.C. II professor was unbelievably bad, and I learned nothing. My first one was great. So, I have a very basic understanding of electronic circuits ... which is to say I know almost nothing, just enough to burn up stuff!

      Anyway, all I want to do is build a simple circuit to flash an LED array. I would like someone to guide a beginner (me) through this process. I think I'm going to need a 555 circuit, a 1kohm resister, a 1 uF capacitor, and a potentiometer in the 50k ohm - 100k ohm range. I want to flash the array at 14 hz with an automotive 12V (actual ~13.4V, hence the need for the potentiometer) power supply.

      Is this something you'd be willing to guide a newbie with? Thanks.


      Jason


  • At 12 October 2010, 0:14:04 user Kammenos wrote:   [reply @ Kammenos]
    • i have a more appropriate circuit:
      http://pcbheaven.com/circuitpages/High_Frequency_PWM_Fan_Controller


  • At 11 October 2010, 17:47:26 user herctrap wrote:   [reply @ herctrap]
    • i am asking if the the output duty cycle is from 0& to 100&

      can i use it as a motor dimmer driver?


  • At 11 October 2010, 13:09:51 user Kammenos wrote:   [reply @ Kammenos]
    • Almost... I mean, it could be ridiculously close to 0 and 100. The reason why you never get absolute 0 and 10, is because there is a slight voltage drop across the diodes... On the oscilloscope, you barely see a difference. But the fact is that the LEDs change brightness though all the potentiometer range.


  • At 11 October 2010, 13:05:26 user herctrap wrote:   [reply @ herctrap]
    • is this working from 0% to 100%?

      thanks a lot


     

      Name

      Email (shall not be published)

      Website

    Notify me of new posts via email


    Write your comments below:

          






    delicious
    digg
    reddit this Reddit this
    Faves

    Search PCB Heaven


     HOT in heaven!



    PCB Heaven chirps on Follow me on Twitter

    TAGS cloud

    LEDs  Home  Light  PWM  Dimmer  DC Light Controller  PWM Light Controller  PWM Generator  555 Timer  Electronic Circuit 



    NEW in heaven!



    New Project: How to make a professional-like panel label

    Random Circuits!
     Automated Light Controller with adjustable Sensitivity and Hysteresis
     A 555 Breathing (Pulsing) LED



     Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Tech-News     RSS   

    Site design: Giorgos Lazaridis
    © Copyright 2008
    Please read the Terms of services and the Privacy policy