I built this OR gate with 2N2222A transistors. I did the calculations based on the datasheet but there's still a CE current leak which dimly lights the LED when no buttons are pressed. When I replace the transistors with BC547, the leak seems to go away. Functionally these transistors are supposed to be swappable so why would they be acting differently?
Vin = 9V
R1 Resistance
LED VF = 2V
LED IF = .02A
2N222A VCE(sat) = .3V
R1 = (9V - 2V - .3V) / .02A = 335Ω
Transistor Base Current
IC = .02A
β(MIN) = 100
Overdrive factor = 10
IB = .02A / 100 x 10 = .002A
R2 and R3 Resistance
VBE(sat) = .6
R = (9V - .6V) / .002A = 4200Ω
Vin = 9V
R1 Resistance
LED VF = 2V
LED IF = .02A
2N222A VCE(sat) = .3V
R1 = (9V - 2V - .3V) / .02A = 335Ω
Transistor Base Current
IC = .02A
β(MIN) = 100
Overdrive factor = 10
IB = .02A / 100 x 10 = .002A
R2 and R3 Resistance
VBE(sat) = .6
R = (9V - .6V) / .002A = 4200Ω
Last edited: