Top Banner

of 43

LED_PWM_Dimmer.pdf

Jun 02, 2018

Download

Documents

XerosP
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/10/2019 LED_PWM_Dimmer.pdf

    1/43

    Home Contact Projects Experiments Circuits Theory BLOG PIC Tutorials Time for Science RSS Terms of services Privacy policy

    Home Projects Experiments Circuits Theory BLOG PIC Tutorials Time for Science

    28 August 2010

    Author:Giorgos Lazaridis

    An LED Array PWM Dimmer with the 555

    A few days ago, someone posted a question to the forumabout dimmingLEDs. 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 guesswhat... I did not have one! So, here it is:

    Search

    Find us on Facebook

    Time for science

    54,907 people likeTime for s ci

    Facebook social plugin

    LikeLike

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://pcbheaven.com/forum/index.php?topic=1043.0http://pcbheaven.com/scripts/imagepresent.php?filename=%2Fcircuitpages%2Fimages%2Fledpwmdimmer555_1283066883.jpghttp://www.pcbheaven.com/opendir/http://www.pcbheaven.com/picpages/http://www.pcbheaven.com/blogpages/http://www.pcbheaven.com/wikipages/http://www.pcbheaven.com/circuitpages/http://www.pcbheaven.com/exppages/http://www.pcbheaven.com/projectpages/http://www.pcbheaven.com/http://pcbheaven.com/rss/rss.xmlhttp://twitter.com/pcbheavenhttp://www.facebook.com/pages/Science-News-and-Videos/117937124944479http://www.youtube.com/user/pcbheaven?feature=results_mainhttp://pcbheaven.com/forumhttp://pcbheaven.com/contacthttp://pcbheaven.com/http://www.pcbheaven.com/http://www.pcbheaven.com/m_pages/prvs.phphttp://www.pcbheaven.com/m_pages/tos.phphttp://www.pcbheaven.com/rss/rss.xmlhttp://www.pcbheaven.com/opendir/http://www.pcbheaven.com/picpages/http://www.pcbheaven.com/blogpageshttp://www.pcbheaven.com/wikipages/http://www.pcbheaven.com/circuitpages/http://www.pcbheaven.com/exppages/http://www.pcbheaven.com/projectpages/http://www.pcbheaven.com/contacthttp://www.pcbheaven.com/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    2/43

    Use our professional PDF creation service at http://www htm2pdf co uk!

    The Circuit

    The circuit is based on the 555 timer, connected as a PWM generator. Again i will use as output the dischargingcapacitor from pin 7, which will control the base of the power transistor. Similar to the LED Off Delay with dimmingeffect 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, ableto operate from 4 to 15 volts as is:

    0

    Tweet 1

    31LikeLike

    1

    Reddit this

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

    supply

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://faves.com/Authoring.aspx?u=http%3A%2F%2Fpcbheaven.com%2Fcircuitpages%2FLED_PWM_Dimmer%2F%2F&t=An+LED+Array+PWM+Dimmer+with+the+555http://www.reddit.com/submit?url=http%3A%2F%2Fpcbheaven.com%2Fcircuitpages%2FLED_PWM_Dimmer%2F&title=An+LED+Array+PWM+Dimmer+with+the+555http://digg.com/submit?phase=2&url=http%3A%2F%2Fpcbheaven.com%2Fcircuitpages%2FLED_PWM_Dimmer%2F&title=An+LED+Array+PWM+Dimmer+with+the+555&bodytext=Connecting+the+555+as+a+PWM+generator%2C+i+drive+with+it+an+LED+array.+This+circuit+performs+an+LED+PWM+dimmer+with+minimum+components+and+high+power+efficiency%2C+especially+in+low+LED+brightness.+It+can+be+powered+in+a+wide+voltage+range+from+4+up+to+15+volts.+Along+with+its+compact+size%2C+it+is+ideal+for+camping+or+night+fishing%2C+and+generally+whenever+mobility+and+long-time+use+is+required.&topic=designhttp://del.icio.us/post?v=2&url=http%3A%2F%2Fpcbheaven.com%2Fcircuitpages%2FLED_PWM_Dimmer%2F&title=An+LED+Array+PWM+Dimmer+with+the+555http://pcbheaven.com/circuitpages/LED_Off_Delay/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    3/43

    The potentiometer R2 controls the charge and discharge times, and thus the duty cycle of the PWM. In otherwords, the R2 controls the brightness of the LEDs. R1 pulls up the discharging transistor (inside the 555). The LEDs areconnected 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 theseconnections, i used high brightness 30 mA 3.6 Volts 3mm and 5mm LEDs. You can use whichever LED or connectionyou like, as long as you do not exceed the current limit of the transistor (for the 2N2222 this is 800mA). As always, clickto enlarge if an image is too small.

    Dimmer

    Switches

    Lamp Dimmer

    Super Bright

    LEDs

    Light Emitting

    Diodes

    High Power

    LEDs

    RAID Array

    Lampe Led

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    4/43

    Power supply: 5 volts

    RP = 47 OhmsMax num of rows: 33

    Max num of LEDs: 33

    Power supply: 9 volts

    RP = 68 OhmsMax 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 s upply: 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 powersupply 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 protectiveresistor. 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. Forexample, 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 theedges, then you should first measure the real current that your LED array draws, and do not exceed the maximum800mA 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

    White LED

    LED Array

    Driver

    HOTinheaven!

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.pcbheaven.com/forum/index.php?board=30.0http://pcbheaven.com/scripts/imagepresent.php?filename=%2Fcircuitpages%2Fimages%2Fledoffdelay_1282212493.pnghttp://pcbheaven.com/scripts/imagepresent.php?filename=%2Fcircuitpages%2Fimages%2Fledoffdelay_1282211658.pnghttp://pcbheaven.com/scripts/imagepresent.php?filename=%2Fcircuitpages%2Fimages%2Fledoffdelay_1282210252.pnghttp://pcbheaven.com/scripts/imagepresent.php?filename=%2Fcircuitpages%2Fimages%2Fledoffdelay_1282208915.png
  • 8/10/2019 LED_PWM_Dimmer.pdf

    5/43

    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

    R1 Resistor 4.7 KOhm 1/4 Watt 5% Carbon Film

    R2 10 KOhm Potentiometer

    Capacitors

    C1 0.1 uF ceramic capacitor

    Semiconductors

    D1-

    21N4148 Switching Diode

    Transistors

    T1 2N2222 Switching NPN Transistor

    Integrated Circuits

    U1 555 Timer

    NEWinheaven!

    Project Update: SMD ReflowHot Air Gun NC Automatic

    Machine

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.pcbheaven.com/userpages/smd_reflow_hot_air_gun_nc/?topic=worklog&p=3http://twitter.com/pcbheavenhttp://pcbheaven.com/datasheet/555.pdfhttp://pcbheaven.com/datasheet/2n2222_a.pdfhttp://pcbheaven.com/datasheet/1n4148_4150_4448_914b.pdfhttp://pcbheaven.com/scripts/imagepresent.php?filename=%2Fdatasheet%2Fpictures%2Fres_carb_251_5_472.jpghttp://pcbheaven.com/circuitpages/LED_Off_Delay/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    6/43

    Comments

    Name

    Email (shall not be published)

    Website

    Notify me of new posts via email

    Write your comments below:BEFORE you post a comment:Long comments or comments of general interest are NOTto be posted here.Please use the foruminstead. You will receive a reply much faster.

    LED Drivers and Powerswww.magtechind.com

    LED Driver Manufacture Constant Current

    &Constant Voltage

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.pcbheaven.com/forumhttp://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.pcbheaven.com/forum
  • 8/10/2019 LED_PWM_Dimmer.pdf

    7/43

    Submit your comment

    At 2 February 2014, 1:23:45user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Roel a hybrid supply with SMPS to drop down to 12 say and a linear to do the rest.

    At 16 January 2014, 1:45:56user June Ramaswrote: [reply @ June Ramas]

    Hi, I am interested and very enthusiastic about your project (PWM LED DIMMER), I am an electronicenthusiast and a hobbyist., can you please send me a BLOCK DIAGRAM and also the components needed ?I will make 1 for my litle room.Hoping for a positive reply and Thanks A Lot

    June Ramas / Philippines

    At 14 January 2014, 13:03:52user Roelwrote: [reply @ Roel]

    @Giorgos Yeah I was using a led specific SMPS. I didn't know about the switching part until I went trough theinternals though... A linear power supply would solve the problem, but they are quite big, expensive and notthat efficient (i've been told). Are there any other options? Using a different power source with a regulator orsomething like that? I'll start looking for something linear in the mean time.

    At 12 January 2014, 12:31:15user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27roel%27%29/http://replytouser%28%27june%20ramas%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    8/43

    @Roel I'd suggest you go with a linear power supply. I suppose you use an SMPS???

    At 12 January 2014, 8:55:21user Roelwrote: [reply @ Roel]

    @Giorgos I'm still working on the desk lamp, just soldered all the parts to a test pcb and it's working fine.I'm having quite a problem finding a suitable power supply though. The one I bought for it causes flikkering inthe LEDs, probably due to the PWM frequency. I've tried using capacitors as filters, it worked but not

    efficiently (large high capacity CAPs only seemed to do the trick). Do you have any suggestions? I'm poweringthe above setup but with a MOSfet and 3 * 3W powerleds. On a 9v battery it works like a charm.

    At 21 December 2013, 10:17:30user igorwrote: [reply @ igor]

    all made %u200B%u200Bby the scheme, but does not work if anyone can help please write to my [email protected]

    At 17 December 2013, 12:59:25user PrototyPwrote: [reply @ PrototyP]

    @balram gupta Change BJT to mosfet wich can hold 2amp. Like this one IRFL014 or smthg like that.

    At 22 September 2013, 5:37:14user balram guptawrote: [reply @ balram gupta]

    I want to dim a complete strip of around 300led's which is powered by a 12v 2 amp power supply. Its toobright i want to dim it. What components do i need to change?

    At 30 August 2013, 9:39:05user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Thilina If you use a microcontoller why don't you use PWM directly from a PWM module of the micro???

    At 30 August 2013, 9:27:35user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @mick Come back in a few months, i will have a similar kit for sale

    Use our professional PDF creation service at http://www htm2pdf co uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27balram%20gupta%27%29/http://replytouser%28%27prototyp%27%29/http://replytouser%28%27igor%27%29/http://replytouser%28%27roel%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    9/43

    At 30 August 2013, 9:26:25user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Pete Most likely they have different hFE. Typical for transistors. You'll need to take measurements anddecide which R1 to use

    At 30 August 2013, 7:36:39user Roelwrote: [reply @ Roel]

    @Giorgos Fixed it! I've made a mistake wiring up the Mosfet to the timer, now everything is working like acharm! I hope I've got some time the next couple of weeks to finish the lamp design. i'll post some pics whenit's done.

    At 23 August 2013, 9:14:25user Roelwrote: [reply @ Roel]

    @Giorgos I had to order some new resistors, so it took me a little longer to try it out!

    The result is pretty much the same. I've tried some other resistor values, but it didn't really make a differenceeither. Do you have any suggestions?

    At 17 August 2013, 19:51:08user Thilinawrote: [reply @ Thilina]

    Hi Giorgos,

    This circuit works pretty well.Now I'm trying to use a digital potentiometer(X9C103P) instead of the R2 in thecircuit so that I can control the dimming with a micro controller. When I power up the cct with a digital

    potentiometer, Voltage across the LEDs drops only to half of what is supplied.For example, If 3 LEDs are used with 12V supply, voltage across the LEDs is around 6V at the maximumlevel of dimming.Please provide me a solution.Thanks in advance

    At 14 August 2013, 2:24:00user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27thilina%27%29/http://replytouser%28%27roel%27%29/http://replytouser%28%27roel%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    10/43

    @Roel If you use a mosfet, R1 has to be small, but not too small to violate pin 7 max current sink. use ohm'slaw to calculate: R= U/I where V is the supply voltage and I is the max allowable current sink of pin 7 (checkdatasheet).

    But since you use mosfet and the gate ecurrent is practically 0, do this: Add a resistor between pin 3 and thepotentiometer (say 220 Ohms) and then connect the gate of the mosfet to pin 3 through a 100 Ohm resistor.Remove R1 and leave Pin 7 unconnected. Try this setup and post us the results!

    At 14 August 2013, 1:40:28user Roelwrote: [reply @ Roel]

    @Giorgos Lazaridis I received all the needed parts yesterday and put it all together in a test setup last night(couldn't wait). The Mosfet solution works flawlessly, thank you for that. I've got one issue though, thedimming goes from 100% to about 30% and not entirely to 0%. In one of your replies you mentioned thiscould possibly be an issue with the R1 (the potentiometer is working fine), can I someway calculate with whattype of resistor I need to replace it with?

    At 6 August 2013, 6:01:50user mickwrote: [reply @ mick]

    Is someone producing a pcb for this circuit that is available for purchase.

    I have seen a jpg of a pcb for this dimming cuicuit but can't trace it down...here is a link....jpg is on the far leftof the page.

    http://www.axsoris.com/led-array-pwm-dimmer-with-555.html

    Any help in finding these pcb would be appreciated.

    regards,Mick

    At 6 August 2013, 4:00:59user Petewrote: [reply @ Pete]

    @Giorgos

    Ok.. now i am really confused and i am hoping you can help an electrical noob out!

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27pete%27%29/http://replytouser%28%27mick%27%29/http://replytouser%28%27roel%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    11/43

    So i took out the transistor and used pin 7 of the 555 to sink the current of the LEDs and it worked perfectly,beautiful dimming! So the problem is in the transistor. However testing and replacing the transistor tells me itsnot dead so....

    The only other difference i notice is that I am using an MPS2222A transistor instead of a 2N2222. Thedatasheets say the are pretty close, but there is obviously a difference i don't understand.

    Can you explain to me why this transistor wouldn't work??

    TaPete

    At 2 August 2013, 6:40:36user Petewrote: [reply @ Pete]

    @Giorgos

    Tried 3 pots, all measure linearly across the range. both diodes measure good, even tried swapping 555's andcap's just to be sure! Always the same behavior.

    I only notice that my Rp is about 4 or 5 times larger than what you suggest for a 5V circuit, could this impact?

    I guess the only way to know for sure is to put a scope on it... may have to buy the guys at work some beerand borrow their lab!

    At 2 August 2013, 3:17:52user Roelwrote: [reply @ Roel]

    @Giorgos Ok great, I'll go and order the required parts. I'll let you know how it turned out.

    At 2 August 2013, 3:12:18user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Roel A N-channel mosfet is ok or your application. Since the current and the voltage are both low, almostall N-channel mosfets will do. The LED anode goes to V , the cathode goes to the mosfet Drain, the mosfetSource goes to the gnd. Its a typical low side switch.

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27roel%27%29/http://replytouser%28%27pete%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    12/43

    At 2 August 2013, 3:04:22user Roelwrote: [reply @ Roel]

    @Giorgos I've never worked with mosfet's before, but I would like to give it a try. I've done somereading/research myself, but I find it hard to pick the right type of mosfet for my project. Can you recommendone?

    At 1 August 2013, 22:29:00user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Pete Dead potentiometer maybe?

    At 26 July 2013, 7:08:03user Petewrote: [reply @ Pete]

    Hi Giorgos!

    I have made this circuit and am having some strange behaviour from it. As i dim the circuit down from 100%the LEDs dim a little bit but not too much. At around 30% they suddenly turn off. Then below about 20% theyturn back on!

    Any idea whats gone wrong?

    I am running 3mm high brightness leds with 180ohm Rp (built in) on a 5V supply. I plan to run 10 leds but thebehaviour is the same with any number.

    CheersPete

    At 24 July 2013, 1:11:33user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Mick. Maybe smaller R1? Be careful the max current allowed through pin 7 (i think it is 35mA).If you have an oscilloscope, make sure that the output goes all the way from 1% up to 99% duty cycle. If not,then there is something going wrong with the 2 diodes.

    At 24 July 2013, 1:03:29user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Roel No not really. You could use a mosfet instead to be even more efficient... But its to your taste.Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27pete%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27roel%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    13/43

    At 21 July 2013, 5:34:29user Mick.wrote: [reply @ Mick.]

    Hi..I've assembled the dimmer as per your instructions...thank you :) ,however I only get a limited ammount of dimming...when I turn the 10 k trimpot it dims to full brightnes in lessthan quater turn and doesnt dimm all the way to nothing it only dimms to half brightness.I'm using a mosfet and 84 x 10 mm leds in parallel at 3.6 volts.Is there something i can alter or modify to get full control.

    Cheers Mick.

    At 19 July 2013, 4:42:04user Roelwrote: [reply @ Roel]

    Thank you for this great tutorial, this circuit is way more efficient then the one I had in mind.I'm going to use it as a base for a new desk lamp I'm working on. The 3 leds I'm going to use are 3.3v 700ma(160 lumen each) and a 12v 2a power supply and I'm going to replace the 2n2222 with a transistor that canhandle the higher load. Is there anything else I need to keep in mind except swapping the transistor?

    At 8 July 2013, 23:30:40user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Prem 6 led means you need more than 20 volts to light them up.

    At 8 July 2013, 20:27:09user Premwrote: [reply @ Prem]

    I have 2 rows of 6 leds each. these are to be used as DRLs for my car. I need to control their brightness. whatsetup do I use?

    At 27 June 2013, 6:38:21user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @John No. I used the 2n2222 because i had it in stock. Use any non-darlington transistor NPN that standsthe current/voltage you require.

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27prem%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27roel%27%29/http://replytouser%28%27mick.%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    14/43

    At 27 June 2013, 6:31:50user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @qao No you need a potentiometer for this circuit

    At 25 June 2013, 6:31:04user Johnwrote: [reply @ John]

    Hello, I want to build an array of 5 red LEDs (5mm) that I can dim to faintly light up an area. I found yourproject, and the dimmer circuit in '50 555 circuits' that can be found thru google (search for 'dimmer' in the

    file). Theirs doesn't use the 2N2222 transistor. Is there any advantage to your project over the one I mention?

    At 21 June 2013, 21:31:21user qaowrote: [reply @ qao]

    is it possible to control this with 0-5V output of a d/a converter instead of the R2 pot? if so, how would youmodify the circuit? Thanks.

    At 10 June 2013, 23:29:26user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @mark 15Watts flashlight? WOW! You need to connect 4 batteries in series to get 14.8V, then a buckregulator or other sort of linear regulator (i do not recommend linear regulator at 1.25 amps) to drop down to11.7V

    At 6 June 2013, 1:28:16user markwrote: [reply @ mark]

    I dont have circuit design knowledge but i could follow a diagram with parts numbers. Id like to make a leddriver using a slide dimmer switch with on and off for my personal flashlight. The led data sheet im thinking of

    using says 11.7 volt 1.25 amp. I have 3.7 volt rechargeable 18650 batteries to work with. Could i get adiagram with an efficient solution for my problem? I walk and bike at night but am afraid i will get hit by a car

    because i hate and wont buy one of those clicky flashing mode flashlights currently found for sale. I appreciateyour teaching and attention.

    At 27 February 2013, 6:06:06user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @George The problem is EMI. Make C1 a little bis smaller or make R2 smaller. this will increase the PWM

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27mark%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27qao%27%29/http://replytouser%28%27john%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    15/43

    frequency above audible spectrum. But you will not be able to 100% remove EMI unless you shield the cablesand all the high frequency potions of the circuit near your audio cables

    At 26 February 2013, 13:11:38user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @jester lopez I'm sorry but i cannot make circuits on demand. Not enough time.

    At 25 February 2013, 10:06:59user George wrote: [reply @ George]

    Excellent job at explaining in detail the theory and value calculations in all of your tutorials.My problem is trying to remove the high frquency noise that is associated with PWM 555 circuits.I want to be able to dim 8 LED's (one is bi-color) mounted in the same metal enclosure and using the same 9VDC power I built to rout audible signals, in this case switchable musical instrument effects signals (guitarsmostly). Your circuit works great for the dimmer but I cannot have the High frequency noise which is reallynoticeable when the instrument output is connected to a guitar amp.

    I have tried adding small caps the smallest being 100pF to pin5 & gnd.

    Adding caps to the emitter to gnd thinking LED noise.Adding caps across main power & gnd.If I remember correctly High frequencey noise filtering usually means lower cap values.I have also tried using a TLC555 which did lower the noise but it's still there.I have not tried a 7555. Not sure if that would eliminate noise completely.

    NOTE: As I move your circuit design closer to the instrument output jacks the noise is louder. Even if I justmove the potentiometer towards the output.

    Thanks for any suggestions.This is driving me crazyGeorge

    At 25 February 2013, 4:29:10userjes ter lopezwrote: [reply @ jester lopez]

    good day Mr... im one of your fan in youtube.. can you pls. made me this circuit with 19 volts power supply..thanks in advance..

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27jester%20lopez%27%29/http://replytouser%28%27george%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    16/43

    At 15 February 2013, 14:05:53user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @anthony yes, with some minor changes for the voltage

    At 11 February 2013, 18:38:02user anthonywrote: [reply @ anthony]

    can i use this for 6v dc motor using 9volts dc battery ? please reply thanks

    At 26 December 2012, 5:52:02user MaxiDwrote: [reply @ MaxiD]

    I tested this circuit but fail to give 100% at maximum brightness, remove enough power.

    At 20 November 2012, 5:05:01user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @william davidson no not these ones.

    At 19 November 2012, 18:42:51user william davidsonwrote: [reply @ william davidson]

    hi , i wondered if it was possible to make five of these circuits and connect them to one master circuit to controloverall brightness?

    At 14 October 2012, 10:18:30user karim ahmadwrote: [reply @ karim ahmad]

    @Giorgos Lazaridis >> thanks for your effort :)

    At 14 October 2012, 8:39:07user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @karim ahmad Oh i see. no this one will not work for you. you need a circuit like this:http://www.pcbheaven.com/circuitpages/Ambient_light_Level_Equalizer/

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27karim%20ahmad%27%29/http://replytouser%28%27william%20davidson%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27maxid%27%29/http://replytouser%28%27anthony%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    17/43

    At 14 October 2012, 7:35:30user karim ahmadwrote: [reply @ karim ahmad]

    @Giorgos Lazaridis This LED Array PWM Dimmer with the 555 .. i want it to turn of if there is light and turnon if there is no light

    At 14 October 2012, 4:21:57user Juan Mattewrote: [reply @ Juan Matte]

    Hi, I did something similar, I conect use the pin 3 instead the 7 and conected a more power transistor

    (TIP31NPN) and it works very well. I follow some indications from this web:http://www.reuk.co.uk/LED-Dimmer-Circuit.htmThank you for your response!CheersJuan

    At 14 October 2012, 2:52:26user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Juan Matte Hello and sorry for the totally delayed answer - i missed this comment and saw it only when

    another arrived at this page.

    The problem you mention is typical for high current applications using transistors. The 2N2222 has an hfe ofaround 40. With base resistor 4.7K, it cannot deliver current higher as I= 12/4700 x 40 = 102mA

    So, there is a very elegant solution to your problem, and that will be a mosfet. Mosfets are generally irrelevantto base resistors in terms of current supply. So you wanna change the transistor T1 as shown in this circuit:http://www.pcbheaven.com/circuitpages/High_Frequency_PWM_Fan_Controller/

    In the middle of this page i show a PWM circuit with an IRF520 mosfet (Q1). You are free to use smaller andcheaper mosfets as the 520 can handle up to 9A and costs a little bit high.

    At 14 October 2012, 2:44:59user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @karim ahmad which circuit are you talking about???

    At 13 October 2012, 10:54:00user karim ahmadwrote: [reply @ karim ahmad]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27karim%20ahmad%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27juan%20matte%27%29/http://replytouser%28%27karim%20ahmad%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    18/43

    i tried your circuit and it works good .. can i reverse the function? if there is no light then led bright and viceversa

    At 10 October 2012, 23:02:34user Juan Mattewrote: [reply @ Juan Matte]

    Hi Giorgos,Thank you very much for your post and the circuit it is very simple so thanks again. But I have a problem withthat; I am working in plant science so I had to build an array of blue, red and far red LED. I have 1W LED, all

    of them Vf 350mA and the Vf of the blue is 3.3, Red is 2.2 and the far red is 1.8. I am using 12V of powersource and I put in serial 3 blue LED with a 4.7 ohms resistor, and when I connect them directly to the 12Volts I got full bright (I guess is 3W), but when I use the circuit I got half of the intensity at the maximum level. Imeasure with my tester the voltage in 1 LED and when is connected directly I got 3.3V but through the dimmerI only get 2V%u2026 I don%u2019t understand what happen that using the dimmer the voltage decay to thehalf, and the only think that is between the 12V and my LEDs is the transistor. I upload a video in youtube ifyou want to have more details.I will really appreciate your help because you will understand much better what is going on with that, I onlyhave a basic knowledge in electronics, enough to connect LEDs and understand that the transistor is a switchcontrolled by the 555 timer, then I don%u2019t figure it out why I had lower voltage and also I was expectingconstant voltage but then I don%u2019t know again if he tester is not a good instrument to measure that.Thank you very muchJuanhttp://youtu.be/9K7DBz7MIqg

    At 8 October 2012, 11:11:49user Juliwrote: [reply @ Juli]

    Great! Works perfect, thanks a lot! :-)

    At 23 September 2012, 12:30:39user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Giorgos Lazaridis not with this circuit. You need a PWM generator controlled by a DC voltage. You supplythe line out (using of course a transistor or other sort of impedance matching) to the input of the circuit. here isa more complex circuit but may work for you with little modifications:http://www.pcbheaven.com/circuitpages/Voltage_Controlled_PWM_Generator

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27juli%27%29/http://replytouser%28%27juan%20matte%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    19/43

    At 23 September 2012, 12:25:47user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @rais46 depends on the boost or constant current circuit you will use. With no circuit, you can connect seriesof 3 leds in parallel.

    At 23 September 2012, 6:42:14user rais46wrote: [reply @ rais46]

    i want to make it with 8x12 = 96 leds, and using 6 AA battery each has 1.5 V so 9 V in total.

    How is the configuration?Thank you

    At 21 September 2012, 15:15:18user Mario Salaswrote: [reply @ Mario Salas]

    This is a great and neat circuit. I've been looking for something like this for almost a week. My question is: Isthere any way to connect an audio line -to/or replace- the potentiometer to control the brightness of the ledsthrough sound?. I plan to replace the transistor so it can handle a 1 watt ir led.

    At 9 September 2012, 10:49:43user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @dvnmk you will need 3 555 timers, one for each channel. also, there is no flickering, the fader is not pwm, itis linear

    At 9 September 2012, 8:11:01user dvnmkwrote: [reply @ dvnmk]

    Great article!

    If I have several diffrent led colours that I want to dim separately do I need separate circuits for each or can Iuse the same 555 somehow?I also have some worries about flickering, is there a way to delay the signal for some LEDs so that the light

    pulses are more evenly distributed in time?

    At 6 September 2012, 23:03:57user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Melvin you will need to add either 2 transistors (one to amplify the base current of the power transistor), or

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27dvnmk%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27mario%20salas%27%29/http://replytouser%28%27rais46%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    20/43

    get the output of pin 3 instead and not pin 7. That is because the transistor you propose has hfe 20, so needssome 50 mA at least to drive 1000mA. Pin 7 can sink up to 25-30 mA, while pin 3 can source much more. Isuggest you use pin 3 with a limiting base resistor of about 180 Ohms. As for the LED resistor, better connectthe transistor as a current source:http://www.pcbheaven.com/userpages/LED_driving_and_controlling_methods

    At 5 September 2012, 12:04:51user Melvinwrote: [reply @ Melvin]

    I think this will be perfect for my dimmable 12v car battery floodlight plans. Would the 2n3055 transistorwork? The led will be a 3*3 ledpanel wich needs 9-11V @ 1A, you think I can just use a current resistor tocontrol the current? At what frequency do the leds flash? Thanks!

    At 26 July 2012, 10:59:27user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Don if the voltage does not exceed the 15 volts, then it is ok to do this.

    At 26 July 2012, 10:55:06user Donwrote: [reply @ Don]

    That's fine. Thanks anyways!

    Do you know if I could say buy a 12V AC adapter from something else (like a game system), strip the wiresand solder it to this circuit? Would that work?

    At 25 July 2012, 22:05:10user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Don yes it requires a whole other circuit, a power supply. i cannot provide this circuit though.

    At 25 July 2012, 14:30:24user Donwrote: [reply @ Don]

    This circuit is exactly what I've been searching for! Thanks so much!!

    My question is: How do I make this circuit so that I can plug it into an outlet on my wall at home? Does thatrequire a whole other circuit? Any info you could provide would be amazing! Thanks!

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27don%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27don%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27melvin%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    21/43

    -Don

    At 10 June 2012, 12:59:38user Mikewrote: [reply @ Mike]

    @Giorgos Lazaridis Ok found the problem in D1 and D2 To save face I will Reserve my right to silence. :)

    At 10 June 2012, 12:53:57user Mikewrote: [reply @ Mike]

    @Giorgos Lazaridis Im getting 1.5 ? Now Im really lost LOL

    At 10 June 2012, 10:49:13user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Mike aha! so i see the problem. Have you calculate the voltage drop due to VBE of T1? it is about 0.7 voltsless. The voltage across your LEDs will be some 0.6 to 0.7 volts less than the voltage of the batteries... That isdefinitely the problem.

    At 10 June 2012, 10:02:59user Mikewrote: [reply @ Mike]

    @Giorgos Lazaridis Powered just as above shown in 555 Diagram from batteries. I do have an on and offswitch.

    At 10 June 2012, 9:55:33user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Mike One question: Do you power the array directly from batteries or some sort of circuitry is between????

    At 10 June 2012, 5:53:05user Mikewrote: [reply @ Mike]

    @Giorgos Lazaridis in regard to power I have made some new array modifications using 6 volts. each 15 ohmresistor dissipates 96 mWthe 1/4W resistors are fine for my application all resistors dissipate 768 mW together, the diodes dissipate3072 mW total power dissipated by the array is 3840 mW the array draws current of 640 mA from the

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27mike%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27mike%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27mike%27%29/http://replytouser%28%27mike%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    22/43

  • 8/10/2019 LED_PWM_Dimmer.pdf

    23/43

    @Madhav Khanna 1. not possible, 2. transistor maximum Ic current and power dissipation

    At 22 April 2012, 17:05:37user Madhav Khannawrote: [reply @ Madhav Khanna]

    1. How does the circuit change if I want to use a 3.3V pwm from a micro controller instead of thepotentiometer.2.(This one is just out of curiosity)Also What do I need to take into account if I use LED's which need 350mAat 2.4V.

    At 21 April 2012, 4:59:27user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @dogdoggod maybe you do not need to change anything. you have to try it.

    At 20 April 2012, 0:41:31user dogdoggodwrote: [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-/290495821142Also, 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 18 March 2012, 23:24:24user Giorgos Lazaridiswrote: [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). Alongwith the resistor R1 they make a low pass filter, so by changing the PWM duty cycle, the output voltage ischanged, and since the T1 is an emitter follower, the change in voltage appears at its output as well. You get ofcourse a more linear response, but the range is radically decreased (try this with a fan not LEDs). Andsomething else: this does not work as PWM supply any more. The power is dissipated onto the transistor, soyou lose all the benefits of a PWM.

    2. Not possible. Or i should say better "very hard". Better use this circuit:Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27dogdoggod%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27madhav%20khanna%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    24/43

    http://www.pcbheaven.com/circuitpages/Voltage_Controlled_PWM_GeneratorThis 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 18 March 2012, 22:05:27user Icnuemonowrote: [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 smooththe turn on of the LEDs. An unexpected side affect is that it allows greater control of the dimming (basicallycreating 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, 5:06:19user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @crystal check this out:http://www.pcbheaven.com/circuitpages/Ambient_light_Level_Equalizer

    At 11 March 2012, 1:23:40user crystalwrote: [reply @ crystal]

    yep, im using LDR.do i need to do it by using pwm?

    At 11 March 2012, 1:16:52user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @crystal a linear supply with photocell instead of adjusting resistor?

    At 11 March 2012, 1:10:21user crystalwrote: [reply @ crystal]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27crystal%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27crystal%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27icnuemono%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    25/43

    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 dimwhen 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, 15:04:52user Giorgos Lazaridiswrote: [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, 12:46:52user igilwrote: [reply @ igil]

    @Giorgos Lazaridis Gio!! thanks a lot ... i wish have a professor like you....You know all we need learn.... socan i start to make my great LED lamp but i haven't enought $$ to buy the leds right now XD jajja i'll feedbackyou 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 6 March 2012, 23:29:15user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Igil yes you can use it. You will need to use a mosfet better for 15 amperes to have less resistance. Onemore 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. Youwill 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, theLEDs will go on the high side of the mosfet, otherwise it will not work. This means that you connect the Anodeof the LED to the positive, then the cathode to the Drain of the mosfet (pin 2) and the source of the mosfet (pin3) to the negative. As for R1, if the mosfet gets hot, change it with a smaller one, such as 1K or smaller. Withthis circuit you can control more than 600 series of 3 leds...

    At 6 March 2012, 23:01:49user Igilwrote: [reply @ Igil]

    @Giorgos Lazaridis thanks so much...Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27igil%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27igil%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    26/43

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

    At 6 March 2012, 2:30:33user Giorgos Lazaridiswrote: [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 isnot wise. So you need to make many series connections of leds. for example, you connect 3 leds in series withone small resistor. If each led need 3 volts forward current, the you will need at least 9volts for each series. thecurrent through the LED will still be the same as one led, which is 30 ma. this way, you can have 1/3 of thecurrent, which is 5 amperes. Plus, you can safely connect these series of leds in parallel, since the resistors actas balancing resistors. check this out:http://www.pcbheaven.com/userpages/LED_driving_and_controlling_methods/

    At 5 March 2012, 12:48:50user Igilwrote: [reply @ Igil]

    Hi, im new in this awesome world of LED ilumination, i want to make a 500 White LEDs panel forPhotographic Ilumination ...But i don't know how to design the circuit for 500 leds...i need to do 5 differentcircuits with different dimmer ? or can i use the same dimmer for the 5 leds arrays, just changing the Transistorfor other with more higher current (1800mA or more mA)?or just 5 Paralel circuits?.Please Help me is myschool proyect...My Teacher tell me it is impossible do the 500 led panel for the Current of allleds..THANKS! and excuse my so bad english, i use a google translator for help me..

    At 22 February 2012, 12:42:28user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @skeggi the connection that i use is called "emitter follower". the output voltage will be 0.6 to 0.7 volts lessthan the voltage provided from the base (the voltage that R1 is connected at. The other connection that youdescribed is able to provide full voltage output.

    At 22 February 2012, 10:10:09user skeggiwrote: [reply @ skeggi]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    @Gi L idi H

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27skeggi%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27igil%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    27/43

    @Giorgos Lazaridis Hey,

    thanks for the quick reply! its great to see these discussions are still ongoing and helping people out. Yourefforts 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 pwmsome hi power led's via an led driver.

    At 22 February 2012, 7:43:38user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @skeggi certainly it can output from wherever you want, depends on what you want the transistor to workas... all threads are open for discussion

    At 22 February 2012, 6:43:21user skeggiwrote: [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 thetransistor or only the emitter?

    At 27 January 2012, 13:16:37user Giorgos Lazaridiswrote: [reply @ Giorgos Lazaridis]

    @Tim how exactly did you replaced the potentiometer (which has 3 leads) with a photocell (which has 2leads)? 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) andthe 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, 12:02:03user Timwrote: [reply @ Tim]

    I have built this circuit, and it works awesome. Thank you for this information. My question is about how aperson could use a photocell with this configuration to adjust how bright or dim the leds can get. I replaced the

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    i i h h h ll d i k J l i f h I d i k I

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27tim%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/http://replytouser%28%27skeggi%27%29/http://replytouser%28%27giorgos%20lazaridis%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    28/43

    potentiometer with the photocell, and it works great. Just exactly opposite of how I need it to work. I amneeding 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, 1:17:56user Mdlagwagonwrote: [reply @ Mdlagwagon]

    @Kammenos thank you for the reply, it helped a lot.

    cheers mate

    At 12 December 2011, 21:50:58user Kammenoswrote: [reply @ Kammenos]

    @Mdlagwagon check out this page:http://pcbheaven.com/wikipages/555_Theory/?p=1

    At 8 December 2011, 2:00:22user Mdlagwagonwrote: [reply @ Mdlagwagon]

    I am a first grader in electronics and i just wanted to ask what is the purpose of having the switching diodes inthe circuit?Thats because i think it is still possible to do the same circuit using plain whires to conect the transistor to the555 timer and still get the pulse with changing.Positive feedback would be very much apreciated.

    Thank you

    At 23 November 2011, 13:06:08user Stianwrote: [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 awire to the Gate of T1 which will eventuall connect to m switch's common in. Tested b sim l connectin

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    th t i t GND V d it t id th PWM b tif ll

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27stian%27%29/http://replytouser%28%27mdlagwagon%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27mdlagwagon%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    29/43

    that wire to GND or Vcc and it seems to override the PWM beautifully.

    At 23 November 2011, 8:19:53user Stianwrote: [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 themare 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 Ipush, but that doesn't work that well if the pot happens to be at its' lowest position just as you hit the switch formax brightness. (then total resistance through the pot gets really low). That's why I was looking for a moreelectrically sound solution. :)

    At 23 November 2011, 7:47:45user Kammenoswrote: [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 isswitched off, then the PWM pulses will not arrive at the transistor, and the transistor will be pulled up by theR1. 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 switchedoff, 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, 6:24:00user Stianwrote: [reply @ Stian]

    I just finished putting this circuit together. First tried with a TIP41C BJT, but the voltagedrop turned out fairlyhigh. Then switched to BAT43 diodes and an IRF530 FET and now the drop is barely there with 11.33V inand 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 ofmy FET whenever the button is held (up/down). I'd probably need some resistors to prevent overcurrent, but

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27stian%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27stian%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    30/43

  • 8/10/2019 LED_PWM_Dimmer.pdf

    31/43

    Thanks.....

    At 17 August 2011, 23:44:23user ahappybunnywrote: [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 thiswith the heavy duty mosfet pushing around 70 LEDs. Wish me luck!

    At 17 August 2011, 23:30:03user Kammenoswrote: [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 cannotsee 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 17 August 2011, 23:25:02user ahappybunnywrote: [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 ortwo 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, 11:54:52user Kammenoswrote: [reply @ Kammenos]

    @Sherman 24/6 = 4 volts, so yes, you can. But you will need a limiting resistor according to the forwardvoltage of your LEDs.

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    At 15 August 2011 6:41:21 user Sherman wrote: [reply @ Sherman]

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27ahappybunny%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27ahappybunny%27%29/http://replytouser%28%27sherman%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    32/43

    At 15 August 2011, 6:41:21user Shermanwrote: [reply @ Sherman]

    How can I run 6 LEDs in series that require 24 V, 1A

    At 26 July 2011, 15:36:25user Brianwrote: [reply @ Brian]

    Hi,

    I finally prototyped your circuit. I wanted to make it so that it could handle more power so I placed a TIP42PNP in place of the 2N2222. The TIP42 can work up to 40V, 10A peak & dissipate 65W. I connected the555 pin 7 to the base, V+ to the Collector and the LED string (Anode with inline resistors) to the Emitter withthe LEDs Cathode to GND. Now, because the PNP transistor is inverted Low to High compared to the NPNI 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 extendthe 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 aseparate power source controlled by the transistor base pin. But, will I have a problem with my substitutedTIP42 transistor's base voltage/current feeding back into pin 7 and damaging something? I am powering thetransistor/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 Collectorside of the NPN transistor. Did you place yours on the Emitter side so if there were a short the load would begrounded 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. Sincethe transistor works in reverse of the 2N2222 NPN transistor you use - Should I change my load to theCollector 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 botheryou.

    Thanks for you blog.

    At 19 July 2011, 7:41:28user skiwallwrote: [reply @ skiwall]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    Ok finally got it working Thanks to some duff info ( and my own stupidity ) i had the collector and emitter the

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27skiwall%27%29/http://replytouser%28%27brian%27%29/http://replytouser%28%27sherman%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    33/43

    Ok, finally got it working. Thanks to some duff info ( and my own stupidity ) i had the collector and emitter thewrong way round. Having corrected that i found that even the 1k base resistor was limiting my current throughthe transistor so i swapped it for a 470 ohm and this works fine with this transistor

    At 17 July 2011, 21:30:39user Kammenoswrote: [reply @ Kammenos]

    @Brian the pins are not reversed. I use pin 7 as output and i sink the current of R1 through the internaldischarge transistor. As for the capacitor, you can indeed use a 10pF capacitor from pin 5 to ground.

    At 17 July 2011, 15:52:32user Brianwrote: [reply @ Brian]

    Hi -

    I am ee illiterate and working to just make a PWM LED dimmer based on the 555. I asked another aboutyour circuit just to get concurrence. He noted a possible schematic typo? Here is his response: \"Im not sureabout the pcbheaven.com circuit: the OUT and DIS terminals seem reversed and you really want a small capon 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, 12:28:31user Kammenoswrote: [reply @ Kammenos]

    @skiwall hmmm that is rather strange. I would say that bd243 (and bd243c which are same) should alsowork. try reduce R1 to 1K.you can also use 2 2N2222 to power half your LEDs from each.

    At 15 July 2011, 11:08:01user skiwallwrote: [reply @ skiwall]

    I built the circuit and had a BD243C transistor handy but it doesn't light any LEDS. Is this very different from aBD243? Could I use 2 x 2N2222 from the same 555 chip and power half my LED's from each?

    At 13 July 2011, 6:09:28user Kammenoswrote: [reply @ Kammenos]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27skiwall%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27brian%27%29/http://replytouser%28%27kammenos%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    34/43

    @skiwall yes, the rest is the same

    At 13 July 2011, 2:00:36user skiwallwrote: [reply @ skiwall]

    Thanks @kammenos. I assume that the remaining part of the timer circuit stays the same when using theBD243. i.e. no need to change the base resistor R1 for 5V supply.

    At 12 July 2011, 21:47:05user Kammenoswrote: [reply @ Kammenos]

    @skiwall BD243 can be a solution

    At 12 July 2011, 12:48:06user skiwallwrote: [reply @ skiwall]

    all, I\'m new to the transistor thing but think I follow. I have a cicuit which needs pwm dimming. Its 5v supplywith 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, 14:07:37user Kammenoswrote: [reply @ Kammenos]

    @Bob ok, check the pot.

    At 6 May 2011, 9:54:14user Bobwrote: [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 modifiedPC power supply with the GND on the -12V pin and the V+ on the +3.3V pin. Theory should give me15.3VDC across the two. My 'El Cheapo' analog multimeter puts it around 15V. I currently have one row of 4LED's in series on my bread board with a 20 ohm resistor, like the schematic shown above. My planned finalcircuit will be about 20 rows of four.

    At 6 May 2011, 6:52:57user Kammenoswrote: [reply @ Kammenos]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    @Bob the most possible reason is the potentiometer Make sure it is linear Test it with a multimeter When it it

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27bob%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27skiwall%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27skiwall%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    35/43

    @Bob the most possible reason is the potentiometer. Make sure it is linear. Test it with a multimeter. When it itin the middle, it must be half its resistance, same at 1/4 and 3/4. The Schottky diodes should work better thanthe 1N.How many LEDs you have connect and how? And what is your supply voltage?

    At 6 May 2011, 5:17:40user Bobwrote: [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 thinggoing back down. About half way they turn off abruptly. I suspect the Pot (10K linear taper) or the diodes. Iaccidentally ordered small SMD diodes so I prototyped it with some Schottky's I had laying around. Do any ofthese sound like it could be the culprit?

    At 27 April 2011, 20:26:29user richwrote: [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 forthe leds right? 24 divided by 7 =3.42v, how do i calculate the risistance vale to change 24v to 5v, do youknow the current so i can calculate the resistance?

    At 27 April 2011, 9:49:33user Kammenoswrote: [reply @ Kammenos]

    @rich you need to change the transistor T1 with a mosfet that can handle the current for the LEDs and thevoltage (easy job for some mosfets) and then connect the fosfet (ONLY) to 25 and the rest of the circuit to 5v

    At 26 April 2011, 21:31:13user richwrote: [reply @ rich]

    hello im wondering if i could modify this circuit to work with 24v, i have 3w 700ma and 350ma rgb leds, i wantto run rows of 7 and if possible and use this circuit to dim them, i have tip31b transistor, could you give mesome pointers? thanx

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    At 25 March 2011, 21:27:02 user Chris wrote: [reply @ Chris]

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27rich%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27rich%27%29/http://replytouser%28%27bob%27%29/http://replytouser%28%27chris%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    36/43

    At 25 March 2011, 21:27:02user Chriswrote: [reply @ Chris]

    Timmy, I don't know if you figured it out yet, but the Mosfet transistor is connected to the opposite end of thestring 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 thecircuit on this page is connected to the positive terminal of the first LED in the series, opposite to the Mosfetconnection.

    At 22 March 2011, 10:54:21user Jasonwrote: [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 notthe dimming circuit.

    Thanks

    sound.mixer

    At 22 March 2011, 1:22:13user Kammenoswrote: [reply @ Kammenos]

    Jason, post photos in the forum so that we can help you. (http://pcbheaven.com/forum)

    At 21 March 2011, 21:06:19user Jasonwrote: [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 circuitmany times and I can't see anything wrong. Any suggestions?

    At 13 March 2011, 22:35:57user Kammenoswrote: [reply @ Kammenos]

    timmy, This is how the mosfet is connected to the 555:http://pcbheaven.com/circuitpages/High_Frequency_PWM_Fan_Controller/

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27jason%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27jason%27%29/http://replytouser%28%27chris%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    37/43

    At 13 March 2011, 16:47:30user Timmywrote: [reply @ Timmy]

    Chris,I am building a similar project. Can you send me your schematic diagram? I\\\'m not sure I follow theconnection of the IRF540.

    Thanks,Timmy

    [email protected]

    At 26 February 2011, 21:37:50user Chriswrote: [reply @ Chris]

    Yes! Thank you so much. Now I understand that a bipolar transistor is connected to the positive end of theLED chain, while a MOSFET needs to be connected to the negative. I guess that\'s why they refer to theMOSFET pin as the \'drain\', and the bipolar pin as the \'emitter\'. Anyway thanks again, the breadboard circuitis working fine and soon I\'ll be able to install the room lighting.

    At 26 February 2011, 14:22:55user Kammenoswrote: [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, andthe cathode of the LEDs goes to the mosfet. Change to this your connection and it should work.

    At 25 February 2011, 22:11:11user Chriswrote: [reply @ Chris]

    correction to my previous post - I meant to say I reversed the Source and Drain pins on the IRF540 to correctthe circuit.

    At 25 February 2011, 22:08:55user Chriswrote: [reply @ Chris]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    I built your circuit and it works great. I am very excited to have access to all this information!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27chris%27%29/http://replytouser%28%27chris%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27chris%27%29/http://replytouser%28%27timmy%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    38/43

    y g y

    Previously I asked if this could be scaled up to operate more LED\'s, and you suggested the IRF540. Iordered 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 2N2222the circuit would not work. When I reversed the Collector and Emitter so that the Emitter was connected tothe 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 the2N2222. Can you suggest anything?

    Thanks again!

    At 20 February 2011, 21:58:54user Kammenoswrote: [reply @ Kammenos]

    Ryan, most probably you need a resistor. you need the resistor to have a voltage drop across it, so that theremaining voltage cross across the LEDs is equal to its nominal voltage operation. For example, if you have anled that operates at 3 volts, and your power supply is 5 volts, you need a resistor to generate a voltage drop of2 volts, in respect of course to the current of the LED which is typical 25mA

    At 19 February 2011, 6:55:10user Ryanwrote: [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 guessingso?

    Thanks!

    At 17 February 2011, 22:06:04user Kammenoswrote: [reply @ Kammenos]

    2n2222 is not suitable for many LEDs. You need to replace it with a large mosfet, like the IRF540.

    At 17 February 2011, 21:49:38user Chriswrote: [reply @ Chris]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    I am studying this circuit and will be building it soon. I am interested in providing general room lighting for a 15

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27chris%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27ryan%27%29/http://replytouser%28%27kammenos%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    39/43

    y g g p g g g gX 20 foot room,and I'm wondering if this can be scaled up to operate more LED's. Can this be accomplished by using adifferent transistor ? Thanks.

    At 19 January 2011, 2:13:28user Kammenoswrote: [reply @ Kammenos]

    there is an amazing world for you to discover

    At 18 January 2011, 19:18:51user BjMacwrote: [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, 10:39:54user Kammenoswrote: [reply @ Kammenos]

    let me take a wild guess: remove the transistor completely, connect the LED directly to the place where thetransistor was (555 pin 7), and it will dim, right? If so, then 99% you had the transistor connected wrong, or itwas 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 theresistor.Because 2N2222 is kinda expensive, you can try with another NPN transistor, BC338 for example. It willwork the same for one LED. You cook 3 in the price of 1 ;)

    At 18 January 2011, 9:49:19user BjMacwrote: [reply @ BjMac]

    It actually does dim now with the fried transistor. That leads me to believe that the 555 and my cicuitry iscorrect? 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 thetransistor 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.

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    At 18 January 2011, 6:00:32user Kammenoswrote: [reply @ Kammenos]

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27bjmac%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27bjmac%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27kammenos%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    40/43

    y , [ p y @ ]

    It happens BjMac with curious friends. Anyway, the output of the transistor, is the input voltage, minus theVCE (which i do not remember exactly how it is). Check the documentation of the transistor to verify. Nearly0.5V or something.If you mean inline the RP resistor, it is only for protecting the transistor and LEDs from over-current. Underspecific 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 got50 ohms.

    At 18 January 2011, 5:09:24user BjMacwrote: [reply @ BjMac]

    I built this circuit yesterday. I have a few questions though. A friend of mine was messing around with it while Ihad alligator clips to an led. He sorted the leads and fried the transistor. I could have killed him! With the badtransistor it puts out 2.1 volts. (base is shorted to the emitter) While this circuit is properly functioning, what isthe 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 a100 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 testled and didn't mind popping it.

    At 9 December 2010, 9:26:19user nandanawrote: [reply @ nandana]

    Dear sir,I build this circuit its working wary well!

    thank you.

    At 8 December 2010, 11:04:45user Kammenoswrote: [reply @ Kammenos]

    Hi peter,One question: What you want to make would be easier - and more energy efficient - to build with amicrocontroller 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

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    me the details with email (webmaster [at] pcbheaven [dot] com) to check it out.

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27nandana%27%29/http://replytouser%28%27bjmac%27%29/http://replytouser%28%27kammenos%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    41/43

    At 8 December 2010, 0:00:52user peterwrote: [reply @ peter]

    HelloI 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 thelights 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

    PeterI'm in Calgary Alberta

    At 25 October 2010, 22:04:44user Kammenoswrote: [reply @ Kammenos]

    Hello Oliver,i had an awful teacher in electronics in my university as well. Absolutely dumb. But if you like what you aredoing, then you learn it by yourself. So, i guess you want to make an astable multivibrator with the 555. Iwould suggest first you get o know the 555 better. I have written a simply theory about 555 which you canread 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 555circuits, among with there is the "The 555 as Astable Multivibrator". This is what you need to make. Exactlythat 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.2Kresistor in series with pin 3, and then you will connect the base of a 2N2222 transistor. The collector of thetransistor goes to 12 volts. From the emitter, you will connect the circuitry of this page with the 3x2 LEDs forthe 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, 14:18:22user Jason Oliverwrote: [reply @ Jason Oliver]

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    GiorgosLazaridis

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27jason%20oliver%27%29/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27peter%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    42/43

    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 videoyou had posted and it was similar to what I want to do. I took electronic circuits I and electronic circuits II incollege. Unfortunately, my E.C. II professor was unbelievably bad, and I learned nothing. My first one wasgreat. So, I have a very basic understanding of electronic circuits ... which is to say I know almost nothing, justenough 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 abeginner (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 automotive12V (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 11 October 2010, 21:14:04user Kammenoswrote: [reply @ Kammenos]

    i have a more appropriate circuit:http://pcbheaven.com/circuitpages/High_Frequency_PWM_Fan_Controller

    At 11 October 2010, 14:47:26user herctrapwrote: [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, 10:09:51user Kammenoswrote: [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 sli ht volta e dro across the diodes... On the oscillosco e, ou barel see a difference.

    Use our professional PDF creation service at http://www.htm2pdf.co.uk!

    http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://www.htm2pdf.co.uk/http://replytouser%28%27kammenos%27%29/http://replytouser%28%27herctrap%27%29/http://replytouser%28%27kammenos%27%29/
  • 8/10/2019 LED_PWM_Dimmer.pdf

    43/43