Electrical – Driving LED with 555 timer and BC639 transistor

555npn

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.

Circuit diagram

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.

Best Answer

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.