# Driving LED with 555 timer and BC639 transistor

I am trying to produce an LED dimmer circuit using a 555 timer circuit and a BC639 NPN transistor. I know there are better transistors that would suit the task better, but the BC639 is what I have to work with.

I've got the 555 timer configured so that it is outputting a ~12V 1.4kHz signal.

I am using a BC639 NPN transistor to drive a white LED, with a maximum forward current of 50mA. I have put a 330Ω resistor in series with the LED so that the current is 26.36mA.

I'm trying to figure out how to make it so that the LED turns all the way off when my 555 timer is outputting the lowest average DC voltage.

I have been told that this is down to the value of R3. I have calculated a value for R3 of 51.4kΩ:

IC=26.36mA

hFE=120

IB=IC/hFE

IB=0.00022A

R=(V-VBE)/IB

R=(12-0.7)/0.00022

R=51.4kΩ

This resistor value does not allow the LED to be turned off fully. Through trial and error I have found that the closest E12 resistor value that does allow the LED to turn off fully is is a 680kΩ resistor.

The value of the base resistor has nothing to do with the range of the PWM.

R3 should be more like 10K to fully saturate the transistor (forced beta in the range of 20).

When the output is high (LED 'on'), the capacitor has to charge through R2, which means that the "on" time is limited by the time constant of R2 and C1.

You can try "flipping" the output (if you have an ancient design bipolar 555 you may need a pullup to turn the transistor off fully), so use a PNP transistor and the same value of base resistor. Then reverse the CCW and CW sides of your pot.

That will mean your LED output won't go as close to 100%, but that will have no visual effect-- the slight amount 'on' is much more noticeable than a slight reduction in full brightness.

The output will still not be completely off, but it will be greatly reduced in brightness. A small capacitor, at a guess around 1nF between base and emitter of the transistor can eliminate that short turn on, at the expense of the transistor running a bit warmer.

• The only values of this circuit I have control over are R3 and R4. This is part of an assignment and I am tasked with sizing R3 and R4 accordingly to produce an LED dimmer that switches the LED all the way off. Thanks Commented Nov 19, 2018 at 18:58
• It's not possible by modifying those two parts, and have the dimmer still function. Are you sure the instructor does't want you to modify R2? Commented Nov 19, 2018 at 19:00
• We were given a bag of the components above, minus R3 and R4. Why would a 680kΩ resistor at the base of the transistor allow the LED to turn off fully when the timer is outputting its lowest average DC value? Commented Nov 19, 2018 at 19:03
• It's similar to a capacitor as mentioned above so it acts as a low pass filter in conjunction with the Miller capacitance, but it's not a good way to drive the transistor. Commented Nov 19, 2018 at 19:04
• Okay, thanks for your help. I'll look into this further. Maybe this is what he wants us to do, regardless of whether it is best for the transistor or not. Commented Nov 19, 2018 at 19:10